New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow v.0.84.0 explicit inexact objects #2876
Comments
Thanks for the headsup @jbrown215! Do you have exact date in mind? When @marudor do you have some secret scripts to do this kind of changes? We need to bump the version for practically every libdef. I think we are a bit of in a hurry with this. |
I've noticed a few bugs in the tools The good news is that this change is not breaking-- we are still parsing anything with just curly braces Edit: bug blocking flow-upgrade benjamn/ast-types#290 |
Ok, that's good to know! 2 weeks should be enough for us to migrate the libdefs to new format. Eaxct by default change is great BTW! :) |
Thanks for the help here! it would be useless if it broke all of the types our community has made until now |
We just published the codemod in flow-upgrade v1.1.0. You'll want to run The last set of codemods we released were for 0.54.0, which changed the way react types work in Flow. If you want to also run those, make the first version lower then 0.54.0. We're not publicizing it much yet because babel support hasn't landed. Let me know if you run into any issues and I'll fix them as quickly as I can! |
@jbrown215 Turns out latest release is not stable on our Travis: #2916 We might need to disable checks for 0.84.0, which means that we can't migrate libdefs to 0.84 either: We can't test with 0.84.0 at the moment. |
No worries. A lot of things have to go right on our side before we're ready to parse objects as exact by default. You'll likely have a few releases to get this done. As soon as the change lands in master I'll update you here if this issue is still open. |
Ok, good! And thanks for keeping us updated! We started to skip 0.84.0 to get tests succeed again. Looks like it worked. |
An idea that came to my mind is that it could make sense to turn all the libdefs to be exact by default regardless how they are defined now. I'm pretty sure that in most cases it would be more accurate and inexact definition is just laziness or ignorance. The issue might be that some libdefs might not have all the props defined which will cause errors. |
Closed by #3467 |
We will be releasing flow 0.84.0 this week, which includes the
...
syntax for inexact objects (for more info, see the blog post). AFAIK, flow-typed doesn't require babel support to land before we can start upgrading the syntax here. I'm aiming to have theflow-upgrade
command ready end of week to help you guys move through this as quickly as possible.I'm opening this issue as a request for help, as I am not able to see this through myself. I imagine a script can be written with the following logic:
The text was updated successfully, but these errors were encountered: