From e4b27bdc440039ffc2d29ec97628c3e727108a37 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Sat, 30 Jul 2022 01:04:03 +0700 Subject: [PATCH] 3.24.1 --- CHANGELOG.md | 3 ++ README.md | 6 +-- deno/corejs/README.md | 2 +- deno/corejs/index.js | 19 +++++---- docs/compat/compat-data.js | 60 +++++++++++++++------------ package.json | 2 +- packages/core-js-builder/package.json | 6 +-- packages/core-js-bundle/package.json | 2 +- packages/core-js-compat/package.json | 2 +- packages/core-js-pure/package.json | 2 +- packages/core-js/internals/shared.js | 4 +- packages/core-js/package.json | 2 +- 12 files changed, 63 insertions(+), 47 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a73d34b9c44..8942b335d7ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelog ##### Unreleased +- Nothing + +##### [3.24.1 - 2022.07.30](https://github.com/zloirock/core-js/releases/tag/v3.24.1) - NodeJS is ignored in `IS_BROWSER` detection to avoid a false positive with `jsdom`, [#1110](https://github.com/zloirock/core-js/issues/1110) - Fixed detection of `@@species` support in `Promise` in some old engines - `{ Array, %TypedArray% }.prototype.{ findLast, findLastIndex }` marked as shipped [in FF104](https://bugzilla.mozilla.org/show_bug.cgi?id=1775026) diff --git a/README.md b/README.md index 6fa928e30996..f7d6bc180c7f 100644 --- a/README.md +++ b/README.md @@ -176,11 +176,11 @@ queueMicrotask(() => console.log('called as microtask')); ### Installation:[⬆](#index) ``` // global version -npm install --save core-js@3.24.0 +npm install --save core-js@3.24.1 // version without global namespace pollution -npm install --save core-js-pure@3.24.0 +npm install --save core-js-pure@3.24.1 // bundled global version -npm install --save core-js-bundle@3.24.0 +npm install --save core-js-bundle@3.24.1 ``` Or you can use `core-js` [from CDN](https://www.jsdelivr.com/package/npm/core-js-bundle). diff --git a/deno/corejs/README.md b/deno/corejs/README.md index ac18b9e7481e..d2fab32eb549 100644 --- a/deno/corejs/README.md +++ b/deno/corejs/README.md @@ -24,7 +24,7 @@ *Example*: ```js -import 'https://deno.land/x/corejs@v3.24.0/index.js'; // <- at the top of your entry point +import 'https://deno.land/x/corejs@v3.24.1/index.js'; // <- at the top of your entry point Object.hasOwn({ foo: 42 }, 'foo'); // => true diff --git a/deno/corejs/index.js b/deno/corejs/index.js index c54d8c021dfc..cb1750245b3a 100644 --- a/deno/corejs/index.js +++ b/deno/corejs/index.js @@ -1,7 +1,7 @@ /** - * core-js 3.24.0 + * core-js 3.24.1 * © 2014-2022 Denis Pushkarev (zloirock.ru) - * license: https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE + * license: https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE * source: https://github.com/zloirock/core-js */ !function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap @@ -884,10 +884,10 @@ var store = __webpack_require__(34); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.24.0', + version: '3.24.1', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE', source: 'https://github.com/zloirock/core-js' }); @@ -3396,7 +3396,7 @@ var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () { // We can't use @@species feature detection in V8 since it causes // deoptimization and performance degradation // https://github.com/zloirock/core-js/issues/679 - if (V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { + if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { // Detect correctness of subclassing with @@species support var promise = new NativePromiseConstructor(function (resolve) { resolve(1); }); var FakePromise = function (exec) { @@ -3419,9 +3419,14 @@ module.exports = { /***/ }), /* 124 */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var IS_DENO = __webpack_require__(125); +var IS_NODE = __webpack_require__(105); -module.exports = typeof window == 'object' && typeof Deno != 'object'; +module.exports = !IS_DENO && !IS_NODE + && typeof window == 'object' + && typeof document == 'object'; /***/ }), diff --git a/docs/compat/compat-data.js b/docs/compat/compat-data.js index 3009d54449f2..0429f9289f06 100644 --- a/docs/compat/compat-data.js +++ b/docs/compat/compat-data.js @@ -460,8 +460,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -537,6 +537,7 @@ "deno": "1.16", "edge": "97", "electron": "17.0", + "firefox": "104", "hermes": "0.11", "ios": "15.4", "node": "18.0", @@ -553,6 +554,7 @@ "deno": "1.16", "edge": "97", "electron": "17.0", + "firefox": "104", "hermes": "0.11", "ios": "15.4", "node": "18.0", @@ -609,8 +611,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -715,8 +717,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -865,8 +867,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -980,8 +982,8 @@ "ios": "12.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "safari": "12.0", "samsung": "1.5" }, @@ -1035,8 +1037,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -1054,8 +1056,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -1153,8 +1155,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -1172,8 +1174,8 @@ "ios": "10.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "10.0", "samsung": "1.5" @@ -1549,8 +1551,8 @@ "ios": "9.0", "node": "0.11.1", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "9.0", "samsung": "1.5" @@ -1908,8 +1910,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -1927,8 +1929,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "rhino": "1.7.13", "safari": "7.1", "samsung": "1.5" @@ -3907,6 +3909,7 @@ "deno": "1.16", "edge": "97", "electron": "17.0", + "firefox": "104", "hermes": "0.11", "ios": "15.4", "node": "18.0", @@ -3923,6 +3926,7 @@ "deno": "1.16", "edge": "97", "electron": "17.0", + "firefox": "104", "hermes": "0.11", "ios": "15.4", "node": "18.0", @@ -4214,8 +4218,8 @@ "ios": "8.0", "node": "0.11.0", "oculus": "3.0", - "opera": "16", - "opera_mobile": "16", + "opera": "15", + "opera_mobile": "15", "safari": "7.1", "samsung": "1.5" }, @@ -4383,6 +4387,7 @@ "deno": "1.16", "edge": "97", "electron": "17.0", + "firefox": "104", "hermes": "0.11", "ios": "15.4", "node": "18.0", @@ -4399,6 +4404,7 @@ "deno": "1.16", "edge": "97", "electron": "17.0", + "firefox": "104", "hermes": "0.11", "ios": "15.4", "node": "18.0", @@ -4673,6 +4679,7 @@ "deno": "1.16", "edge": "97", "electron": "17.0", + "firefox": "104", "hermes": "0.11", "ios": "15.4", "node": "18.0", @@ -4689,6 +4696,7 @@ "deno": "1.16", "edge": "97", "electron": "17.0", + "firefox": "104", "hermes": "0.11", "ios": "15.4", "node": "18.0", diff --git a/package.json b/package.json index 48e2961c6c8c..09b403696998 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.24.0", + "version": "3.24.1", "workspaces": [ "./packages/*" ], diff --git a/packages/core-js-builder/package.json b/packages/core-js-builder/package.json index 924447f7b0d3..879991c703a5 100644 --- a/packages/core-js-builder/package.json +++ b/packages/core-js-builder/package.json @@ -1,7 +1,7 @@ { "name": "core-js-builder", "description": "core-js builder", - "version": "3.24.0", + "version": "3.24.1", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git", @@ -9,8 +9,8 @@ }, "main": "index.js", "dependencies": { - "core-js": "3.24.0", - "core-js-compat": "3.24.0", + "core-js": "3.24.1", + "core-js-compat": "3.24.1", "mkdirp": ">=0.5.5 <1", "webpack": ">=4.46.0 <5" }, diff --git a/packages/core-js-bundle/package.json b/packages/core-js-bundle/package.json index d1368237d6cd..7f3fb451b95c 100644 --- a/packages/core-js-bundle/package.json +++ b/packages/core-js-bundle/package.json @@ -1,7 +1,7 @@ { "name": "core-js-bundle", "description": "Standard library", - "version": "3.24.0", + "version": "3.24.1", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git" diff --git a/packages/core-js-compat/package.json b/packages/core-js-compat/package.json index fc18f4d78ec3..09ba1322c583 100644 --- a/packages/core-js-compat/package.json +++ b/packages/core-js-compat/package.json @@ -1,7 +1,7 @@ { "name": "core-js-compat", "description": "core-js compat", - "version": "3.24.0", + "version": "3.24.1", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git", diff --git a/packages/core-js-pure/package.json b/packages/core-js-pure/package.json index 0537279c25e6..b872a965eb43 100644 --- a/packages/core-js-pure/package.json +++ b/packages/core-js-pure/package.json @@ -1,7 +1,7 @@ { "name": "core-js-pure", "description": "Standard library", - "version": "3.24.0", + "version": "3.24.1", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git" diff --git a/packages/core-js/internals/shared.js b/packages/core-js/internals/shared.js index d0dfedcb61df..6af8941acb66 100644 --- a/packages/core-js/internals/shared.js +++ b/packages/core-js/internals/shared.js @@ -4,9 +4,9 @@ var store = require('../internals/shared-store'); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.24.0', + version: '3.24.1', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE', source: 'https://github.com/zloirock/core-js' }); diff --git a/packages/core-js/package.json b/packages/core-js/package.json index 9d7fe98eee9b..b002c09d98b0 100644 --- a/packages/core-js/package.json +++ b/packages/core-js/package.json @@ -1,7 +1,7 @@ { "name": "core-js", "description": "Standard library", - "version": "3.24.0", + "version": "3.24.1", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git"