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

Diff

perryvw
published 1.13.0 •

Changelog

Source

1.13.0

  • Fixed alternate file extensions (other than .lua, if configured) breaking module resolution and emitted require statements.
  • Added experimental support for "luaLibImport": "require-minimal" configuration option. This will output a lualib bundle containing only the lualib functions used by your code. This might not work if you are including external tstl-generated Lua, for example from a npm package.
  • Added support for the "exports" field in package.json.
  • Fixed some exceptions resulting from invalid language-extensions use.
  • Fixed an exception when using compound assignment (like +=) with array length.
perryvw
published 1.12.1 •

perryvw
published 1.12.0 •

Changelog

Source

1.12.0

  • Reworked how tstl detects and rewrites require statements during dependency resolution. This should reduce the amount of false-positive matches of require statements: require statements in string literals or comments should no longer be detected by tstl. This means require statements in string literals or comments can survive the transpiler without causing a 'could not resolve lua sources' error or getting rewritten into nonsense.
  • Now using math.mod for Lua 5.0 modulo operations.
perryvw
published 1.11.1 •

perryvw
published 1.11.0 •

Changelog

Source

1.11.0

  • [Breaking] Upgraded TypeScript to 4.9.
  • --tstlVerbose now prints more resolver output when failing to resolve Lua sources.
  • Fixed a bug breaking default exported classes with unicode names
  • Relaxed conditions for the always-true warning to false positives.
perryvw
published 1.10.1 •

perryvw
published 1.10.0 •

Changelog

Source

1.10.0

  • [Breaking] Upgraded TypeScript to 4.8.
  • [Breaking] Changed how language-extensions are distributed, you should now put "types": ["@typescript-to-lua/language-extensions"] in your tsconfig.json (instead of "typescript-to-lua/...").
  • Added support for Lua 5.0, thanks for the effort @YoRyan!
  • Added support for TypeScript 4.7 instantiation expressions.
  • Fixed a bug causing some require uses not being recognized my module resolution, leading to missing files in the output.
perryvw
published 1.10.0-beta.0 •

perryvw
published 1.9.0 •

Changelog

Source

1.9.0

  • Added a warning when trying to use a type in a condition that can never be false in Lua, such as numbers or strings. (Only when strictNullChecks is enabled.)
  • Fixed some missing and misplaced errors when trying to reference LuaTable/LuaMap/LuaSet functions without calling them.
  • Fixed a bug in the get() type of ReadOnlyLuaMap. It is now typed the same as LuaMap, i.e. it can return undefined.
  • Fixed an issue in bundling that could sometimes lead to invalid bundle entry requires.
  • Added a warning when using paths without specifying baseUrl.
  • Fixed exception while checking for standard library types.
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