Skip to content

Commit 54715cf

Browse files
chore(deps): update dependency mongoose to v8 (#857)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 7263f45 commit 54715cf

File tree

3 files changed

+49
-49
lines changed

3 files changed

+49
-49
lines changed

packages/casl-mongoose/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@types/jest": "^29.0.0",
5050
"chai": "^4.1.0",
5151
"chai-spies": "^1.0.0",
52-
"mongoose": "^7.0.0"
52+
"mongoose": "^8.0.0"
5353
},
5454
"files": [
5555
"dist",

packages/casl-mongoose/spec/accessible_records.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('Accessible Records Plugin', () => {
6464

6565
it('properly merges `toMongoQuery` result with existing in query `$and` conditions', () => {
6666
const existingConditions = [{ prop: true }, { anotherProp: false }]
67-
const query = Post.find({ $and: existingConditions })
67+
const query = Post.find({ $and: existingConditions.slice(0) })
6868
const conditions = query.accessibleBy(ability).getQuery()
6969

7070
expect(conditions.$and).toEqual([

pnpm-lock.yaml

Lines changed: 47 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)