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

Diff

lolleko
published 0.16.0 •

Changelog

Source

0.16.0

  • BREAKING CHANGE: All functions now take a self parameter. This means that without further action calls to declaration functions might be given an extra argument.
    • To remove the self parameter from a single function add this: void to its declaration: declare function foo(this: void, ...)
    • To remove the self parameter from all methods or functions in a class/interface/namespace add /** @noSelf */: /** @noSelf */ interface Foo {
    • To remove the self parameter from all functions in a file, add /** @noSelfInFile */ at the top.

  • BREAKING CHANGE: Directive /** @luaIterator */ should now be put on types instead of on the functions returning them.

  • Fixed a bug breaking named class expressions.
  • Fixed inconsistency between the meaning of >> and >>> in JS vs. Lua.
  • Added /** @noResolution */ directive to prevent path resolution on declared modules.
  • It is now possible to put /** @luaIterator */ on types extending Array<T>.
  • Fixed issue with the moment static fields were initialized.
  • Fixed issue where undefined as property name was not transpiled correctly.
  • Various improvements to function/method self parameter inference.
  • Tstl options can now be defined in their own tstl block in tsconfig.json. For example:
{
    "compilerOptions" : {}
    "tstl": {
        "luaTarget": "JIT"
    }
}
  • Fixed issue when redeclaring TypeScript libraries/globals.
  • Fixed exception resolving function signatures.
  • Added support for automatically transpiling several console calls to their Lua equivalent:
    • console.log(...) -> print(...)
    • console.assert(...) -> assert(...)
    • console.trace(...) -> print(debug.traceback(...))
  • Added support for array.findIndex().
  • Fixed array.sort() not working with a compare function.
  • Added support for several common Math. functions and constants.
  • Added support for several common string instance functions such as upper().
perryvw
published 0.15.2 •

Changelog

Source

0.15.2

  • Several improvements to module path resolution.
  • Removed header comment appearing in lualib.
  • Several package config improvements.
  • Static get/set accessors.
lolleko
published 0.15.1 •

Changelog

Source

0.15.1

  • Fixed array detection for unit and intersection types.
  • Support for import without from.
  • Added support for WeakMap and WeakSet.
  • Added support for Object.keys and Object.assign.
  • Added support for importing JSON files.
  • Fixed bug with where loop variables were not properly scoped.
  • Added support for ExportDeclarations
lolleko
published 0.15.0 •

Changelog

Source

0.15.0

  • Now written for TypeScript 3.3.x!
  • Removed external CLI parser dependency and wrote our own CommandLineParser.ts to read CLI and tsconfig input.
  • Added support for hoisting, can be disabled with the noHoisting option in CLI or tsconfig.
  • Added support for generator functions.
  • Reworked classes into a system more similar to JavaScript with prototype tables.
  • Improved support for ObjectBindingPatterns.
  • Added support for enums with identifier values.
  • Added support for the binary comma operator.
  • Added support for string.concat, string.slice and string.charCodeAt.
  • Refactored LuaTranspiler.emitLuaLib to its own method so it can be called from external code.
  • Improved function type inference.
  • Fixed some bugs in for loops with expressions.
  • Fixed a bug forwarding luaIterator functions.
lolleko
published 0.14.1 •

lolleko
published 0.14.0 •

Changelog

Source

0.14.0

  • Reworked internal transpiler structure to be more suited for future extension.
  • Reworked module and exports system.
  • Added support for custom iterators.
  • Improved formatting consistency.
  • Errors are now reported with location (line, column) instead of line: line, column: column.
  • Added back default lua header: --[[ Generated with https://github.com/Perryvw/TypescriptToLua ]].
  • Fixed some bugs with switches and breaks.
  • Fixed several bugs with functions and context parameters.
lolleko
published 0.13.1 •

lolleko
published 0.13.0 •

Changelog

Source

0.13.0

  • Reworked how functions are transpiled, see https://github.com/TypeScriptToLua/TypescriptToLua/wiki/Differences-Between-Functions-and-Methods
  • Improved handling of types extending Array.
  • Fixed several bugs with classes.
  • Fixed issues with inherited accessors.
lolleko
published 0.12.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