Skip to content
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

Update dependency ts-node to v10 #78

Merged
1 commit merged into from Jun 4, 2021
Merged

Update dependency ts-node to v10 #78

1 commit merged into from Jun 4, 2021

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented May 23, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ts-node (source) 8.3.0 -> 10.0.0 age adoption passing confidence

Release Notes

TypeStrong/ts-node

v10.0.0

Compare Source

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

Breaking changes are prefixed with [BREAKING]

Added

Changed

  • [BREAKING] Make --script-mode default behavior; resolve tsconfig relative to entrypoint script instead of cwd (#​949, #​1197, #​1155)
    • In most cases this change will have no noticeable effect
    • Primarily benefits portable shell scripts on your $PATH, because ts-node will respect the script's local tsconfig.json
    • Use --cwd-mode or ts-node-cwd if you need legacy behavior
  • [BREAKING] ignore rules evaluate relative to tsconfig.json directory, otherwise cwd (#​1155)
  • [BREAKING] Remove support for node 10. Minimum supported version is node 12 (#​1312)
  • Rename --dir to --cwd; rename TS_NODE_DIR to TS_NODE_CWD (#​1155)
    • --dir and TS_NODE_DIR are deprecated but still parsed for backwards-compatibility
    • --dir effectively changed the working directory of ts-node; renaming makes this behavior more obvious

Deprecated

Removed

  • [BREAKING] Internal APIs removed from type declarations (#​1242)
    • Removed DEFAULTS, normalizeSlashes, parse, split
    • No features were removed
    • This will only affect consumers of ts-node's programmatic API

Fixed

  • [BREAKING] Fix #​1229 and #​1235: always throw ERR_REQUIRE_ESM when attempting to execute ESM as CJS, even when not using --loader ts-node/esm (#​1232)
    • This aligns our behavior with vanilla node
  • [BREAKING] Fix #​1225: compiler is loaded relative to tsconfig.json instead of entrypoint script (#​1155)
    • In most cases this change will have no noticable effect
  • Fix #​1217: REPL not always using passed stdout and stderr (#​1224)
  • Fix #​1220: ts-node ./index may execute the wrong file extension because tsconfig search poisons the require.resolve cache (#​1155)
  • Fix #​1322: Sourcemaps fail for filenames with spaces or other characters which are percent-encoded in URLs (#​1160, #​1330)
  • Fix #​1331: Resolution of node builtin modules in ESM loader fails on node >=12.20.0, <13 (#​1332)

Docs

https://github.com/TypeStrong/ts-node/milestone/1

v9.1.1

Compare Source

No code changes. We re-packed and republished v9.1.1, because the v9.1.0 package was broken due to an npm v7 bug.

Fixes

  • Published tarball had extra slashes in the paths of dist files. #​1172

v9.1.0

Compare Source

Added

  • Expose ts-node REPL via the API (#​1121) @​MarcManiez
  • Allow --typeCheck flag to override --transpileOnly flag specified in tsconfig.json (#​1142)

Changed

  • Rename interface Register to Service. It is still aliased as Register for backwards compatibility (#​1158)
  • Update code copied from node's ESM resolver to be the latest from node 15, to keep our ESM resolver's behavior as close as possible to vanilla node (#​1167)

Fixed

  • ESM resolver will preserve search portion of URL, used for cache busting (#​1165) @​frandiox
  • Fix ESM resolution of builtin modules on node >=14.13.1 (#​1136)
  • Recognize --es-module-specifier-resolution as an alias of --experimental-specifier-resolution for node 12 compatibility (#​1122) @​nguyensomniac

Docs

Misc

  • Changes to test matrix: Test against node 15; drop node 13 tests; remove 12.16 in favor of latest 12.x.x (#​1138, #​1148)
  • Improve codecov rules to remove misleading test failures (#​1159)

v9.0.0

Compare Source

Breaking changes are labelled [BREAKING] below.

Added

  • Throw ERR_REQUIRE_ESM when a file is require()d which should be loaded as ESM (#​1031)
  • Re-add "exports" declaration to package.json in backwards-compatible way, enabling node --loader ts-node/esm without file extension (#​1028)
  • Allow specifying "require" option via tsconfig (#​925)
  • REPL respects node's NODE_NO_READLINE environment variable (#​1090)
  • Add a transpile-only entrypoint for ESM loader: node --loader ts-node/esm/transpile-only (#​1102) @​concision

Changed

  • [BREAKING] Drops support for node versions < 10 (#​1036)

Fixed

  • [BREAKING] Re-add realpath, which should fix workflows that use symlinks, such as pnpm, Lerna workspaces, or other mono-repo configurations (#​970)
  • Compile files within node_modules when --skip-ignore or --ignore options are configured to allow it (#​970)
  • Fix #​884 by not adding all referenced files to getSourceFileNames/rootNames (#​999)
  • Fix #​996: bump projectVersion every time getSourceFileNames changes, avoiding accidentally outdated typechecking (#​998)
  • Fix #​1051: pass transformers object to ts.transpileModule (#​1054) @​thetutlage
  • Fix #​1060: use source maps for stack traces in ESM modules (#​1087)
  • Fix #​1072: Respect --experimental-specifier-resolution coming from NODE_OPTIONS in ESM loader (#​1085) @​evg656e
  • Fix #​1098: ESM loader should skip .cjs, .mjs, and any unexpected file extensions (#​1103) @​concision

Docs

  • Better explain how to compile imports, either CommonJS or using experimental ESM loader. Resolves #​1075 (#​1086)

Misc

v8.10.2

Compare Source

Fixed

Fixes #​1037: source maps broken on Windows. (#​1038)

Misc

Fix failing tests on node 6 (#​1035)
Push coverage from Github Actions; remove TravisCI (#​1034)
Run tests e2e against an npm pack && npm installed ts-node (#​1032)
Run CI tests on Windows (#​1041)
Run CI only once per commit on pull requests and master (#​1042)

v8.10.1

Compare Source

Fix

Fixes #​1026: revert the addition of package.json "exports" because it blocked require()s that used to work, for example require('ts-node/register') (#​1027)

v8.10.0

Compare Source

Added

Experimental support for native ECMAScript modules in node >=13 (#​1007, #​1010)

v8.9.1

Compare Source

Fixed

Fix --interactive / -i flag so it forces REPL even when stdin is not a TTY (#​1019)

v8.9.0

Compare Source

Fixed

Fix failing tests caused by recent changes to @​types/node (#​1016)
Fix #​945: Bump source-map-support dependency to include upstream fix for worker threads error handling (#​1015) @​addaleax
Fix #​1004: in --scriptMode, resolve config file relative to realpath of entrypoint script (#​1009)
Normalized filenames in cache to fix performance issues on Windows (#​997) @​sylc

Added

Add timestamps to debug logging (#​994) @​sylc

Docs

Improve coverage of the README (#​1000) @​KasparEtter
Change order of install commands in README (#​993) @​jacobdcastro
Mention ts-node -vv flag in issue template (#​1001)
Run GHActions tests on pull requests (#​1017)

v8.8.2

Compare Source

Fixed

  • Avoid pushing to rootFileNames with version

v8.8.1

Compare Source

Fixed

v8.8.0

Compare Source

Added

  • Add sanitize=true to README for SVGs to work on NPM

Fixed

v8.7.0

Compare Source

Fixed

  • Remove buggy caching of ts.sys.readDirectory (#​969)
  • Fix REPL ASI handling when user input starts with - (#​944)

Added

Changed

Docs

v8.6.2

Compare Source

Fixed

  • Downgrade yn due to node engine (#​942)

v8.6.1

Compare Source

Fixed

v8.6.0

Compare Source

Fixed

  • Remove normalize slashes from config file loading for Windows

Added

  • Configure using tsconfig.json (#​921) @​cspotcode 🎉
  • Allow dir to be configurable
  • Add --build flag for emitting compiled TypeScript (under --compiler-host mode)
  • Incremental compiler support (#​895)

v8.5.4

Compare Source

  • Fix relative node_modules ignore 266eaa5

v8.5.3

Compare Source

Fixed

v8.5.2

Compare Source

Fixed

  • Revert --require module loading change

v8.5.0

Compare Source

Added

  • Expose ts-script for relative tsconfig.json files from <script.ts>
  • Support --interactive CLI option
  • Expose registered ts-node instance information on process
  • Allow dynamic enable of registered ts-node instances
  • Allow --dir to be configurable from CLI
  • Add --scope flag for directory scoped compilation of TypeScript
  • REPL history on node 11+
  • Expose create function for programmatic compiler usage

Fixed

  • Repeated RegExps in REPL will now compile

v8.4.1

Compare Source

Fixed

  • Revert "List all files in memory cache improves perf 1.4x" 87a6e2c

v8.4.0

Compare Source

Added

Fixed


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@ghost ghost merged commit ef54b93 into master Jun 4, 2021
@renovate renovate bot deleted the renovate/ts-node-10.x branch June 4, 2021 15:19
This pull request was closed.
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.

v8.6.0 breaks TS_NODE_COMPILER_OPTIONS environment variable
1 participant