Uh oh!
There was an error while loading. Please reload this page.
Add optional chaining and nullish coalescing operators support - #7438
Conversation
We should wait until babel/babel#10269 lands and is released. |
mrmckeb
commented
Jul 28, 2019
Agreed @existentialism. It's also important to note that TypeScript users will need to wait until TypeScript 3.7 lands, as TypeScript 3.6 is feature-complete. Which is sad, as I want to use it now - but great that the TS team is on top of this. |
yasso1am
commented
Jul 28, 2019
How does one go about updating a project created with CRA2 with typescript to include the optional chaining and nullish operator? |
mrmckeb
commented
Jul 29, 2019
@yasso1am, please see the comment right before yours. We're waiting on this still from the TS team. |
montogeek
commented
Sep 3, 2019
@mrmckeb TS team progress is a blocker to merge and release this change? |
montogeek
commented
Sep 3, 2019
@renatoagds Could you please fix merge conflict issues to keep this PR ready to merge? :) |
renatoagds
commented
Sep 5, 2019
@montogeek as soon babel/babel#10269 get released I'll update here. |
leepowelldev
commented
Sep 6, 2019
Keen to see this land |
eladmotola
commented
Sep 6, 2019
@renatoagds babel 7.6.0 came out an hour ago with this change |
a-tokyo
commented
Sep 9, 2019
Excited for this!! 🎉 |
19d375f to
db0ea68Comparemlshv
commented
Sep 18, 2019
I think it is now ready to be shipped |
ianschmitz
commented
Sep 19, 2019
We will ship once TypeScript includes support. |
montogeek
commented
Sep 19, 2019
This shouldn't wait for TS support, yes, CRA supports TS, but it shouldn't be a blocker for the JavaScript ecosystem. Please release it. |
topaxi
commented
Sep 19, 2019
@montogeek I kinda agree, but there might arise issues where standalone JS files work fine, but once a TS file imports a JS file with unsupported syntax things might go wrong. |
mAAdhaTTah
commented
Sep 19, 2019
Does TS actually import / parse .js files? I thought it just used .d.ts files next to them? |
topaxi
commented
Sep 19, 2019
Yes it does, it can infer some basic shapes of classes/objects and even parse and use jsdoc type annotations. |
This is when I wish people lock the thread. Everyone from the CRA knows what to do about this and when. And from now on, Only people complaining or pointing on obvious things (like it is ready from Babel, just read the thread please) will creating unnecessary notifications. |
iansu
commented
Oct 10, 2019
Even though the TypeScript 3.7 beta is now available this still won't work properly. |
iansu
commented
Oct 24, 2019
We are now waiting on Prettier support, which is tracked here: |
ianschmitz
commented
Nov 9, 2019
Thanks @renatoagds! I'll add tests in a follow-up PR. |
Since
optional-chainingandnullish coalescinghas been moved to Stage 3, we're now able to add them to CRA.Closes#7431