Skip to content

Commit

Permalink
3.33.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 20, 2023
1 parent d47cb73 commit adc588c
Show file tree
Hide file tree
Showing 20 changed files with 322 additions and 167 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.33.1 - 2023.10.20](https://github.com/zloirock/core-js/releases/tag/v3.33.1)
- Added one more workaround of possible error with `Symbol` polyfill on global object, [#1289](https://github.com/zloirock/core-js/issues/1289#issuecomment-1768411444)
- Directly specified `type: commonjs` in `package.json` of all packages to avoid potential breakage in future Node versions, see [this issue](https://github.com/nodejs/TSC/issues/1445)
- Prevented potential issue with lack of some dependencies after automatic optimization polyfills of some methods in the pure version
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
### Installation:[](#index)
```sh
// global version
npm install --save core-js@3.33.0
npm install --save core-js@3.33.1
// version without global namespace pollution
npm install --save core-js-pure@3.33.0
npm install --save core-js-pure@3.33.1
// bundled global version
npm install --save core-js-bundle@3.33.0
npm install --save core-js-bundle@3.33.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.33.0/index.js'; // <- at the top of your entry point
import 'https://deno.land/x/corejs@v3.33.1/index.js'; // <- at the top of your entry point

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

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

Expand Down Expand Up @@ -2990,11 +2990,11 @@ var uncurryThis = __webpack_require__(13);
var aCallable = __webpack_require__(30);
var toIndexedObject = __webpack_require__(11);
var arrayFromConstructorAndList = __webpack_require__(112);
var getVirtual = __webpack_require__(113);
var getBuiltInPrototypeMethod = __webpack_require__(113);
var addToUnscopables = __webpack_require__(101);

var $Array = Array;
var sort = uncurryThis(getVirtual('Array').sort);
var sort = uncurryThis(getBuiltInPrototypeMethod('Array', 'sort'));

// `Array.prototype.toSorted` method
// https://tc39.es/ecma262/#sec-array.prototype.tosorted
Expand Down Expand Up @@ -3035,8 +3035,8 @@ module.exports = function (Constructor, list) {

var global = __webpack_require__(3);

module.exports = function (CONSTRUCTOR) {
return global[CONSTRUCTOR].prototype;
module.exports = function (CONSTRUCTOR, METHOD) {
return global[CONSTRUCTOR].prototype[METHOD];
};


Expand Down Expand Up @@ -5483,14 +5483,14 @@ var getIterator = __webpack_require__(96);
var getIteratorDirect = __webpack_require__(186);
var getIteratorMethod = __webpack_require__(97);
var getMethod = __webpack_require__(29);
var getVirtual = __webpack_require__(113);
var getBuiltIn = __webpack_require__(23);
var getBuiltInPrototypeMethod = __webpack_require__(113);
var wellKnownSymbol = __webpack_require__(33);
var AsyncFromSyncIterator = __webpack_require__(182);
var toArray = __webpack_require__(187).toArray;

var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
var arrayIterator = uncurryThis(getVirtual('Array').values);
var arrayIterator = uncurryThis(getBuiltInPrototypeMethod('Array', 'values'));
var arrayIteratorNext = uncurryThis(arrayIterator([]).next);

var safeArrayIterator = function () {
Expand Down Expand Up @@ -9109,7 +9109,7 @@ var uncurryThis = __webpack_require__(13);
var getUint8 = uncurryThis(DataView.prototype.getUint8);

// `DataView.prototype.getUint8Clamped` method
// https://github.com/tc39/proposal-dataview-get-set-uint8c
// https://github.com/tc39/proposal-dataview-get-set-uint8clamped
$({ target: 'DataView', proto: true, forced: true }, {
getUint8Clamped: function getUint8Clamped(byteOffset) {
return getUint8(this, byteOffset);
Expand Down Expand Up @@ -9228,7 +9228,7 @@ var $TypeError = TypeError;
var setUint8 = uncurryThis(DataView.prototype.setUint8);

// `DataView.prototype.setUint8Clamped` method
// https://github.com/tc39/proposal-dataview-get-set-uint8c
// https://github.com/tc39/proposal-dataview-get-set-uint8clamped
$({ target: 'DataView', proto: true, forced: true }, {
setUint8Clamped: function setUint8Clamped(byteOffset, value) {
if (classof(this) !== 'DataView') throw new $TypeError('Incorrect receiver');
Expand Down Expand Up @@ -14003,7 +14003,6 @@ defineWellKnownSymbol('matcher');

"use strict";

// TODO: Remove from `core-js@4`
var defineWellKnownSymbol = __webpack_require__(414);

// `Symbol.metadata` well-known symbol
Expand All @@ -14017,6 +14016,7 @@ defineWellKnownSymbol('metadata');

"use strict";

// TODO: Remove from `core-js@4`
var defineWellKnownSymbol = __webpack_require__(414);

// `Symbol.metadataKey` well-known symbol
Expand Down Expand Up @@ -14646,16 +14646,15 @@ for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {
var DESCRIPTORS = __webpack_require__(5);
var fails = __webpack_require__(6);
var anObject = __webpack_require__(46);
var create = __webpack_require__(87);
var normalizeStringArgument = __webpack_require__(75);

var nativeErrorToString = Error.prototype.toString;

var INCORRECT_TO_STRING = fails(function () {
if (DESCRIPTORS) {
// Chrome 32- incorrectly call accessor
// eslint-disable-next-line es/no-object-defineproperty -- safe
var object = create(Object.defineProperty({}, 'name', { get: function () {
// eslint-disable-next-line es/no-object-create, es/no-object-defineproperty -- safe
var object = Object.create(Object.defineProperty({}, 'name', { get: function () {
return this === object;
} }));
if (nativeErrorToString.call(object) !== 'true') return true;
Expand Down
25 changes: 25 additions & 0 deletions docs/compat/compat-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "9.0",
"samsung": "5.0"
Expand Down Expand Up @@ -1808,6 +1809,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "10.0",
"samsung": "5.0"
Expand All @@ -1829,6 +1831,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "10.0",
"samsung": "5.0"
Expand Down Expand Up @@ -3922,6 +3925,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "10.0",
"samsung": "5.0"
Expand All @@ -3943,6 +3947,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "10.0",
"samsung": "5.0"
Expand Down Expand Up @@ -4066,6 +4071,8 @@
"deno": "1.32",
"edge": "111",
"electron": "24.0",
"firefox": "119",
"firefox-android": "119",
"ios": "16.4",
"node": "20.0",
"oculus": "27.0",
Expand Down Expand Up @@ -4375,6 +4382,8 @@
"deno": "1.32",
"edge": "111",
"electron": "24.0",
"firefox": "119",
"firefox-android": "119",
"ios": "16.4",
"node": "20.0",
"oculus": "27.0",
Expand Down Expand Up @@ -5674,6 +5683,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "10.0",
"samsung": "5.0"
Expand All @@ -5695,6 +5705,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "10.0",
"samsung": "5.0"
Expand All @@ -5716,6 +5727,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "10.0",
"samsung": "5.0"
Expand All @@ -5737,6 +5749,7 @@
"opera-android": "38",
"opera_mobile": "38",
"quest": "3.0",
"react-native": "0.73",
"rhino": "1.7.13",
"safari": "10.0",
"samsung": "5.0"
Expand Down Expand Up @@ -5932,6 +5945,7 @@
"deno": "1.33",
"edge": "114",
"electron": "25.0",
"node": "21.0",
"oculus": "28.0",
"opera": "100",
"opera-android": "76",
Expand All @@ -5946,6 +5960,7 @@
"deno": "1.33",
"edge": "114",
"electron": "25.0",
"node": "21.0",
"oculus": "28.0",
"opera": "100",
"opera-android": "76",
Expand All @@ -5960,6 +5975,7 @@
"deno": "1.33",
"edge": "114",
"electron": "25.0",
"node": "21.0",
"oculus": "28.0",
"opera": "100",
"opera-android": "76",
Expand Down Expand Up @@ -6045,6 +6061,7 @@
"deno": "1.33",
"edge": "114",
"electron": "25.0",
"node": "21.0",
"oculus": "28.0",
"opera": "100",
"opera-android": "76",
Expand All @@ -6059,6 +6076,7 @@
"deno": "1.33",
"edge": "114",
"electron": "25.0",
"node": "21.0",
"oculus": "28.0",
"opera": "100",
"opera-android": "76",
Expand All @@ -6073,6 +6091,7 @@
"deno": "1.33",
"edge": "114",
"electron": "25.0",
"node": "21.0",
"oculus": "28.0",
"opera": "100",
"opera-android": "76",
Expand All @@ -6096,6 +6115,7 @@
"electron": "27.0",
"firefox": "119",
"firefox-android": "119",
"node": "21.0",
"opera": "103"
},
"esnext.map.includes": {},
Expand Down Expand Up @@ -6160,6 +6180,7 @@
"electron": "27.0",
"firefox": "119",
"firefox-android": "119",
"node": "21.0",
"opera": "103"
},
"esnext.observable": {},
Expand Down Expand Up @@ -6263,6 +6284,8 @@
"deno": "1.32",
"edge": "111",
"electron": "24.0",
"firefox": "119",
"firefox-android": "119",
"ios": "16.4",
"node": "20.0",
"oculus": "27.0",
Expand Down Expand Up @@ -6325,6 +6348,8 @@
"deno": "1.32",
"edge": "111",
"electron": "24.0",
"firefox": "119",
"firefox-android": "119",
"ios": "16.4",
"node": "20.0",
"oculus": "27.0",
Expand Down
4 changes: 2 additions & 2 deletions docs/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1818,8 +1818,8 @@ GLOBAL.tests = {
'esnext.symbol.matcher': function () {
return Symbol.matcher;
},
'esnext.symbol.metadata-key': function () {
return Symbol.metadataKey;
'esnext.symbol.metadata': function () {
return Symbol.metadata;
},
'esnext.symbol.observable': function () {
return Symbol.observable;
Expand Down
Loading

0 comments on commit adc588c

Please sign in to comment.