Skip to content

Commit

Permalink
feat: add support for node v18
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Buceta <[email protected]>
  • Loading branch information
frbuceta committed Apr 28, 2022
1 parent 3ac76dd commit ccb4c61
Show file tree
Hide file tree
Showing 152 changed files with 945 additions and 2,453 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Continuous Integration

on:
push:
branches: [master]
branches:
- master
pull_request:
branches: [master]
branches:
- master
schedule:
- cron: '0 2 * * 1' # At 02:00 on Monday

Expand All @@ -20,7 +22,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12, 14, 16, 17]
node-version: [12, 14, 16, 17, 18]
include:
- os: macos-latest
node-version: 16 # LTS
Expand All @@ -35,20 +37,19 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Update NPM
run: npm install -g npm
if: matrix.node-version < 16
run: npm install -g npm@latest-7
- name: Bootstrap project
run: |
npm ci --ignore-scripts
npm run postinstall
npx lerna bootstrap
- name: Build project
run: |
npm run clean
npm run build
run: npm run build
- uses: Yuri6037/[email protected]
- name: Run tests
run: faketty npm test --ignore-scripts
run: faketty npm run test --ignore-scripts
- name: Generate coverage report
run: npm run coverage:ci --ignore-scripts
run: node packages/build/bin/run-nyc report --reporter=lcov
- name: Publish coverage report to Coveralls
uses: coverallsapp/github-action@master
with:
Expand Down Expand Up @@ -81,7 +82,7 @@ jobs:
npm ci --ignore-scripts
npx lerna bootstrap --scope "@loopback/benchmark" --include-dependencies
- name: Run benchmark tests
run: npm test --prefix benchmark
run: npx lerna run test --scope @loopback/benchmark

code-lint:
name: Code Lint
Expand Down Expand Up @@ -131,7 +132,7 @@ jobs:
- name: Bootstrap project
run: |
npm ci --ignore-scripts
npm run postinstall
npx lerna bootstrap
- name: Build project
run: npm run build
- name: Verify doc changes
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ We are providing Maintenance support for

| Version | Status | Published | EOL |
| ---------- | ----------- | --------- | -------------------- |
| LoopBack 4 | Current | Oct 2018 | Apr 2024 _(minimum)_ |
| LoopBack 4 | Current | Oct 2018 | Apr 2025 _(minimum)_ |
| LoopBack 3 | End-of-Life | Dec 2016 | Dec 2020 |
| LoopBack 2 | End-of-Life | Jul 2014 | Apr 2019 |

Expand All @@ -56,7 +56,9 @@ for more details.

Make sure you have the following installed:

- [Node.js](https://nodejs.org/en/download/) >= 12
| Package | Version/-s | Link | Note |
| ------------------------------------------ | -------------------------------------------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [Node.js](https://nodejs.org/en/download/) | Maintenance LTS (_v12_ & _v14_) <br/> Active LTS (_v16_) <br/> Current (_v17_ & _v18_) | https://nodejs.org/en/about/releases/ | <span style="color: yellow;">The use of the current version for production is not recommended</span>. |

Install LoopBack 4 CLI to help create new projects as follows:

Expand Down Expand Up @@ -115,9 +117,9 @@ See [SECURITY.md](SECURITY.md) for more details.
| Nora Abdelgadir | Matthew Schnee | Hage Yaapa |
| :----------------------------------------------: | :--------------------------------------: | :----------------------------------------------: |
| [![nabdelgadir]](https://github.com/nabdelgadir) | [![mschnee]](https://github.com/mschnee) | [![hacksparrow]](https://github.com/hacksparrow) |
| Agnes Lin | Madaky | Hugo Da Roit |
| **Agnes Lin** | **Madaky** | **Hugo Da Roit** |
| [![agnes512]](https://github.com/agnes512) | [![madaky]](https://github.com/madaky) | [![yaty]](https://github.com/yaty) |
| Nico Flaig | Denny Bartelt | Douglas McConnachie |
| **Nico Flaig** | **Denny Bartelt** | **Douglas McConnachie** |
| [![nflaig]](https://github.com/nflaig) | [![derdeka]](https://github.com/derdeka) | [![dougal83]](https://github.com/dougal83) |

See
Expand Down
2 changes: 1 addition & 1 deletion acceptance/extension-logging-fluentd/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion acceptance/extension-logging-fluentd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/extension-logging-fluentd"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/repository-cloudant/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion acceptance/repository-cloudant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/repository-cloudant"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/repository-mongodb/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion acceptance/repository-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/repository-mongodb"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/repository-mysql/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion acceptance/repository-mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/repository-mysql"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion acceptance/repository-postgresql/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion acceptance/repository-postgresql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directory": "acceptance/repository-postgresql"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"directory": "benchmark"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"build": "lb-tsc",
Expand Down
30 changes: 15 additions & 15 deletions bodyparsers/rest-msgpack/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bodyparsers/rest-msgpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"directory": "bodyparsers/rest-msgpack"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"directory": "docs"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"version": "node ./bin/copy-readmes.js && node ./bin/copy-changelogs.js && cd .. && npm run tsdocs",
Expand Down
2 changes: 1 addition & 1 deletion examples/access-control-migration/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/access-control-migration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"directory": "examples/access-control-migration"
},
"engines": {
"node": "12 || 14 || 16 || 17"
"node": "12 || 14 || 16 || 17 || 18"
},
"scripts": {
"build": "lb-tsc",
Expand Down
2 changes: 1 addition & 1 deletion examples/binding-resolution/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ccb4c61

Please sign in to comment.