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

1.4.4

Diff

perryvw
published 1.4.3 •

perryvw
published 1.4.2 •

perryvw
published 1.4.1 •

perryvw
published 1.4.0 •

Changelog

Source

1.4.0

  • Upgraded to TypeScript 4.6
  • Added two event hooks to TSTL plugins: beforeTransform and afterPrint
    • These allow you to run plugin code at specific points in the transpilation process.
  • Lualib polyfills are now modules required into locals, instead of global functions
    • This change also removes the "always" option for the "lualibImport" tsconfig key.
  • Added support for Math.sign
  • Switched to ^ instead of math.pow, the latter was deprecated in 5.3
  • Added an error when using null or undefined in tuples, as that is undefined behavior in the Lua spec and causes unexpected behavior
  • Added tsconfig setting extension, allowing to specify a different output file extension
  • Fixed multiple issues with optional chaining and lualib/language extensions
  • Fixed issue assigning function with properties to variable declarations
  • Fixed multiple issues with preceding statements in class constructors
  • Fixed external code module resolution exploding into a stack overflow in complicated module hierarchies
  • Fixed a function.apply(context) breaking the transpiler if called with only one parameter
  • Fixed preceding statements in ternary conditionals (x ? y : z) leading to incorrect code
perryvw
published 1.3.4 •

perryvw
published 1.3.3 •

perryvw
published 1.3.2 •

perryvw
published 1.3.1 •

perryvw
published 1.3.0 •

Changelog

Source

1.3.0

  • Added LuaPairsIterable language extension to mark objects as iterable with Lua's pairs.
  • Added support for properties on functions.
  • Unicode is no longer escaped and used as-is for "luaTarget": "JIT".
  • Fixed some bugs related to destructuring in loops and function parameters.
  • Fixed incorrect global being generated for some try statements.
  • Fixed some incorrect behavior for ?? and ? : when generic types were involved.
  • Added missing ... optimization in cases where casts or parentheses are used.
  • Fixed a bug for Promise when resolving with another Promise. This also fixes some unexpected behavior with async which is built with Promises.
  • Fixed async functions not aborting after returning from a catch block.
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