File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.4.0
4+
5+ - Upgraded to TypeScript 4.6
6+ - Added two event hooks to TSTL plugins: ` beforeTransform ` and ` afterPrint `
7+ - These allow you to run plugin code at specific points in the transpilation process.
8+ - Lualib polyfills are now modules required into locals, instead of global functions
9+ - This change also removes the ` "always" ` option for the ` "lualibImport" ` tsconfig key.
10+ - Added support for ` Math.sign `
11+ - Switched to ` ^ ` instead of ` math.pow ` , the latter was deprecated in 5.3
12+ - Added an error when using ` null ` or ` undefined ` in tuples, as that is undefined behavior in the Lua spec and causes unexpected behavior
13+ - Added tsconfig setting ` extension ` , allowing to specify a different output file extension
14+ - Fixed multiple issues with optional chaining and lualib/language extensions
15+ - Fixed issue assigning function with properties to variable declarations
16+ - Fixed multiple issues with preceding statements in class constructors
17+ - Fixed external code module resolution exploding into a stack overflow in complicated module hierarchies
18+ - Fixed a ` function.apply(context) ` breaking the transpiler if called with only one parameter
19+ - Fixed preceding statements in ternary conditionals (` x ? y : z ` ) leading to incorrect code
20+
321## 1.3.0
422
523- Added ` LuaPairsIterable ` language extension to mark objects as iterable with Lua's ` pairs ` .
You can’t perform that action at this time.
0 commit comments