|
1 | 1 | # changelog
|
2 | 2 |
|
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 | + ``` |
4 | 22 | * `NEW` alias and enums supports attribute `partial`
|
5 | 23 | ```lua
|
6 | 24 | ---@alias Animal Cat
|
|
32 | 50 | code = 'WARN' --> OK
|
33 | 51 |
|
34 | 52 | ```
|
| 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) |
35 | 64 | * `FIX` rename in library files
|
36 | 65 |
|
37 | 66 | ## 3.7.4
|
@@ -1997,3 +2026,11 @@ f( -- view comments of `1` and `2` in completion
|
1997 | 2026 | `2020-11-9`
|
1998 | 2027 |
|
1999 | 2028 | * `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