From c2e95bdb6a84ac4c13e136fbeedac9efbc8882bb Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 5 Nov 2022 14:17:53 +0100 Subject: [PATCH] Remove core-js polyfills (#14788) According to engines.node in package.json, the minimal supported version of Node.js is 14. * `Object.fromEntries()` is supported by Node.js since 12.0.0 * `Array.prototype.flat()` is supported by Node.js since 11.0.0 These polyfills were added in #9085, but the minimum supported Node.js version has since been raised to 14. --- index.js | 2 -- package-lock.json | 16 ---------------- package.json | 1 - 3 files changed, 19 deletions(-) diff --git a/index.js b/index.js index 6d3ef2a8..7df6a57e 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,3 @@ -require('core-js/features/object/from-entries'); -require('core-js/features/array/flat'); const semver = require('semver'); const engines = require('./package.json').engines; const fs = require('fs'); diff --git a/package-lock.json b/package-lock.json index 4852eb10..330ce442 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "ajv": "^8.11.0", "bind-decorator": "^1.0.11", "connect-gzip-static": "2.1.1", - "core-js": "^3.26.0", "debounce": "^1.2.1", "deep-object-diff": "^1.1.7", "fast-deep-equal": "^3.1.3", @@ -4042,16 +4041,6 @@ "safe-buffer": "~5.1.1" } }, - "node_modules/core-js": { - "version": "3.26.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.0.tgz", - "integrity": "sha512-+DkDrhoR4Y0PxDz6rurahuB+I45OsEUv8E1maPTB6OuHRohMMcznBq9TMpdpDMm/hUPob/mJJS3PqgbHpMTQgw==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/core-js-compat": { "version": "3.25.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.25.1.tgz", @@ -12379,11 +12368,6 @@ "safe-buffer": "~5.1.1" } }, - "core-js": { - "version": "3.26.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.0.tgz", - "integrity": "sha512-+DkDrhoR4Y0PxDz6rurahuB+I45OsEUv8E1maPTB6OuHRohMMcznBq9TMpdpDMm/hUPob/mJJS3PqgbHpMTQgw==" - }, "core-js-compat": { "version": "3.25.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.25.1.tgz", diff --git a/package.json b/package.json index 0defb1cd..88a7c6f7 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "ajv": "^8.11.0", "bind-decorator": "^1.0.11", "connect-gzip-static": "2.1.1", - "core-js": "^3.26.0", "debounce": "^1.2.1", "deep-object-diff": "^1.1.7", "fast-deep-equal": "^3.1.3",