Skip to content

Commit

Permalink
3.30.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 13, 2023
1 parent 8648ddc commit 46e2a5c
Show file tree
Hide file tree
Showing 16 changed files with 150 additions and 46 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.30.1 - 2023.04.14](https://github.com/zloirock/core-js/releases/tag/v3.30.1)
- Added a fix for a NodeJS 19.9.0 `URL.canParse` [bug](https://github.com/nodejs/node/issues/47505)
- Compat data improvements:
- [`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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
### Installation:[](#index)
```sh
// global version
npm install --save core-js@3.30.0
npm install --save core-js@3.30.1
// version without global namespace pollution
npm install --save core-js-pure@3.30.0
npm install --save core-js-pure@3.30.1
// bundled global version
npm install --save core-js-bundle@3.30.0
npm install --save core-js-bundle@3.30.1
```

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.30.0/index.js'; // <- at the top of your entry point
import 'https://deno.land/x/corejs@v3.30.1/index.js'; // <- at the top of your entry point

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

Expand Down
61 changes: 55 additions & 6 deletions deno/corejs/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* core-js 3.30.0
* core-js 3.30.1
* © 2014-2023 Denis Pushkarev (zloirock.ru)
* license: https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE
* license: https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE
* source: https://github.com/zloirock/core-js
*/
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -279,7 +279,7 @@ __webpack_require__(435);
__webpack_require__(440);
__webpack_require__(441);
__webpack_require__(442);
module.exports = __webpack_require__(443);
module.exports = __webpack_require__(444);


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

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

var $ = __webpack_require__(2);
var getBuiltIn = __webpack_require__(23);
var fails = __webpack_require__(6);
var validateArgumentsLength = __webpack_require__(131);
var toString = __webpack_require__(76);
var USE_NATIVE_URL = __webpack_require__(443);

var URL = getBuiltIn('URL');

// https://github.com/nodejs/node/issues/47505
var THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function () {
URL.canParse();
});

// `URL.canParse` method
// https://url.spec.whatwg.org/#dom-url-canparse
$({ target: 'URL', stat: true }, {
$({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {
canParse: function canParse(url) {
var length = validateArgumentsLength(arguments.length, 1);
var urlString = toString(url);
Expand All @@ -14347,6 +14354,48 @@ $({ target: 'URL', stat: true }, {
/* 443 */
/***/ (function(module, exports, __webpack_require__) {

var fails = __webpack_require__(6);
var wellKnownSymbol = __webpack_require__(33);
var DESCRIPTORS = __webpack_require__(5);
var IS_PURE = __webpack_require__(35);

var ITERATOR = wellKnownSymbol('iterator');

module.exports = !fails(function () {
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
var url = new URL('b?a=1&b=2&c=3', 'http://a');
var searchParams = url.searchParams;
var result = '';
url.pathname = 'c%20d';
searchParams.forEach(function (value, key) {
searchParams['delete']('b');
result += key + value;
});
return (IS_PURE && !url.toJSON)
|| (!searchParams.size && (IS_PURE || !DESCRIPTORS))
|| !searchParams.sort
|| url.href !== 'http://a/c%20d?a=1&c=3'
|| searchParams.get('c') !== '3'
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|| !searchParams[ITERATOR]
// throws in Edge
|| new URL('https://a@b').username !== 'a'
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
// not punycoded in Edge
|| new URL('http://тест').host !== 'xn--e1aybc'
// not escaped in Chrome 62-
|| new URL('http://a#б').hash !== '#%D0%B1'
// fails in Chrome 66-
|| result !== 'a1c3'
// throws in Safari
|| new URL('http://x', undefined).host !== 'x';
});


/***/ }),
/* 444 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var DESCRIPTORS = __webpack_require__(5);
Expand Down
62 changes: 55 additions & 7 deletions docs/compat/compat-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5851,9 +5851,30 @@
"safari": "16.0",
"samsung": "21.0"
},
"esnext.array-buffer.detached": {},
"esnext.array-buffer.transfer": {},
"esnext.array-buffer.transfer-to-fixed-length": {},
"esnext.array-buffer.detached": {
"android": "114",
"chrome": "114",
"chrome-android": "114",
"edge": "114",
"electron": "25.0",
"opera": "100"
},
"esnext.array-buffer.transfer": {
"android": "114",
"chrome": "114",
"chrome-android": "114",
"edge": "114",
"electron": "25.0",
"opera": "100"
},
"esnext.array-buffer.transfer-to-fixed-length": {
"android": "114",
"chrome": "114",
"chrome-android": "114",
"edge": "114",
"electron": "25.0",
"opera": "100"
},
"esnext.async-disposable-stack.constructor": {},
"esnext.async-iterator.constructor": {},
"esnext.async-iterator.as-indexed-pairs": {},
Expand Down Expand Up @@ -5920,9 +5941,30 @@
"esnext.iterator.take": {},
"esnext.iterator.to-array": {},
"esnext.iterator.to-async": {},
"esnext.json.is-raw-json": {},
"esnext.json.parse": {},
"esnext.json.raw-json": {},
"esnext.json.is-raw-json": {
"android": "114",
"chrome": "114",
"chrome-android": "114",
"edge": "114",
"electron": "25.0",
"opera": "100"
},
"esnext.json.parse": {
"android": "114",
"chrome": "114",
"chrome-android": "114",
"edge": "114",
"electron": "25.0",
"opera": "100"
},
"esnext.json.raw-json": {
"android": "114",
"chrome": "114",
"chrome-android": "114",
"edge": "114",
"electron": "25.0",
"opera": "100"
},
"esnext.map.delete-all": {},
"esnext.map.emplace": {},
"esnext.map.every": {},
Expand Down Expand Up @@ -6651,9 +6693,15 @@
"samsung": "9.0"
},
"web.url-search-params.size": {
"android": "113",
"chrome": "113",
"chrome-android": "113",
"deno": "1.32",
"edge": "113",
"electron": "25.0",
"firefox": "112",
"firefox-android": "112",
"node": "19.8.0"
"node": "19.8.0",
"opera": "99"
}
}
6 changes: 5 additions & 1 deletion docs/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,11 @@ GLOBAL.tests = {
'web.timers': TIMERS,
'web.url.constructor': URL_AND_URL_SEARCH_PARAMS_SUPPORT,
'web.url.can-parse': [URL_AND_URL_SEARCH_PARAMS_SUPPORT, function () {
return URL.canParse;
try {
URL.canParse();
} catch (error) {
return URL.canParse;
}
}],
'web.url.to-json': [URL_AND_URL_SEARCH_PARAMS_SUPPORT, function () {
return URL.prototype.toJSON;
Expand Down
24 changes: 12 additions & 12 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.30.0",
"version": "3.30.1",
"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.30.0",
"version": "3.30.1",
"description": "core-js builder",
"repository": {
"type": "git",
Expand All @@ -21,8 +21,8 @@
"main": "index.js",
"types": "index.d.ts",
"dependencies": {
"core-js": "3.30.0",
"core-js-compat": "3.30.0",
"core-js": "3.30.1",
"core-js-compat": "3.30.1",
"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,6 +1,6 @@
{
"name": "core-js-bundle",
"version": "3.30.0",
"version": "3.30.1",
"description": "Standard library",
"keywords": [
"ES3",
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,6 +1,6 @@
{
"name": "core-js-compat",
"version": "3.30.0",
"version": "3.30.1",
"description": "core-js compat",
"repository": {
"type": "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,6 +1,6 @@
{
"name": "core-js-pure",
"version": "3.30.0",
"version": "3.30.1",
"description": "Standard library",
"keywords": [
"ES3",
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.30.0',
version: '3.30.1',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE',
license: 'https://github.com/zloirock/core-js/blob/v3.30.1/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,6 +1,6 @@
{
"name": "core-js",
"version": "3.30.0",
"version": "3.30.1",
"description": "Standard library",
"keywords": [
"ES3",
Expand Down
6 changes: 3 additions & 3 deletions scripts/bundle-tests/package-lock.json

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

0 comments on commit 46e2a5c

Please sign in to comment.