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.12.2

Diff

lolleko
published 0.12.1 •

lolleko
published 0.12.0 •

Changelog

Source

0.12.0

  • Added detection of types extending Array.
  • Added new JSDoc-style compiler directives, deprecated the old ! decorators, see https://github.com/TypeScriptToLua/TypescriptToLua/wiki/Compiler-Directives
  • Fixed bug with constructor default values.
  • The Lualib is no longer included when not used.
  • Fixed bug with unpack in LuaJIT.
lolleko
published 0.11.1 •

lolleko
published 0.11.0 •

Changelog

Source

0.11.0

  • Fixed bug when throwing anything that was not a string. (@tomblind)
  • Added support for object literal method declarations. (@tomblind)
  • Fixed several issues with assignment operators (@tomblind)
  • else if statements are now transpiled to Lua elseif instead of nested ifs statements. (@tomblind)
  • Occurrences of const enum values are now directly replaced with their value in the Lua output. (@DoctorGester)
  • Rethrowing is now possible from try/catch blocks (@tomblind)
  • Destructing statements in LuaJit now use unpack instead of table.unpack
  • Removed support for switch statements for versions <= 5.1.
  • Refactored for ... of translation, it now uses numeric for loops instead of ipairs for performance reasons.
lolleko
published 0.10.0 •

Changelog

Source

0.10.0

  • Added support for NonNullExpression (abc! transforming the type from abc | undefined to abc)
  • Added expression position to replacement binary expression to improve error messages.
  • Fixed various issues with !TupleReturn (@tomblind)
  • Added support for array.reverse, array.shift, array.unshift, array.sort. (@andreiradu)
  • Added translation for Object.hasOwnProperty(). (@andreiradu)
  • Added support for class expressions (@andreiradu)
  • Fixed bug in detecting array types (@tomblind)
  • Added public API functions and better webpack functionality.
lolleko
published 0.9.0 •

Changelog

Source

0.9.0

  • Fixed an issue where default parameter values were ignored in function declarations.
  • Fixed a bug where self was undefined in function properties.
  • Fixed a bug where addition of +1 to indices sometimes caused issues with operation order (thanks @brianhang)
  • Fixed super calls having issues with their self instance. (thanks @hazzard993)
  • Methods now also accept custom decorators (thanks @hazzard993)
  • Improved support for toString calls (thanks @andreiradu)
  • Added support for block expressions (thanks @andreiradu)

Thanks @tomblind for the following changes:

  • Fixed a bug where recursive use of a function expression caused a nil error.
  • Fixed syntax error when compiling variable declaration lists.
  • Fixed an issue with assignment order in exported namespaces.
  • Various fixes to !TupleReturn functions.
  • Fixed an issue with declaration merging.
lolleko
published 0.8.0 •

Changelog

Source

0.8.0

  • Added experimental watch mode, use it with tstl --watch
  • Refactored decorators
  • Added ... spread operator
  • Added error when a lua keyword is used as variable name
  • Added support for shorthand object literals (thanks @gakada)
  • Added array.pop (thanks @andreiradu)
  • Added ; after lines to avoid ambiguous syntax (thanks @andreiradu)
  • Fixed issue with tsconfig being overriden (thanks @Janne252)
perryvw
published 0.7.0 •

Changelog

Source

0.7.0

  • Lualib runtime library is now compiled from TypeScript using the transpiler when building!
    • Split up runtime library definition into individual files.
    • Added multiple inclusion modes using the tsconfig option lubLibImport, options are:
      • require : Requires the entire library if lualib features are used.
      • always : Always require the runtime library.
      • inline : Inline the library code for used features in the file.
      • none : Do not include the runtime library
  • Added support for assigning expressions (+=, &=, ++, etc) in other expressions (i.e. lastIndex = i++ or return a += b) by transpiling them as immediately called anonymous functions.
  • Unreachable code (after returns) is no longer transpiled, preventing a Lua syntax error.
  • Fixed issue with destructing statements in Lua 5.1
  • Fixed issue with escaped characters in strings.
  • Fixed bug regarding changing an exported variable after its export.
perryvw
published 0.6.0 •

Changelog

Source

0.6.0

  • Reworked part of the class system to solve some issues.
  • Reworked class tests from translation to functional.
  • Fixed issue with Lua splice implementation.
  • Added threaded test runner to use for faster testing (use with npm run test-threaded).
  • Added support for string-valued enums.
  • Added tsconfig values to target Lua 5.1 and 5.2.
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