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
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,27 @@
1
1
# Changelog
2
2
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
+
3
25
## 0.29.0
4
26
5
27
- 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