Skip to content

Commit 7c58f23

Browse files
committed
CHANGELOG.md 0.30.0
1 parent a852f9c commit 7c58f23

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CHANGELOG.md

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

3+
## 0.30.0
4+
5+
- **Breaking:** We dropped support for `var` variables. If you still have any `var` variable declarations, they will not break compilation, but they will behave as if they were declared using `let`.
6+
- **Breaking:** We now depend on Node.js >= 12.13.0
7+
- Added support for string `trimLeft`, `trimRight`, `trimStart` and `trimEnd`.
8+
- Added support for `console.error`, `console.warn` and `console.info` , they will all be transpiled to Lua's `print`.
9+
- Avoided exporting anonymous identifiers.
10+
- Fixed an issue when assigning to an already-exported variable.
11+
- Math.atan2 will now be transpiled to the correct Lua atan2 (or atan for 5.3) method.
12+
- Fixed various destructuring issues.
13+
- Fixed incorrect error for intersection types containing built-ins (like `number` or `string`)
14+
- Modules containing `import` or `export` will now always be recognized as module to match TypeScript's logic.
15+
- Fixed `true` not being recognized as lua keyword.
16+
- Fixed inaccuracies in switch case variable scoping.
17+
- Fixed various problems with variables being global instead of local.
18+
19+
### Internal:
20+
21+
- Refactored transformation pipeline from one big LuaTransformer class to many small modules.
22+
- Moved class construction methods from transformer to LuaLib.
23+
- Upgraded dependencies.
24+
325
## 0.29.0
426

527
- Added bundling support using options `luaBundle` and `luaBundleEntry` (so **not** TS's outFile). This will bundle all output files into one single bundle file, with _luaBundleEntry_ as entry point. For more information on these options see https://github.com/TypeScriptToLua/TypeScriptToLua/wiki#tstl-specific-options

0 commit comments

Comments
 (0)