Skip to content

Commit

Permalink
3.32.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Sep 7, 2023
1 parent b729d44 commit aaefe98
Show file tree
Hide file tree
Showing 17 changed files with 97 additions and 85 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog
##### Unreleased
- Nothing

##### [3.32.2 - 2023.09.07](https://github.com/zloirock/core-js/releases/tag/v3.32.2)
- Fixed `structuredClone` feature detection `core-js@3.32.1` bug, [#1288](https://github.com/zloirock/core-js/issues/1288)
- Added a workaround of old WebKit + `eval` bug, [#1287](https://github.com/zloirock/core-js/pull/1287)
- Compat data improvements:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
### Installation:[](#index)
```sh
// global version
npm install --save core-js@3.32.1
npm install --save core-js@3.32.2
// version without global namespace pollution
npm install --save core-js-pure@3.32.1
npm install --save core-js-pure@3.32.2
// bundled global version
npm install --save core-js-bundle@3.32.1
npm install --save core-js-bundle@3.32.2
```

Or you can use `core-js` [from CDN](https://www.jsdelivr.com/package/npm/core-js-bundle).
Expand Down
2 changes: 1 addition & 1 deletion deno/corejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

*Example*:
```js
import 'https://deno.land/x/corejs@v3.32.1/index.js'; // <- at the top of your entry point
import 'https://deno.land/x/corejs@v3.32.2/index.js'; // <- at the top of your entry point

Object.hasOwn({ foo: 42 }, 'foo'); // => true

Expand Down
29 changes: 17 additions & 12 deletions deno/corejs/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* core-js 3.32.1
* core-js 3.32.2
* © 2014-2023 Denis Pushkarev (zloirock.ru)
* license: https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE
* license: https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE
* source: https://github.com/zloirock/core-js
*/
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -1026,10 +1026,10 @@ var store = __webpack_require__(36);
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: '3.32.1',
version: '3.32.2',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE',
license: 'https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE',
source: 'https://github.com/zloirock/core-js'
});

Expand Down Expand Up @@ -4226,7 +4226,9 @@ try {
} catch (error) { /* empty */ }

module.exports = function (exec, SKIP_CLOSING) {
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
try {
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
} catch (error) { return false; } // workaround of old WebKit + `eval` bug
var ITERATION_SUPPORT = false;
try {
var object = {};
Expand Down Expand Up @@ -8535,12 +8537,15 @@ module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, I

var getIterationMethod = function (KIND) {
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];

switch (KIND) {
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
} return function () { return new IteratorConstructor(this); };
}

return function () { return new IteratorConstructor(this); };
};

var TO_STRING_TAG = NAME + ' Iterator';
Expand Down Expand Up @@ -8972,7 +8977,7 @@ var pack = function (number, mantissaLength, bytes) {
exponent = eMax;
} else if (exponent + eBias >= 1) {
mantissa = roundToEven((number * c - 1) * pow(2, mantissaLength));
exponent = exponent + eBias;
exponent += eBias;
} else {
mantissa = roundToEven(number * pow(2, eBias - 1) * pow(2, mantissaLength));
exponent = 0;
Expand Down Expand Up @@ -9021,8 +9026,8 @@ var unpack = function (buffer, mantissaLength) {
} else if (exponent === eMax) {
return mantissa ? NaN : s ? -Infinity : Infinity;
} else {
mantissa = mantissa + pow(2, mantissaLength);
exponent = exponent - eBias;
mantissa += pow(2, mantissaLength);
exponent -= eBias;
} return (s ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
};

Expand Down Expand Up @@ -10189,7 +10194,7 @@ var push = uncurryThis([].push);

var IS_DIGIT = /^\d$/;
var IS_NON_ZERO_DIGIT = /^[1-9]$/;
var IS_NUMBER_START = /^(-|\d)$/;
var IS_NUMBER_START = /^(?:-|\d)$/;
var IS_WHITESPACE = /^[\t\n\r ]$/;

var PRIMITIVE = 0;
Expand Down Expand Up @@ -14937,7 +14942,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
var set1 = new global.Set([7]);
var set2 = structuredCloneImplementation(set1);
var number = structuredCloneImplementation(Object(7));
return set2 === set1 || !set2.has(7) || typeof number != 'object' || number !== 7;
return set2 === set1 || !set2.has(7) || typeof number != 'object' || +number !== 7;
}) && structuredCloneImplementation;
};

Expand Down
21 changes: 14 additions & 7 deletions docs/compat/compat-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5936,7 +5936,8 @@
"opera": "100",
"opera-android": "76",
"opera_mobile": "76",
"quest": "28.0"
"quest": "28.0",
"samsung": "23.0"
},
"esnext.array-buffer.transfer": {
"android": "114",
Expand All @@ -5949,7 +5950,8 @@
"opera": "100",
"opera-android": "76",
"opera_mobile": "76",
"quest": "28.0"
"quest": "28.0",
"samsung": "23.0"
},
"esnext.array-buffer.transfer-to-fixed-length": {
"android": "114",
Expand All @@ -5962,7 +5964,8 @@
"opera": "100",
"opera-android": "76",
"opera_mobile": "76",
"quest": "28.0"
"quest": "28.0",
"samsung": "23.0"
},
"esnext.async-disposable-stack.constructor": {},
"esnext.async-iterator.constructor": {},
Expand Down Expand Up @@ -6137,7 +6140,8 @@
"opera": "100",
"opera-android": "76",
"opera_mobile": "76",
"quest": "28.0"
"quest": "28.0",
"samsung": "23.0"
},
"esnext.json.parse": {
"android": "114",
Expand All @@ -6150,7 +6154,8 @@
"opera": "100",
"opera-android": "76",
"opera_mobile": "76",
"quest": "28.0"
"quest": "28.0",
"samsung": "23.0"
},
"esnext.json.raw-json": {
"android": "114",
Expand All @@ -6163,7 +6168,8 @@
"opera": "100",
"opera-android": "76",
"opera_mobile": "76",
"quest": "28.0"
"quest": "28.0",
"samsung": "23.0"
},
"esnext.map.delete-all": {},
"esnext.map.emplace": {},
Expand Down Expand Up @@ -6965,6 +6971,7 @@
"opera-android": "76",
"opera_mobile": "76",
"quest": "28.0",
"safari": "17.0"
"safari": "17.0",
"samsung": "23.0"
}
}
37 changes: 17 additions & 20 deletions docs/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ GLOBAL.tests = {
},
'es.math.expm1': function () {
// Old FF bug
// eslint-disable-next-line no-loss-of-precision -- required for old engines
return Math.expm1(10) <= 22025.465794806719 && Math.expm1(10) >= 22025.4657948067165168
// Tor Browser bug
&& Math.expm1(-2e-17) === -2e-17;
Expand Down Expand Up @@ -1139,7 +1140,10 @@ GLOBAL.tests = {

var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
re.exec = function () {
execCalled = true;
return null;
};
re[Symbol.match]('');

// eslint-disable-next-line regexp/prefer-regexp-exec -- required for testing
Expand Down Expand Up @@ -1171,7 +1175,10 @@ GLOBAL.tests = {

var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
re.exec = function () {
execCalled = true;
return null;
};
re[Symbol.replace]('');

var re2 = /./;
Expand All @@ -1198,7 +1205,10 @@ GLOBAL.tests = {

var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
re.exec = function () {
execCalled = true;
return null;
};
re[Symbol.search]('');

return ''.search(O) === 7 && execCalled;
Expand All @@ -1209,7 +1219,10 @@ GLOBAL.tests = {

var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
re.exec = function () {
execCalled = true;
return null;
};
re.constructor = {};
re.constructor[Symbol.species] = function () { return re; };
re[Symbol.split]('');
Expand Down Expand Up @@ -1488,22 +1501,6 @@ GLOBAL.tests = {
'esnext.array.filter-reject': function () {
return [].filterReject;
},
'esnext.array.group': function () {
try {
// https://bugs.webkit.org/show_bug.cgi?id=236541
Array.prototype.group.call(null, function () { /* empty */ });
return false;
} catch (error) { /* empty */ }
return Array.prototype.group;
},
'esnext.array.group-to-map': function () {
try {
// https://bugs.webkit.org/show_bug.cgi?id=236541
Array.prototype.groupToMap.call(null, function () { /* empty */ });
return false;
} catch (error) { /* empty */ }
return Array.prototype.groupToMap;
},
'esnext.array.is-template-object': function () {
return Array.isTemplateObject;
},
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.32.1",
"version": "3.32.2",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
Expand Down
6 changes: 3 additions & 3 deletions packages/core-js-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "core-js-builder",
"version": "3.32.1",
"version": "3.32.2",
"description": "core-js builder",
"repository": {
"type": "git",
Expand All @@ -21,8 +21,8 @@
"main": "index.js",
"types": "index.d.ts",
"dependencies": {
"core-js": "3.32.1",
"core-js-compat": "3.32.1",
"core-js": "3.32.2",
"core-js-compat": "3.32.2",
"mkdirp": ">=0.5.5 <1",
"webpack": ">=4.47.0 <5"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-bundle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "core-js-bundle",
"version": "3.32.1",
"version": "3.32.2",
"description": "Standard library",
"keywords": [
"ES3",
Expand Down
Loading

0 comments on commit aaefe98

Please sign in to comment.