Socket
Socket
Sign inDemoInstall

typescript-to-lua

Package Overview
Dependencies
Maintainers
2
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-to-lua - npm Package Versions

1
16

0.31.0

Diff

Changelog

Source

0.31.0

  • Breaking: The old annotation syntax (/* !varArg */) no longer works, the only currently supported syntax is:

    /** @varArg */.

  • Breaking: Fixed some cases where variables were incorrectly not labeled local. The only variables that are implicitly put in the global context are top-level variables in non-module files, without any imports or exports in their file.

  • Moved handling of parentheses out of the transformers and unified this logic in the printer. This might result in some more parentheses in the generated code, but also makes it more correct and fixes some related bugs.

  • Added support for array.includes.

  • Fixed a bug breaking global augmentation.

  • Fixed hoisting breaking if there were synthetic nodes in the AST (i.e. when a TS transformer modified the AST).

perryvw
published 0.30.1 •

perryvw
published 0.29.1 •

perryvw
published 0.29.0 •

Changelog

Source

0.29.0

  • 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
  • Added support for Number.prototype.toString(radix).
  • Fixed array.flat() not flattening empty arrays. Note: Due to language restrictions, flat will also flatten objects without keys (or only undefined values) so be careful. For more info on this issue see https://github.com/TypeScriptToLua/TypeScriptToLua/pull/737
  • Fixed runtime error when throwing non-string errors and sourceMapTraceback.
perryvw
published 0.28.1 •

perryvw
published 0.28.0 •

Changelog

Source

0.28.0

  • We now have a noImplicitSelf option you can add to your tstl tsconfig.json. Default behavior is false. Setting this option to true will cause no 'self' arguments to be considered/generated in the project. Declarations will behave as if they have a /** @noSelfInFile */ directive. This option is new and might cause correctness issues, use at your own risk and create an issue if you experience any issues.

  • Regular Error objects can now be thrown, throw is no longer limited to only strings. Take care: printing/toString'ing the LuaLib error class might have different results for different Lua versions.

  • Added LuaLib support for array.reduceRight.

  • Added LuaLib support for array.find.

  • Fixed an issue in test code causing some inconsistent behavior between JS <-> Lua to go unnoticed. Also fixed array.splice and array.join whose Lua versions behaved differently from the ECMAScript specification.

  • Fixed array.reduce not behaving according to ECMAScript specification.

  • Fixed order of operations issue with ternary conditional.

  • Updated to TS 3.6.

  • Moved from Travis+Appveyor to GitHub Actions!

lolleko
published 0.27.1 •

lolleko
published 0.27.0 •

Changelog

Source

0.27.0

  • Added support for array and object destructuring with rest.

  • Changed Map and Set implementations to they preserve insertion order when iterated over, as specified by ECMAScript.

  • Fixed an issue with /** @luaTable */ variable names disappearing.

  • Fixed for-in loops throwing an error when using a pre-defined variable.

  • Fixed issue with initialization order of class properties.

  • Simplified enum transformation code.

lolleko
published 0.26.0 •

Changelog

Source

0.26.0

  • Added support for default exports and export equals statements.

  • Added support for object spread expressions.

  • Added support for most common destructuring assignments.

  • Added support for omitted declarations in destructuring tuples. (i.e. const [a,,c] = foo();)

  • @noSelf now only applies to members of the namespace with the directive, in case of namespace merging.

  • Fixed issue with isNumerType causing enum members as array indices not to recieve the +1.

  • Fixed string.indexOf failing in case the search string was a Lua string pattern.

  • Fixed some crashes from recursive type constraints.

  • Some simplification to the printing of expression statements.

  • Added new testing util methods to improve the testing process.

lolleko
published 0.25.0 •

Changelog

Source

0.25.0

  • Added support for named function assignments, i.e. const myFunc = function x(n) { ...; return x(n - 1); }

  • Made detection of string methods more robust.

  • Fixed issue regarding readonly tuple detection.

  • Fixed a nasty issue causing exponential complexity on chained properties/method expressions.

  • Improved handling of constrained generic types related to string and array detection.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc