Skip to content

Commit

Permalink
feat: support Node.js v12.x and newer
Browse files Browse the repository at this point in the history
Remove the `<12.0.0` restriction re: Node.js version in the `"engines"`
settings for all the packages in the monorepo that had that restriction.

Add missing `"engines"` settings in `packages/plugins/snark/package.json`.

Adjust the Azure Pipelines config to include builds for Node.js v12.x and
v13.x.

Bump `solc` to `0.4.26` in `dapps/tests/app` and `dapps/tests/contracts`. It
was discovered that older versions suffered a fatal `Maximum call stack size
exceeded` error when run on Windows with Node.js v12.x or newer. Display a
warning re: the bad combo (solc version + Windows + Node version) if it's
detected at runtime.

Adjust the root `yarn.lock` so that the `sha3` transitive dependency resolves
to a newer version that is compatible with Node v13.x.
  • Loading branch information
michaelsbradleyjr committed Jan 20, 2020
1 parent a224401 commit c093cf8
Show file tree
Hide file tree
Showing 76 changed files with 110 additions and 76 deletions.
20 changes: 20 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
ipfsVersion: '0.4.22'
node10: '^10.17.0'
node12: '^12.0.0'
node13: '^13.0.0'
pythonVersion: '2.7.x'
yarnVersion: '1.19.1'

Expand All @@ -19,6 +21,24 @@ strategy:
Node 10 / Windows:
nodeVersion: $(node10)
imageName: 'vs2017-win2016'
Node 12 / Linux:
nodeVersion: $(node12)
imageName: 'ubuntu-18.04'
Node 12 / macOS:
nodeVersion: $(node12)
imageName: 'macos-10.14'
Node 12 / Windows:
nodeVersion: $(node12)
imageName: 'vs2017-win2016'
Node 13 / Linux:
nodeVersion: $(node13)
imageName: 'ubuntu-18.04'
Node 13 / macOS:
nodeVersion: $(node13)
imageName: 'macos-10.14'
Node 13 / Windows:
nodeVersion: $(node13)
imageName: 'vs2017-win2016'

pool:
vmImage: $(imageName)
Expand Down
2 changes: 1 addition & 1 deletion dapps/tests/app/embark.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"buildDir": "dist/",
"config": "config/",
"versions": {
"solc": "0.4.25"
"solc": "0.4.26"
},
"plugins": {
"embark-dapp-test-service": {}
Expand Down
2 changes: 1 addition & 1 deletion dapps/tests/contracts/contracts.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"default": {
"versions": {
"solc": "0.4.24"
"solc": "0.4.26"
},
"dappConnection": [
"$EMBARK",
Expand Down
2 changes: 1 addition & 1 deletion dapps/tests/contracts/embark.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"namesystem": "ens.json"
},
"versions": {
"solc": "0.4.24"
"solc": "0.4.26"
},
"plugins": {
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"semver": "5.6.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cockpit/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cockpit/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
]
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/code-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/reset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"npm-run-all": "4.1.5"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/embark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@
"sinon": "4.5.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
},
"runtime": {
"engines": {
"node": ">=10.17.0 <12.0.0"
"node": ">=10.17.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/embarkjs/embarkjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"web3": "1.2.4"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/embarkjs/ens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/embarkjs/ipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/embarkjs/swarm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/embarkjs/web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/embarkjs/whisper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/accounts-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/basic-pipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/coverage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/deploy-tracker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"sinon": "7.4.1"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/ens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/ethereum-blockchain-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/ganache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/geth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/ipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/mocha-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"source-map-support": "0.5.13"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/nethermind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/parity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/plugin-cmd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/profiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"rimraf": "3.0.0"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/rpc-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/scaffolding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"typescript": "3.7.2"
},
"engines": {
"node": ">=10.17.0 <12.0.0",
"node": ">=10.17.0",
"npm": ">=6.11.3",
"yarn": ">=1.19.1"
}
Expand Down
Loading

0 comments on commit c093cf8

Please sign in to comment.