Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b13e707

Browse files
committedApr 22, 2024·
更新日志
1 parent fbf1be3 commit b13e707

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed
 

‎changelog.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# changelog
22

3-
## 3.7.5
3+
## 3.8.0
4+
* `NEW` supports tuple type (@[lizho])
5+
```lua
6+
---@type [string, number, boolean]
7+
local t
8+
9+
local x = t[1] --> x is `string`
10+
local y = t[2] --> y is `number`
11+
local z = t[3] --> z is `boolean`
12+
```
13+
* `NEW` generic pattern (@[fesily])
14+
```lua
15+
---@generic T
16+
---@param t Cat.`T`
17+
---@return T
18+
local function f(t) end
19+
20+
local t = f('Smile') --> t is `Cat.Smile`
21+
```
422
* `NEW` alias and enums supports attribute `partial`
523
```lua
624
---@alias Animal Cat
@@ -32,6 +50,17 @@
3250
code = 'WARN' --> OK
3351

3452
```
53+
* `NEW` plugin: add `OnTransFormAst` interface (@[fesily])
54+
* `NEW` plugin: add `OnNodeCompileFunctionParam` interface (@[fesily])
55+
* `NEW` plugin: add `ResolveRequire` interface (@[Artem Dzhemesiuk])
56+
* `NEW` plugin: support multi plugins (@[fesily])
57+
+ setting: `Lua.runtime.plugin` can be `string|string[]`
58+
+ setting: `Lua.runtime.pluginArgs` can be `string[]|table<string, string>`
59+
* `NEW` CLI: `--doc` add option `--doc_out_path <PATH>` (@[Andreas Matthias])
60+
* `NEW` CLI: `--doc_update`, update an existing `doc.json` without using `--doc` again (@[Andreas Matthias])
61+
* `NEW` CLI: `--trust_all_plugins`, this is potentially unsafe for normal use and meant for usage in CI environments only (@[Paul Emmerich])
62+
* `CHG` CLI: `--check` will run plugins (@[Daniel Farrell])
63+
* `FIX` diagnostic: `discard-returns` not works in some blocks (@Jakub)
3564
* `FIX` rename in library files
3665

3766
## 3.7.4
@@ -1997,3 +2026,11 @@ f( -- view comments of `1` and `2` in completion
19972026
`2020-11-9`
19982027

19992028
* `NEW` implementation, NEW start!
2029+
2030+
<!-- contributors -->
2031+
[lizho]: (https://github.com/lizho)
2032+
[fesily]: (https://github.com/fesily)
2033+
[Andreas Matthias]: (https://github.com/AndreasMatthias)
2034+
[Daniel Farrell]: (https://github.com/danpf)
2035+
[Paul Emmerich]: (https://github.com/emmericp)
2036+
[Artem Dzhemesiuk]: (https://github.com/zziger)

0 commit comments

Comments
 (0)
Please sign in to comment.