Skip to content

Commit 844aa52

Browse files
feat(NODE-5470)!: convert remaining FLE to TS and drop support for onKMSProvidersRefresh (#3787)
1 parent 225cb81 commit 844aa52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2309
-2053
lines changed

Diff for: .eslintignore

-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
lib
33
test/disabled
44
!etc/docs
5-
6-
src/client-side-encryption
7-
test/unit/client-side-encryption

Diff for: .eslintrc.json

+11
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"import",
1010
"@typescript-eslint",
1111
"prettier",
12+
"unused-imports",
1213
"tsdoc"
1314
],
1415
"extends": [
@@ -275,6 +276,16 @@
275276
"@typescript-eslint/ban-ts-comment": "off",
276277
"@typescript-eslint/no-empty-function": "off"
277278
}
279+
},
280+
{
281+
// Settings for generated definition files
282+
"files": [
283+
"mongodb.d.ts"
284+
],
285+
"parser": "@typescript-eslint/parser",
286+
"rules": {
287+
"unused-imports/no-unused-imports": "error"
288+
}
278289
}
279290
]
280291
}

Diff for: package-lock.json

+37-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@mongodb-js/zstd": "^1.1.0",
3737
"gcp-metadata": "^5.2.0",
3838
"kerberos": "^2.0.1",
39-
"mongodb-client-encryption": ">=6.0.0-alpha.0 <7",
39+
"mongodb-client-encryption": ">=6.0.0-alpha.1 <7",
4040
"snappy": "^7.2.2",
4141
"socks": "^2.7.1"
4242
},
@@ -92,12 +92,13 @@
9292
"eslint-plugin-prettier": "^4.2.1",
9393
"eslint-plugin-simple-import-sort": "^10.0.0",
9494
"eslint-plugin-tsdoc": "^0.2.17",
95+
"eslint-plugin-unused-imports": "^2.0.0",
9596
"express": "^4.18.2",
9697
"gcp-metadata": "^5.2.0",
9798
"js-yaml": "^4.1.0",
9899
"mocha": "^10.2.0",
99100
"mocha-sinon": "^2.1.2",
100-
"mongodb-client-encryption": "^6.0.0-alpha.0",
101+
"mongodb-client-encryption": "^6.0.0-alpha.1",
101102
"mongodb-legacy": "^5.0.0",
102103
"nyc": "^15.1.0",
103104
"prettier": "^2.8.8",
@@ -125,7 +126,7 @@
125126
"scripts": {
126127
"build:evergreen": "node .evergreen/generate_evergreen_tasks.js",
127128
"build:ts": "node ./node_modules/typescript/bin/tsc",
128-
"build:dts": "npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs",
129+
"build:dts": "npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs && eslint mongodb.d.ts --fix",
129130
"build:docs": "./etc/docs/build.ts",
130131
"build:typedoc": "typedoc",
131132
"build:nightly": "node ./.github/scripts/nightly.mjs",

0 commit comments

Comments
 (0)