You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,45 @@
2
2
3
3
[中文Log](CHANGELOG_CN.md)
4
4
5
+
# 0.9.21
6
+
7
+
`NEW` Implement `std.Unpack` type for better type inference of the `unpack` function, and `std.Rawget` type for better type inference of the `rawget` function
8
+
9
+
`NEW` Support `generator` implementation similar to `luals`
10
+
11
+
`FIX` Fix issue where type narrowing is lost in nested closures
12
+
13
+
`NEW` Improved generic parameter inference for lambda functions, now better inferring parameter types for lambda functions
14
+
15
+
`CHG` Changed `math.huge` to number type
16
+
17
+
`FIX` Optimized inference of variadic generic return values, now usable for asynchronous library return value inference:
18
+
```lua
19
+
--- @genericT,R
20
+
--- @paramargcinteger
21
+
--- @paramfuncfun(...:T..., cb: fun(...:R...))
22
+
--- @returnasyncfun(...:T...):R...
23
+
localfunctionwrap(argc, func) end
24
+
25
+
--- @paramastring
26
+
--- @parambstring
27
+
--- @paramcallbackfun(out: string)
28
+
localfunctionsystem(a, b, callback) end
29
+
30
+
localwrapped=wrap(3, system)
31
+
```
32
+
33
+
`FIX` Optimized rendering of certain type hints
34
+
35
+
`NEW` Added documentation hints for modules and types in code completion
36
+
37
+
`NEW` Added type checking for intersection types
38
+
39
+
`NEW` Support for generic constraint checking, string template parameter type checking and code completion
40
+
41
+
`FIX` Fix performance issue where type checking drastically slows down when large Lua tables are present in the project, causing the entire project to become unresponsive
0 commit comments