Skip to content

Commit 1d4adfd

Browse files
authored
chore!: minimum supported Node.js version is 18.12.0 (#174)
1 parent 26989f3 commit 1d4adfd

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
matrix:
6262
os: [ubuntu-latest, windows-latest, macos-latest]
63-
node-version: [14.x, 16.x, 18.x, 20.x]
63+
node-version: [18.x, 20.x, 21.x]
6464
webpack-version: [latest]
6565

6666
runs-on: ${{ matrix.os }}

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (api) => {
1010
"@babel/preset-env",
1111
{
1212
targets: {
13-
node: "14.15.0",
13+
node: "18.12.0",
1414
},
1515
},
1616
],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"main": "dist/cjs.js",
1515
"engines": {
16-
"node": ">= 14.15.0"
16+
"node": ">= 18.12.0"
1717
},
1818
"scripts": {
1919
"start": "npm run build -- -w",
@@ -24,7 +24,7 @@
2424
"security": "npm audit --production",
2525
"lint:prettier": "prettier --list-different .",
2626
"lint:js": "eslint --cache .",
27-
"lint:spelling": "cspell \"**/*.*\"",
27+
"lint:spelling": "cspell --no-must-find-files --cache --quiet \"**/*.*\"",
2828
"lint": "npm-run-all -l -p \"lint:**\"",
2929
"fix:js": "npm run lint:js -- --fix",
3030
"fix:prettier": "npm run lint:prettier -- --write",

test/helpers/execute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default (code) => {
88
const module = new Module(resource, parentModule);
99
// eslint-disable-next-line no-underscore-dangle
1010
module.paths = Module._nodeModulePaths(
11-
path.resolve(__dirname, "../fixtures")
11+
path.resolve(__dirname, "../fixtures"),
1212
);
1313
module.filename = resource;
1414

test/helpers/normalizeErrors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ function removeCWD(str) {
1616

1717
export default (errors) =>
1818
errors.map((error) =>
19-
removeCWD(error.toString().split("\n").slice(0, 2).join("\n"))
19+
removeCWD(error.toString().split("\n").slice(0, 2).join("\n")),
2020
);

test/loader.test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe("loader", () => {
1414
const compiler = getCompiler("simple.js");
1515
const stats = await compile(compiler);
1616
const { source, sourceMap } = execute(
17-
getModuleSource("./foo.coffee", stats)
17+
getModuleSource("./foo.coffee", stats),
1818
);
1919

2020
expect(source).toMatchSnapshot("source");
@@ -27,7 +27,7 @@ describe("loader", () => {
2727
const compiler = getCompiler("bare.js");
2828
const stats = await compile(compiler);
2929
const { source, sourceMap } = execute(
30-
getModuleSource("./bare.coffee", stats)
30+
getModuleSource("./bare.coffee", stats),
3131
);
3232

3333
expect(source).toMatchSnapshot("source");
@@ -55,7 +55,7 @@ describe("loader", () => {
5555
});
5656
const stats = await compile(compiler);
5757
const { source, sourceMap } = execute(
58-
getModuleSource("./foo.coffee", stats)
58+
getModuleSource("./foo.coffee", stats),
5959
);
6060

6161
expect(source).toMatchSnapshot("source");
@@ -81,7 +81,7 @@ describe("loader", () => {
8181
const compiler = getCompiler("simple.js", { sourceMap: true });
8282
const stats = await compile(compiler);
8383
const { source, sourceMap } = execute(
84-
getModuleSource("./foo.coffee", stats)
84+
getModuleSource("./foo.coffee", stats),
8585
);
8686

8787
expect(source).toMatchSnapshot("source");
@@ -94,7 +94,7 @@ describe("loader", () => {
9494
const compiler = getCompiler("simple.js", { sourceMap: false });
9595
const stats = await compile(compiler);
9696
const { source, sourceMap } = execute(
97-
getModuleSource("./foo.coffee", stats)
97+
getModuleSource("./foo.coffee", stats),
9898
);
9999

100100
expect(source).toMatchSnapshot("source");
@@ -107,7 +107,7 @@ describe("loader", () => {
107107
const compiler = getCompiler("simple.js", {}, { devtool: "source-map" });
108108
const stats = await compile(compiler);
109109
const { source, sourceMap } = execute(
110-
getModuleSource("./foo.coffee", stats)
110+
getModuleSource("./foo.coffee", stats),
111111
);
112112

113113
expect(source).toMatchSnapshot("source");
@@ -120,7 +120,7 @@ describe("loader", () => {
120120
const compiler = getCompiler("simple.js", {}, { devtool: false });
121121
const stats = await compile(compiler);
122122
const { source, sourceMap } = execute(
123-
getModuleSource("./foo.coffee", stats)
123+
getModuleSource("./foo.coffee", stats),
124124
);
125125

126126
expect(source).toMatchSnapshot("source");
@@ -133,11 +133,11 @@ describe("loader", () => {
133133
const compiler = getCompiler(
134134
"simple.js",
135135
{ sourceMap: true },
136-
{ devtool: false }
136+
{ devtool: false },
137137
);
138138
const stats = await compile(compiler);
139139
const { source, sourceMap } = execute(
140-
getModuleSource("./foo.coffee", stats)
140+
getModuleSource("./foo.coffee", stats),
141141
);
142142

143143
expect(source).toMatchSnapshot("source");
@@ -150,7 +150,7 @@ describe("loader", () => {
150150
const compiler = getCompiler("simple.js", { unknown: true });
151151
const stats = await compile(compiler);
152152
const { source, sourceMap } = execute(
153-
getModuleSource("./foo.coffee", stats)
153+
getModuleSource("./foo.coffee", stats),
154154
);
155155

156156
expect(source).toMatchSnapshot("source");
@@ -163,7 +163,7 @@ describe("loader", () => {
163163
const compiler = getCompiler("baz.js", { literate: true });
164164
const stats = await compile(compiler);
165165
const { source, sourceMap } = execute(
166-
getModuleSource("./baz.litcoffee", stats)
166+
getModuleSource("./baz.litcoffee", stats),
167167
);
168168

169169
expect(source).toMatchSnapshot("source");

0 commit comments

Comments
 (0)