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

0.25.0

Diff

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.

lolleko
published 0.24.0 •

Changelog

Source

0.24.0

  • Returns in try/catch statements now properly return from the current function.

  • TypeScript's globalThis is now translated to lua's _G. Lualib functions were updated where relevant.

  • Fixed issue where string/table literals were missing parentheses and caused lua syntax errors.

  • Various improvements/refactorings across the codebase.

  • Fixed syntax error in for...of loops with empty destructuring argument.

  • Fixed issue with do ... while scope.

  • Fixed a bug with @combileMembersOnly where it would ignore anything before the enum name.

lolleko
published 0.23.0 •

Changelog

Source

0.23.0

  • Added support for OmittedExpression in array literals and array binding patterns.

  • Added support for tagged template literals.

  • Changed output lua formatting to be more debugger-friendly.

  • Various improvements to source maps.

  • Fixed an issue with the interaction of super calls and exported classes.

  • Fixed @noResolution not working on named modules.

  • Fixed namespace merging not working due to an earlier change.

  • Some refactoring and plumbing for the website.

lolleko
published 0.22.1 •

lolleko
published 0.22.0 •

Changelog

Source

0.22.0

  • Added the @vararg directive.

  • Added the @forRange directive.

  • Custom ts transformers can now be loaded from tsconfig.

  • Fixed default tstl header incorrectly showing up above lualib functions.

  • Some improvements to typeof expressions.

lolleko
published 0.21.1 •

lolleko
published 0.21.0 •

Changelog

Source

0.21.0

  • Imports/exports that are ambient (declarations, types, interfaces, etc) or are not used in value positions no longer generate require statements.

  • For ... of loops are now translated using ipairs.

  • Added support for array.reduce.

  • Added support for import foo = bar.baz; statements.

  • Fixed some issues with binding pattern parameter default values.

  • Fixed some issues with variable naming.

  • Enabled prettier on the entire codebase.

lolleko
published 0.20.0 •

Changelog

Source

0.20.0

  • Added support for string.repeat, string.padStart and string.padEnd.
  • Added automatic variable renaming for invalid Lua identifiers.
  • Fixed /** @tupleReturn */ not working for function types (i.e myFunc: () => [number, number])
  • Various improvements to source map output format.
  • Various small code tweaks and improvements.
lolleko
published 0.19.0 •

Changelog

Source

0.19.0

  • BREAKING CHANGE: All tstl-specific options should now be inside the "tstl" section in tsconfig.json (see README.md). Root-level options are no longer supported.

  • Added a compiler API to programmatically invoke TypeScriptToLua, and to modify or extend the default transpiler. More info on the Compiler API wiki page.

  • Added support for class decorators.

  • Added support for the @luaTable directive which will force a class to be transpiled as vanilla lua table.

  • Added support for NaN, Infinity and related number functions.

  • Added support for string.startsWith, string.endsWith and improved string.replace implementation.

  • Added support for Symbol.hasInstance.

  • Hoisting now also considers imports.

  • Various improvements to iterators and arrays, they also work with the spread operator now.

  • Fixed an issue with parameters that had false as default value.

lolleko
published 0.18.0 •

Changelog

Source

0.18.0

  • Added support for setting array length. Doing array.length = x will set the length of the array to x (or shorter, if the starting array was shorter!).

  • Added the .name property to all transpiled classes, so class.name will contain the classname as string.

  • Changed class = class or {} syntax to just be class = {}.

  • Cleaned up printer output so it produces more human-readable code.

  • Fixed bug with expression statements.

  • Fixed incorrect inline sourcemap format.

  • Fixed bug when merging an interface and module.

  • Fixed a bug with inherited constructor super call ordering.

  • Enabled strict tsconfig.

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