diff --git a/CHANGELOG.md b/CHANGELOG.md index e81c197279e7..2a6b13b847d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Changelog ##### Unreleased +- Nothing + +##### [3.38.1 - 2024.08.20](https://github.com/zloirock/core-js/releases/tag/v3.38.1) +- Changes [v3.38.0...v3.38.1](https://github.com/zloirock/core-js/compare/v3.38.0...v3.38.1) - Fixed some cases of `URLSearchParams` percent decoding, [#1357](https://github.com/zloirock/core-js/issues/1357), [#1361](https://github.com/zloirock/core-js/pull/1361), thanks [**@slowcheetah**](https://github.com/slowcheetah) - Some stylistic changes and minor optimizations - Compat data improvements: diff --git a/README.md b/README.md index 17c0ee614025..679ed5c09fe7 100644 --- a/README.md +++ b/README.md @@ -212,11 +212,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) ### Installation:[⬆](#index) ```sh // global version -npm install --save core-js@3.38.0 +npm install --save core-js@3.38.1 // version without global namespace pollution -npm install --save core-js-pure@3.38.0 +npm install --save core-js-pure@3.38.1 // bundled global version -npm install --save core-js-bundle@3.38.0 +npm install --save core-js-bundle@3.38.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 4d3f4daa6f0b..5c44e41fdaca 100644 --- a/deno/corejs/README.md +++ b/deno/corejs/README.md @@ -29,7 +29,7 @@ *Example*: ```js -import 'https://deno.land/x/corejs@v3.38.0/index.js'; // <- at the top of your entry point +import 'https://deno.land/x/corejs@v3.38.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 8f5c85cd9847..ef7f0ede52de 100644 --- a/deno/corejs/index.js +++ b/deno/corejs/index.js @@ -1,7 +1,7 @@ /** - * core-js 3.38.0 + * core-js 3.38.1 * © 2014-2024 Denis Pushkarev (zloirock.ru) - * license: https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE + * license: https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE * source: https://github.com/zloirock/core-js */ !function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap @@ -1035,10 +1035,10 @@ var SHARED = '__core-js_shared__'; var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); (store.versions || (store.versions = [])).push({ - version: '3.38.0', + version: '3.38.1', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE', source: 'https://github.com/zloirock/core-js' }); @@ -3898,7 +3898,7 @@ if (FORCED_PROMISE_CONSTRUCTOR) { reactions: new Queue(), rejection: false, state: PENDING, - value: undefined + value: null }); }; @@ -7417,14 +7417,14 @@ defineBuiltIns(AsyncDisposableStackPrototype, { var loop = function () { if (i) { var disposeMethod = stack[--i]; - stack[i] = undefined; + stack[i] = null; try { Promise.resolve(disposeMethod()).then(loop, handleError); } catch (error) { handleError(error); } } else { - internalState.stack = undefined; + internalState.stack = null; thrown ? reject(suppressed) : resolve(undefined); } }; @@ -9047,8 +9047,8 @@ module.exports = { setInternalState(that, { type: CONSTRUCTOR_NAME, index: create(null), - first: undefined, - last: undefined, + first: null, + last: null, size: 0 }); if (!DESCRIPTORS) that.size = 0; @@ -9073,7 +9073,7 @@ module.exports = { key: key, value: value, previous: previous = state.last, - next: undefined, + next: null, removed: false }; if (!state.first) state.first = entry; @@ -9107,10 +9107,10 @@ module.exports = { var entry = state.first; while (entry) { entry.removed = true; - if (entry.previous) entry.previous = entry.previous.next = undefined; + if (entry.previous) entry.previous = entry.previous.next = null; entry = entry.next; } - state.first = state.last = undefined; + state.first = state.last = null; state.index = create(null); if (DESCRIPTORS) state.size = 0; else that.size = 0; @@ -9202,7 +9202,7 @@ module.exports = { target: iterated, state: getInternalCollectionState(iterated), kind: kind, - last: undefined + last: null }); }, function () { var state = getInternalIteratorState(this); @@ -9213,7 +9213,7 @@ module.exports = { // get next entry if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) { // or finish the iteration - state.target = undefined; + state.target = null; return createIterResultObject(undefined, true); } // return step by kind @@ -9531,7 +9531,7 @@ module.exports = { setInternalState(that, { type: CONSTRUCTOR_NAME, id: id++, - frozen: undefined + frozen: null }); if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); }); @@ -9579,7 +9579,7 @@ module.exports = { if (isObject(key)) { var data = getWeakData(key); if (data === true) return uncaughtFrozenStore(state).get(key); - return data ? data[state.id] : undefined; + if (data) return data[state.id]; } }, // `WeakMap.prototype.set(key, value)` method @@ -9986,7 +9986,7 @@ defineBuiltIns(DisposableStackPrototype, { var suppressed; while (i) { var disposeMethod = stack[--i]; - stack[i] = undefined; + stack[i] = null; try { disposeMethod(); } catch (errorResult) { @@ -9998,7 +9998,7 @@ defineBuiltIns(DisposableStackPrototype, { } } } - internalState.stack = undefined; + internalState.stack = null; if (thrown) throw suppressed; }, use: function use(value) { @@ -12430,8 +12430,8 @@ var getSubscriptionObserverInternalState = getterFor(SUBSCRIPTION_OBSERVER); var SubscriptionState = function (observer) { this.observer = anObject(observer); - this.cleanup = undefined; - this.subscriptionObserver = undefined; + this.cleanup = null; + this.subscriptionObserver = null; }; SubscriptionState.prototype = { @@ -12439,7 +12439,7 @@ SubscriptionState.prototype = { clean: function () { var cleanup = this.cleanup; if (cleanup) { - this.cleanup = undefined; + this.cleanup = null; try { cleanup(); } catch (error) { @@ -12453,10 +12453,10 @@ SubscriptionState.prototype = { var subscriptionObserver = this.subscriptionObserver; subscription.closed = true; if (subscriptionObserver) subscriptionObserver.closed = true; - } this.observer = undefined; + } this.observer = null; }, isClosed: function () { - return this.observer === undefined; + return this.observer === null; } }; @@ -13900,6 +13900,7 @@ var dedentStringsArray = function (template) { lines[lines.length - 2] = ''; lines[lines.length - 1] = ''; } + // eslint-disable-next-line sonar/no-redundant-assignments -- false positive, https://github.com/SonarSource/SonarJS/issues/4767 for (var j = 2; j < lines.length; j += 2) { var text = lines[j]; var lineContainsTemplateExpression = j + 1 === lines.length && !lastSplit; diff --git a/docs/compat/compat-data.js b/docs/compat/compat-data.js index df749ec4a617..2b6aacdddbae 100755 --- a/docs/compat/compat-data.js +++ b/docs/compat/compat-data.js @@ -458,6 +458,7 @@ "electron": "10.0", "firefox": "79", "firefox-android": "79", + "hermes": "0.13", "ios": "14.0", "node": "15.0", "oculus": "12.0", @@ -479,6 +480,7 @@ "electron": "10.0", "firefox": "79", "firefox-android": "79", + "hermes": "0.13", "ios": "14.0", "node": "15.0", "oculus": "12.0", @@ -500,6 +502,7 @@ "electron": "15.0", "firefox": "91", "firefox-android": "91", + "hermes": "0.13", "ios": "15.0", "node": "16.11", "oculus": "18.0", @@ -521,6 +524,7 @@ "electron": "14.0", "firefox": "90", "firefox-android": "90", + "hermes": "0.13", "ios": "15.4", "node": "16.6", "oculus": "17.0", @@ -801,6 +805,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "9.0", "node": "6.5", "oculus": "3.0", @@ -1203,6 +1208,7 @@ "electron": "23.0", "firefox": "115", "firefox-android": "115", + "hermes": "0.13", "ios": "16.0", "node": "20.0", "oculus": "26.0", @@ -1244,6 +1250,7 @@ "electron": "23.0", "firefox": "115", "firefox-android": "115", + "hermes": "0.13", "ios": "16.0", "node": "20.0", "oculus": "26.0", @@ -1328,6 +1335,7 @@ "electron": "23.0", "firefox": "115", "firefox-android": "115", + "hermes": "0.13", "ios": "16.0", "node": "20.0", "oculus": "26.0", @@ -1840,6 +1848,7 @@ "electron": "5.0", "firefox": "64", "firefox-android": "64", + "hermes": "0.13", "ios": "12.2", "node": "12.0", "oculus": "6.0", @@ -1884,6 +1893,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "10.0", "node": "6.5", "oculus": "3.0", @@ -1906,6 +1916,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "10.0", "node": "6.5", "oculus": "3.0", @@ -3958,6 +3969,7 @@ "electron": "3.0", "firefox": "78", "firefox-android": "78", + "hermes": "0.13", "ios": "11.3", "node": "10.0", "oculus": "5.0", @@ -4067,6 +4079,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "10.0", "node": "6.5", "oculus": "3.0", @@ -4089,6 +4102,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "10.0", "node": "6.5", "oculus": "3.0", @@ -4251,6 +4265,7 @@ "electron": "14.0", "firefox": "90", "firefox-android": "90", + "hermes": "0.13", "ios": "15.4", "node": "16.6", "oculus": "17.0", @@ -4544,6 +4559,7 @@ "electron": "3.0", "firefox": "78", "firefox-android": "78", + "hermes": "0.13", "ios": "14.0", "node": "10.0", "oculus": "5.0", @@ -5274,6 +5290,7 @@ "electron": "14.0", "firefox": "90", "firefox-android": "90", + "hermes": "0.13", "ios": "15.4", "node": "16.6", "oculus": "17.0", @@ -5971,6 +5988,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "10.0", "node": "6.5", "oculus": "3.0", @@ -5993,6 +6011,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "10.0", "node": "6.5", "oculus": "3.0", @@ -6015,6 +6034,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "10.0", "node": "6.5", "oculus": "3.0", @@ -6037,6 +6057,7 @@ "electron": "1.2", "firefox": "53", "firefox-android": "53", + "hermes": "0.13", "ios": "10.0", "node": "6.5", "oculus": "3.0", @@ -6059,6 +6080,7 @@ "electron": "10.0", "firefox": "79", "firefox-android": "79", + "hermes": "0.13", "ios": "14.0", "node": "15.0", "oculus": "12.0", @@ -6101,6 +6123,7 @@ "electron": "14.0", "firefox": "90", "firefox-android": "90", + "hermes": "0.13", "ios": "15.4", "node": "16.6", "oculus": "17.0", @@ -6176,6 +6199,7 @@ "electron": "23.0", "firefox": "115", "firefox-android": "115", + "hermes": "0.13", "ios": "16.0", "node": "20.0", "oculus": "26.0", @@ -6217,6 +6241,7 @@ "electron": "23.0", "firefox": "115", "firefox-android": "115", + "hermes": "0.13", "ios": "16.0", "node": "20.0", "oculus": "26.0", @@ -6239,6 +6264,7 @@ "electron": "23.0", "firefox": "115", "firefox-android": "115", + "hermes": "0.13", "ios": "16.0", "node": "20.0", "oculus": "26.0", @@ -6331,12 +6357,14 @@ "esnext.composite-key": {}, "esnext.composite-symbol": {}, "esnext.data-view.get-float16": { + "bun": "1.1.23", "deno": "1.43", "firefox": "129", "firefox-android": "129" }, "esnext.data-view.get-uint8-clamped": {}, "esnext.data-view.set-float16": { + "bun": "1.1.23", "deno": "1.43", "firefox": "129", "firefox-android": "129" @@ -6378,6 +6406,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6395,6 +6425,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6410,6 +6442,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6425,6 +6459,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6440,6 +6476,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6455,6 +6493,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6470,6 +6510,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6485,6 +6527,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6501,6 +6545,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6517,6 +6563,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6532,6 +6580,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6547,6 +6597,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6562,6 +6614,8 @@ "deno": "1.37", "edge": "122", "electron": "29.0", + "firefox": "131", + "firefox-android": "131", "node": "22.0", "oculus": "32.0", "opera": "108", @@ -6660,6 +6714,7 @@ "esnext.math.degrees": {}, "esnext.math.fscale": {}, "esnext.math.f16round": { + "bun": "1.1.23", "deno": "1.43", "firefox": "129", "firefox-android": "129" @@ -6769,6 +6824,7 @@ }, "esnext.promise.try": { "android": "128", + "bun": "1.1.22", "chrome": "128", "chrome-android": "128", "edge": "128", @@ -6804,7 +6860,9 @@ "esnext.reflect.has-metadata": {}, "esnext.reflect.has-own-metadata": {}, "esnext.reflect.metadata": {}, - "esnext.regexp.escape": {}, + "esnext.regexp.escape": { + "bun": "1.1.22" + }, "esnext.set.add-all": {}, "esnext.set.delete-all": {}, "esnext.set.difference.v2": { @@ -7061,7 +7119,9 @@ "edge": "127", "electron": "32.0", "node": "20.5.0", - "opera": "113" + "opera": "113", + "opera-android": "84", + "opera_mobile": "84" }, "esnext.symbol.custom-matcher": {}, "esnext.symbol.dispose": { @@ -7103,6 +7163,7 @@ "electron": "14.0", "firefox": "90", "firefox-android": "90", + "hermes": "0.13", "ios": "15.4", "node": "16.6", "oculus": "17.0", @@ -7224,12 +7285,24 @@ "safari": "16.4", "samsung": "21.0" }, - "esnext.uint8-array.from-base64": {}, - "esnext.uint8-array.from-hex": {}, - "esnext.uint8-array.set-from-base64": {}, - "esnext.uint8-array.set-from-hex": {}, - "esnext.uint8-array.to-base64": {}, - "esnext.uint8-array.to-hex": {}, + "esnext.uint8-array.from-base64": { + "bun": "1.1.22" + }, + "esnext.uint8-array.from-hex": { + "bun": "1.1.22" + }, + "esnext.uint8-array.set-from-base64": { + "bun": "1.1.22" + }, + "esnext.uint8-array.set-from-hex": { + "bun": "1.1.22" + }, + "esnext.uint8-array.to-base64": { + "bun": "1.1.22" + }, + "esnext.uint8-array.to-hex": { + "bun": "1.1.22" + }, "esnext.weak-map.delete-all": {}, "esnext.weak-map.from": {}, "esnext.weak-map.of": {}, @@ -7249,6 +7322,7 @@ "electron": "0.20", "firefox": "27", "firefox-android": "27", + "hermes": "0.13", "ios": "10.3", "node": "18.0", "oculus": "3.0", diff --git a/package-lock.json b/package-lock.json index 4a4a91c76b2b..601bd743ac50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "core-js", - "version": "3.38.0", + "version": "3.38.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "version": "3.38.0", + "version": "3.38.1", "license": "MIT", "workspaces": [ "./packages/*" @@ -5840,7 +5840,7 @@ } }, "packages/core-js": { - "version": "3.38.0", + "version": "3.38.1", "hasInstallScript": true, "license": "MIT", "funding": { @@ -5849,11 +5849,11 @@ } }, "packages/core-js-builder": { - "version": "3.38.0", + "version": "3.38.1", "license": "MIT", "dependencies": { - "core-js": "3.38.0", - "core-js-compat": "3.38.0", + "core-js": "3.38.1", + "core-js-compat": "3.38.1", "mkdirp": ">=0.5.6 <1", "webpack": ">=4.47.0 <5" }, @@ -5866,7 +5866,7 @@ } }, "packages/core-js-bundle": { - "version": "3.38.0", + "version": "3.38.1", "hasInstallScript": true, "license": "MIT", "funding": { @@ -5875,7 +5875,7 @@ } }, "packages/core-js-compat": { - "version": "3.38.0", + "version": "3.38.1", "license": "MIT", "dependencies": { "browserslist": "^4.23.3" @@ -5886,7 +5886,7 @@ } }, "packages/core-js-pure": { - "version": "3.38.0", + "version": "3.38.1", "hasInstallScript": true, "license": "MIT", "funding": { diff --git a/package.json b/package.json index 65c144ab5bf9..8fc1157ddc1e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.38.0", + "version": "3.38.1", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git" diff --git a/packages/core-js-builder/package.json b/packages/core-js-builder/package.json index 86cf3c0a5526..f5af72681018 100644 --- a/packages/core-js-builder/package.json +++ b/packages/core-js-builder/package.json @@ -1,6 +1,6 @@ { "name": "core-js-builder", - "version": "3.38.0", + "version": "3.38.1", "type": "commonjs", "description": "core-js builder", "repository": { @@ -22,8 +22,8 @@ "main": "index.js", "types": "index.d.ts", "dependencies": { - "core-js": "3.38.0", - "core-js-compat": "3.38.0", + "core-js": "3.38.1", + "core-js-compat": "3.38.1", "mkdirp": ">=0.5.6 <1", "webpack": ">=4.47.0 <5" }, diff --git a/packages/core-js-bundle/package.json b/packages/core-js-bundle/package.json index f5f9a496e6a0..c9f36eaa7036 100644 --- a/packages/core-js-bundle/package.json +++ b/packages/core-js-bundle/package.json @@ -1,6 +1,6 @@ { "name": "core-js-bundle", - "version": "3.38.0", + "version": "3.38.1", "type": "commonjs", "description": "Standard library", "keywords": [ diff --git a/packages/core-js-compat/package.json b/packages/core-js-compat/package.json index ecd464a2fb84..30fce54b5067 100644 --- a/packages/core-js-compat/package.json +++ b/packages/core-js-compat/package.json @@ -1,6 +1,6 @@ { "name": "core-js-compat", - "version": "3.38.0", + "version": "3.38.1", "type": "commonjs", "description": "core-js compat", "repository": { diff --git a/packages/core-js-pure/package.json b/packages/core-js-pure/package.json index 6fe62492ab9e..1ae743877fe1 100644 --- a/packages/core-js-pure/package.json +++ b/packages/core-js-pure/package.json @@ -1,6 +1,6 @@ { "name": "core-js-pure", - "version": "3.38.0", + "version": "3.38.1", "type": "commonjs", "description": "Standard library", "keywords": [ diff --git a/packages/core-js/internals/shared-store.js b/packages/core-js/internals/shared-store.js index 865eb82be576..4164a4840432 100644 --- a/packages/core-js/internals/shared-store.js +++ b/packages/core-js/internals/shared-store.js @@ -7,9 +7,9 @@ var SHARED = '__core-js_shared__'; var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); (store.versions || (store.versions = [])).push({ - version: '3.38.0', + version: '3.38.1', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE', source: 'https://github.com/zloirock/core-js' }); diff --git a/packages/core-js/package.json b/packages/core-js/package.json index 2aebb7f6f16b..e2e431ac1ea0 100644 --- a/packages/core-js/package.json +++ b/packages/core-js/package.json @@ -1,6 +1,6 @@ { "name": "core-js", - "version": "3.38.0", + "version": "3.38.1", "type": "commonjs", "description": "Standard library", "keywords": [