babel / proposals

✍️ Tracking the status of Babel's implementation of TC39 proposals (may be out of date)
https://github.com/tc39/proposals
433 stars 39 forks source link

January 2019 #54

Open hzoo opened 5 years ago

hzoo commented 5 years ago

https://github.com/tc39/agendas/blob/master/2019/01.md

jridgewell commented 5 years ago

"Treat IterationStatements uniformly in Annex B.3.5" accepted

jridgewell commented 5 years ago

"Add "name" property for classes as part of ClassDefinitionEvaluation" accepted

jridgewell commented 5 years ago

"%TypedArray%.prototype.sort stability" accepted

jridgewell commented 5 years ago

Object.fromEntries to stage 4

jridgewell commented 5 years ago

Well-formed JSON.stringify to stage 4

jridgewell commented 5 years ago

String.prototype.{trimStart,trimEnd} to stage 4

jridgewell commented 5 years ago

Array.prototype.{flat,flatMap} to stage 4

jridgewell commented 5 years ago

Promise.allSettled to Stage 2

jridgewell commented 5 years ago

Richer keys to Stage 2

jridgewell commented 5 years ago

Freezing prototypes to stage 1

jridgewell commented 5 years ago

new.initialize to stage 1

jridgewell commented 5 years ago

Private symbols did not achieve consensus. The current class fields proposal remains unchanged.

jridgewell commented 5 years ago

Simplifying Set constructor will be pursued as a normative PR.

chicoxyzzy commented 5 years ago

@jridgewell

Richer keys to Stage 2

This proposal is still in list of stage 1 proposals, though there is new collection normalisation proposal which is on stage 2. Where did it come from? Was it separated from Richer Keys proposal?

jridgewell commented 5 years ago

They were both in 1 repo when it was presented. Composite keys was not discussed at the meeting. Rekey reached stage 2

zachhardesty7 commented 5 years ago

Not sure exactly where to ask this, but is there any plan for implementing Object.fromEntries() in Babel? It's in Stage 4 and I can't see any mention of it anywhere in regards to transforming.

nicolo-ribaudo commented 5 years ago

It's implemented in core-js@3, and will be added to Babel by https://github.com/babel/babel/pull/7646

DM2489 commented 5 years ago

I'd also like to request information on when array.prototype.flat will be added to Babel?

TrySound commented 5 years ago

@DM2489 Available in core-js 3

DM2489 commented 5 years ago

Okay, I'm looking to move from @babel\pollyfill to core-js 3, but there is not dist/pollyfill.js file in there for me to use (I need to use the pollyfills in the browser) :(

Edit - for anyone that comes aross this and needs the bundled version of core-js, use core-js-bundle instead.