Skip to content

Commit ef4358f

Browse files
authored
chore!: Drop node 14 support (#1092)
chore(cli): Remove `--experimental-wasm-bigint` flag
1 parent 51170e7 commit ef4358f

File tree

7 files changed

+9
-15
lines changed

7 files changed

+9
-15
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
node-version: ["14", "16"]
13+
node-version: ["16"]
1414

1515
steps:
1616
- name: Setup Node.js

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Node.js
3636
uses: actions/setup-node@v2.1.2
3737
with:
38-
node-version: "14"
38+
node-version: "16"
3939
check-latest: true
4040

4141
- name: Setup environment
@@ -197,7 +197,7 @@ jobs:
197197
- name: Setup NodeJS
198198
uses: actions/setup-node@v2.1.2
199199
with:
200-
node-version: "14"
200+
node-version: "16"
201201
registry-url: "https://registry.npmjs.org"
202202

203203
- name: Publish to npm
@@ -215,7 +215,7 @@ jobs:
215215
- name: Setup NodeJS
216216
uses: actions/setup-node@v2.1.2
217217
with:
218-
node-version: "14"
218+
node-version: "16"
219219
registry-url: "https://registry.npmjs.org"
220220

221221
- name: Publish to npm

cli/bin/grain.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,8 @@ const v8 = require("v8");
88
* This method should be used with care. Changing settings after the VM has started may result
99
* in unpredictable behavior, including crashes and data loss; or it may simply do nothing.
1010
*
11-
* This seems to work for our needs with Node 14, but we should be cautious when updating.
11+
* This seems to work for our needs with Node 16, but we should be cautious when updating.
1212
*/
13-
if (
14-
process.versions.node.startsWith("14.") ||
15-
process.versions.node.startsWith("15.")
16-
) {
17-
v8.setFlagsFromString("--experimental-wasm-bigint");
18-
}
1913
v8.setFlagsFromString("--experimental-wasm-return-call");
2014

2115
const program = require("commander");

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A command line tool for the Grain language.",
55
"main": "index.js",
66
"engines": {
7-
"node": ">=14"
7+
"node": ">=16"
88
},
99
"scripts": {
1010
"clean": "del-cli 'bin/*.exe' 'bin/*.bc.js'",

compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"grainc": "_esy/default/build/install/default/bin/grainc"
77
},
88
"engines": {
9-
"node": ">=14"
9+
"node": ">=16"
1010
},
1111
"devDependencies": {
1212
"esy": "0.6.12"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"compiler"
1111
],
1212
"engines": {
13-
"node": ">=14"
13+
"node": ">=16"
1414
},
1515
"scripts": {
1616
"prepare": "yarn js-runner build && yarn cli link",

stdlib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"directory": "stdlib"
1919
},
2020
"engines": {
21-
"node": ">=14"
21+
"node": ">=16"
2222
},
2323
"main": "index.js",
2424
"files": [

0 commit comments

Comments
 (0)