diff --git a/CHANGELOG.md b/CHANGELOG.md index 82e403836b30..40b6abd1a956 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,12 @@ ## Changelog ##### Unreleased -- Forced polyfilling `Array.prototype.groupToMap` in the pure version for returning wrapped `Map` instances +- Nothing + +##### [3.25.3 - 2022.09.26](https://github.com/zloirock/core-js/releases/tag/v3.25.3) +- Forced polyfilling of `Array.prototype.groupToMap` in the pure version for returning wrapped `Map` instances - Fixed existence of `Array.prototype.{ findLast, findLastIndex }` in `/stage/4` entry - Added Opera Android 71 compat data mapping +- Some stylistic changes ##### [3.25.2 - 2022.09.19](https://github.com/zloirock/core-js/releases/tag/v3.25.2) - Considering `document.all` as a callable in some missed cases diff --git a/README.md b/README.md index a4be120f672e..07c99d23701a 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.25.2 +npm install --save core-js@3.25.3 // version without global namespace pollution -npm install --save core-js-pure@3.25.2 +npm install --save core-js-pure@3.25.3 // bundled global version -npm install --save core-js-bundle@3.25.2 +npm install --save core-js-bundle@3.25.3 ``` 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 9448937a02dd..a17655b9072f 100644 --- a/deno/corejs/README.md +++ b/deno/corejs/README.md @@ -24,7 +24,7 @@ *Example*: ```js -import 'https://deno.land/x/corejs@v3.25.2/index.js'; // <- at the top of your entry point +import 'https://deno.land/x/corejs@v3.25.3/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 e047aed46281..65576c5822cf 100644 --- a/deno/corejs/index.js +++ b/deno/corejs/index.js @@ -1,7 +1,7 @@ /** - * core-js 3.25.2 + * core-js 3.25.3 * © 2014-2022 Denis Pushkarev (zloirock.ru) - * license: https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE + * license: https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE * source: https://github.com/zloirock/core-js */ !function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap @@ -386,7 +386,7 @@ var check = function (it) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 module.exports = - // eslint-disable-next-line es-x/no-global-this -- safe + // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe @@ -409,7 +409,7 @@ var toPropertyKey = __webpack_require__(17); var hasOwn = __webpack_require__(38); var IE8_DOM_DEFINE = __webpack_require__(41); -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method @@ -432,7 +432,7 @@ var fails = __webpack_require__(6); // Detect IE8's incomplete defineProperty implementation module.exports = !fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); @@ -470,7 +470,7 @@ module.exports = NATIVE_BIND ? call.bind(call) : function () { var fails = __webpack_require__(6); module.exports = !fails(function () { - // eslint-disable-next-line es-x/no-function-prototype-bind -- safe + // eslint-disable-next-line es/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe return typeof test != 'function' || test.hasOwnProperty('prototype'); @@ -484,7 +484,7 @@ module.exports = !fails(function () { "use strict"; var $propertyIsEnumerable = {}.propertyIsEnumerable; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug @@ -749,7 +749,7 @@ module.exports = uncurryThis({}.isPrototypeOf); /* 25 */ /***/ (function(module, exports, __webpack_require__) { -/* eslint-disable es-x/no-symbol -- required for testing */ +/* eslint-disable es/no-symbol -- required for testing */ var NATIVE_SYMBOL = __webpack_require__(26); module.exports = NATIVE_SYMBOL @@ -761,11 +761,11 @@ module.exports = NATIVE_SYMBOL /* 26 */ /***/ (function(module, exports, __webpack_require__) { -/* eslint-disable es-x/no-symbol -- required for testing */ +/* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION = __webpack_require__(27); var fails = __webpack_require__(6); -// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing +// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing module.exports = !!Object.getOwnPropertySymbols && !fails(function () { var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion @@ -925,10 +925,10 @@ var store = __webpack_require__(36); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.25.2', + version: '3.25.3', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE', source: 'https://github.com/zloirock/core-js' }); @@ -959,7 +959,7 @@ module.exports = store; var global = __webpack_require__(3); -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; module.exports = function (key, value) { @@ -982,7 +982,7 @@ var hasOwnProperty = uncurryThis({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty -// eslint-disable-next-line es-x/no-object-hasown -- safe +// eslint-disable-next-line es/no-object-hasown -- safe module.exports = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject(it), key); }; @@ -1028,7 +1028,7 @@ var createElement = __webpack_require__(42); // Thanks to IE8 for its funny defineProperty module.exports = !DESCRIPTORS && !fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } }).a != 7; @@ -1078,9 +1078,9 @@ var anObject = __webpack_require__(46); var toPropertyKey = __webpack_require__(17); var $TypeError = TypeError; -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty = Object.defineProperty; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE = 'configurable'; @@ -1126,7 +1126,7 @@ var fails = __webpack_require__(6); // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 module.exports = DESCRIPTORS && fails(function () { - // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing + // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, writable: false @@ -1197,7 +1197,7 @@ var InternalStateModule = __webpack_require__(51); var enforceInternalState = InternalStateModule.enforce; var getInternalState = InternalStateModule.get; -// eslint-disable-next-line es-x/no-object-defineproperty -- safe +// eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { @@ -1246,7 +1246,7 @@ var DESCRIPTORS = __webpack_require__(5); var hasOwn = __webpack_require__(38); var FunctionPrototype = Function.prototype; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn(FunctionPrototype, 'name'); @@ -1442,7 +1442,7 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames -// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe +// eslint-disable-next-line es/no-object-getownpropertynames -- safe exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys(O, hiddenKeys); }; @@ -1554,7 +1554,7 @@ var floor = Math.floor; // `Math.trunc` method // https://tc39.es/ecma262/#sec-math.trunc -// eslint-disable-next-line es-x/no-math-trunc -- safe +// eslint-disable-next-line es/no-math-trunc -- safe module.exports = Math.trunc || function trunc(x) { var n = +x; return (n > 0 ? floor : ceil)(n); @@ -1609,7 +1609,7 @@ module.exports = [ /* 66 */ /***/ (function(module, exports) { -// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe +// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe exports.f = Object.getOwnPropertySymbols; @@ -1651,7 +1651,7 @@ var FunctionPrototype = Function.prototype; var apply = FunctionPrototype.apply; var call = FunctionPrototype.call; -// eslint-disable-next-line es-x/no-reflect -- safe +// eslint-disable-next-line es/no-reflect -- safe module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { return call.apply(apply, arguments); }); @@ -1742,13 +1742,13 @@ var aPossiblePrototype = __webpack_require__(71); // `Object.setPrototypeOf` method // https://tc39.es/ecma262/#sec-object.setprototypeof // Works with __proto__ only. Old v8 can't work with null proto objects. -// eslint-disable-next-line es-x/no-object-setprototypeof -- safe +// eslint-disable-next-line es/no-object-setprototypeof -- safe module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { var CORRECT_SETTER = false; var test = {}; var setter; try { - // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); setter(test, []); CORRECT_SETTER = test instanceof Array; @@ -1937,7 +1937,7 @@ var createPropertyDescriptor = __webpack_require__(10); module.exports = !fails(function () { var error = Error('a'); if (!('stack' in error)) return true; - // eslint-disable-next-line es-x/no-object-defineproperty -- safe + // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); return error.stack !== 7; }); @@ -2027,7 +2027,7 @@ var ObjectPrototype = $Object.prototype; // `Object.getPrototypeOf` method // https://tc39.es/ecma262/#sec-object.getprototypeof -// eslint-disable-next-line es-x/no-object-getprototypeof -- safe +// eslint-disable-next-line es/no-object-getprototypeof -- safe module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { var object = toObject(O); if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]; @@ -2047,7 +2047,7 @@ var fails = __webpack_require__(6); module.exports = !fails(function () { function F() { /* empty */ } F.prototype.constructor = null; - // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing + // eslint-disable-next-line es/no-object-getprototypeof -- required for testing return Object.getPrototypeOf(new F()) !== F.prototype; }); @@ -2127,7 +2127,7 @@ hiddenKeys[IE_PROTO] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create -// eslint-disable-next-line es-x/no-object-create -- safe +// eslint-disable-next-line es/no-object-create -- safe module.exports = Object.create || function create(O, Properties) { var result; if (O !== null) { @@ -2154,7 +2154,7 @@ var objectKeys = __webpack_require__(87); // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties -// eslint-disable-next-line es-x/no-object-defineproperties -- safe +// eslint-disable-next-line es/no-object-defineproperties -- safe exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); var props = toIndexedObject(Properties); @@ -2176,7 +2176,7 @@ var enumBugKeys = __webpack_require__(65); // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys -// eslint-disable-next-line es-x/no-object-keys -- safe +// eslint-disable-next-line es/no-object-keys -- safe module.exports = Object.keys || function keys(O) { return internalObjectKeys(O, enumBugKeys); }; @@ -2558,7 +2558,7 @@ var INCORRECT_TO_LENGTH = fails(function () { // https://bugs.chromium.org/p/v8/issues/detail?id=12681 var SILENT_ON_NON_WRITABLE_LENGTH = !function () { try { - // eslint-disable-next-line es-x/no-object-defineproperty -- safe + // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty([], 'length', { writable: false }).push(); } catch (error) { return error instanceof TypeError; @@ -2594,7 +2594,7 @@ var DESCRIPTORS = __webpack_require__(5); var isArray = __webpack_require__(104); var $TypeError = TypeError; -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Safari < 13 does not throw an error in this case @@ -2602,7 +2602,7 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () { // makes no sense without proper strict mode support if (this !== undefined) return true; try { - // eslint-disable-next-line es-x/no-object-defineproperty -- safe + // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty([], 'length', { writable: false }).length = 1; } catch (error) { return error instanceof TypeError; @@ -2626,7 +2626,7 @@ var classof = __webpack_require__(14); // `IsArray` abstract operation // https://tc39.es/ecma262/#sec-isarray -// eslint-disable-next-line es-x/no-array-isarray -- safe +// eslint-disable-next-line es/no-array-isarray -- safe module.exports = Array.isArray || function isArray(argument) { return classof(argument) == 'Array'; }; @@ -2671,9 +2671,9 @@ var isObject = __webpack_require__(19); var toObject = __webpack_require__(39); var requireObjectCoercible = __webpack_require__(15); -// eslint-disable-next-line es-x/no-object-getprototypeof -- safe +// eslint-disable-next-line es/no-object-getprototypeof -- safe var getPrototypeOf = Object.getPrototypeOf; -// eslint-disable-next-line es-x/no-object-setprototypeof -- safe +// eslint-disable-next-line es/no-object-setprototypeof -- safe var setPrototypeOf = Object.setPrototypeOf; var ObjectPrototype = Object.prototype; var PROTO = '__proto__'; @@ -3206,11 +3206,11 @@ var String = global.String; var counter = 0; var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; -var location, defer, channel, port; +var $location, defer, channel, port; try { // Deno throws a ReferenceError on `location` access without `--location` flag - location = global.location; + $location = global.location; } catch (error) { /* empty */ } var run = function (id) { @@ -3233,7 +3233,7 @@ var listener = function (event) { var post = function (id) { // old engines have not location.origin - global.postMessage(String(id), location.protocol + '//' + location.host); + global.postMessage(String(id), $location.protocol + '//' + $location.host); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: @@ -3274,7 +3274,7 @@ if (!set || !clear) { global.addEventListener && isCallable(global.postMessage) && !global.importScripts && - location && location.protocol !== 'file:' && + $location && $location.protocol !== 'file:' && !fails(post) ) { defer = post; @@ -3688,7 +3688,7 @@ try { iteratorWithReturn[ITERATOR] = function () { return this; }; - // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing + // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing Array.from(iteratorWithReturn, function () { throw 2; }); } catch (error) { /* empty */ } @@ -4038,7 +4038,7 @@ var FORCED = DESCRIPTORS && fails(function () { var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy'; var addGetter = function (key, chr) { - // eslint-disable-next-line es-x/no-object-defineproperty -- safe + // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty(O, key, { get: function () { calls += chr; return true; @@ -4057,7 +4057,7 @@ var FORCED = DESCRIPTORS && fails(function () { for (var key in pairs) addGetter(key, pairs[key]); - // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O); return result !== expected || calls !== expected; @@ -4112,7 +4112,7 @@ var fails = __webpack_require__(6); var charAt = uncurryThis(''.charAt); var FORCED = fails(function () { - // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe + // eslint-disable-next-line es/no-array-string-prototype-at -- safe return '𠮷'.at(-2) !== '\uD842'; }); @@ -4518,7 +4518,7 @@ module.exports = { /* 154 */ /***/ (function(module, exports) { -// eslint-disable-next-line es-x/no-typed-arrays -- safe +// eslint-disable-next-line es/no-typed-arrays -- safe module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined'; @@ -4582,7 +4582,7 @@ var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function () { - // eslint-disable-next-line es-x/no-typed-arrays -- required for testing + // eslint-disable-next-line es/no-typed-arrays -- required for testing var array = new Uint8ClampedArray(2); call($set, array, { length: 1, 0: 3 }, 1); return array[1] !== 3; @@ -5253,11 +5253,12 @@ var $ = __webpack_require__(2); var arrayMethodIsStrict = __webpack_require__(179); var addToUnscopables = __webpack_require__(98); var $groupToMap = __webpack_require__(181); +var IS_PURE = __webpack_require__(35); // `Array.prototype.groupByToMap` method // https://github.com/tc39/proposal-array-grouping // https://bugs.webkit.org/show_bug.cgi?id=236541 -$({ target: 'Array', proto: true, name: 'groupToMap', forced: !arrayMethodIsStrict('groupByToMap') }, { +$({ target: 'Array', proto: true, name: 'groupToMap', forced: IS_PURE || !arrayMethodIsStrict('groupByToMap') }, { groupByToMap: $groupToMap }); @@ -5310,10 +5311,11 @@ module.exports = function groupToMap(callbackfn /* , thisArg */) { var $ = __webpack_require__(2); var addToUnscopables = __webpack_require__(98); var $groupToMap = __webpack_require__(181); +var IS_PURE = __webpack_require__(35); // `Array.prototype.groupToMap` method // https://github.com/tc39/proposal-array-grouping -$({ target: 'Array', proto: true }, { +$({ target: 'Array', proto: true, forced: IS_PURE }, { groupToMap: $groupToMap }); @@ -5327,7 +5329,7 @@ addToUnscopables('groupToMap'); var $ = __webpack_require__(2); var isArray = __webpack_require__(104); -// eslint-disable-next-line es-x/no-object-isfrozen -- safe +// eslint-disable-next-line es/no-object-isfrozen -- safe var isFrozen = Object.isFrozen; var isFrozenStringArray = function (array, allowUndefined) { @@ -6419,7 +6421,7 @@ $({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { "use strict"; -/* eslint-disable es-x/no-bigint -- safe */ +/* eslint-disable es/no-bigint -- safe */ var $ = __webpack_require__(2); var NumericRangeIterator = __webpack_require__(214); @@ -6594,7 +6596,7 @@ var BUGGY_SAFARI_ITERATORS = false; // https://tc39.es/ecma262/#sec-%iteratorprototype%-object var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; -/* eslint-disable es-x/no-array-prototype-keys -- safe */ +/* eslint-disable es/no-array-prototype-keys -- safe */ if ([].keys) { arrayIterator = [].keys(); // Safari 8 has buggy iterators w/o `next` @@ -6944,7 +6946,7 @@ hiddenKeys[METADATA] = true; /* 223 */ /***/ (function(module, exports, __webpack_require__) { -/* eslint-disable es-x/no-object-getownpropertynames -- safe */ +/* eslint-disable es/no-object-getownpropertynames -- safe */ var classof = __webpack_require__(14); var toIndexedObject = __webpack_require__(11); var $getOwnPropertyNames = __webpack_require__(57).f; @@ -7017,7 +7019,7 @@ var isObject = __webpack_require__(19); var classof = __webpack_require__(14); var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(227); -// eslint-disable-next-line es-x/no-object-isextensible -- safe +// eslint-disable-next-line es/no-object-isextensible -- safe var $isExtensible = Object.isExtensible; var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); }); @@ -7040,7 +7042,7 @@ var fails = __webpack_require__(6); module.exports = fails(function () { if (typeof ArrayBuffer == 'function') { var buffer = new ArrayBuffer(8); - // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-defineproperty -- safe + // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 }); } }); @@ -7053,7 +7055,7 @@ module.exports = fails(function () { var fails = __webpack_require__(6); module.exports = !fails(function () { - // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-preventextensions -- required for testing + // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing return Object.isExtensible(Object.preventExtensions({})); }); @@ -7627,7 +7629,7 @@ var inspectSource = __webpack_require__(50); var hasOwn = __webpack_require__(38); var DESCRIPTORS = __webpack_require__(5); -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var classRegExp = /^\s*class\b/; var exec = uncurryThis(classRegExp.exec); @@ -8410,7 +8412,7 @@ $({ target: 'Map', proto: true, real: true, forced: true }, { var call = __webpack_require__(7); module.exports = function (it) { - // eslint-disable-next-line es-x/no-map -- safe + // eslint-disable-next-line es/no-map -- safe return call(Map.prototype.entries, it); }; @@ -8993,7 +8995,7 @@ var roundTiesToEven = function (n) { // `Math.fround` method implementation // https://tc39.es/ecma262/#sec-math.fround -// eslint-disable-next-line es-x/no-math-fround -- safe +// eslint-disable-next-line es/no-math-fround -- safe module.exports = Math.fround || function fround(x) { var n = +x; var $abs = abs(n); @@ -9014,7 +9016,7 @@ module.exports = Math.fround || function fround(x) { // `Math.sign` method implementation // https://tc39.es/ecma262/#sec-math.sign -// eslint-disable-next-line es-x/no-math-sign -- safe +// eslint-disable-next-line es/no-math-sign -- safe module.exports = Math.sign || function sign(x) { var n = +x; // eslint-disable-next-line no-self-compare -- NaN check @@ -9957,7 +9959,7 @@ $({ target: 'Set', proto: true, real: true, forced: true }, { var call = __webpack_require__(7); module.exports = function (it) { - // eslint-disable-next-line es-x/no-set -- safe + // eslint-disable-next-line es/no-set -- safe return call(Set.prototype.values, it); }; @@ -10742,7 +10744,7 @@ var min = Math.min; // some early implementations, like WebKit, does not follow the final semantic var PROPER_ORDER = !fails(function () { - // eslint-disable-next-line es-x/no-typed-arrays -- required for testing + // eslint-disable-next-line es/no-typed-arrays -- required for testing var array = new Int8Array([1]); var spliced = array.toSpliced(1, 0, { @@ -10821,7 +10823,7 @@ var $TypeError = TypeError; module.exports = function (argument) { var prim = toPrimitive(argument, 'number'); if (typeof prim == 'number') throw $TypeError("Can't convert number to bigint"); - // eslint-disable-next-line es-x/no-bigint -- safe + // eslint-disable-next-line es/no-bigint -- safe return BigInt(prim); }; @@ -10866,7 +10868,7 @@ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var PROPER_ORDER = !!function () { try { - // eslint-disable-next-line no-throw-literal, es-x/no-typed-arrays -- required for testing + // eslint-disable-next-line no-throw-literal, es/no-typed-arrays -- required for testing new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } }); } catch (error) { // some early implementations, like WebKit, does not follow the final semantic @@ -11039,7 +11041,7 @@ var NativeDOMException = getBuiltIn(DOM_EXCEPTION) || (function () { try { // NodeJS < 15.0 does not expose `MessageChannel` to global var MessageChannel = getBuiltIn('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel; - // eslint-disable-next-line es-x/no-weak-map, unicorn/require-post-message-target-origin -- safe + // eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe new MessageChannel().port1.postMessage(new WeakMap()); } catch (error) { if (error.name == DATA_CLONE_ERR && error.code == 25) return error.constructor; @@ -11184,7 +11186,7 @@ var nativeErrorToString = Error.prototype.toString; var INCORRECT_TO_STRING = fails(function () { if (DESCRIPTORS) { // Chrome 32- incorrectly call accessor - // eslint-disable-next-line es-x/no-object-defineproperty -- safe + // eslint-disable-next-line es/no-object-defineproperty -- safe var object = create(Object.defineProperty({}, 'name', { get: function () { return this === object; } })); @@ -11279,7 +11281,7 @@ var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototy var ERROR_HAS_STACK = 'stack' in Error(DOM_EXCEPTION); var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2); -// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION); // Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it diff --git a/package.json b/package.json index ae7f364495d3..083b68553c53 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.25.2", + "version": "3.25.3", "workspaces": [ "./packages/*" ], diff --git a/packages/core-js-builder/package.json b/packages/core-js-builder/package.json index 3a7988085a66..d40d9d16949f 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.25.2", + "version": "3.25.3", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git", @@ -10,8 +10,8 @@ "main": "index.js", "sideEffects": false, "dependencies": { - "core-js": "3.25.2", - "core-js-compat": "3.25.2", + "core-js": "3.25.3", + "core-js-compat": "3.25.3", "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 50b10be8919e..21f5a898eb17 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.25.2", + "version": "3.25.3", "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 5f868525f69b..346157bf3da4 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.25.2", + "version": "3.25.3", "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 0fbdba1eb7b8..30de2d402c40 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.25.2", + "version": "3.25.3", "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 43219fcdea54..ad5d11f63081 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.25.2', + version: '3.25.3', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE', source: 'https://github.com/zloirock/core-js' }); diff --git a/packages/core-js/package.json b/packages/core-js/package.json index 297f53399ed4..a9056f3c4039 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.25.2", + "version": "3.25.3", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git"