Skip to content

Commit

Permalink
deps(mongoose): upgrade to 8.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed May 19, 2024
1 parent b4193fa commit 7a3e65e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 26 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.3.1 or higher (Current mongoose: x.x.x) [E001]`
Error: `Please use mongoose 8.4.0 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.5.x | ~8.4.0 |
| 12.4.x | ~8.3.1 |
| 12.3.x | ~8.2.4 |
| 12.2.x | ~8.2.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.3.1`
- Mongoose `~8.4.0`
- 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.3.1"
"mongoose": "~8.4.0"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
Expand All @@ -60,7 +60,7 @@
"jest-runner-tsd": "^6.0.0",
"lint-staged": "^14.0.1",
"mongodb-memory-server": "^9.2.0",
"mongoose": "~8.3.1",
"mongoose": "~8.4.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.7",
"ts-jest": "^29.1.2",
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.3.1')) {
throw new Error(`Please use mongoose 8.3.1 or higher (Current mongoose: ${mongoose.version}) [E001]`);
if (semver.lt(mongoose?.version, '8.4.0')) {
throw new Error(`Please use mongoose 8.4.0 or higher (Current mongoose: ${mongoose.version}) [E001]`);
}

/* istanbul ignore next */
Expand Down
40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1614,10 +1614,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.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==
bson@^6.7.0:
version "6.7.0"
resolved "https://registry.yarnpkg.com/bson/-/bson-6.7.0.tgz#51973b132cdc424c8372fda3cb43e3e3e2ae2227"
integrity sha512-w2IquM5mYzYZv6rs3uN2DZTOBe2a0zXLj53TGDqwF4l6Sz/XsISrisXOJihArF9+BZ6Cq/GjVht7Sjfmri7ytQ==

buffer-crc32@~0.2.3:
version "0.2.13"
Expand Down Expand Up @@ -3558,13 +3558,13 @@ mongodb-memory-server@^9.2.0:
mongodb-memory-server-core "9.2.0"
tslib "^2.6.2"

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==
mongodb@6.6.2:
version "6.6.2"
resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-6.6.2.tgz#7ecdd788e9162f6c5726cef40bdd2813cc01e56c"
integrity sha512-ZF9Ugo2JCG/GfR7DEb4ypfyJJyiKbg5qBYKRintebj8+DNS33CyGMkWbrS9lara+u+h+yEOGSRiLhFO/g1s1aw==
dependencies:
"@mongodb-js/saslprep" "^1.1.5"
bson "^6.4.0"
bson "^6.7.0"
mongodb-connection-string-url "^3.0.0"

mongodb@^5.9.1:
Expand All @@ -3578,18 +3578,18 @@ mongodb@^5.9.1:
optionalDependencies:
"@mongodb-js/saslprep" "^1.1.0"

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==
mongoose@~8.4.0:
version "8.4.0"
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.4.0.tgz#b5236cf0a02e40aba3a329148a6ceccc9d9d4ac7"
integrity sha512-fgqRMwVEP1qgRYfh+tUe2YBBFnPO35FIg2lfFH+w9IhRGg1/ataWGIqvf/MjwM29cZ60D5vSnqtN2b8Qp0sOZA==
dependencies:
bson "^6.5.0"
bson "^6.7.0"
kareem "2.6.3"
mongodb "6.5.0"
mongodb "6.6.2"
mpath "0.9.0"
mquery "5.0.0"
ms "2.1.3"
sift "16.0.1"
sift "17.1.3"

mpath@0.9.0:
version "0.9.0"
Expand Down Expand Up @@ -4098,10 +4098,10 @@ shebang-regex@^3.0.0:
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==

sift@16.0.1:
version "16.0.1"
resolved "https://registry.yarnpkg.com/sift/-/sift-16.0.1.tgz#e9c2ccc72191585008cf3e36fc447b2d2633a053"
integrity sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==
sift@17.1.3:
version "17.1.3"
resolved "https://registry.yarnpkg.com/sift/-/sift-17.1.3.tgz#9d2000d4d41586880b0079b5183d839c7a142bf7"
integrity sha512-Rtlj66/b0ICeFzYTuNvX/EF1igRbbnGSvEyT79McoZa/DeGhMyC5pWKOEsZKnpkqtSeovd5FL/bjHWC3CIIvCQ==

signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7:
version "3.0.7"
Expand Down

0 comments on commit 7a3e65e

Please sign in to comment.