Skip to content

Commit

Permalink
Add support for Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Sep 9, 2023
1 parent a0a89be commit 55ba1f3
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 29 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -344,7 +344,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -400,7 +400,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]
# python-version: [3.7]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -481,7 +481,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]
env:
generator-directory: ./packages/generator-volto
project-directory: ./my-volto-app
Expand Down Expand Up @@ -578,7 +578,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/towncrier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

env:
node-version: 16.x
node-version: 18.x

jobs:
towncrier:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3

# node setup
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
# remove workaround for 18.x once https://github.com/nodejs/node/issues/47563 is fixed
# remove workaround for 18.x once https://github.com/nodejs/node/issues/47563 is fixed
node-version: ${{ matrix.node-version == '18.x' && '18.15.0' || matrix.node-version }}
cache: yarn

Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@

### Breaking

- Volto 17 drops support for NodeJS 14, and adds support for NodeJS 18.
- Volto 17 drops support for NodeJS 14, and adds support for Node.js 18.
Please see the [upgrade guide](https://6.docs.plone.org/volto/upgrade-guide/index.html)
for more information.

Expand Down Expand Up @@ -1410,7 +1410,7 @@ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information
- Update README with latest versions, point to Plone 6 as recommended default @sneridagh
- Trigger a new deploy core Plone documentation when Volto documentation is updated @esteele
- Update supported Python versions. @stevepiercy
- Add NodeJS 18 (LTS) usage notice @sneridagh
- Add Node.js 18 (LTS) usage notice @sneridagh
- Fix Netlify build @sneridagh
- Fix grammar in Theming Strategy. Fixes #954. @stevepiercy
- Fix wording in About Semantic UI. Fixes #953. @stevepiercy
Expand Down Expand Up @@ -1623,7 +1623,7 @@ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information

### Documentation

- Add NodeJS 18 (LTS) usage notice @sneridagh
- Add Node.js 18 (LTS) usage notice @sneridagh
- Fix Netlify build @sneridagh

## 16.0.0-alpha.45 (2022-10-24)
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,14 @@ On the [Plone Training website](https://training.plone.org), you'll find Volto-d

[Timo Stollenwerk - Reinventing Plone, Roadmap to the Modern Web](https://2018.ploneconf.org/talks/reinventing-plone-roadmap-to-the-modern-web)

## Node Support

- Node 18: Supported since Volto 17
- Node 16: Supported since Volto 14
- Node 14: No longer supported. It was supported from Volto 8.8.0 - 16
- Node 12: No longer supported. It was supported from Volto 4 - 15
- Node 10: No longer supported. It was supported from Volto 1 - 12
## Node.js Support

- Node.js 20: Supported since Volto 17
- Node.js 18: Supported since Volto 17
- Node.js 16: Supported since Volto 14
- Node.js 14: No longer supported. It was supported from Volto 8.8.0 - 16
- Node.js 12: No longer supported. It was supported from Volto 4 - 15
- Node.js 10: No longer supported. It was supported from Volto 1 - 12

## Browser support

Expand Down
6 changes: 3 additions & 3 deletions docs/source/upgrade-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Thus it is safe to run it on top of your project and answer the prompts.

### Ending support for Node.js 14

Long Term Support for {term}`Node.js` 14 by the Node.js community ends in April 2023.
Long Term Support (LTS) for {term}`Node.js` 14 by the Node.js community ended in April 2023.
Volto 17 no longer supports Node.js 14.
Please update your projects to a Node.js LTS version, where either 16 or 18 is supported at the moment of this writing.
Version 18 is recommended.
Please update your projects to a supported Node.js version (16, 18, or 20).
Version 18 is recommended, as the current LTS version of Node.js.

#### localhost now resolves to an IPv6 address

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
]
},
"engines": {
"node": "^16 || ^18"
"node": "^16 || ^18 || ^20"
},
"dependencies": {
"@babel/core": "^7.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"not dead"
],
"engines": {
"node": "^16 || ^18"
"node": "^16 || ^18 || ^20"
},
"dependencies": <%- dependencies %>,
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-volto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}
},
"engines": {
"node": "^16 || ^18"
"node": "^16 || ^18 || ^20"
},
"dependencies": {
"ansi-escapes": "2.0.0",
Expand Down

0 comments on commit 55ba1f3

Please sign in to comment.