Skip to content

Commit

Permalink
deps(mongoose): upgrade to 8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Feb 23, 2024
1 parent 1dcd4d2 commit 186328e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 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.1.0 or higher (Current mongoose: x.x.x) [E001]`
Error: `Please use mongoose 8.2.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.2.x | ~8.2.0 |
| 12.1.x | ~8.1.0 |
| 12.0.x | ~8.0.1 |
| 11.7.x | ~7.6.3 |
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.1.0`
- Mongoose `~8.2.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.1.0"
"mongoose": "~8.2.0"
},
"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.6",
"mongoose": "~8.1.0",
"mongoose": "~8.2.0",
"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.1.0')) {
throw new Error(`Please use mongoose 8.1.0 or higher (Current mongoose: ${mongoose.version}) [E001]`);
if (semver.lt(mongoose?.version, '8.2.0')) {
throw new Error(`Please use mongoose 8.2.0 or higher (Current mongoose: ${mongoose.version}) [E001]`);
}

/* istanbul ignore next */
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4941,10 +4941,10 @@ mongodb@^5.9.1:
optionalDependencies:
"@mongodb-js/saslprep" "^1.1.0"

mongoose@~8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.1.0.tgz#25be9a39295c0cbffc971fdd4fb6302dceeb2ded"
integrity sha512-kOA4Xnq2goqNpN9EmYElGNWfxA9H80fxcr7UdJKWi3UMflza0R7wpTihCpM67dE/0MNFljoa0sjQtlXVkkySAQ==
mongoose@~8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.2.0.tgz#dac98f1a5bfefad8656a0bb085789a2dc079631c"
integrity sha512-la93n6zCYRbPS+c5N9oTDAktvREy5OT9OCljp1Tah0y3+p8UPMTAoabWaLZMdzYruOtF9/9GRf6MasaZjiZP1A==
dependencies:
bson "^6.2.0"
kareem "2.5.1"
Expand Down

0 comments on commit 186328e

Please sign in to comment.