Skip to content

Commit

Permalink
fix!: drop Node.js v12 support, require v14.15.0 or higher
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The agoric-sdk as a whole now requires/advises v14.

We're leaving the individual package.jsons alone until a specific updated
requirement is found for each (e.g. SwingSet will soon bump to v14 because it
will require WeakRef). We won't be testing v12 support anywhere, but it's
possible that individual packages will still work with v12 until we believe
otherwise.

closes #1925
closes #837

Co-authored-by: Mathieu Hofman <[email protected]>
  • Loading branch information
warner and mhofman committed May 20, 2021
1 parent 13ce8a8 commit 58c4bc6
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ag-solo-xs.yml.DISABLED
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '14.x'
- name: cache node modules
uses: actions/cache@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '14.x'
- name: cache node modules
uses: actions/cache@v1
with:
Expand Down
31 changes: 20 additions & 11 deletions .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '14.x']
# TODO: ['14.x', '16.x']
node-version: ['14.x']
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -51,7 +52,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x']
# note: only use one node-version
node-version: 14.x
steps:
- uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -83,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14.x']
node-version: 14.x
if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}}
steps:
- uses: actions/setup-node@v1
Expand Down Expand Up @@ -122,7 +124,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14.x']
node-version: 14.x
if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}}
steps:
- uses: actions/setup-node@v1
Expand Down Expand Up @@ -177,7 +179,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '14.x']
# TODO: ['14.x', '16.x']
node-version: ['14.x']
steps:
- uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -306,7 +309,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '14.x']
# TODO: ['14.x', '16.x']
node-version: ['14.x']
steps:
- uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -372,7 +376,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '14.x']
# TODO: ['14.x', '16.x']
node-version: ['14.x']
steps:
- uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -410,7 +415,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '14.x']
# TODO: ['14.x', '16.x']
node-version: ['14.x']
steps:
- uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -457,7 +463,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '14.x']
# TODO: ['14.x', '16.x']
node-version: ['14.x']
steps:
- uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -502,7 +509,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '14.x']
# TODO: ['14.x', '16.x']
node-version: ['14.x']
steps:
- uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -540,7 +548,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14.x']
# note: only use one node-version, maybe
node-version: 14.x
steps:
- uses: actions/setup-node@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ to use.
## Prerequisites

* Git
* Node.js (version 12.14.1 or higher)
* Node.js LTS (version 14.15.0 or higher)
* we generally support the latest LTS release: use [nvm](https://github.com/nvm-sh/nvm) to keep your local system up-to-date
* Yarn (`npm install -g yarn`)

Any version of Yarn will do: the `.yarnrc` file should ensure that all
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"typescript": "^4.2.3"
},
"engines": {
"node": ">=12.14.1"
"node": ">=14.15.0"
},
"scripts": {
"OFF-clean": "yarn workspaces run clean",
Expand Down

0 comments on commit 58c4bc6

Please sign in to comment.