Skip to content

Commit 9058b0a

Browse files
feat(NODE-7175)!: drop support for Node 16 and 18 (#51)
1 parent 6e571dc commit 9058b0a

File tree

6 files changed

+23
-15
lines changed

6 files changed

+23
-15
lines changed

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"root": true,
33
"parser": "@typescript-eslint/parser",
44
"parserOptions": {
5-
"ecmaVersion": 2020
5+
"ecmaVersion": 2023
66
},
77
"plugins": [
88
"simple-import-sort",
@@ -175,4 +175,4 @@
175175
}
176176
}
177177
]
178-
}
178+
}

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
node-version: [16.x, 18.x, 20.x, 22.x, latest]
20+
node-version: ["20.19.0", 22.x, latest]
2121
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2222

2323
steps:

package-lock.json

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bson-bench/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"prepare": "node ./etc/prepare.js"
1111
},
1212
"engines": {
13-
"node": ">=16.20.1",
14-
"npm": ">=9.0.0"
13+
"node": ">=20.19.0"
1514
},
1615
"keywords": [],
1716
"author": "The MongoDB NodeJS Team <[email protected]>",
@@ -23,4 +22,4 @@
2322
"devDependencies": {
2423
"bson": "4.7"
2524
}
26-
}
25+
}

packages/evergreen-timestamp-utils/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"main": "./index.mjs",
77
"scripts": {},
88
"engines": {
9-
"node": ">=16.20.1",
10-
"npm": ">=9.0.0"
9+
"node": ">=20.19.0"
1110
},
1211
"keywords": [],
1312
"author": "The MongoDB NodeJS Team <[email protected]>",

tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
"checkJs": false,
55
"strict": true,
66
"alwaysStrict": true,
7-
"target": "ES2021",
7+
"target": "ES2023",
88
"declaration": true,
99
"module": "commonJS",
1010
"moduleResolution": "node",
1111
"skipLibCheck": true,
1212
"erasableSyntaxOnly": true,
1313
"lib": [
14-
"es2021",
15-
"ES2022.Error"
14+
"es2023"
1615
],
1716
// We don't make use of tslib helpers, all syntax used is supported by target engine
1817
"importHelpers": false,
@@ -33,4 +32,4 @@
3332
"transpileOnly": true,
3433
"compiler": "typescript-cached-transpile"
3534
}
36-
}
35+
}

0 commit comments

Comments
 (0)