Skip to content

Commit b331eac

Browse files
authored
Merge pull request #15434 from Automattic/vkarpov15/gh-15427
docs(compatibility): add note that Mongoose ^6.5 works with MongoDB server 7.x
2 parents 1448c67 + 2097837 commit b331eac

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919

2020
jobs:
2121
typescript:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-22.04
2323
name: Benchmark TypeScript Types
2424
steps:
2525
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ permissions:
2525

2626
jobs:
2727
test-documentation:
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-22.04
2929
name: Test Generating Docs
3030
steps:
3131
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0

.github/workflows/test.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
fail-fast: false
4141
matrix:
4242
node: [12, 14, 16, 18]
43-
os: [ubuntu-20.04]
43+
os: [ubuntu-22.04]
4444
mongodb: [4.0.28, 5.0.8, 6.0.0]
4545
name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongodb }} OS ${{ matrix.os }}
4646
env:
@@ -68,15 +68,9 @@ jobs:
6868
- name: NPM Test with Coverage
6969
run: npm run test-coverage
7070
if: matrix.coverage == true
71-
- name: Archive code coverage results
72-
uses: actions/upload-artifact@v3
73-
if: matrix.coverage == true
74-
with:
75-
name: coverage
76-
path: coverage
7771

7872
test-deno:
79-
runs-on: ubuntu-20.04
73+
runs-on: ubuntu-22.04
8074
name: Deno tests
8175
env:
8276
MONGOMS_VERSION: 6.0.0
@@ -105,7 +99,7 @@ jobs:
10599
test-replica-sets:
106100
needs:
107101
- test
108-
runs-on: ubuntu-20.04
102+
runs-on: ubuntu-22.04
109103
name: Replica Set tests
110104
steps:
111105
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0

docs/compatibility.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
</style>
1313

14-
Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/) to talk to MongoDB.
14+
Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/) to talk to MongoDB.
1515
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.
1616

1717
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
3030
| `2.6.x` | `^3.8.8 \| ^4.0.0` |
3131
| `2.4.x` | `^3.8.0 \| ^4.0.0` |
3232

33+
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.
34+
3335
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`.

0 commit comments

Comments
 (0)