Skip to content

Bump typescript-to-lua from 1.4.3 to 1.5.0 #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 4, 2022

Bumps typescript-to-lua from 1.4.3 to 1.5.0.

Changelog

Sourced from typescript-to-lua's changelog.

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

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

1.3.0

  • Added LuaPairsIterable language extension to mark objects as iterable with Lua's pairs.
  • Added support for properties on functions.
  • Unicode is no longer escaped and used as-is for "luaTarget": "JIT".
  • Fixed some bugs related to destructuring in loops and function parameters.
  • Fixed incorrect global being generated for some try statements.
  • Fixed some incorrect behavior for ?? and ? : when generic types were involved.
  • Added missing ... optimization in cases where casts or parentheses are used.
  • Fixed a bug for Promise when resolving with another Promise. This also fixes some unexpected behavior with async which is built with Promises.
  • Fixed async functions not aborting after returning from a catch block.

1.2.0

  • Upgraded to TypeScript 4.5.x.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [typescript-to-lua](https://github.com/TypeScriptToLua/TypeScriptToLua) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/TypeScriptToLua/TypeScriptToLua/releases)
- [Changelog](https://github.com/TypeScriptToLua/TypeScriptToLua/blob/master/CHANGELOG.md)
- [Commits](TypeScriptToLua/TypeScriptToLua@v1.4.3...v1.5.0)

---
updated-dependencies:
- dependency-name: typescript-to-lua
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 4, 2022
@Perryvw Perryvw merged commit ddfd663 into source Jun 4, 2022
@Perryvw Perryvw deleted the dependabot/npm_and_yarn/typescript-to-lua-1.5.0 branch June 4, 2022 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant