Merge pull request #1239 from cosmos/drop-node-12
Drop Node.js 12 support
This commit is contained in:
@@ -34,7 +34,7 @@ workflows:
|
|||||||
- build
|
- build
|
||||||
matrix:
|
matrix:
|
||||||
parameters:
|
parameters:
|
||||||
node-version: ["12", "14", "16"]
|
node-version: ["14", "16"]
|
||||||
- test-chrome:
|
- test-chrome:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
@@ -120,7 +120,7 @@ jobs:
|
|||||||
name: Install nodejs
|
name: Install nodejs
|
||||||
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
|
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
|
||||||
command: |
|
command: |
|
||||||
wget -O "$HOME/nodejs.deb" https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.1-deb-1nodesource1_amd64.deb
|
wget -O "$HOME/nodejs.deb" https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.13.2-deb-1nodesource1_amd64.deb
|
||||||
sudo dpkg -i "$HOME/nodejs.deb"
|
sudo dpkg -i "$HOME/nodejs.deb"
|
||||||
- run:
|
- run:
|
||||||
name: Install yarn
|
name: Install yarn
|
||||||
@@ -243,7 +243,6 @@ jobs:
|
|||||||
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
|
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
|
||||||
command: |
|
command: |
|
||||||
declare -A node_links=(
|
declare -A node_links=(
|
||||||
["12"]="https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.1-deb-1nodesource1_amd64.deb"
|
|
||||||
["14"]="https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/nodejs_14.18.0-deb-1nodesource1_amd64.deb"
|
["14"]="https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/nodejs_14.18.0-deb-1nodesource1_amd64.deb"
|
||||||
["16"]="https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.13.2-deb-1nodesource1_amd64.deb"
|
["16"]="https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.13.2-deb-1nodesource1_amd64.deb"
|
||||||
)
|
)
|
||||||
@@ -365,7 +364,7 @@ jobs:
|
|||||||
name: Install nodejs
|
name: Install nodejs
|
||||||
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
|
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
|
||||||
command: |
|
command: |
|
||||||
wget -O "$HOME/nodejs.deb" https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.1-deb-1nodesource1_amd64.deb
|
wget -O "$HOME/nodejs.deb" https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.13.2-deb-1nodesource1_amd64.deb
|
||||||
sudo dpkg -i "$HOME/nodejs.deb"
|
sudo dpkg -i "$HOME/nodejs.deb"
|
||||||
- run:
|
- run:
|
||||||
name: Install yarn
|
name: Install yarn
|
||||||
@@ -463,7 +462,7 @@ jobs:
|
|||||||
name: Install nodejs
|
name: Install nodejs
|
||||||
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
|
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
|
||||||
command: |
|
command: |
|
||||||
wget -O "$HOME/nodejs.deb" https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.1-deb-1nodesource1_amd64.deb
|
wget -O "$HOME/nodejs.deb" https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.13.2-deb-1nodesource1_amd64.deb
|
||||||
sudo dpkg -i "$HOME/nodejs.deb"
|
sudo dpkg -i "$HOME/nodejs.deb"
|
||||||
- run:
|
- run:
|
||||||
name: Install yarn
|
name: Install yarn
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ and this project adheres to
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- all: Upgrade cosmjs-types to 0.5 ([#1131]).
|
- all: Upgrade cosmjs-types to 0.5 ([#1131]).
|
||||||
|
- all: Drop support for Node.js < 14.
|
||||||
- @cosmjs/stargate: Change `packetCommitment` parameter `sequence` type from
|
- @cosmjs/stargate: Change `packetCommitment` parameter `sequence` type from
|
||||||
`Long` to `number` ([#1168]).
|
`Long` to `number` ([#1168]).
|
||||||
- @cosmjs/tendermint-rpc: The type of `votingPower` fields was changed from
|
- @cosmjs/tendermint-rpc: The type of `votingPower` fields was changed from
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ work on CosmJS, i.e. modify it. It is not intended for users of CosmJS.
|
|||||||
## Prerequisite
|
## Prerequisite
|
||||||
|
|
||||||
- A UNIX-like development environment
|
- A UNIX-like development environment
|
||||||
- Node.js 12+, Docker and yarn
|
- Node.js 14+, Docker and yarn
|
||||||
- `sha256sum`, which you
|
- `sha256sum`, which you
|
||||||
[can get on macOS as well](https://unix.stackexchange.com/questions/426837/no-sha256sum-in-macos)
|
[can get on macOS as well](https://unix.stackexchange.com/questions/426837/no-sha256sum-in-macos)
|
||||||
- `gsed`, which you
|
- `gsed`, which you
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ optipng docs/cosmjs-tree*.png
|
|||||||
|
|
||||||
Currently the codebase supports the following runtime environments:
|
Currently the codebase supports the following runtime environments:
|
||||||
|
|
||||||
1. Node.js 12+
|
1. Node.js 14+
|
||||||
2. Modern browsers (Chromium/Firefox/Safari, no Internet Explorer or
|
2. Modern browsers (Chromium/Firefox/Safari, no Internet Explorer or
|
||||||
[Edge Spartan](https://en.wikipedia.org/wiki/Microsoft_Edge#Development))
|
[Edge Spartan](https://en.wikipedia.org/wiki/Microsoft_Edge#Development))
|
||||||
3. Browser extensions (Chromium/Firefox)
|
3. Browser extensions (Chromium/Firefox)
|
||||||
|
|||||||
Reference in New Issue
Block a user