Skip to content

chore(deps): bump typescript-to-lua from 0.35.0 to 0.40.1 #16

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

Closed

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jun 22, 2021

Bumps typescript-to-lua from 0.35.0 to 0.40.1.

Changelog

Sourced from typescript-to-lua's changelog.

Changelog

0.40.0

  • Added support for using external Lua code in your project. This means you can create and install node_modules packages containing Lua code. It also lets you include Lua source files as part of your source files. Used Lua will automatically be added to your output. For more information, see the External Lua Code page in the docs.

  • [Breaking] Removed support for deprecated annotations that have been replaced with language extensions: /** @luaIterator */, /** @vararg */, /** @luatable */ and /** forRange */. If you were still using these, see the docs for instructions how to upgrade.

  • Added support for array.entries().

  • Added support for LuaTable.has(key) and LuaTable.delete(key) to the language extensions. See docs for more info.

  • Made language extension types more strict, disallowing null and undefined in some places where they would cause problems in Lua.

  • Fixed an issue where using TypeScript transformer plugins would cause invalid namespace and module code, as well as breaking hoisting.

  • Fixed invalid switch statement output when the default clause was not the last clause in the switch.

  • Fixed missing LuaLib dependency when using string.split.

  • Fixed lots of bundling bugs and issues, also added the TypeScriptToLua header to the top of the bundle unless noHeader is specified.

Under the hood:

  • Various improvements to testing infrastructure for testing (virtual) projects with multiple files.

0.39.0

  • [Breaking] Removed support for @phantom, @metaExtension, @extension, @pureAbstract compiler annotations. As of this version these will no longer function! For help upgrading your code see the deprecated annotation docs.
  • Added official support for Lua 5.4.
  • Added the LuaTable<TKey, TValue> language extension. This allows the use of barebones Lua tables for key-value storage, without suffering from JS's forced string indexes. For more information see the LuaTable docs.
  • Deprecated @vararg. Instead, tstl will figure out itself when use of the Lua ellipsis token (...) is appropriate. Also language extension $vararg was added to force use of the ellipsis token. See the docs for more information.
  • Added trailingComments and leadingComments fields to statements in the Lua AST. These can be modified by plugins to emit comments in the output lua. For an example see the add-comments test plugin.

Under the hood:

  • Tests are now run on a WebAssembly-compiled version of official Lua releases. This means we can now execute test Lua on all Lua versions (except LuaJIT). Shoutout to Fengari for serving us well for a long time.

0.38.0

  • [Breaking] Renamed MultiReturn to LuaMultiReturn to be consistent with other language extensions all starting with Lua-.
  • Fixed various bugs and issues related to LuaMultiReturn, including its value not correctly being wrapped in some cases.
  • Added support for indexing LuaMultiReturn values without destructing.
  • Added language extensions to allow translation directly to (overwritten) Lua operators like +,-,... For more information see Operator Map Types.
  • Added language extension $range(). This function can be used to create numeric lua loops, for example for (const i of $range(1, 10)) { translates to for i=1,10 do. For more information see $range Iterator Function.
  • Added support for Array.isArray, formalizing tstl's isArray convention (note: Due to [] and {} being the same in Lua, {} - without any keys - is considered an array too.)
  • Added support for string.prototype.includes.
  • Added support for enum merging.
  • Fixed missing lualib dependency in string.prototype.split.
  • Added a not-supported diagnostic for not-yet-implemented optional chaining (a?.b).
  • Moved remaining legacy tests to modern testing utils, removing the legacy testing code.

0.37.0

  • [Important] Deprecated the @​phantom, @​extension, @​metaExtension and @​pureAbstract annotations. This is done because there are good alternatives in regular TypeScript, and this helps us simplify the transpiler. For now, using these annotations will result in a warning but they will still continue to function. A few months from now these annotations will no longer be supported, so upgrade if possible. See Compiler Annotations for more info.
  • Added the MultiReturn<> type and $multi() helper function as the first language extensions. This is to provide a type-safe alternative to the @tupleReturn annotation. For more information see the new Language Extensions page on the docs website.
  • Removed some class transformation code from the transpiler that was no longer used.

... (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 0.35.0 to 0.40.1.
- [Release notes](https://github.com/TypeScriptToLua/TypeScriptToLua/releases)
- [Changelog](https://github.com/TypeScriptToLua/TypeScriptToLua/blob/master/CHANGELOG.md)
- [Commits](TypeScriptToLua/TypeScriptToLua@v0.35.0...v0.40.1)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 22, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jul 12, 2021

Superseded by #17.

@dependabot dependabot bot closed this Jul 12, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/typescript-to-lua-0.40.1 branch July 12, 2021 07:00
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.

0 participants