Skip to content

Commit

Permalink
feat!: upgrade to mongoose 8
Browse files Browse the repository at this point in the history
Version compatible with mongoose 8, updated types and removed callback support (see breaking changes for Mongoose 7/8).

feat!: Dropping support for Node 14, 16
feat!: Dropping support for MongoDB 4
feat: Renaming query helper functions withDeleted() -> allDocuments(), onlyDeleted -> deletedDocuments()
feat: Removing support for query option { withDeleted: true } (use deleted: { $in: [true, false] } in query instead)
  • Loading branch information
emiljanitzek committed Mar 14, 2024
1 parent af645d7 commit 07621e4
Show file tree
Hide file tree
Showing 31 changed files with 1,366 additions and 1,437 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
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
with:
release-type: node
package-name: mongoose-delete-ts
bootstrap-sha: 9365e75c9929a1bb5fef4908acdfe99c07b0f4d0
bootstrap-sha: af645d71edc99887ae7ed866491152f7fb78a3b5
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 07621e4

Please sign in to comment.