Skip to content

Commit

Permalink
feat!: upgrade to mongoose 8
Browse files Browse the repository at this point in the history
BEGIN_COMMIT_OVERRIDE
Version compatible with mongoose 8, updated types and removed callback support.

### BREAKING CHANGES
- Only support for Mongoose 8 (see breaking changes for Mongoose 7/8)
- Dropping support for Node 14, 16
- Dropping support for MongoDB 4
- Renaming query helper functions withDeleted() -> allDocuments(), onlyDeleted -> deletedDocuments()
- Removing support for query option { withDeleted: true } (use deleted: { $in: [true, false] } in query instead)
END_COMMIT_OVERRIDE
  • Loading branch information
emiljanitzek committed Mar 14, 2024
1 parent af645d7 commit 19e5e56
Show file tree
Hide file tree
Showing 30 changed files with 1,365 additions and 1,436 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm build
- run: npm publish
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [14, 16, 18]
mongodb-version: ['4.0', '4.2', '4.4', '5.0']
node: [18, 20]
mongodb-version: ['5.0', '6.0', '7.0']
name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongodb-version }}
steps:
- name: Git checkout
Expand All @@ -33,10 +33,10 @@ jobs:
- name: Git checkout
uses: actions/checkout@v3

- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- run: npm install

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ node_modules

# IDE
.idea
.vscode

# OSX
.DS_Store
Expand Down
233 changes: 112 additions & 121 deletions README.md

Large diffs are not rendered by default.

0 comments on commit 19e5e56

Please sign in to comment.