From b90f2f5678e104315c5ea6afb6b671010f38dbd9 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Tue, 13 Feb 2024 22:55:15 +0700 Subject: [PATCH] add an entry point for the new TC39 proposals stage - `core-js/stage/2.7` - still empty --- CHANGELOG.md | 1 + README.md | 9 +++++++++ packages/core-js/stage/2.7.js | 6 ++++++ packages/core-js/stage/2.js | 2 +- tests/entries/unit.mjs | 1 + 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 packages/core-js/stage/2.7.js diff --git a/CHANGELOG.md b/CHANGELOG.md index fe2a8b134c63..72ce2ef1fc3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - Added `/actual/` namespaces entries - Skipped adding new methods of writing to existing arrays to clarification some moments - [`Promise.try` proposal](https://github.com/tc39/proposal-promise-try) has been resurrected and moved to stage 2, [Febrary 2024 TC39 meeting](https://github.com/tc39/proposal-promise-try/issues/15) +- Added an entry point for [the new TC39 proposals stage](https://tc39.es/process-document/) - `core-js/stage/2.7` - still empty - Fixed regression in `Set.prototype.intersection` feature detection - Fixed a missed check in `Array.prototype.{ indexOf, lastIndexOf, includes }`, [#1325](https://github.com/zloirock/core-js/issues/1325), thanks [**@minseok-choe**](https://github.com/minseok-choe) - Fixed a missed check in `Array.prototype.{ reduce, reduceRight }`, [#1327](https://github.com/zloirock/core-js/issues/1327), thanks [**@minseok-choe**](https://github.com/minseok-choe) diff --git a/README.md b/README.md index 243636f791e2..d43ae7e60802 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,7 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) - [`Float16` methods](#float16-methods) - [Explicit resource management](#explicit-resource-management) - [`Symbol.metadata` for decorators metadata proposal](#symbolmetadata-for-decorators-metadata-proposal) + - [Stage 2.7 proposals](#stage-27-proposals) - [Stage 2 proposals](#stage-2-proposals) - [`AsyncIterator` helpers](#asynciterator-helpers) - [`Iterator.range`](#iteratorrange) @@ -2491,6 +2492,14 @@ core-js(-pure)/actual|full/symbol/metadata core-js(-pure)/actual|full/function/metadata ``` +#### Stage 2.7 proposals[⬆](#index) +[*CommonJS entry points:*](#commonjs-api) +``` +core-js(-pure)/stage/2.7 +``` + +*Nothing* + #### Stage 2 proposals[⬆](#index) [*CommonJS entry points:*](#commonjs-api) ``` diff --git a/packages/core-js/stage/2.7.js b/packages/core-js/stage/2.7.js new file mode 100644 index 000000000000..fd28e3f4b7e1 --- /dev/null +++ b/packages/core-js/stage/2.7.js @@ -0,0 +1,6 @@ +'use strict'; +var parent = require('./3'); + +// nothing + +module.exports = parent; diff --git a/packages/core-js/stage/2.js b/packages/core-js/stage/2.js index 675a1654ae42..1beb1ec267a7 100644 --- a/packages/core-js/stage/2.js +++ b/packages/core-js/stage/2.js @@ -1,5 +1,5 @@ 'use strict'; -var parent = require('./3'); +var parent = require('./2.7'); require('../proposals/array-is-template-object'); require('../proposals/async-iterator-helpers'); diff --git a/tests/entries/unit.mjs b/tests/entries/unit.mjs index 080f78fa2493..d7de81e70cca 100644 --- a/tests/entries/unit.mjs +++ b/tests/entries/unit.mjs @@ -978,6 +978,7 @@ for (PATH of ['core-js-pure', 'core-js']) { ok(load('stage/4')); ok(load('stage/3')); + ok(load('stage/2.7')); ok(load('stage/2')); ok(load('stage/1')); ok(load('stage/0'));