Skip to content

Commit cd260bc

Browse files
committed
CHANGELOG.md 1.4.0
1 parent fbb00d2 commit cd260bc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
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`.

0 commit comments

Comments
 (0)