Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typescript-to-lua

Package Overview
Dependencies
Maintainers
2
Versions
158
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.5.0

Diff

Changelog

Source

1.5.0

  • Added support for Array.from and Array.of
  • Added support for beforeEmit hook to plugins that runs after tstl is totally done, but before emitting the result.
    • For more info about plugin hooks, see: https://typescripttolua.github.io/docs/api/plugins
  • Added support for import expressions (import("./module").then(m => m.foo());)
  • Added tsconfig setting lua51AllowTryCatchInAsyncAwait to disable restrictions on try/catch in combination with async/await in 5.1 (default: false)
  • Added tsconfig setting noImplicitGlobalVariables to disable tstl making variables global in non-module files.
  • Various lualib optimizations
  • JSDoc comments from input TS are now also part of output Lua as LDoc comments.
    • Can be disabled with removeComments tsconfig setting.
  • Rewrote how try/catch works in async functions, fixing many bugs.
  • Fixed a bug where methods with non-null expressions (i.e. obj.method!()) would not pass the correct self parameter, causing runtime errors.
  • Fixed a bug where symlinked node_modules (for example when using npm link) were not recognized as external dependencies by module resolution.
  • Fixed a bug with sourcemap traceback leading to invalid lua
  • Improved sourcemap traceback interaction with loadstring
perryvw
published 1.4.4 •

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 •

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