Skip to content

Commit

Permalink
deps(mongoose): upgrade to 8.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Apr 12, 2024
1 parent 047e873 commit a431d3a
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 27 deletions.
2 changes: 1 addition & 1 deletion docs/guides/error-warning-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: 'Error & Warning Details'

### Mongoose Version [E001]

Error: `Please use mongoose 8.2.4 or higher (Current mongoose: x.x.x) [E001]`
Error: `Please use mongoose 8.3.1 or higher (Current mongoose: x.x.x) [E001]`

Error Class: `Error`

Expand Down
1 change: 1 addition & 0 deletions docs/guides/mongoose-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ If no upper mongoose version is defined and a newer typegoose version exists wit

| Typegoose Version | Mongoose Version |
| ----------------- | ---------------- |
| 12.4.x | ~8.3.1 |
| 12.3.x | ~8.2.4 |
| 12.2.x | ~8.2.0 |
| 12.1.x | ~8.1.0 |
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/quick-start-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Like `public: string[]` is in reflection only `Array`.

- TypeScript version `^5.3` is recommended, though older ones may also work
- NodeJS `>=16.20.1` (and `@types/node@16`)
- Mongoose `~8.2.4`
- Mongoose `~8.3.1`
- A IDE that supports TypeScript linting is recommended to be used (VSCode is recommended)
- This Guide expects you to know how Mongoose (or at least its models) works
- `experimentalDecorators` and `emitDecoratorMetadata` must be enabled in `tsconfig.json`
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
"license": "MIT",
"peerDependencies": {
"mongoose": "~8.2.4"
"mongoose": "~8.3.1"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
Expand Down Expand Up @@ -66,7 +66,7 @@
"jest-runner-tsd": "^5.0.0",
"lint-staged": "^14.0.1",
"mongodb-memory-server": "^9.1.8",
"mongoose": "~8.2.4",
"mongoose": "~8.3.1",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"semantic-release": "^19.0.5",
Expand Down
4 changes: 2 additions & 2 deletions src/typegoose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import {
if (typeof process !== 'undefined' && !isNullOrUndefined(process?.version) && !isNullOrUndefined(mongoose?.version)) {
// for usage on client side
/* istanbul ignore next */
if (semver.lt(mongoose?.version, '8.2.4')) {
throw new Error(`Please use mongoose 8.2.4 or higher (Current mongoose: ${mongoose.version}) [E001]`);
if (semver.lt(mongoose?.version, '8.3.1')) {
throw new Error(`Please use mongoose 8.3.1 or higher (Current mongoose: ${mongoose.version}) [E001]`);
}

/* istanbul ignore next */
Expand Down
49 changes: 28 additions & 21 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,13 @@
dependencies:
sparse-bitfield "^3.0.3"

"@mongodb-js/saslprep@^1.1.5":
version "1.1.5"
resolved "https://registry.yarnpkg.com/@mongodb-js/saslprep/-/saslprep-1.1.5.tgz#0c48a96c8d799e81fae311b7251aa5c1dc7c6e95"
integrity sha512-XLNOMH66KhJzUJNwT/qlMnS4WsNDWD5ASdyaSH3EtK+F4r/CFGa3jT4GNi4mfOitGvWXtdLgQJkQjxSVrio+jA==
dependencies:
sparse-bitfield "^3.0.3"

"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
Expand Down Expand Up @@ -2082,10 +2089,10 @@ bson@^5.5.0:
resolved "https://registry.yarnpkg.com/bson/-/bson-5.5.0.tgz#a419cc69f368d2def3b8b22ea03ed1c9be40e53f"
integrity sha512-B+QB4YmDx9RStKv8LLSl/aVIEV3nYJc3cJNNTK2Cd1TL+7P+cNpw9mAPeCgc5K+j01Dv6sxUzcITXDx7ZU3F0w==

bson@^6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/bson/-/bson-6.2.0.tgz#4b6acafc266ba18eeee111373c2699304a9ba0a3"
integrity sha512-ID1cI+7bazPDyL9wYy9GaQ8gEEohWvcUl/Yf0dIdutJxnmInEEyCsb4awy/OiBfall7zBA179Pahi3vCdFze3Q==
bson@^6.4.0, bson@^6.5.0:
version "6.6.0"
resolved "https://registry.yarnpkg.com/bson/-/bson-6.6.0.tgz#f225137eb49fe19bee4d87949a0515c05176e2ad"
integrity sha512-BVINv2SgcMjL4oYbBuCQTpE3/VKOSxrOA8Cj/wQP7izSzlBGVomdm+TcUd0Pzy0ytLSSDweCKQ6X3f5veM5LQA==

buffer-crc32@~0.2.3:
version "0.2.13"
Expand Down Expand Up @@ -4287,10 +4294,10 @@ just-diff@^5.0.1:
resolved "https://registry.yarnpkg.com/just-diff/-/just-diff-5.1.1.tgz#8da6414342a5ed6d02ccd64f5586cbbed3146202"
integrity sha512-u8HXJ3HlNrTzY7zrYYKjNEfBlyjqhdBkoyTVdjtn7p02RJD5NvR8rIClzeGA7t+UYP1/7eAkWNLU0+P3QrEqKQ==

kareem@2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/kareem/-/kareem-2.5.1.tgz#7b8203e11819a8e77a34b3517d3ead206764d15d"
integrity sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==
kareem@2.6.3:
version "2.6.3"
resolved "https://registry.yarnpkg.com/kareem/-/kareem-2.6.3.tgz#23168ec8ffb6c1abfd31b7169a6fb1dd285992ac"
integrity sha512-C3iHfuGUXK2u8/ipq9LfjFfXFxAZMQJJq7vLS45r3D9Y2xQ/m4S8zaR4zMLFWh9AsNPXmcFfUDhTEO8UIC/V6Q==

kind-of@^6.0.3:
version "6.0.3"
Expand Down Expand Up @@ -4931,13 +4938,13 @@ mongodb-memory-server@^9.1.8:
mongodb-memory-server-core "9.1.8"
tslib "^2.6.2"

mongodb@6.3.0:
version "6.3.0"
resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-6.3.0.tgz#ec9993b19f7ed2ea715b903fcac6171c9d1d38ca"
integrity sha512-tt0KuGjGtLUhLoU263+xvQmPHEGTw5LbcNC73EoFRYgSHwZt5tsoJC110hDyO1kjQzpgNrpdcSza9PknWN4LrA==
mongodb@6.5.0:
version "6.5.0"
resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-6.5.0.tgz#3735b4fba085b26ca06f7744e9639bc538e93d87"
integrity sha512-Fozq68InT+JKABGLqctgtb8P56pRrJFkbhW0ux+x1mdHeyinor8oNzJqwLjV/t5X5nJGfTlluxfyMnOXNggIUA==
dependencies:
"@mongodb-js/saslprep" "^1.1.0"
bson "^6.2.0"
"@mongodb-js/saslprep" "^1.1.5"
bson "^6.4.0"
mongodb-connection-string-url "^3.0.0"

mongodb@^5.9.1:
Expand All @@ -4951,14 +4958,14 @@ mongodb@^5.9.1:
optionalDependencies:
"@mongodb-js/saslprep" "^1.1.0"

mongoose@~8.2.4:
version "8.2.4"
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.2.4.tgz#785234f928aeabc1b1859b555c97fc18adc6ff8c"
integrity sha512-da/r6zpG+2eAXuhBGUnL6jcBd03zlytoCc5/wq+LyTsmrY9hhPQmSpnugwnfqldtBmUOhB6iMLoV4hNtHRq+ww==
mongoose@~8.3.1:
version "8.3.1"
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.3.1.tgz#3784aaa0e17525bdd36f34de796554d479b20dda"
integrity sha512-D78C+s7QI4+pJQhs3XbOxzrHFEti4x+BDhaH94QrdV1/cmMA7fHc50LgLSXjzA/5q89TBK8DAXyf3VwDZbQJlA==
dependencies:
bson "^6.2.0"
kareem "2.5.1"
mongodb "6.3.0"
bson "^6.5.0"
kareem "2.6.3"
mongodb "6.5.0"
mpath "0.9.0"
mquery "5.0.0"
ms "2.1.3"
Expand Down

0 comments on commit a431d3a

Please sign in to comment.