|
1 | 1 | # Changelog |
2 | 2 |
|
3 | | -## Unreleased |
| 3 | +## 0.34.0 |
4 | 4 |
|
5 | | -- Added new `"luaTarget"` option value - `"universal"`. Choosing this target would make TypeScriptToLua generate code compatible with all supported Lua targets. |
6 | | - - **BREAKING CHANGE:** This is a new default target. If you have been depending on LuaJIT being chosen implicitly, now you have to enable it explicitly with `"luaTarget": "JIT"` in the `tsconfig.json` file. |
| 5 | +- Added new `"luaTarget"` option value - `"universal"`. Choosing this target makes TypeScriptToLua generate code compatible with all supported Lua targets. |
7 | 6 |
|
8 | | -<!-- TODO: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html doesn't seem to work now --> |
| 7 | + - **BREAKING CHANGE:** This is a new default target. If you have been depending on LuaJIT being chosen implicitly, you now have to enable it explicitly with `"luaTarget": "JIT"` in the `tsconfig.json` file. |
9 | 8 |
|
10 | | -- TypeScript has been updated to 3.9. See [release notes](https://devblogs.microsoft.com/typescript/announcing-typescript-3-9/) for details. This update includes some fixes specific to our API usage: |
| 9 | +- TypeScript has been updated to **3.9**. See [release notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html) for details. This update includes some fixes specific to our API usage: |
11 | 10 |
|
12 | 11 | - Importing a non-module using `import "./file"` produced a TS2307 error [#35973](https://github.com/microsoft/TypeScript/issues/35973) |
13 | | - - TypeScript now tries to find a call signature even in presence of type errors (#36665)(https://github.com/microsoft/TypeScript/pull/36665): |
| 12 | + - TypeScript now tries to find a call signature even in presence of type errors [#36665](https://github.com/microsoft/TypeScript/pull/36665): |
14 | 13 | ```ts |
15 | 14 | function foo(this: void, x: string) {} |
16 | 15 | foo(1); |
17 | 16 | ``` |
18 | 17 | ```lua |
19 | | - -- 3.8 |
| 18 | + -- Before: with 3.8 (this: void ignored due to signature mismatch) |
20 | 19 | foo(nil, 1) |
21 | | - -- 3.9 |
| 20 | + -- Now: with 3.9 |
22 | 21 | foo(1) |
23 | 22 | ``` |
24 | 23 |
|
25 | 24 | - Reduced memory consumption and optimized performance of generators and iterators |
26 | | - |
27 | 25 | - Fixed generator syntax being ignored on methods (`*foo() {}`) and function expressions (`function*() {}`) |
28 | | - |
29 | 26 | - Fixed iteration over generators stopping at first yielded `nil` value |
30 | | - |
31 | 27 | - Fixed `Array.prototype.join` throwing an error when array contains anything other than strings and numbers |
32 | | - |
33 | 28 | - Fixed extending a class not keeping `toString` implementation from a super class |
34 | 29 |
|
| 30 | +- Fixed issue where CLI arguments were incorrectly removed. |
| 31 | +- Fixed issue where class accessors threw an error due to a missing dependency. |
| 32 | + |
| 33 | +Under the hood: |
| 34 | + |
| 35 | +- Upgraded to Prettier 2.0 |
| 36 | + |
35 | 37 | ## 0.33.0 |
36 | 38 |
|
37 | 39 | - Added support for nullish coalescing `A ?? B`. |
|
0 commit comments