|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.16.0 |
| 4 | +* **BREAKING CHANGE:** All functions now take a `self` parameter. This means that without further action calls to declaration functions might be given an extra argument. |
| 5 | + * To remove the self parameter from a single function add `this: void` to its declaration: |
| 6 | + ```declare function foo(this: void, ...)``` |
| 7 | + * To remove the self parameter from all methods or functions in a class/interface/namespace add `/** @noSelf */`: |
| 8 | + ```/** @noSelf */ interface Foo {``` |
| 9 | + * To remove the self parameter from all functions in a file, add `/** @noSelfInFile */` at the top. |
| 10 | +* Fixed a bug breaking named class expressions. |
| 11 | +* Fixed inconsistency between the meaning of `>>` and `>>>` in JS vs. Lua. |
| 12 | +* Added `/** @noResolution */` directive to prevent path resolution on declared modules. |
| 13 | +* It is now possible to put `/** @luaIterator */` on types extending `Array<T>`. |
| 14 | +* Fixed issue with the moment static fields were initialized. |
| 15 | +* Fixed issue where `undefined` as property name was not transpiled correctly. |
| 16 | +* Various improvements to function/method self parameter inference. |
| 17 | +* Tstl options can now be defined in their own `tstl` block in tsconfig.json. For example: |
| 18 | +``` |
| 19 | +{ |
| 20 | + "compilerOptions" : {} |
| 21 | + "tstl": { |
| 22 | + "luaTarget": "JIT" |
| 23 | + } |
| 24 | +} |
| 25 | +``` |
| 26 | +* Fixed issue when redeclaring TypeScript libraries/globals. |
| 27 | +* Fixed exception resolving function signatures. |
| 28 | +* Added support for automatically transpiling several `console` calls to their Lua equivalent: |
| 29 | + * `console.log(...)` -> `print(...)` |
| 30 | + * `console.assert(...)` -> `assert(...)` |
| 31 | + * `console.trace(...)` -> `print(debug.traceback(...))` |
| 32 | +* Added support for `array.findIndex()`. |
| 33 | +* Fixed `array.sort()` not working with a compare function. |
| 34 | +* Added support for several common `Math.` functions and constants. |
| 35 | +* Added support for several common string instance functions such as `upper()`. |
| 36 | + |
| 37 | +## 0.15.2 |
| 38 | +* Several improvements to module path resolution. |
| 39 | +* Removed header comment appearing in lualib. |
| 40 | +* Several package config improvements. |
| 41 | +* Static get/set accessors. |
| 42 | + |
| 43 | +## 0.15.1 |
| 44 | +* Fixed array detection for unit and intersection types. |
| 45 | +* Support for import without `from`. |
| 46 | +* Added support for `WeakMap` and `WeakSet`. |
| 47 | +* Added support for `Object.keys` and `Object.assign`. |
| 48 | +* Added support for importing JSON files. |
| 49 | +* Fixed bug with where loop variables were not properly scoped. |
| 50 | +* Added support for ExportDeclarations |
| 51 | + |
3 | 52 | ## 0.15.0 |
4 | 53 | * Now written for TypeScript 3.3.x! |
5 | 54 | * Removed external CLI parser dependency and wrote our own `CommandLineParser.ts` to read CLI and tsconfig input. |
|
0 commit comments