Skip to content

[Snyk] Upgrade ts-node from 10.1.0 to 10.4.0#3

Open
snyk-bot wants to merge 1 commit into
masterfrom
snyk-upgrade-ffd4af7de1dbfd451355de379dcde28c
Open

[Snyk] Upgrade ts-node from 10.1.0 to 10.4.0#3
snyk-bot wants to merge 1 commit into
masterfrom
snyk-upgrade-ffd4af7de1dbfd451355de379dcde28c

Conversation

@snyk-bot
Copy link
Copy Markdown

Snyk has created this PR to upgrade ts-node from 10.1.0 to 10.4.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 5 versions ahead of your current version.
  • The recommended version was released 4 months ago, on 2021-10-22.
Release notes
Package name: ts-node
  • 10.4.0 - 2021-10-22

    Added

    • Adds support for targets "es2020" and "es2021" to swc transpiler (#1521)
    • Adds automatic target downgrade when using older versions of swc (#1521)
      • If tsconfig specifies es2020, but your version of swc only supports up to es2019, ts-node will automatically switch to es2019 instead of throwing an error

    Changed

    Fixed

    v10.3.1...v10.4.0
    https://github.com/TypeStrong/ts-node/milestone/8

  • 10.3.1 - 2021-10-21

    Fixed

    v10.3.0...v10.3.1
    https://github.com/TypeStrong/ts-node/milestone/7

  • 10.3.0 - 2021-10-11

    Questions about this release? Ask in the official discussion thread: #1507

    Added

    • Declare types for node builtin modules within REPL so you do not need to import them (#1424, #1500)
      • Node REPL exposes builtin modules as globals; typechecker now understands this
      • Typechecking should no longer raise errors when using builtins without first importing
      • For example: util.promisify(setTimeout)(1000) or fs.readFileSync('example.txt')
    • Add createEsmHooks() function to create ESM loader hooks (API docs) (#1439) @ nonara
      • Can be used to compose our loader hooks with another loader or additional logic
    • register() accepts a ts-node Service (API docs) (#1474)
      • register(options) is still supported; no breaking changes
    • Add support for Node.js's new loader hooks API (#1372, #1457, #1007) @ jonaskello
      • Node.js has changed their loader hooks API
      • ts-node is compatible with all node versions, detects your node version and exposes the correct hooks API
      • Node's new API currently only available in node v17 nightly builds
      • Node will eventually backport the changes to node 16, and may also be backport to 14 and 12
    • Add --emit to --help output (#1400, #1484) @ markbradley27

    Changed

    • When ts-node is registered and other libraries require('source-map-support'), they will be redirected to @ cspotcode/source-map-support
      • See complete description in Fixed section below

    Fixed

    • Fix #1440, #1441, #1438, #1495: Incorrect stack traces when third-party libraries use source-map-support instead of @ cspotcode/source-map-support (#1440, #1441, #1438, #1495, cspotcode/node-source-map-support#23, #1496, #1497) @ ejose19
      • When ts-node is registered and other libraries require('source-map-support'), they will be redirected to @ cspotcode/source-map-support
      • ts-node uses @ cspotcode/source-map-support for the fixes and enhancements listed here: @ cspotcode/source-map-support changelog
      • To ensure correct stack traces, all libraries must share a compatible sourcemap support implementation
    • Fix #1363: REPL may erroneously combine previous input with next input, eval both as a single statement (#1363, #1480) @ TheUnlocked
      • For example, entering 100 on first line and * 2 on second line would erronously be interpreted as 100 * 2
      • REPL now ensures both lines are separate statements, both when typechecking and when evaluating
    • Fix #1488: Node may log "circular dependency" warning when using allowJs (#1488, #1489)
    • Fix #1301: Filter empty strings from TS_NODE_IGNORE and TS_NODE_IGNORE_DIAGNOSTICS; treat empty environment variable as empty array (#1301, #1483) @ ValeriaVG
      • TS_NODE_IGNORE= ts-node ./example.ts will disable default ignore rules; will compile files in ./node_modules

    Docs

    • Update VSCode debug configuration (Docs) (#1466)
    • Update ESM-related messaging to clarify that experimental status is due to Node.js, not ts-node (#1455)
    • Refer to ts-node consistently (#1481) @ animafps

    v10.2.1...v10.3.0
    https://github.com/TypeStrong/ts-node/milestone/5

  • 10.2.1 - 2021-08-18

    Fixed

    • Fixes #1426: Do not import typescript outside of configuration/project loading (#1433, #1426) @ Songkeys
      • We take care to load your project's version of typescript, falling back to a globally-installed version if necessary.
      • 10.2.0 introduced a bug where we did not do this consistently, causing global or npx installations of ts-node to attempt loading typescript relative to themselves, not your project.
      • This failed if typescript was not globally installed or npx did not install peer dependencies.

    v10.2.0...v10.2.1
    https://github.com/TypeStrong/ts-node/milestone/6

  • 10.2.0 - 2021-08-08
    Read more
  • 10.1.0 - 2021-07-09
    Read more
from ts-node GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant