Skip to content

Commit 28d0a57

Browse files
committed
CHANGELOG 0.38.0
1 parent 5b01ee2 commit 28d0a57

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 0.38.0
4+
5+
- **[Breaking]** Renamed `MultiReturn` to `LuaMultiReturn` to be consistent with other language extensions all starting with Lua-.
6+
- Fixed various bugs and issues related to `LuaMultiReturn`, including its value not correctly being wrapped in some cases.
7+
- Added support for indexing `LuaMultiReturn` values without destructing.
8+
- Added language extensions to allow translation directly to (overwritten) Lua operators like `+`,`-`,`..`. For more information see [Operator Map Types](https://typescripttolua.github.io/docs/advanced/language-extensions#operator-map-types).
9+
- Added language extension `$range()`. This function can be used to create numeric lua loops, for example `for (const i of $range(1, 10)) {` translates to `for i=1,10 do`. For more information see [\$range Iterator Function](https://typescripttolua.github.io/docs/advanced/language-extensions#range-iterator-function).
10+
- Added support for `Array.isArray`, formalizing tstl's isArray convention (**note:** Due to `[]` and `{}` being the same in Lua, `{}` - without any keys - is considered an array too.)
11+
- Added support for `string.prototype.includes`.
12+
- Added support for enum merging.
13+
- Fixed missing lualib dependency in `string.prototype.split`.
14+
- Added a not-supported diagnostic for not-yet-implemented optional chaining (`a?.b`).
15+
- Moved remaining legacy tests to modern testing utils, removing the legacy testing code.
16+
317
## 0.37.0
418

519
- **[Important]** Deprecated the @phantom, @extension, @metaExtension and @pureAbstract annotations. This is done because there are good alternatives in regular TypeScript, and this helps us simplify the transpiler. For now, using these annotations will result in a warning but they will still continue to function. A few months from now these annotations will no longer be supported, so upgrade if possible. See [Compiler Annotations](https://typescripttolua.github.io/docs/advanced/compiler-annotations) for more info.

0 commit comments

Comments
 (0)