|
1 | 1 | # 🚀 Change Log |
2 | 2 |
|
| 3 | +## [0.9.26] - 2025-7-27 |
| 4 | +### 🐛 问题修复 |
| 5 | +- **修复创建空目录问题**:修复了语言服务器会创建空目录的问题。 |
| 6 | +### 🔧 变更 |
| 7 | +- **Rust 2024 版本**:语言服务器现已使用 Rust Edition 2024 构建,带来多项性能和稳定性提升。 |
| 8 | + |
3 | 9 | ## [0.9.25] - 2025-7-25 |
4 | | -### 🔧 Changed |
5 | | -- **Refactor generic function inference**: Lambda function parameters now use deferred matching, allowing generic types to be inferred from other parameters first. For example: |
| 10 | +### 🔧 变更 |
| 11 | +- **重构泛型函数推断**:Lambda 函数参数现在采用延迟匹配,允许泛型类型优先从其他参数推断。例如: |
6 | 12 | ```lua |
7 | 13 | ---@generic T |
8 | 14 | ---@param f1 fun(...: T...): any |
9 | 15 | ---@param ... T... |
10 | 16 | function invoke(f1, ...) |
11 | | - |
| 17 | + |
12 | 18 | end |
13 | 19 |
|
14 | | -invoke(function(a, b, c) -- infer as: integer, integer, integer |
15 | | - print(a, b, c) |
| 20 | +invoke(function(a, b, c) -- 推断为:integer, integer, integer |
| 21 | + print(a, b, c) |
16 | 22 | end, 1, 2, 3) |
17 | 23 | ``` |
18 | 24 |
|
19 | | -- **Generic Type Decay**: Now, generic types that match constants of integer, string, float, or boolean will be directly converted to their corresponding general types. |
| 25 | +- **泛型类型衰减**:现在,泛型类型如果匹配到 integer、string、float 或 boolean 常量,将直接转换为对应的基础类型。 |
20 | 26 |
|
21 | | -### ✨ Added |
22 | | -- **Use Mimalloc**: Mimalloc is now the default memory allocator, improving performance and memory management. Startup performance is increased by about 50%. |
23 | | -- **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: |
| 27 | +### ✨ 新增 |
| 28 | +- **默认使用 Mimalloc**:Mimalloc 现为默认内存分配器,提升了性能和内存管理,启动性能提升约 50%。 |
| 29 | +- **Lua 5.5 语法支持**:更完整地支持 Lua 5.5 语法,包括 `global` 声明、`table.create` 以及新的属性语法。例如: |
24 | 30 | ```lua |
25 | 31 | local <const> a, b, c = 1, 2, 3 |
26 | 32 | global <const> d, e, f |
27 | 33 | ``` |
28 | | -Also supports immutability checks for iterator variables in for loop statements. |
29 | | - |
| 34 | +同时支持 for 循环语句中迭代变量的不可变性检查。 |
30 | 35 |
|
31 | | -- **Doc Cli Modification**: Improved the documentation CLI to better handle various edge cases and provide more accurate suggestions. |
| 36 | +- **文档 CLI 优化**:改进了文档 CLI,更好地处理各种边界情况并提供更准确的建议。 |
32 | 37 |
|
33 | | -### 🐛 Fixed |
| 38 | +### 🐛 问题修复 |
34 | 39 |
|
35 | | -- **Fix load order**: Fixed an issue where the order of loading files could lead to incorrect type inference. |
36 | | -- **Fix Unpack infer**: Fixed an issue where unpacking a table in a table. |
37 | | -- **Fix rename in @param**: Fixed an issue where renaming a parameter in a function param. |
| 40 | +- **修复加载顺序问题**:修复了文件加载顺序可能导致类型推断错误的问题。 |
| 41 | +- **修复 Unpack 推断**:修复了解包表时的推断问题。 |
| 42 | +- **修复 @param 重命名**:修复了函数参数重命名时 @param 注释未同步的问题。 |
38 | 43 |
|
39 | 44 |
|
40 | 45 | ## [0.9.24] - 2025-7-11 |
|
0 commit comments