Skip to content

Commit

Permalink
add an entry point for the new TC39 proposals stage - `core-js/stage/…
Browse files Browse the repository at this point in the history
…2.7` - still empty
  • Loading branch information
zloirock committed Feb 13, 2024
1 parent 874d23a commit b90f2f5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
```
Expand Down
6 changes: 6 additions & 0 deletions packages/core-js/stage/2.7.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';
var parent = require('./3');

// nothing

module.exports = parent;
2 changes: 1 addition & 1 deletion packages/core-js/stage/2.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
1 change: 1 addition & 0 deletions tests/entries/unit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit b90f2f5

Please sign in to comment.