Skip to content

Commit

Permalink
feat(NODE-4520): deprecate callback support and implement wrapper lib…
Browse files Browse the repository at this point in the history
…rary
  • Loading branch information
nbbeeken committed Aug 16, 2022
1 parent 8f16019 commit 33b6624
Show file tree
Hide file tree
Showing 29 changed files with 6,737 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
lib
test/disabled
!etc/docs
!*.test-d.ts
*.d.ts
29 changes: 29 additions & 0 deletions etc/mongodb-callbacks/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./etc/mongodb-callbacks/jsconfig.json",
"ecmaVersion": 2019
},
"env": {
"node": true,
"es6": true
},
"plugins": ["prettier", "@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"rules": {
"strict": "error",
"prettier/prettier": "error",
"no-console": "error",
"valid-typeof": "error",
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"no-implicit-coercion": "error",
"@typescript-eslint/strict-boolean-expressions": "error"
}
}
1 change: 1 addition & 0 deletions etc/mongodb-callbacks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!mongodb-legacy.d.ts
11 changes: 11 additions & 0 deletions etc/mongodb-callbacks/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/mocharc.json",
"extension": ["js", "ts"],
"recursive": true,
"failZero": true,
"sort": true,
"color": true,
"require": [
"test/hooks/fake_server.js"
]
}
12 changes: 12 additions & 0 deletions etc/mongodb-callbacks/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "es2020",
"allowJs": true,
"checkJs": true,
"strict": false,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"noEmit": true
}
}
1,119 changes: 1,119 additions & 0 deletions etc/mongodb-callbacks/mongodb-legacy.d.ts

Large diffs are not rendered by default.

0 comments on commit 33b6624

Please sign in to comment.