Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 28, 2022

Bumps tsm from 2.1.4 to 2.3.0.

Release notes

Sourced from tsm's releases.

v2.3.0

Features

  • Bump esbuild to ^15.16.0 version. Previously using the 14.x release cycle. This 15.x range includes features such as: * Yarn Plug'N'Play (PnP) support * Improved Yarn Workspaces support * New supported options (accessible within tsm config) * Support for TypeScript 4.9 satisfies operator (#42) * Improved imports subpath resolution (#31) * Adds deno as a valid target value * & more.. see esbuild changelog!

Patches

  • Correctly resolve non-.js file when requiring or importing the would-be .js virtual path (#33): TypeScript allows (and expects) you to write import("./App.js") in your source, even though only App.tsx or App.jsx exists on disk. There are many other extension aliases like this, all of which are now supported:

    "*.js"  // <-- [".js", ".ts", ".tsx", ".jsx"]
    "*.mjs" // <-- [".mjs", ".mts"]
    "*.cjs" // <-- [".cjs", ".cts"]
    "*.jsx" // <-- [".jsx", ".tsx"]
  • Fix dynamic imports within CommonJS files (#27) Previously, tsm left dynamic imports alone, relying on native behavior. However, this meant that the node -r tsm <file> usage might encounter code like import("./Post.tsx") that would throw an error because native import() cannot deal with the .tsx file type. This release now covers this use case, allowing CommonJS/--require users to dynamically import any non-.js file... tsm will transform it correctly, as configured.

  • Improve source map support for tsm <file> CLI usage (#32): When running tsm directly, the --enable-source-maps flag is enabled for native Node.js sourcemap support. This means that any errors / stack traces will correctly map to the .ts source locations!

    Note: If running node -r tsm or node --loader tsm, then you must include the --enable-source-maps flag manually.


Full Changelog: lukeed/tsm@v2.2.2...v2.3.0

v2.2.2

Patches

  • Add support for Node.js v18.6.0+ (#36, #37): 82c0e90 Node 18.6 now requires shortCircuit: true in return values. This is a breaking change within the Node 18.x release cycle, but this (I suppose) is permissible since ESM hooks are still in Stability 1: Experimental stage. Thank you @​antongolub for the fix~!

Full Changelog: lukeed/tsm@v2.2.1...v2.2.2

v2.2.0

Features

  • Upgrade esbuild dependency to its ^0.14.0 release cycle: ef3984a

... (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 [tsm](https://github.com/lukeed/tsm) from 2.1.4 to 2.3.0.
- [Release notes](https://github.com/lukeed/tsm/releases)
- [Commits](lukeed/tsm@v2.1.4...v2.3.0)

---
updated-dependencies:
- dependency-name: tsm
  dependency-type: direct:development
  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 Nov 28, 2022
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