core-js 3.11.3 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/features/index.js +2 -0
- package/features/symbol/index.js +3 -0
- package/features/symbol/matcher.js +4 -0
- package/features/symbol/metadata.js +4 -0
- package/features/symbol/pattern-match.js +1 -0
- package/internals/engine-v8-version.js +1 -1
- package/internals/native-symbol.js +3 -4
- package/internals/shared.js +1 -1
- package/modules/esnext.symbol.matcher.js +5 -0
- package/modules/esnext.symbol.metadata.js +5 -0
- package/modules/esnext.symbol.pattern-match.js +1 -0
- package/package.json +2 -2
- package/proposals/decorators.js +2 -0
- package/proposals/pattern-matching.js +3 -0
- package/stage/2.js +1 -0
package/features/index.js
CHANGED
|
@@ -326,6 +326,8 @@ require('../modules/esnext.string.match-all');
|
|
|
326
326
|
require('../modules/esnext.string.replace-all');
|
|
327
327
|
require('../modules/esnext.symbol.async-dispose');
|
|
328
328
|
require('../modules/esnext.symbol.dispose');
|
|
329
|
+
require('../modules/esnext.symbol.matcher');
|
|
330
|
+
require('../modules/esnext.symbol.metadata');
|
|
329
331
|
require('../modules/esnext.symbol.observable');
|
|
330
332
|
require('../modules/esnext.symbol.pattern-match');
|
|
331
333
|
require('../modules/esnext.symbol.replace-all');
|
package/features/symbol/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
var parent = require('../../es/symbol');
|
|
2
2
|
require('../../modules/esnext.symbol.async-dispose');
|
|
3
3
|
require('../../modules/esnext.symbol.dispose');
|
|
4
|
+
require('../../modules/esnext.symbol.matcher');
|
|
5
|
+
require('../../modules/esnext.symbol.metadata');
|
|
4
6
|
require('../../modules/esnext.symbol.observable');
|
|
7
|
+
// TODO: Remove from `core-js@4`
|
|
5
8
|
require('../../modules/esnext.symbol.pattern-match');
|
|
6
9
|
// TODO: Remove from `core-js@4`
|
|
7
10
|
require('../../modules/esnext.symbol.replace-all');
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
2
2
|
var V8_VERSION = require('../internals/engine-v8-version');
|
|
3
3
|
var fails = require('../internals/fails');
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
6
6
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
7
|
-
|
|
8
|
-
return !Symbol.sham &&
|
|
7
|
+
return !String(Symbol()) ||
|
|
9
8
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
10
9
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
11
|
-
|
|
10
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
12
11
|
});
|
package/internals/shared.js
CHANGED
|
@@ -4,7 +4,7 @@ var store = require('../internals/shared-store');
|
|
|
4
4
|
(module.exports = function (key, value) {
|
|
5
5
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
6
6
|
})('versions', []).push({
|
|
7
|
-
version: '3.
|
|
7
|
+
version: '3.12.0',
|
|
8
8
|
mode: IS_PURE ? 'pure' : 'global',
|
|
9
9
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
10
10
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js",
|
|
3
3
|
"description": "Standard library",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.12.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/zloirock/core-js.git",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"scripts": {
|
|
56
56
|
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1aadb7b20d500abb53b6d721b75974571dd54b26"
|
|
59
59
|
}
|
package/stage/2.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require('../proposals/accessible-object-hasownproperty');
|
|
2
2
|
require('../proposals/array-find-from-last');
|
|
3
3
|
require('../proposals/array-is-template-object');
|
|
4
|
+
require('../proposals/decorators');
|
|
4
5
|
require('../proposals/iterator-helpers');
|
|
5
6
|
require('../proposals/map-upsert');
|
|
6
7
|
require('../proposals/set-methods');
|