diff --git a/etc/notes/CHANGES_5.0.0.md b/etc/notes/CHANGES_5.0.0.md index 048e2bbef02..85ab8845348 100644 --- a/etc/notes/CHANGES_5.0.0.md +++ b/etc/notes/CHANGES_5.0.0.md @@ -111,13 +111,13 @@ no longer normalizes the values. There is no new method or property to replace t When calling `close()` on a `Cursor`, no more options can be provided. This removes support for the `skipKillCursors` option that was unused. -### Snappy v7.x.x or later and optional peerDependency +### Snappy v7.2.2 or later and optional peerDependency `snappy` compression has been added to the package.json as a peerDependency that is **optional**. This means `npm` will let you know if the version of snappy you have installed is incompatible with the driver. ```sh -npm install --save snappy@7 +npm install --save "snappy@^7.2.2" ``` ### `.unref()` removed from `Db` diff --git a/package-lock.json b/package-lock.json index c4c3caac4e1..6cfd573be19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -70,12 +70,16 @@ }, "peerDependencies": { "@aws-sdk/credential-providers": "^3.201.0", - "snappy": "7.x.x" + "mongodb-client-encryption": "^2.3.0", + "snappy": "^7.2.2" }, "peerDependenciesMeta": { "@aws-sdk/credential-providers": { "optional": true }, + "mongodb-client-encryption": { + "optional": true + }, "snappy": { "optional": true } diff --git a/package.json b/package.json index 3d029d4186d..c4b4b5049a4 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ }, "peerDependencies": { "@aws-sdk/credential-providers": "^3.201.0", - "snappy": "7.x.x", - "mongodb-client-encryption": "^2.3.0" + "mongodb-client-encryption": "^2.3.0", + "snappy": "^7.2.2" }, "peerDependenciesMeta": { "@aws-sdk/credential-providers": {