Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": 2023,
"project": [
"./tsconfig.json"
]
Expand Down
39 changes: 7 additions & 32 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,37 +134,12 @@ functions:
args:
- .evergreen/run-spec-benchmarks.sh
tasks:
- name: node-tests-v16
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run tests
vars:
TEST_TARGET: node
- name: node-tests-v18
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 18
NPM_VERSION: 10
- func: install dependencies
- func: run tests
vars:
TEST_TARGET: node
- name: node-tests-v20
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 20
NODE_LTS_VERSION: "20.19.0"
- func: install dependencies
- func: run tests
- name: node-tests-v22
Expand Down Expand Up @@ -256,8 +231,8 @@ tasks:
commands:
- func: fetch source
vars:
# This needs to stay pinned at Node v18.16.0 for consistency across perf runs.
NODE_LTS_VERSION: v18.16.0
# This needs to stay pinned at Node v22.11.0 for consistency across perf runs.
NODE_LTS_VERSION: v22.11.0
NPM_VERSION: 9
- func: install dependencies
vars:
Expand All @@ -273,8 +248,8 @@ tasks:
commands:
- func: fetch source
vars:
# This needs to stay pinned at Node v18.16.0 for consistency across perf runs.
NODE_LTS_VERSION: v18.16.0
# This needs to stay pinned at Node v22.11.0 for consistency across perf runs.
NODE_LTS_VERSION: v22.11.0
NPM_VERSION: 9
- func: install dependencies
vars:
Expand All @@ -287,8 +262,8 @@ tasks:
commands:
- func: fetch source
vars:
# This needs to stay pinned at Node v18.16.0 for consistency across perf runs.
NODE_LTS_VERSION: v18.16.0
# This needs to stay pinned at Node v22.11.0 for consistency across perf runs.
NODE_LTS_VERSION: v22.11.0
NPM_VERSION: 9
- func: install dependencies
vars:
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -o errexit # Exit the script with error if any of the commands fail
## a nodejs major version (i.e., 16)
## 'latest'
## a full nodejs version, in the format v<major>.<minor>.patch
export NODE_LTS_VERSION=${NODE_LTS_VERSION:-16}
export NODE_LTS_VERSION=${NODE_LTS_VERSION:-20.19.0}
# npm version can be defined in the environment for cases where we need to install
# a version lower than latest to support EOL Node versions. When not provided will
# be handled by this script in drivers tools.
Expand Down
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ updates:
# sinon-chai 4.x+ supports chai 5.x+.
- dependency-name: "sinon-chai"
versions: [">=4.0.0"]
# nyc is Node18+ only starting on nyc@16.x.
- dependency-name: "nyc"
versions: [">=16.0.0"]
# we ignore TS as a part of quarterly dependency updates.
- dependency-name: "typescript"
groups:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { rules } = require('../index');
const { RuleTester } = require('eslint');

const ruleTester = new RuleTester({ languageOptions: { ecmaVersion: 2020 } });
const ruleTester = new RuleTester({ languageOptions: { ecmaVersion: 2023 } });

ruleTester.run('no-bigint-literals', rules['no-bigint-literals'], {
valid: [{
Expand Down
15 changes: 1 addition & 14 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"require": "./lib/bson.cjs"
},
"engines": {
"node": ">=16.20.1"
"node": ">=20.19.0"
},
"scripts": {
"pretest": "npm run build",
Expand All @@ -117,4 +117,4 @@
"prepare": "node etc/prepare.js",
"release": "standard-version -i HISTORY.md"
}
}
}
4 changes: 2 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const tsConfig = {
checkJs: false,
strict: true,
alwaysStrict: true,
target: 'es2021',
target: 'es2023',
module: 'esnext',
moduleResolution: 'node',
removeComments: true,
lib: ['es2021', 'ES2022.Error'],
lib: ['es2023'],
importHelpers: false,
noEmitHelpers: false,
noEmitOnError: true,
Expand Down
2 changes: 1 addition & 1 deletion test/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"globalThis": true
},
"parserOptions": {
"ecmaVersion": 2020
"ecmaVersion": 2023
},
"extends": [
"eslint:recommended",
Expand Down
4 changes: 3 additions & 1 deletion test/bench/custom/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ async function completeSuite() {
if (++completedSuites >= collectedSuites.length) {
let cpuBaselineResults;
try {
cpuBaselineResults = await import('../etc/cpuBaseline.json', { assert: { type: 'json' } });
cpuBaselineResults = await import('../etc/cpuBaseline.json', {
with: { type: 'json' }
});
} catch (cause) {
throw new Error("Couldn't find baseline results", { cause });
}
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"checkJs": false,
"strict": true,
"alwaysStrict": true,
"target": "es2021",
"target": "es2023",
"module": "commonjs",
"moduleResolution": "node",
"skipLibCheck": true,
"erasableSyntaxOnly": true,
"lib": [
"es2021",
"ES2022.Error"
"es2023"
],
"outDir": "lib",
"importHelpers": false,
Expand All @@ -35,4 +34,4 @@
"include": [
"src/**/*"
]
}
}