Skip to content

Commit 2c29cf2

Browse files
chore: update minimum required node version to 12
BREAKING CHANGE: Node 12.4.0 or new is now required
1 parent 967c0fd commit 2c29cf2

File tree

7 files changed

+8
-45
lines changed

7 files changed

+8
-45
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup NodeJs
3131
uses: actions/setup-node@v1
3232
with:
33-
node-version: "14"
33+
node-version: "16"
3434

3535
- name: Install Dependencies
3636
run: yarn install --frozen-lockfile
@@ -48,10 +48,9 @@ jobs:
4848
os:
4949
- "ubuntu-latest"
5050
node_version:
51-
- "10"
5251
- "12"
5352
- "14"
54-
- "15"
53+
- "16"
5554
ts_version:
5655
- "next"
5756
- "latest"
@@ -61,7 +60,7 @@ jobs:
6160
continue-on-error: ${{ matrix.ts_version == 'next' }}
6261
env:
6362
# Use compiled tests on everything instances except this one.
64-
USE_COMPILED_TEST: ${{ fromJSON('["false", "true"]')[matrix.ts_version != 'latest' || matrix.node_version != '14' || matrix.os != 'ubuntu-latest'] }}
63+
USE_COMPILED_TEST: ${{ fromJSON('["false", "true"]')[matrix.ts_version != 'latest' || matrix.node_version != '16' || matrix.os != 'ubuntu-latest'] }}
6564
steps:
6665
- name: Checkout
6766
uses: actions/checkout@v2

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@
6060
},
6161
"dependencies": {
6262
"@typescript-eslint/experimental-utils": "^4.9.1",
63-
"array.prototype.flatmap": "^1.2.4",
6463
"deepmerge": "^4.2.2",
65-
"escape-string-regexp": "^4.0.0",
66-
"object.fromentries": "^2.0.3"
64+
"escape-string-regexp": "^4.0.0"
6765
},
6866
"devDependencies": {
6967
"@rollup/plugin-commonjs": "^17.0.0",
@@ -115,6 +113,6 @@
115113
}
116114
},
117115
"engines": {
118-
"node": ">=10.18.0"
116+
"node": ">=12.4.0"
119117
}
120118
}

rollup.config.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ import rollupPluginTypescript from "@rollup/plugin-typescript";
99
import rollupPluginJSON from "@rollup/plugin-json";
1010
import rollupPluginAutoExternal from "rollup-plugin-auto-external";
1111

12-
const polyfills = [
13-
"array.prototype.flatmap/auto.js",
14-
"object.fromentries/auto.js",
15-
];
16-
1712
const common = {
1813
input: "src/index.ts",
1914

@@ -23,11 +18,11 @@ const common = {
2318
sourcemap: false,
2419
},
2520

26-
external: polyfills,
21+
external: [],
2722

2823
treeshake: {
2924
annotations: true,
30-
moduleSideEffects: polyfills,
25+
moduleSideEffects: [],
3126
propertyReadSideEffects: false,
3227
unknownGlobalSideEffects: false,
3328
},

src/common/ignore-options.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Polyfill.
2-
import "array.prototype.flatmap/auto.js";
3-
41
import { TSESTree } from "@typescript-eslint/experimental-utils";
52
import escapeRegExp from "escape-string-regexp";
63
import { JSONSchema4 } from "json-schema";

src/rules/prefer-readonly-type.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Polyfill.
2-
import "array.prototype.flatmap/auto.js";
3-
41
import { TSESTree } from "@typescript-eslint/experimental-utils";
52
import { all as deepMerge } from "deepmerge";
63
import { JSONSchema4 } from "json-schema";

src/util/rule.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Polyfill.
2-
import "object.fromentries/auto.js";
3-
41
import {
52
ESLintUtils,
63
TSESLint,

yarn.lock

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,16 +1069,6 @@ array.prototype.flat@^1.2.3:
10691069
define-properties "^1.1.3"
10701070
es-abstract "^1.18.0-next.1"
10711071

1072-
array.prototype.flatmap@^1.2.4:
1073-
version "1.2.4"
1074-
resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz#94cfd47cc1556ec0747d97f7c7738c58122004c9"
1075-
integrity sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q==
1076-
dependencies:
1077-
call-bind "^1.0.0"
1078-
define-properties "^1.1.3"
1079-
es-abstract "^1.18.0-next.1"
1080-
function-bind "^1.1.1"
1081-
10821072
asn1@~0.2.3:
10831073
version "0.2.4"
10841074
resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136"
@@ -1834,7 +1824,7 @@ error-ex@^1.2.0, error-ex@^1.3.1:
18341824
dependencies:
18351825
is-arrayish "^0.2.1"
18361826

1837-
es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2:
1827+
es-abstract@^1.18.0-next.1:
18381828
version "1.18.0-next.2"
18391829
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.0-next.2.tgz#088101a55f0541f595e7e057199e27ddc8f3a5c2"
18401830
integrity sha512-Ih4ZMFHEtZupnUh6497zEL4y2+w8+1ljnCyaTa+adcoafI1GOvMwFlDjBLfWR7y9VLfrjRJe9ocuHY1PSR9jjw==
@@ -4097,16 +4087,6 @@ object.assign@^4.1.2:
40974087
has-symbols "^1.0.1"
40984088
object-keys "^1.1.1"
40994089

4100-
object.fromentries@^2.0.3:
4101-
version "2.0.4"
4102-
resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.4.tgz#26e1ba5c4571c5c6f0890cef4473066456a120b8"
4103-
integrity sha512-EsFBshs5RUUpQEY1D4q/m59kMfz4YJvxuNCJcv/jWwOJr34EaVnG11ZrZa0UHB3wnzV1wx8m58T4hQL8IuNXlQ==
4104-
dependencies:
4105-
call-bind "^1.0.2"
4106-
define-properties "^1.1.3"
4107-
es-abstract "^1.18.0-next.2"
4108-
has "^1.0.3"
4109-
41104090
object.omit@^2.0.0:
41114091
version "2.0.1"
41124092
resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"

0 commit comments

Comments
 (0)