Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: privatenumber/tsx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.12.8
Choose a base ref
...
head repository: privatenumber/tsx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.12.9
Choose a head ref
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Sep 2, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3745548 View commit details

Commits on Sep 12, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f295c50 View commit details
Showing with 27 additions and 22 deletions.
  1. +2 −2 package.json
  2. +11 −13 pnpm-lock.yaml
  3. +6 −1 src/suppress-warnings.cts
  4. +6 −5 tests/index.ts
  5. +2 −1 tests/utils/node-supports.ts
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -46,8 +46,8 @@
},
"dependencies": {
"@esbuild-kit/cjs-loader": "^2.4.2",
"@esbuild-kit/core-utils": "^3.2.2",
"@esbuild-kit/esm-loader": "^2.5.5"
"@esbuild-kit/core-utils": "^3.3.0",
"@esbuild-kit/esm-loader": "^2.6.1"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
24 changes: 11 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/suppress-warnings.cts
Original file line number Diff line number Diff line change
@@ -4,8 +4,13 @@ const ignoreWarnings = new Set([
'--experimental-loader is an experimental feature. This feature could change at any time',
'Custom ESM Loaders is an experimental feature. This feature could change at any time',

// Changed in Node v18.13.0 via PR #45424
// Changed in Node v18.13.0 via https://github.com/nodejs/node/pull/45424
'Custom ESM Loaders is an experimental feature and might change at any time',

// For JSON modules via https://github.com/nodejs/node/pull/46901
'Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.',

'`globalPreload` is planned for removal in favor of `initialize`. `globalPreload` is an experimental feature and might change at any time',
]);

const { emit } = process;
11 changes: 6 additions & 5 deletions tests/index.ts
Original file line number Diff line number Diff line change
@@ -11,14 +11,15 @@ const packageTypes = [

const nodeVersions = [
'12.20.0', // CJS named export detection added
'12.22.11',
'12',
...(
(process.env.CI && !isWin)
? [
'14.19.1',
'16.13.2',
'17.8.0',
'18.13.0',
'14',
'16',
'17',
'18',
'20',
]
: []
),
3 changes: 2 additions & 1 deletion tests/utils/node-supports.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default {
testRunner: '>= 18.0.0',
// https://nodejs.org/api/test.html#test-runner
testRunner: '^16.17.0 || >= 18.0.0',
};