Skip to content

Commit

Permalink
feat: set lowest supported nodejs version to 16.20.1
Browse files Browse the repository at this point in the history
fixes #805

BREAKING CHANGE:
Lowest supported NodeJS version is now 16.20.1
  • Loading branch information
hasezoey committed Jun 5, 2024
1 parent d90b1ab commit 30b302e
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x, 22.x]
node-version: [16.x, 18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
if: github.event.inputs.git-ref == ''
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
env:
CI: true
- name: Send codecov.io stats
if: matrix.node-version == '14.x'
if: matrix.node-version == '16.x'
uses: codecov/codecov-action@v3

publish:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Choose any package, because they are the same. They differ only in the default c

### Requirements

- NodeJS: 14.20.1+
- NodeJS: 16.20.1+
- Typescript: 5.0+ (if used)

And one of those (on Linux):
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/migration/migrate10.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ This Guide is written for migration from version `9.4.0` to `10.0.0`, for versio

## Breaking Changes

<!-- ### Minimal NodeJS version is now `14`
### Minimal NodeJS version is now `16`

With 9.0.0 the minimal nodejs required is `14.20.1`.
With 10.0.0 the minimal nodejs required is `16.20.1`.

### Mongodb Driver Version upgraded to 5.x
<!-- ### Mongodb Driver Version upgraded to 5.x
The used MongoDB Driver version is now `5.9.0`.
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/quick-start-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If Top-Level async-await is not available for your case, the code can in most ca

## Requirements

- NodeJS: 14.20.1+
- NodeJS: 16.20.1+
- Typescript: 5.0+ (if used)

When on Linux, one of the following are required:
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb-memory-server-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"directory": "packages/mongodb-memory-server-core"
},
"engines": {
"node": ">=14.20.1"
"node": ">=16.20.1"
},
"files": [
"lib",
Expand Down
4 changes: 2 additions & 2 deletions packages/mongodb-memory-server-core/src/util/MongoInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import {

// ignore the nodejs warning for coverage
/* istanbul ignore next */
if (lt(process.version, '14.20.1')) {
console.warn('Using NodeJS below 14.20.1');
if (lt(process.version, '16.20.1')) {
console.warn('Using NodeJS below 16.20.1');
}

const log = debug('MongoMS:MongoInstance');
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb-memory-server-global-4.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"directory": "packages/mongodb-memory-server-global-4.4"
},
"engines": {
"node": ">=14.20.1"
"node": ">=16.20.1"
},
"homepage": "https://github.com/nodkz/mongodb-memory-server",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb-memory-server-global-4.2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"directory": "packages/mongodb-memory-server-global-4.2"
},
"engines": {
"node": ">=14.20.1"
"node": ">=16.20.1"
},
"homepage": "https://github.com/nodkz/mongodb-memory-server",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb-memory-server-global-4.4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"directory": "packages/mongodb-memory-server-global-4.4"
},
"engines": {
"node": ">=14.20.1"
"node": ">=16.20.1"
},
"homepage": "https://github.com/nodkz/mongodb-memory-server",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb-memory-server-global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"directory": "packages/mongodb-memory-server-global"
},
"engines": {
"node": ">=14.20.1"
"node": ">=16.20.1"
},
"homepage": "https://github.com/nodkz/mongodb-memory-server",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb-memory-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"directory": "packages/mongodb-memory-server"
},
"engines": {
"node": ">=14.20.1"
"node": ">=16.20.1"
},
"homepage": "https://github.com/nodkz/mongodb-memory-server",
"keywords": [
Expand Down

0 comments on commit 30b302e

Please sign in to comment.