bump Node.js to 16 & 18

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-07-09 16:32:48 +02:00
parent 7d1169e62c
commit 7605c11cda
22 changed files with 30 additions and 30 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
env:
CI: true
@@ -47,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
env:
CI: true
@@ -121,7 +121,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
services:
postgres13:
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
env:
CI: true
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
env:
CI: true
+2 -2
View File
@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
services:
postgres13:
@@ -130,7 +130,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
env:
CI: 'true'
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
env:
CI: true
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
env:
CI: true
+1 -1
View File
@@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.x'
- name: yarn install
run: yarn --cwd cypress install
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [windows-2019]
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
env:
CI: true
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
env:
CI: true
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
env:
CI: true
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]
env:
CI: true
+1 -1
View File
@@ -1,4 +1,4 @@
ARG IMAGE_TAG=14-alpine
ARG IMAGE_TAG=16-alpine
FROM node:${IMAGE_TAG}
@@ -35,7 +35,7 @@
FROM node:14-buster AS build
FROM node:16-buster AS build
RUN mkdir /app
COPY . /app
+2 -2
View File
@@ -10,7 +10,7 @@
"incremental": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2020", "ESNext.Promise"],
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2021", "ESNext.Promise"],
"module": "ESNext",
"moduleResolution": "node",
"noEmit": true,
@@ -31,7 +31,7 @@
"strictNullChecks": true,
"strictPropertyInitialization": true,
"stripInternal": true,
"target": "ES2019",
"target": "ES2021",
"types": ["node", "cypress"]
}
}
+2 -2
View File
@@ -171,6 +171,6 @@ const highlightOverride = {
};
```
[obj-mode]: https://nodejs.org/docs/latest-v14.x/api/stream.html#stream_object_mode
[read-stream]: https://nodejs.org/docs/latest-v14.x/api/stream.html#stream_readable_streams
[obj-mode]: https://nodejs.org/dist/latest-v16.x/docs/api/stream.html#stream_object_mode
[read-stream]: https://nodejs.org/dist/latest-v16.x/docs/api/stream.html#readable-streams
[async-gen]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of#iterating_over_async_generators
@@ -21,12 +21,12 @@ This is made easy with a version manager such as
# Installing current LTS release
nvm install --lts
> Installing latest LTS version.
> Downloading and installing node v14.15.1...
> Now using node v14.15.1 (npm v6.14.8)
> Downloading and installing node v16.16.0...
> Now using node v16.16.0 (npm v8.11.0)
# Checking your version
node --version
> v14.15.1
> v16.16.0
```
- Yarn
+1 -1
View File
@@ -20,7 +20,7 @@ title: Adding Custom Plugin to Existing Monorepo App
> functionality, extend the Sidebar to make our life easy. Finally, we add
> custom code to display GitHub repository information.
>
> This document assumes you have Node.js 14 active along with Yarn and Python.
> This document assumes you have Node.js 16 active along with Yarn and Python.
> Please note, that at the time of this writing, the current version is
> 0.1.1-alpha.21. This guide can still be used with future versions, just,
> verify as you go. If you run into issues, you can compare your setup with mine
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "root",
"private": true,
"engines": {
"node": "14 || 16"
"node": "16 || 18"
},
"scripts": {
"dev": "concurrently \"yarn start\" \"yarn start-backend\"",
+2 -2
View File
@@ -11,7 +11,7 @@
"incremental": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2020"],
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2021"],
"module": "ESNext",
"moduleResolution": "node",
"noEmit": false,
@@ -32,7 +32,7 @@
"strictNullChecks": true,
"strictPropertyInitialization": true,
"stripInternal": true,
"target": "ES2019",
"target": "ES2021",
"types": ["node", "jest", "webpack-env"],
"useDefineForClassFields": true
}
@@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"engines": {
"node": "14 || 16"
"node": "16 || 18"
},
"scripts": {
"dev": "concurrently \"yarn start\" \"yarn start-backend\"",
@@ -58,7 +58,7 @@ require('esbuild')
bundle: true,
format: 'cjs',
platform: 'node',
target: 'node14',
target: 'node16',
banner: { js: NUNJUCKS_LICENSE },
external: ['fsevents'],
outfile: path.resolve(__dirname, '../assets/nunjucks.js.txt'),