Skip to content

Commit

Permalink
3.23.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 17, 2022
1 parent 9112027 commit 35bfb87
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 27 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.23.5 - 2022.07.18](https://github.com/zloirock/core-js/releases/tag/v3.23.5)
- Fixed a typo in the `structuredClone` feature detection, [#1106](https://github.com/zloirock/core-js/issues/1106)
- Added Opera Android 70 compat data mapping

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ queueMicrotask(() => console.log('called as microtask'));
### Installation:[](#index)
```
// global version
npm install --save core-js@3.23.4
npm install --save core-js@3.23.5
// version without global namespace pollution
npm install --save core-js-pure@3.23.4
npm install --save core-js-pure@3.23.5
// bundled global version
npm install --save core-js-bundle@3.23.4
npm install --save core-js-bundle@3.23.5
```

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 @@ -24,7 +24,7 @@

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

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

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

Expand Down Expand Up @@ -10239,7 +10239,7 @@ var checkErrorsCloning = function (structuredCloneImplementation, $Error) {
return !fails(function () {
var error = new $Error();
var test = structuredCloneImplementation({ a: error, b: error });
return !(test && test.a === test.b && test.a instanceof $Error && test.stack === error.stack);
return !(test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack);
});
};

Expand Down
30 changes: 22 additions & 8 deletions docs/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ function IMMEDIATE() {
return setImmediate && clearImmediate;
}

function TIMERS() {
return !/MSIE .\./.test(USERAGENT);
}

GLOBAL.tests = {
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
'es.symbol': [SYMBOLS_SUPPORT, function () {
Expand Down Expand Up @@ -1851,16 +1855,26 @@ GLOBAL.tests = {
return Object.getOwnPropertyDescriptor(GLOBAL, 'queueMicrotask').value;
},
'web.set-immediate': IMMEDIATE,
'web.set-interval': TIMERS,
'web.set-timeout': TIMERS,
'web.structured-clone': function () {
var error = new Error();
var test = structuredClone({ a: error, b: error });
if (!(test && test.a === test.b && test.a instanceof Error && test.stack === error.stack)) return false;
test = structuredClone(new AggregateError([1], 'a', { cause: 3 }));
return test.name == 'AggregateError' && test.errors[0] == 1 && test.message == 'a' && test.cause == 3;
},
'web.timers': function () {
return !/MSIE .\./.test(USERAGENT);
function checkErrorsCloning(structuredCloneImplementation, $Error) {
var error = new $Error();
var test = structuredCloneImplementation({ a: error, b: error });
return test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack;
}

function checkNewErrorsCloningSemantic(structuredCloneImplementation) {
var test = structuredCloneImplementation(new AggregateError([1], 'message', { cause: 3 }));
return test.name == 'AggregateError' && test.errors[0] == 1 && test.message == 'message' && test.cause == 3;
}

return checkErrorsCloning(structuredClone, Error)
&& checkErrorsCloning(structuredClone, DOMException)
&& checkNewErrorsCloningSemantic(structuredClone);
},
// TODO: Remove this module from `core-js@4` since it's split to submodules
'web.timers': TIMERS,
'web.url.constructor': URL_AND_URL_SEARCH_PARAMS_SUPPORT,
'web.url.to-json': [URL_AND_URL_SEARCH_PARAMS_SUPPORT, function () {
return URL.prototype.toJSON;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.23.4",
"version": "3.23.5",
"workspaces": [
"./packages/*"
],
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,16 +1,16 @@
{
"name": "core-js-builder",
"description": "core-js builder",
"version": "3.23.4",
"version": "3.23.5",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git",
"directory": "packages/core-js-builder"
},
"main": "index.js",
"dependencies": {
"core-js": "3.23.4",
"core-js-compat": "3.23.4",
"core-js": "3.23.5",
"core-js-compat": "3.23.5",
"mkdirp": ">=0.5.5 <1",
"webpack": ">=4.46.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,7 +1,7 @@
{
"name": "core-js-bundle",
"description": "Standard library",
"version": "3.23.4",
"version": "3.23.5",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js-compat",
"description": "core-js compat",
"version": "3.23.4",
"version": "3.23.5",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-pure/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js-pure",
"description": "Standard library",
"version": "3.23.4",
"version": "3.23.5",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
Expand Down
4 changes: 2 additions & 2 deletions packages/core-js/internals/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.23.4',
version: '3.23.5',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE',
license: 'https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE',
source: 'https://github.com/zloirock/core-js'
});
2 changes: 1 addition & 1 deletion packages/core-js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js",
"description": "Standard library",
"version": "3.23.4",
"version": "3.23.5",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
Expand Down

0 comments on commit 35bfb87

Please sign in to comment.