Skip to content

Commit c622a76

Browse files
committed
update version
1 parent bc264f6 commit c622a76

File tree

7 files changed

+45
-9
lines changed

7 files changed

+45
-9
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,42 @@
44

55
---
66

7+
## [0.9.1] - 2025-7-25
8+
### 🔧 Changed
9+
- **Refactor generic function inference**: Lambda function parameters now use deferred matching, allowing generic types to be inferred from other parameters first. For example:
10+
```lua
11+
---@generic T
12+
---@param f1 fun(...: T...): any
13+
---@param ... T...
14+
function invoke(f1, ...)
15+
16+
end
17+
18+
invoke(function(a, b, c) -- infer as: integer, integer, integer
19+
print(a, b, c)
20+
end, 1, 2, 3)
21+
```
22+
23+
- **Generic Type Decay**: Now, generic types that match constants of integer, string, float, or boolean will be directly converted to their corresponding general types.
24+
25+
### ✨ Added
26+
- **Use Mimalloc**: Mimalloc is now the default memory allocator, improving performance and memory management. Startup performance is increased by about 50%.
27+
- **Lua 5.5 Syntax Support**: More complete support for Lua 5.5 syntax, including `global` declarations, `table.create`, and the new attribute syntax. For example:
28+
```lua
29+
local <const> a, b, c = 1, 2, 3
30+
global <const> d, e, f
31+
```
32+
Also supports immutability checks for iterator variables in for loop statements.
33+
34+
35+
- **Doc Cli Modification**: Improved the documentation CLI to better handle various edge cases and provide more accurate suggestions.
36+
37+
### 🐛 Fixed
38+
39+
- **Fix load order**: Fixed an issue where the order of loading files could lead to incorrect type inference.
40+
- **Fix Unpack infer**: Fixed an issue where unpacking a table in a table.
41+
- **Fix rename in @param**: Fixed an issue where renaming a parameter in a function param.
42+
743
## [0.9.0] - 2025-7-11
844
### 🔧 Changed
945

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77

88
[workspace.dependencies]
99
# local
10-
emmylua_code_analysis = { path = "crates/emmylua_code_analysis", version = "0.9.0" }
10+
emmylua_code_analysis = { path = "crates/emmylua_code_analysis", version = "0.9.1" }
1111
emmylua_parser = { path = "crates/emmylua_parser", version = "0.11.2" }
1212
emmylua_diagnostic_macro = { path = "crates/emmylua_diagnostic_macro", version = "0.4.0" }
1313

crates/emmylua_check/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_check"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
edition = "2021"
55
authors = ["CppCXY"]
66
description = "A command-line tool for checking lua code."

crates/emmylua_code_analysis/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_code_analysis"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
edition = "2021"
55
authors = ["CppCXY"]
66
description = "A library for analyzing lua code."

crates/emmylua_doc_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_doc_cli"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
edition = "2021"
55
authors = ["CppCXY"]
66
description = "A command-line tool for generating lua documentation."

crates/emmylua_ls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_ls"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
edition = "2021"
55
authors = ["CppCXY"]
66
description = "A language server for emmylua."

0 commit comments

Comments
 (0)