Skip to content

Commit

Permalink
feat: set lowest supported nodejs version to 14.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Lowest supported NodeJS version is now 14.0
  • Loading branch information
hasezoey committed Feb 2, 2023
1 parent 08ad9c9 commit edc3a31
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .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: [12.x, 14.x, 16.x, 18.x, 19.x]
node-version: [14.x, 16.x, 18.x, 19.x]
steps:
- uses: actions/checkout@v3
if: github.event.inputs.git-ref == ''
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: 12.22+
- NodeJS: 14.0+
- Typescript: 4.9+ (if used)

And one of those (on Linux):
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/migration/migrate7.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This Guide is written for migration from version `6.9.6` to `7.0.0`, for version

## Requirement Changes

- Nodejs `10` & `11` are now unsupported, lowest supported version is now `12.22`
- Nodejs `10` & `11` are now unsupported, lowest supported version is now `14.0`

## Breaking Changes

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: 12.22+
- NodeJS: 14.0+
- Typescript: 4.9+ (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 @@ -10,7 +10,7 @@
"directory": "packages/mongodb-memory-server-core"
},
"engines": {
"node": ">=12.22.0"
"node": ">=14.0.0"
},
"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 @@ -23,8 +23,8 @@ import {

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

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": ">=12.22.0"
"node": ">=14.0.0"
},
"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": ">=12.22.0"
"node": ">=14.0.0"
},
"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": ">=12.22.0"
"node": ">=14.0.0"
},
"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": ">=12.22.0"
"node": ">=14.0.0"
},
"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": ">=12.22.0"
"node": ">=14.0.0"
},
"homepage": "https://github.com/nodkz/mongodb-memory-server",
"keywords": [
Expand Down

0 comments on commit edc3a31

Please sign in to comment.