Skip to content

Commit ccb4c61

Browse files
committed
feat: add support for node v18
Signed-off-by: Francisco Buceta <frbuceta@gmail.com>
1 parent 3ac76dd commit ccb4c61

File tree

152 files changed

+945
-2453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+945
-2453
lines changed

.github/workflows/continuous-integration.yml

+13-12
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: Continuous Integration
22

33
on:
44
push:
5-
branches: [master]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [master]
8+
branches:
9+
- master
810
schedule:
911
- cron: '0 2 * * 1' # At 02:00 on Monday
1012

@@ -20,7 +22,7 @@ jobs:
2022
strategy:
2123
matrix:
2224
os: [ubuntu-latest]
23-
node-version: [12, 14, 16, 17]
25+
node-version: [12, 14, 16, 17, 18]
2426
include:
2527
- os: macos-latest
2628
node-version: 16 # LTS
@@ -35,20 +37,19 @@ jobs:
3537
with:
3638
node-version: ${{ matrix.node-version }}
3739
- name: Update NPM
38-
run: npm install -g npm
40+
if: matrix.node-version < 16
41+
run: npm install -g npm@latest-7
3942
- name: Bootstrap project
4043
run: |
4144
npm ci --ignore-scripts
42-
npm run postinstall
45+
npx lerna bootstrap
4346
- name: Build project
44-
run: |
45-
npm run clean
46-
npm run build
47+
run: npm run build
4748
- uses: Yuri6037/Action-FakeTTY@v1.1
4849
- name: Run tests
49-
run: faketty npm test --ignore-scripts
50+
run: faketty npm run test --ignore-scripts
5051
- name: Generate coverage report
51-
run: npm run coverage:ci --ignore-scripts
52+
run: node packages/build/bin/run-nyc report --reporter=lcov
5253
- name: Publish coverage report to Coveralls
5354
uses: coverallsapp/github-action@master
5455
with:
@@ -81,7 +82,7 @@ jobs:
8182
npm ci --ignore-scripts
8283
npx lerna bootstrap --scope "@loopback/benchmark" --include-dependencies
8384
- name: Run benchmark tests
84-
run: npm test --prefix benchmark
85+
run: npx lerna run test --scope @loopback/benchmark
8586

8687
code-lint:
8788
name: Code Lint
@@ -131,7 +132,7 @@ jobs:
131132
- name: Bootstrap project
132133
run: |
133134
npm ci --ignore-scripts
134-
npm run postinstall
135+
npx lerna bootstrap
135136
- name: Build project
136137
run: npm run build
137138
- name: Verify doc changes

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ We are providing Maintenance support for
4444

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

@@ -56,7 +56,9 @@ for more details.
5656

5757
Make sure you have the following installed:
5858

59-
- [Node.js](https://nodejs.org/en/download/) >= 12
59+
| Package | Version/-s | Link | Note |
60+
| ------------------------------------------ | -------------------------------------------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------------------------------------- |
61+
| [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>. |
6062

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

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

123125
See

acceptance/extension-logging-fluentd/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/extension-logging-fluentd/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"directory": "acceptance/extension-logging-fluentd"
1515
},
1616
"engines": {
17-
"node": "12 || 14 || 16 || 17"
17+
"node": "12 || 14 || 16 || 17 || 18"
1818
},
1919
"scripts": {
2020
"build": "lb-tsc",

acceptance/repository-cloudant/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/repository-cloudant/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"directory": "acceptance/repository-cloudant"
1515
},
1616
"engines": {
17-
"node": "12 || 14 || 16 || 17"
17+
"node": "12 || 14 || 16 || 17 || 18"
1818
},
1919
"scripts": {
2020
"build": "lb-tsc",

acceptance/repository-mongodb/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/repository-mongodb/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"directory": "acceptance/repository-mongodb"
1515
},
1616
"engines": {
17-
"node": "12 || 14 || 16 || 17"
17+
"node": "12 || 14 || 16 || 17 || 18"
1818
},
1919
"scripts": {
2020
"build": "lb-tsc",

acceptance/repository-mysql/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/repository-mysql/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"directory": "acceptance/repository-mysql"
1515
},
1616
"engines": {
17-
"node": "12 || 14 || 16 || 17"
17+
"node": "12 || 14 || 16 || 17 || 18"
1818
},
1919
"scripts": {
2020
"build": "lb-tsc",

acceptance/repository-postgresql/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/repository-postgresql/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"directory": "acceptance/repository-postgresql"
1515
},
1616
"engines": {
17-
"node": "12 || 14 || 16 || 17"
17+
"node": "12 || 14 || 16 || 17 || 18"
1818
},
1919
"scripts": {
2020
"build": "lb-tsc",

benchmark/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchmark/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"directory": "benchmark"
2020
},
2121
"engines": {
22-
"node": "12 || 14 || 16 || 17"
22+
"node": "12 || 14 || 16 || 17 || 18"
2323
},
2424
"scripts": {
2525
"build": "lb-tsc",

bodyparsers/rest-msgpack/package-lock.json

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bodyparsers/rest-msgpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"directory": "bodyparsers/rest-msgpack"
1414
},
1515
"engines": {
16-
"node": "12 || 14 || 16 || 17"
16+
"node": "12 || 14 || 16 || 17 || 18"
1717
},
1818
"scripts": {
1919
"build": "lb-tsc",

docs/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"directory": "docs"
1717
},
1818
"engines": {
19-
"node": "12 || 14 || 16 || 17"
19+
"node": "12 || 14 || 16 || 17 || 18"
2020
},
2121
"scripts": {
2222
"version": "node ./bin/copy-readmes.js && node ./bin/copy-changelogs.js && cd .. && npm run tsdocs",

examples/access-control-migration/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/access-control-migration/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"directory": "examples/access-control-migration"
2323
},
2424
"engines": {
25-
"node": "12 || 14 || 16 || 17"
25+
"node": "12 || 14 || 16 || 17 || 18"
2626
},
2727
"scripts": {
2828
"build": "lb-tsc",

examples/binding-resolution/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)