Skip to content

Commit 46e2a5c

Browse files
committed
3.30.1
1 parent 8648ddc commit 46e2a5c

File tree

16 files changed

+150
-46
lines changed

16 files changed

+150
-46
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.30.1 - 2023.04.14](https://github.com/zloirock/core-js/releases/tag/v3.30.1)
36
- Added a fix for a NodeJS 19.9.0 `URL.canParse` [bug](https://github.com/nodejs/node/issues/47505)
47
- Compat data improvements:
58
- [`JSON.parse` source text access proposal](https://github.com/tc39/proposal-json-parse-with-source) features marked as [supported](https://chromestatus.com/feature/5121582673428480) from V8 ~ Chrome 114

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
208208
### Installation:[](#index)
209209
```sh
210210
// global version
211-
npm install --save [email protected].0
211+
npm install --save [email protected].1
212212
// version without global namespace pollution
213-
npm install --save [email protected].0
213+
npm install --save [email protected].1
214214
// bundled global version
215-
npm install --save [email protected].0
215+
npm install --save [email protected].1
216216
```
217217

218218
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
@@ -29,7 +29,7 @@
2929

3030
*Example*:
3131
```js
32-
import 'https://deno.land/x/[email protected].0/index.js'; // <- at the top of your entry point
32+
import 'https://deno.land/x/[email protected].1/index.js'; // <- at the top of your entry point
3333

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

deno/corejs/index.js

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* core-js 3.30.0
2+
* core-js 3.30.1
33
* © 2014-2023 Denis Pushkarev (zloirock.ru)
4-
* license: https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE
4+
* license: https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE
55
* source: https://github.com/zloirock/core-js
66
*/
77
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
@@ -279,7 +279,7 @@ __webpack_require__(435);
279279
__webpack_require__(440);
280280
__webpack_require__(441);
281281
__webpack_require__(442);
282-
module.exports = __webpack_require__(443);
282+
module.exports = __webpack_require__(444);
283283

284284

285285
/***/ }),
@@ -944,10 +944,10 @@ var store = __webpack_require__(36);
944944
(module.exports = function (key, value) {
945945
return store[key] || (store[key] = value !== undefined ? value : {});
946946
})('versions', []).push({
947-
version: '3.30.0',
947+
version: '3.30.1',
948948
mode: IS_PURE ? 'pure' : 'global',
949949
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
950-
license: 'https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE',
950+
license: 'https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE',
951951
source: 'https://github.com/zloirock/core-js'
952952
});
953953

@@ -14322,14 +14322,21 @@ $({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLA
1432214322

1432314323
var $ = __webpack_require__(2);
1432414324
var getBuiltIn = __webpack_require__(23);
14325+
var fails = __webpack_require__(6);
1432514326
var validateArgumentsLength = __webpack_require__(131);
1432614327
var toString = __webpack_require__(76);
14328+
var USE_NATIVE_URL = __webpack_require__(443);
1432714329

1432814330
var URL = getBuiltIn('URL');
1432914331

14332+
// https://github.com/nodejs/node/issues/47505
14333+
var THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function () {
14334+
URL.canParse();
14335+
});
14336+
1433014337
// `URL.canParse` method
1433114338
// https://url.spec.whatwg.org/#dom-url-canparse
14332-
$({ target: 'URL', stat: true }, {
14339+
$({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {
1433314340
canParse: function canParse(url) {
1433414341
var length = validateArgumentsLength(arguments.length, 1);
1433514342
var urlString = toString(url);
@@ -14347,6 +14354,48 @@ $({ target: 'URL', stat: true }, {
1434714354
/* 443 */
1434814355
/***/ (function(module, exports, __webpack_require__) {
1434914356

14357+
var fails = __webpack_require__(6);
14358+
var wellKnownSymbol = __webpack_require__(33);
14359+
var DESCRIPTORS = __webpack_require__(5);
14360+
var IS_PURE = __webpack_require__(35);
14361+
14362+
var ITERATOR = wellKnownSymbol('iterator');
14363+
14364+
module.exports = !fails(function () {
14365+
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
14366+
var url = new URL('b?a=1&b=2&c=3', 'http://a');
14367+
var searchParams = url.searchParams;
14368+
var result = '';
14369+
url.pathname = 'c%20d';
14370+
searchParams.forEach(function (value, key) {
14371+
searchParams['delete']('b');
14372+
result += key + value;
14373+
});
14374+
return (IS_PURE && !url.toJSON)
14375+
|| (!searchParams.size && (IS_PURE || !DESCRIPTORS))
14376+
|| !searchParams.sort
14377+
|| url.href !== 'http://a/c%20d?a=1&c=3'
14378+
|| searchParams.get('c') !== '3'
14379+
|| String(new URLSearchParams('?a=1')) !== 'a=1'
14380+
|| !searchParams[ITERATOR]
14381+
// throws in Edge
14382+
|| new URL('https://a@b').username !== 'a'
14383+
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
14384+
// not punycoded in Edge
14385+
|| new URL('http://тест').host !== 'xn--e1aybc'
14386+
// not escaped in Chrome 62-
14387+
|| new URL('http://a#б').hash !== '#%D0%B1'
14388+
// fails in Chrome 66-
14389+
|| result !== 'a1c3'
14390+
// throws in Safari
14391+
|| new URL('http://x', undefined).host !== 'x';
14392+
});
14393+
14394+
14395+
/***/ }),
14396+
/* 444 */
14397+
/***/ (function(module, exports, __webpack_require__) {
14398+
1435014399
"use strict";
1435114400

1435214401
var DESCRIPTORS = __webpack_require__(5);

docs/compat/compat-data.js

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5851,9 +5851,30 @@
58515851
"safari": "16.0",
58525852
"samsung": "21.0"
58535853
},
5854-
"esnext.array-buffer.detached": {},
5855-
"esnext.array-buffer.transfer": {},
5856-
"esnext.array-buffer.transfer-to-fixed-length": {},
5854+
"esnext.array-buffer.detached": {
5855+
"android": "114",
5856+
"chrome": "114",
5857+
"chrome-android": "114",
5858+
"edge": "114",
5859+
"electron": "25.0",
5860+
"opera": "100"
5861+
},
5862+
"esnext.array-buffer.transfer": {
5863+
"android": "114",
5864+
"chrome": "114",
5865+
"chrome-android": "114",
5866+
"edge": "114",
5867+
"electron": "25.0",
5868+
"opera": "100"
5869+
},
5870+
"esnext.array-buffer.transfer-to-fixed-length": {
5871+
"android": "114",
5872+
"chrome": "114",
5873+
"chrome-android": "114",
5874+
"edge": "114",
5875+
"electron": "25.0",
5876+
"opera": "100"
5877+
},
58575878
"esnext.async-disposable-stack.constructor": {},
58585879
"esnext.async-iterator.constructor": {},
58595880
"esnext.async-iterator.as-indexed-pairs": {},
@@ -5920,9 +5941,30 @@
59205941
"esnext.iterator.take": {},
59215942
"esnext.iterator.to-array": {},
59225943
"esnext.iterator.to-async": {},
5923-
"esnext.json.is-raw-json": {},
5924-
"esnext.json.parse": {},
5925-
"esnext.json.raw-json": {},
5944+
"esnext.json.is-raw-json": {
5945+
"android": "114",
5946+
"chrome": "114",
5947+
"chrome-android": "114",
5948+
"edge": "114",
5949+
"electron": "25.0",
5950+
"opera": "100"
5951+
},
5952+
"esnext.json.parse": {
5953+
"android": "114",
5954+
"chrome": "114",
5955+
"chrome-android": "114",
5956+
"edge": "114",
5957+
"electron": "25.0",
5958+
"opera": "100"
5959+
},
5960+
"esnext.json.raw-json": {
5961+
"android": "114",
5962+
"chrome": "114",
5963+
"chrome-android": "114",
5964+
"edge": "114",
5965+
"electron": "25.0",
5966+
"opera": "100"
5967+
},
59265968
"esnext.map.delete-all": {},
59275969
"esnext.map.emplace": {},
59285970
"esnext.map.every": {},
@@ -6651,9 +6693,15 @@
66516693
"samsung": "9.0"
66526694
},
66536695
"web.url-search-params.size": {
6696+
"android": "113",
6697+
"chrome": "113",
6698+
"chrome-android": "113",
66546699
"deno": "1.32",
6700+
"edge": "113",
6701+
"electron": "25.0",
66556702
"firefox": "112",
66566703
"firefox-android": "112",
6657-
"node": "19.8.0"
6704+
"node": "19.8.0",
6705+
"opera": "99"
66586706
}
66596707
}

docs/compat/tests.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,11 @@ GLOBAL.tests = {
19371937
'web.timers': TIMERS,
19381938
'web.url.constructor': URL_AND_URL_SEARCH_PARAMS_SUPPORT,
19391939
'web.url.can-parse': [URL_AND_URL_SEARCH_PARAMS_SUPPORT, function () {
1940-
return URL.canParse;
1940+
try {
1941+
URL.canParse();
1942+
} catch (error) {
1943+
return URL.canParse;
1944+
}
19411945
}],
19421946
'web.url.to-json': [URL_AND_URL_SEARCH_PARAMS_SUPPORT, function () {
19431947
return URL.prototype.toJSON;

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.30.0",
2+
"version": "3.30.1",
33
"repository": {
44
"type": "git",
55
"url": "https://github.com/zloirock/core-js.git"

packages/core-js-builder/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "core-js-builder",
3-
"version": "3.30.0",
3+
"version": "3.30.1",
44
"description": "core-js builder",
55
"repository": {
66
"type": "git",
@@ -21,8 +21,8 @@
2121
"main": "index.js",
2222
"types": "index.d.ts",
2323
"dependencies": {
24-
"core-js": "3.30.0",
25-
"core-js-compat": "3.30.0",
24+
"core-js": "3.30.1",
25+
"core-js-compat": "3.30.1",
2626
"mkdirp": ">=0.5.5 <1",
2727
"webpack": ">=4.46.0 <5"
2828
},

packages/core-js-bundle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "core-js-bundle",
3-
"version": "3.30.0",
3+
"version": "3.30.1",
44
"description": "Standard library",
55
"keywords": [
66
"ES3",

packages/core-js-compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "core-js-compat",
3-
"version": "3.30.0",
3+
"version": "3.30.1",
44
"description": "core-js compat",
55
"repository": {
66
"type": "git",

packages/core-js-pure/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "core-js-pure",
3-
"version": "3.30.0",
3+
"version": "3.30.1",
44
"description": "Standard library",
55
"keywords": [
66
"ES3",

packages/core-js/internals/shared.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ var store = require('../internals/shared-store');
44
(module.exports = function (key, value) {
55
return store[key] || (store[key] = value !== undefined ? value : {});
66
})('versions', []).push({
7-
version: '3.30.0',
7+
version: '3.30.1',
88
mode: IS_PURE ? 'pure' : 'global',
99
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
10-
license: 'https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE',
10+
license: 'https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE',
1111
source: 'https://github.com/zloirock/core-js'
1212
});

packages/core-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "core-js",
3-
"version": "3.30.0",
3+
"version": "3.30.1",
44
"description": "Standard library",
55
"keywords": [
66
"ES3",

scripts/bundle-tests/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)