-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
babel-runtime needs to update to regenerator 0.8.28 #1685
Comments
A breaking version of |
To be fair, adding a new method is hardly a breaking change though. It rather looks like babel should always depend on a fixed version of regenerator, so that you have more control over the update process (although, that's not ideal either... dunno, maybe babel is just in an unfortunate position because of its structure). |
My build is failing with |
@UltCombo yes, that is the effect. |
@fkling is right. This is not a breaking change from Regenerator's perspective, only from the perspective of a consumer using an out of date version of the runtime. What can we do to make sure the runtime and the compiler stay on the same version in Babel? |
Depending on a fixed version of Regenerator seems like a reasonable strategy if you can't guarantee that the parts of it you're using independently remain consistent with each other. |
Yes, I believe it would fix the issue if Babel pins down the Regenerator version and consumers pin down their babel-runtime dependency version. |
If one of the babel guy run |
@sebv The regenerator runtime has to be processed with the |
@sebmck are you publishing new packages? |
@sebv Yes. I haven't published a new version in over 2 weeks and need to verify that none of the changes made in the interim don't break everything. Give me time. |
Ok cool thx! |
Just published 5.5.0, hopefully it doesn't break the world. |
Seem to fixed it, might be a small regression, getting this:
|
How are you running |
using isparta: https://github.com/douglasduteil/isparta |
That's due to changing behaviour in 5.0.0 that will compile files in |
@sebmck Thank you, that was quick! |
@sebmck wouldn't it be better to depend on an exact version of Regenerator? Right now, babel-core allows seamlessly upgrading regenerator when a new patch/minor version is published, but babel-runtime will not update automatically. If this isn't changed, this issue is fated to repeat itself. |
@UltCombo Not possible and defeats the purpose of the runtime:
|
I guess, it's just extremely annoying to have to manually bump the version whenever there's an update. |
Part of my build process is updating all dependencies, the same dependencies which a consumer would install with a clean |
If you'd really like to avoid using an exact version, it would perhaps be possible to set up a bot to watch the npm registry and build and publish the babel-runtime when a new regenerator version is published. The problem is that the babel-runtime version would no longer match babel-core's, and this doesn't warrant 100% uptime either. |
How about declaring |
That would require an entire install of |
I could split the Regenerator runtime out into its own NPM package if that
|
I guess I've been thinking about this more than I should, anyway, I've opened #1701 to sum up my thoughts. Can we relocate this discussion to there? |
regenerator
0.8.28
breaks compatibility with babel because it's added a new methodruntime.awrap
which is not present in babel-runtime. A new version of babel-runtime needs to be published or update the dependency in babel-core to regenerator<0.8.28
.The text was updated successfully, but these errors were encountered: