From 523502891ecedab8c6fac5506fc8835c883a2050 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Sun, 25 May 2025 16:23:58 -0400 Subject: [PATCH 1/3] docs(compatibility): add note that Mongoose ^6.5 works with MongoDB server 7.x Fix #15427 --- docs/compatibility.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/compatibility.md b/docs/compatibility.md index 01f6ebb3926..840c3d66215 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -11,7 +11,7 @@ } -Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/) to talk to MongoDB. +Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/) to talk to MongoDB. You can refer to [this table](https://www.mongodb.com/docs/drivers/node/current/compatibility/) for up-to-date information as to which version of the MongoDB driver supports which version of MongoDB. Below are the [semver](http://semver.org/) ranges representing which versions of mongoose are compatible with the listed versions of MongoDB server. @@ -30,4 +30,6 @@ Below are the [semver](http://semver.org/) ranges representing which versions of | `2.6.x` | `^3.8.8 \| ^4.0.0` | | `2.4.x` | `^3.8.0 \| ^4.0.0` | +Mongoose `^6.5.0` also works with MongoDB server 7.x. But not all new MongoDB server 7.x features are supported by Mongoose 6.x. + Note that Mongoose `5.x` dropped support for all versions of MongoDB before `3.0.0`. If you need to use MongoDB `2.6` or older, use Mongoose `4.x`. From 8045783f11b66e7cfb5b106e2cfc01ba0e81b257 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Sun, 25 May 2025 16:37:27 -0400 Subject: [PATCH 2/3] chore: bump ubuntu versions in GitHub actions --- .github/workflows/benchmark.yml | 2 +- .github/workflows/documentation.yml | 2 +- .github/workflows/test.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 388b9b78a21..cafdfd6f387 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -19,7 +19,7 @@ permissions: jobs: typescript: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 name: Benchmark TypeScript Types steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7a7ad5f6661..0cb58a91d25 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -25,7 +25,7 @@ permissions: jobs: test-documentation: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 name: Test Generating Docs steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f33174b7c95..832360e53e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,7 +40,7 @@ jobs: fail-fast: false matrix: node: [12, 14, 16, 18] - os: [ubuntu-20.04] + os: [ubuntu-22.04] mongodb: [4.0.28, 5.0.8, 6.0.0] name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongodb }} OS ${{ matrix.os }} env: @@ -76,7 +76,7 @@ jobs: path: coverage test-deno: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 name: Deno tests env: MONGOMS_VERSION: 6.0.0 @@ -105,7 +105,7 @@ jobs: test-replica-sets: needs: - test - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 name: Replica Set tests steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 From 209783710482d708ce4f9756754e589fdad1436a Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Sun, 25 May 2025 16:38:30 -0400 Subject: [PATCH 3/3] chore: remove upload-artifact --- .github/workflows/test.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 832360e53e9..595c6293ef6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,12 +68,6 @@ jobs: - name: NPM Test with Coverage run: npm run test-coverage if: matrix.coverage == true - - name: Archive code coverage results - uses: actions/upload-artifact@v3 - if: matrix.coverage == true - with: - name: coverage - path: coverage test-deno: runs-on: ubuntu-22.04