Skip to content

Commit f8244c3

Browse files
committed
feat(NODE-1837): add zstd compression option
1 parent 0ef2516 commit f8244c3

File tree

8 files changed

+398
-4
lines changed

8 files changed

+398
-4
lines changed

.evergreen/run-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ else
4848
fi
4949

5050
npm install mongodb-client-encryption@">=2.0.0-beta.4"
51+
npm install @mongodb-js/zstd
5152

5253
export AUTH=$AUTH
5354
export SINGLE_MONGOS_LB_URI=${SINGLE_MONGOS_LB_URI}

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"email": "[email protected]"
2626
},
2727
"dependencies": {
28+
"@mongodb-js/zstd": "^0.0.4",
2829
"bson": "^4.6.3",
2930
"denque": "^2.0.1",
3031
"mongodb-connection-string-url": "^2.5.2",

src/cmap/message_stream.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface OperationDescription extends BSONSerializeOptions {
4040
socketTimeoutOverride?: boolean;
4141
agreedCompressor?: CompressorName;
4242
zlibCompressionLevel?: number;
43+
zstdCompressionLevel?: number;
4344
$clusterTime?: Document;
4445
}
4546

0 commit comments

Comments
 (0)