Skip to content

Commit 3f8818c

Browse files
authored
refactor: clean up bulk operations for easier typing (#2530)
This work reduces some of the complexity of typing the bulk API by removing tricky patterns, reducing the number of helper methods and refactoring to improve readability: - `addToOperationsList` is now an abstract method on the base `BulkOperationBase` class - `finalOptionsHandler` is removed, improving readability of the `executeCommands` function - typedoc errors were resolved - `BulkWriteOptions` were introduced and reused throughout the rest of the public API NODE-2786
1 parent f7094b2 commit 3f8818c

11 files changed

+582
-845
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"build:docs": "gulp doc",
9595
"check:bench": "node test/benchmarks/driverBench",
9696
"check:coverage": "nyc npm run check:test",
97-
"check:lint": "eslint -v && eslint --max-warnings=258 --ext '.js,.ts' src test",
97+
"check:lint": "eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test",
9898
"check:test": "mocha --recursive test/functional test/unit",
9999
"check:ts": "tsc --noEmit",
100100
"check:atlas": "mocha --config \"test/manual/mocharc.json\" test/manual/atlas_connectivity.test.js",

0 commit comments

Comments
 (0)