From 58c4bc6729fc0118559ae837eb7484c30409728b Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 20 May 2021 11:39:11 -0700 Subject: [PATCH] fix!: drop Node.js v12 support, require v14.15.0 or higher 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 <86499+mhofman@users.noreply.github.com> --- .github/workflows/ag-solo-xs.yml.DISABLED | 2 +- .github/workflows/integration.yml | 2 +- .github/workflows/test-all-packages.yml | 31 +++++++++++++++-------- README.md | 3 ++- package.json | 2 +- 5 files changed, 25 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ag-solo-xs.yml.DISABLED b/.github/workflows/ag-solo-xs.yml.DISABLED index b11d5810f9be..babff3a94480 100644 --- a/.github/workflows/ag-solo-xs.yml.DISABLED +++ b/.github/workflows/ag-solo-xs.yml.DISABLED @@ -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: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3c3e9afb149f..5bf354bd61f9 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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: diff --git a/.github/workflows/test-all-packages.yml b/.github/workflows/test-all-packages.yml index 5148036bca38..f2ff1c3312c8 100644 --- a/.github/workflows/test-all-packages.yml +++ b/.github/workflows/test-all-packages.yml @@ -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: @@ -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: @@ -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 @@ -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 @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/README.md b/README.md index cf7f8806dc75..6c8cbc73ccbe 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 39b64ac2d60d..5eb587dbb47b 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "typescript": "^4.2.3" }, "engines": { - "node": ">=12.14.1" + "node": ">=14.15.0" }, "scripts": { "OFF-clean": "yarn workspaces run clean",