Skip to content

Commit 60640e0

Browse files
authored
chore(NODE-4959): use caret notation for snappy peer dependency (#3526)
1 parent 3dae6da commit 60640e0

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

etc/notes/CHANGES_5.0.0.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ no longer normalizes the values. There is no new method or property to replace t
111111
When calling `close()` on a `Cursor`, no more options can be provided. This removes support for the
112112
`skipKillCursors` option that was unused.
113113

114-
### Snappy v7.x.x or later and optional peerDependency
114+
### Snappy v7.2.2 or later and optional peerDependency
115115

116116
`snappy` compression has been added to the package.json as a peerDependency that is **optional**.
117117
This means `npm` will let you know if the version of snappy you have installed is incompatible with the driver.
118118

119119
```sh
120-
npm install --save snappy@7
120+
npm install --save "snappy@^7.2.2"
121121
```
122122

123123
### `.unref()` removed from `Db`

package-lock.json

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

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
},
3535
"peerDependencies": {
3636
"@aws-sdk/credential-providers": "^3.201.0",
37-
"snappy": "7.x.x",
38-
"mongodb-client-encryption": "^2.3.0"
37+
"mongodb-client-encryption": "^2.3.0",
38+
"snappy": "^7.2.2"
3939
},
4040
"peerDependenciesMeta": {
4141
"@aws-sdk/credential-providers": {

0 commit comments

Comments
 (0)