Skip to content

Commit

Permalink
3.25.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 2, 2022
1 parent d76041c commit d59e440
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 27 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
## Changelog
##### Unreleased
- Nothing

##### [3.25.4 - 2022.10.03](https://github.com/zloirock/core-js/releases/tag/v3.25.4)
- 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)
- Updated lists of `[Serializable]` and `[Transferable]` objects in the `structuredClone` polyfill. Mainly, for better error messages if polyfilling of cloning such types is impossible
- `Array.prototype.{ group, groupToMap }` marked as [supported from V8 ~ Chromium 108](https://chromestatus.com/feature/5714791975878656)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -176,11 +176,11 @@ queueMicrotask(() => console.log('called as microtask'));
### Installation:[](#index)
```
// global version
npm install --save core-js@3.25.3
npm install --save core-js@3.25.4
// version without global namespace pollution
npm install --save core-js-pure@3.25.3
npm install --save core-js-pure@3.25.4
// bundled global version
npm install --save core-js-bundle@3.25.3
npm install --save core-js-bundle@3.25.4
```

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

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

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

Expand Down
31 changes: 20 additions & 11 deletions deno/corejs/index.js
@@ -1,7 +1,7 @@
/**
* core-js 3.25.3
* core-js 3.25.4
* © 2014-2022 Denis Pushkarev (zloirock.ru)
* license: https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE
* license: https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE
* source: https://github.com/zloirock/core-js
*/
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -552,17 +552,19 @@ module.exports = fails(function () {

var NATIVE_BIND = __webpack_require__(8);

var FunctionPrototype = Function.prototype;
var $Function = Function;
var FunctionPrototype = $Function.prototype;
var bind = FunctionPrototype.bind;
var call = FunctionPrototype.call;
var uncurryThis = NATIVE_BIND && bind.bind(call, call);

module.exports = NATIVE_BIND ? function (fn) {
return fn && uncurryThis(fn);
} : function (fn) {
return fn && function () {
module.exports = function (fn) {
// Nashorn bug:
// https://github.com/zloirock/core-js/issues/1128
// https://github.com/zloirock/core-js/issues/1130
return fn instanceof $Function ? NATIVE_BIND ? uncurryThis(fn) : function () {
return call.apply(fn, arguments);
};
} : undefined;
};


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

Expand Down Expand Up @@ -11742,9 +11744,13 @@ var structuredCloneInternal = function (value, map) {
} catch (error) {
throwUnpolyfillable(type);
} break;
case 'CropTarget':
case 'CryptoKey':
case 'GPUCompilationMessage':
case 'FileSystemDirectoryHandle':
case 'FileSystemFileHandle':
case 'FileSystemHandle':
case 'GPUCompilationInfo':
case 'GPUCompilationMessage':
case 'ImageBitmap':
case 'RTCCertificate':
case 'WebAssembly.Module':
Expand Down Expand Up @@ -11843,6 +11849,7 @@ var tryToTransfer = function (rawTransfer, map) {
} catch (error) { /* empty */ }
break;
case 'ArrayBuffer':
case 'MediaSourceHandle':
case 'MessagePort':
case 'OffscreenCanvas':
case 'ReadableStream':
Expand All @@ -11856,6 +11863,8 @@ var tryToTransfer = function (rawTransfer, map) {
}
};

// `structuredClone` method
// https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone
$({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLACEMENT }, {
structuredClone: function structuredClone(value /* , { transfer } */) {
var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;
Expand Down
12 changes: 10 additions & 2 deletions docs/compat/compat-data.js
Expand Up @@ -4437,12 +4437,20 @@
"samsung": "18.0"
},
"esnext.array.group": {
"bun": "0.1.9"
"android": "108",
"bun": "0.1.9",
"chrome": "108",
"edge": "108",
"opera": "94"
},
"esnext.array.group-by": {},
"esnext.array.group-by-to-map": {},
"esnext.array.group-to-map": {
"bun": "0.1.9"
"android": "108",
"bun": "0.1.9",
"chrome": "108",
"edge": "108",
"opera": "94"
},
"esnext.array.is-template-object": {},
"esnext.array.last-index": {},
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"version": "3.25.3",
"version": "3.25.4",
"workspaces": [
"./packages/*"
],
Expand Down
6 changes: 3 additions & 3 deletions packages/core-js-builder/package.json
@@ -1,7 +1,7 @@
{
"name": "core-js-builder",
"description": "core-js builder",
"version": "3.25.3",
"version": "3.25.4",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git",
Expand All @@ -10,8 +10,8 @@
"main": "index.js",
"sideEffects": false,
"dependencies": {
"core-js": "3.25.3",
"core-js-compat": "3.25.3",
"core-js": "3.25.4",
"core-js-compat": "3.25.4",
"mkdirp": ">=0.5.5 <1",
"webpack": ">=4.46.0 <5"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-bundle/package.json
@@ -1,7 +1,7 @@
{
"name": "core-js-bundle",
"description": "Standard library",
"version": "3.25.3",
"version": "3.25.4",
"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
@@ -1,7 +1,7 @@
{
"name": "core-js-compat",
"description": "core-js compat",
"version": "3.25.3",
"version": "3.25.4",
"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
@@ -1,7 +1,7 @@
{
"name": "core-js-pure",
"description": "Standard library",
"version": "3.25.3",
"version": "3.25.4",
"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
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.25.3',
version: '3.25.4',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE',
license: 'https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE',
source: 'https://github.com/zloirock/core-js'
});
2 changes: 1 addition & 1 deletion packages/core-js/package.json
@@ -1,7 +1,7 @@
{
"name": "core-js",
"description": "Standard library",
"version": "3.25.3",
"version": "3.25.4",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
Expand Down

0 comments on commit d59e440

Please sign in to comment.