Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
feat: support node 20 (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitop committed Nov 29, 2023
1 parent f5fb309 commit cff8955
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/runtimes/node/bundlers/esbuild/bundler_target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const versionMap = {
14: 'node14',
16: 'node16',
18: 'node18',
20: 'node20',
} as const

type VersionValues = (typeof versionMap)[keyof typeof versionMap]
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/runtimes/node/utils/node_version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('getNodeVersion', () => {
['nodejs12.x', 12],
['nodejs16.x', 16],
['nodejs18.x', 18],
['nodejs20.x', 20],
['18.x', 18],
['node16', 16],
['14.1.1', 14],
Expand All @@ -27,6 +28,7 @@ describe('parseVersion', () => {
['nodejs14.x', 14],
['nodejs12.x', 12],
['nodejs18.x', 18],
['nodejs20.x', 20],
['18.x', 18],
['node14', 14],
['14.1.1', 14],
Expand Down

1 comment on commit cff8955

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⏱ Benchmark results

  • largeDepsEsbuild: 1.5s
  • largeDepsNft: 5.5s
  • largeDepsZisi: 10.5s

Please sign in to comment.