Skip to content

Commit

Permalink
3.29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Mar 12, 2023
1 parent 8682a18 commit f50b58e
Show file tree
Hide file tree
Showing 17 changed files with 109 additions and 72 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.29.1 - 2023.03.13](https://github.com/zloirock/core-js/releases/tag/v3.29.1)
- Fixed dependencies of some entries
- Fixed `ToString` conversion / built-ins nature of some accessors
- [`String.prototype.{ isWellFormed, toWellFormed }`](https://github.com/tc39/proposal-is-usv-string) marked as supported from V8 ~ Chrome 111
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.29.0
npm install --save core-js@3.29.1
// version without global namespace pollution
npm install --save core-js-pure@3.29.0
npm install --save core-js-pure@3.29.1
// bundled global version
npm install --save core-js-bundle@3.29.0
npm install --save core-js-bundle@3.29.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 @@ -28,7 +28,7 @@

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

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

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

Expand Down Expand Up @@ -7175,7 +7175,7 @@ var createIteratorConstructor = __webpack_require__(240);
var createIterResultObject = __webpack_require__(183);
var isNullOrUndefined = __webpack_require__(16);
var isObject = __webpack_require__(19);
var defineProperties = __webpack_require__(88).f;
var defineBuiltInAccessor = __webpack_require__(119);
var DESCRIPTORS = __webpack_require__(5);

var INCORRECT_RANGE = 'Incorrect Iterator.range arguments';
Expand Down Expand Up @@ -7224,7 +7224,7 @@ var $RangeIterator = createIteratorConstructor(function NumericRangeIterator(sta
start: start,
end: end,
step: step,
inclusiveEnd: inclusiveEnd,
inclusive: inclusiveEnd,
hitsEnd: hitsEnd,
currentCount: zero,
zero: zero
Expand All @@ -7243,7 +7243,7 @@ var $RangeIterator = createIteratorConstructor(function NumericRangeIterator(sta
var step = state.step;
var currentYieldingValue = start + (step * state.currentCount++);
if (currentYieldingValue === end) state.hitsEnd = true;
var inclusiveEnd = state.inclusiveEnd;
var inclusiveEnd = state.inclusive;
var endCondition;
if (end > start) {
endCondition = inclusiveEnd ? currentYieldingValue > end : currentYieldingValue >= end;
Expand All @@ -7256,25 +7256,22 @@ var $RangeIterator = createIteratorConstructor(function NumericRangeIterator(sta
} return createIterResultObject(currentYieldingValue, false);
});

var getter = function (fn) {
return { get: fn, set: function () { /* empty */ }, configurable: true, enumerable: false };
var addGetter = function (key) {
defineBuiltInAccessor($RangeIterator.prototype, key, {
get: function () {
return getInternalState(this)[key];
},
set: function () { /* empty */ },
configurable: true,
enumerable: false
});
};

if (DESCRIPTORS) {
defineProperties($RangeIterator.prototype, {
start: getter(function () {
return getInternalState(this).start;
}),
end: getter(function () {
return getInternalState(this).end;
}),
inclusive: getter(function () {
return getInternalState(this).inclusiveEnd;
}),
step: getter(function () {
return getInternalState(this).step;
})
});
addGetter('start');
addGetter('end');
addGetter('inclusive');
addGetter('step');
}

module.exports = $RangeIterator;
Expand Down Expand Up @@ -11580,7 +11577,7 @@ var isSetLike = function (it) {
// fallback old -> new set methods proposal arguments
module.exports = function (it) {
if (isSetLike(it)) return it;
if (isIterable(it)) return new Set(it);
return isIterable(it) ? new Set(it) : it;
};


Expand Down
16 changes: 14 additions & 2 deletions docs/compat/compat-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -6015,7 +6015,13 @@
"esnext.string.code-points": {},
"esnext.string.dedent": {},
"esnext.string.is-well-formed": {
"bun": "0.4.0"
"android": "111",
"bun": "0.4.0",
"chrome": "111",
"chrome-android": "111",
"edge": "111",
"electron": "24.0",
"opera": "97"
},
"esnext.string.match-all": {
"android": "80",
Expand Down Expand Up @@ -6062,7 +6068,13 @@
"samsung": "14.0"
},
"esnext.string.to-well-formed": {
"bun": "0.5.7"
"android": "111",
"bun": "0.5.7",
"chrome": "111",
"chrome-android": "111",
"edge": "111",
"electron": "24.0",
"opera": "97"
},
"esnext.symbol.async-dispose": {},
"esnext.symbol.dispose": {},
Expand Down
6 changes: 0 additions & 6 deletions docs/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1502,9 +1502,6 @@ GLOBAL.tests = {
'esnext.async-iterator.from': function () {
return AsyncIterator.from;
},
'esnext.async-iterator.indexed': function () {
return AsyncIterator.prototype.indexed;
},
'esnext.async-iterator.map': function () {
return AsyncIterator.prototype.map;
},
Expand Down Expand Up @@ -1570,9 +1567,6 @@ GLOBAL.tests = {
'esnext.iterator.from': function () {
return Iterator.from;
},
'esnext.iterator.indexed': function () {
return Iterator.prototype.indexed;
},
'esnext.iterator.map': function () {
return Iterator.prototype.map;
},
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.29.0",
"version": "3.29.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.29.0",
"version": "3.29.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.29.0",
"core-js-compat": "3.29.0",
"core-js": "3.29.1",
"core-js-compat": "3.29.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.29.0",
"version": "3.29.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.29.0",
"version": "3.29.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.29.0",
"version": "3.29.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.29.0',
version: '3.29.1',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
license: 'https://github.com/zloirock/core-js/blob/v3.29.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.29.0",
"version": "3.29.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 f50b58e

Please sign in to comment.