chore(dep): bump NodeJS from 16.x to 18.x LTS (#8406)

* chore(dep): bump NodeJS to LTS 18.x

* update nginx image CVE-2022-43551

* upgrade node version in GH workflows

* update nodejs version in dev docs

* upgrade tldraw version nodejs version to 18.x

* update static/yarn.lock

* fix yarn.lock electron version

---------

Co-authored-by: situ2001 <yongcong2001@outlook.com>
pull/8683/head
Bad3r 2023-02-21 15:07:35 +00:00 committed by GitHub
parent 8b2c50dd06
commit ebb2a5c1d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 26 additions and 31 deletions

View File

@ -42,7 +42,7 @@ on:
env:
CLOJURE_VERSION: '1.10.1.763'
NODE_VERSION: '16'
NODE_VERSION: '18'
JAVA_VERSION: '11'
jobs:

View File

@ -48,7 +48,7 @@ on:
env:
CLOJURE_VERSION: '1.10.1.763'
NODE_VERSION: '16'
NODE_VERSION: '18'
jobs:
compile-cljs:

View File

@ -12,7 +12,7 @@ on:
env:
CLOJURE_VERSION: '1.10.1.763'
NODE_VERSION: '16'
NODE_VERSION: '18'
JAVA_VERSION: '11'
jobs:

View File

@ -17,7 +17,7 @@ on:
env:
CLOJURE_VERSION: '1.10.1.763'
NODE_VERSION: '16'
NODE_VERSION: '18'
JAVA_VERSION: '11'
jobs:

View File

@ -25,7 +25,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
- name: Install clojure
run: |

View File

@ -16,7 +16,7 @@ env:
# This is the same as 1.8.
JAVA_VERSION: '8'
# This is the latest node version we can run.
NODE_VERSION: '16'
NODE_VERSION: '18'
BABASHKA_VERSION: '1.0.168'
jobs:

View File

@ -24,7 +24,7 @@ env:
# This is the same as 1.8.
JAVA_VERSION: '8'
# This is the latest node version we can run.
NODE_VERSION: '16'
NODE_VERSION: '18'
BABASHKA_VERSION: '1.0.168'
jobs:

View File

@ -20,7 +20,7 @@ env:
# This is the same as 1.8.
JAVA_VERSION: '8'
# This is the latest node version we can run.
NODE_VERSION: '16'
NODE_VERSION: '18'
BABASHKA_VERSION: '1.0.168'
jobs:

View File

@ -28,7 +28,7 @@ env:
# This is the same as 1.8.
JAVA_VERSION: '8'
# This is the latest node version we can run.
NODE_VERSION: '16'
NODE_VERSION: '18'
BABASHKA_VERSION: '1.0.168'
jobs:

View File

@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
gpg
# install NodeJS & yarn
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | \
tee /etc/apt/trusted.gpg.d/yarn.gpg && \
@ -34,7 +34,7 @@ RUN yarn config set network-timeout 240000 -g && yarn install
RUN yarn release
# Web App Runner image
FROM nginx:stable-alpine
FROM nginx:1.23.3-alpine
COPY --from=builder /data/static /usr/share/nginx/html

View File

@ -6,12 +6,12 @@ This is a guide on creating Logseq development environment on Windows with `Powe
## Pre-requisites
* Ensure `Set-ExecutionPolicy Unrestricted` (or other equivalent)
* Good network connection. Here's [An example of setting up proxy in PowerShell](#an-example-of-setting-up-proxy-in-powershell)
* Node.js 16.x
* Node.js 18.x
* Clojure (follow this [Guidance](https://clojure.org/guides/getting_started#_installation_on_windows))
* JRE 8 (required for Clojure)
* Visual Studio (required for desktop app)
(updated 20220218. May confirm via JAVA_VERSION and NODE_VERSION in [THIS FILE](https://github.com/logseq/logseq/blob/master/.github/workflows/build.yml))
(updated 20230215. May confirm via JAVA_VERSION and NODE_VERSION in [THIS FILE](https://github.com/logseq/logseq/blob/master/.github/workflows/build.yml))
### An example of installing pre-requisites on Windows
* Install [Chocolatey](https://chocolatey.org/)
@ -19,10 +19,10 @@ This is a guide on creating Logseq development environment on Windows with `Powe
* Install NVM for Windows, Node.js, and Yarn
```
choco install nvm
nvm install 16.13 (or whatever version)
nvm use 16.13
nvm install 18.12.0 (or whatever version)
nvm use 18.12.0
npm install -g yarn
nvm use 16.13
nvm use 18.12.0
```
* Install [clj-on-windows](https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows)

View File

@ -2099,8 +2099,8 @@ electron-winstaller@^5.0.0:
electron@*, electron@20.3.8:
version "20.3.8"
resolved "https://registry.yarnpkg.com/electron/-/electron-20.3.8.tgz#94a4b2bb89a3e6bbeb824365cfd0f65658bc1a2c"
integrity sha512-P93ZWoJjXEVwsjUJ4q6640KZ4+rmWMZ9O5IB1eq/L9S52ZYsXo0o82afpPXq3j8vpneY0N5J62hgRzC1ZKzYmw==
resolved "https://registry.yarnpkg.com/electron/-/electron-20.3.11.tgz#dd3a1a26edecd012a807ae96409d52d0a0cc4f11"
integrity sha512-+dZRzUCDIeVcOqha4hW/y/rNOjoM23rcuLQgrdzayj2FHfgs8mud6fAzvTeJN3TT2c6em/u5cZYQXqdrYcZqAg==
dependencies:
"@electron/get" "^1.14.1"
"@types/node" "^16.11.26"

View File

@ -23,7 +23,7 @@
"@tldraw/core": "2.0.0-alpha.1",
"@tldraw/react": "2.0.0-alpha.1",
"@tldraw/vec": "2.0.0-alpha.1",
"@types/node": "^17.0.42",
"@types/node": "^18.13.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"autoprefixer": "^10.4.13",

View File

@ -24,7 +24,7 @@
"pretty-quick": "pretty-quick --pattern 'tldraw/**/*.{js,jsx,ts,tsx,css,html}'"
},
"devDependencies": {
"@types/node": "^17.0.42",
"@types/node": "^18.13.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",

View File

@ -53,7 +53,7 @@
"devDependencies": {
"@types/is-plain-object": "^2.0.4",
"@types/mousetrap": "^1.6.11",
"@types/node": "^16.11.6",
"@types/node": "^18.13.0",
"@types/rbush": "^3.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",

View File

@ -52,7 +52,7 @@
"devDependencies": {
"@types/is-plain-object": "^2.0.4",
"@types/mousetrap": "^1.6.11",
"@types/node": "^16.11.6",
"@types/node": "^18.13.0",
"@types/offscreencanvas": "^2019.6.4",
"@types/rbush": "^3.0.0",
"@types/react": "^17.0.0",

View File

@ -1091,15 +1091,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.6.tgz#31743bc5772b6ac223845e18c3fc26f042713c83"
integrity sha512-EdxgKRXgYsNITy5mjjXjVE/CS8YENSdhiagGrLqjG0pvA2owgJ6i4l7wy/PFZGC0B1/H20lWKN7ONVDNYDZm7A==
"@types/node@^16.11.6":
version "16.11.49"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.49.tgz#560b1ea774b61e19a89c3fc72d2dcaa3863f38b2"
integrity sha512-Abq9fBviLV93OiXMu+f6r0elxCzRwc0RC5f99cU892uBITL44pTvgvEqlRlPRi8EGcO1z7Cp8A4d0s/p3J/+Nw==
"@types/node@^17.0.42":
version "17.0.45"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.45.tgz#2c0fafd78705e7a18b7906b5201a522719dc5190"
integrity sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==
"@types/node@^18.13.0":
version "18.13.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.13.0.tgz#0400d1e6ce87e9d3032c19eb6c58205b0d3f7850"
integrity sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==
"@types/node@^18.7.20":
version "18.8.3"