Skip to content

Commit d59e440

Browse files
committed
3.25.4
1 parent d76041c commit d59e440

File tree

12 files changed

+47
-27
lines changed

12 files changed

+47
-27
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22
##### Unreleased
3+
- Nothing
4+
5+
##### [3.25.4 - 2022.10.03](https://github.com/zloirock/core-js/releases/tag/v3.25.4)
36
- Added a workaround of a Nashorn bug with `Function.prototype.{ call, apply, bind }` on string methods, [#1128](https://github.com/zloirock/core-js/issues/1128)
47
- Updated lists of `[Serializable]` and `[Transferable]` objects in the `structuredClone` polyfill. Mainly, for better error messages if polyfilling of cloning such types is impossible
58
- `Array.prototype.{ group, groupToMap }` marked as [supported from V8 ~ Chromium 108](https://chromestatus.com/feature/5714791975878656)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ queueMicrotask(() => console.log('called as microtask'));
176176
### Installation:[](#index)
177177
```
178178
// global version
179-
npm install --save [email protected].3
179+
npm install --save [email protected].4
180180
// version without global namespace pollution
181-
npm install --save [email protected].3
181+
npm install --save [email protected].4
182182
// bundled global version
183-
npm install --save [email protected].3
183+
npm install --save [email protected].4
184184
```
185185

186186
Or you can use `core-js` [from CDN](https://www.jsdelivr.com/package/npm/core-js-bundle).

deno/corejs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
*Example*:
2626
```js
27-
import 'https://deno.land/x/[email protected].3/index.js'; // <- at the top of your entry point
27+
import 'https://deno.land/x/[email protected].4/index.js'; // <- at the top of your entry point
2828

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

deno/corejs/index.js

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* core-js 3.25.3
2+
* core-js 3.25.4
33
* © 2014-2022 Denis Pushkarev (zloirock.ru)
4-
* license: https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE
4+
* license: https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE
55
* source: https://github.com/zloirock/core-js
66
*/
77
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
@@ -552,17 +552,19 @@ module.exports = fails(function () {
552552

553553
var NATIVE_BIND = __webpack_require__(8);
554554

555-
var FunctionPrototype = Function.prototype;
555+
var $Function = Function;
556+
var FunctionPrototype = $Function.prototype;
556557
var bind = FunctionPrototype.bind;
557558
var call = FunctionPrototype.call;
558559
var uncurryThis = NATIVE_BIND && bind.bind(call, call);
559560

560-
module.exports = NATIVE_BIND ? function (fn) {
561-
return fn && uncurryThis(fn);
562-
} : function (fn) {
563-
return fn && function () {
561+
module.exports = function (fn) {
562+
// Nashorn bug:
563+
// https://github.com/zloirock/core-js/issues/1128
564+
// https://github.com/zloirock/core-js/issues/1130
565+
return fn instanceof $Function ? NATIVE_BIND ? uncurryThis(fn) : function () {
564566
return call.apply(fn, arguments);
565-
};
567+
} : undefined;
566568
};
567569

568570

@@ -925,10 +927,10 @@ var store = __webpack_require__(36);
925927
(module.exports = function (key, value) {
926928
return store[key] || (store[key] = value !== undefined ? value : {});
927929
})('versions', []).push({
928-
version: '3.25.3',
930+
version: '3.25.4',
929931
mode: IS_PURE ? 'pure' : 'global',
930932
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
931-
license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE',
933+
license: 'https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE',
932934
source: 'https://github.com/zloirock/core-js'
933935
});
934936

@@ -11742,9 +11744,13 @@ var structuredCloneInternal = function (value, map) {
1174211744
} catch (error) {
1174311745
throwUnpolyfillable(type);
1174411746
} break;
11747+
case 'CropTarget':
1174511748
case 'CryptoKey':
11746-
case 'GPUCompilationMessage':
11749+
case 'FileSystemDirectoryHandle':
11750+
case 'FileSystemFileHandle':
11751+
case 'FileSystemHandle':
1174711752
case 'GPUCompilationInfo':
11753+
case 'GPUCompilationMessage':
1174811754
case 'ImageBitmap':
1174911755
case 'RTCCertificate':
1175011756
case 'WebAssembly.Module':
@@ -11843,6 +11849,7 @@ var tryToTransfer = function (rawTransfer, map) {
1184311849
} catch (error) { /* empty */ }
1184411850
break;
1184511851
case 'ArrayBuffer':
11852+
case 'MediaSourceHandle':
1184611853
case 'MessagePort':
1184711854
case 'OffscreenCanvas':
1184811855
case 'ReadableStream':
@@ -11856,6 +11863,8 @@ var tryToTransfer = function (rawTransfer, map) {
1185611863
}
1185711864
};
1185811865

11866+
// `structuredClone` method
11867+
// https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone
1185911868
$({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLACEMENT }, {
1186011869
structuredClone: function structuredClone(value /* , { transfer } */) {
1186111870
var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;

docs/compat/compat-data.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4437,12 +4437,20 @@
44374437
"samsung": "18.0"
44384438
},
44394439
"esnext.array.group": {
4440-
"bun": "0.1.9"
4440+
"android": "108",
4441+
"bun": "0.1.9",
4442+
"chrome": "108",
4443+
"edge": "108",
4444+
"opera": "94"
44414445
},
44424446
"esnext.array.group-by": {},
44434447
"esnext.array.group-by-to-map": {},
44444448
"esnext.array.group-to-map": {
4445-
"bun": "0.1.9"
4449+
"android": "108",
4450+
"bun": "0.1.9",
4451+
"chrome": "108",
4452+
"edge": "108",
4453+
"opera": "94"
44464454
},
44474455
"esnext.array.is-template-object": {},
44484456
"esnext.array.last-index": {},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.25.3",
2+
"version": "3.25.4",
33
"workspaces": [
44
"./packages/*"
55
],

packages/core-js-builder/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "core-js-builder",
33
"description": "core-js builder",
4-
"version": "3.25.3",
4+
"version": "3.25.4",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/zloirock/core-js.git",
@@ -10,8 +10,8 @@
1010
"main": "index.js",
1111
"sideEffects": false,
1212
"dependencies": {
13-
"core-js": "3.25.3",
14-
"core-js-compat": "3.25.3",
13+
"core-js": "3.25.4",
14+
"core-js-compat": "3.25.4",
1515
"mkdirp": ">=0.5.5 <1",
1616
"webpack": ">=4.46.0 <5"
1717
},

packages/core-js-bundle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "core-js-bundle",
33
"description": "Standard library",
4-
"version": "3.25.3",
4+
"version": "3.25.4",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/zloirock/core-js.git"

packages/core-js-compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "core-js-compat",
33
"description": "core-js compat",
4-
"version": "3.25.3",
4+
"version": "3.25.4",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/zloirock/core-js.git",

packages/core-js-pure/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "core-js-pure",
33
"description": "Standard library",
4-
"version": "3.25.3",
4+
"version": "3.25.4",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/zloirock/core-js.git"

0 commit comments

Comments
 (0)