-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update babel monorepo to v7.0.0 #26497
Conversation
a4f4c3e
to
bbf9367
Compare
Some config updates required here for how we use the runtime |
bbf9367
to
f2762c4
Compare
f2762c4
to
d451b93
Compare
We need to pick up upgrades to everything else that depends on
So we either need to pick up upgrades to all of the See also WordPress/gutenberg#8727 |
Ah, looks like all the necessary upgrades were released in the last 24 hours! Since we pin the version and |
81091b9
to
a7241cf
Compare
Yes, we incremented version for almost all packages (all transpiled for sure) to prevent issues with Babel 7.0.0-beta.55 which introduced this split for corejs2. We had reports that it errors because we allow patch range which isn’t the best idea for betas. We pinned to .56 and will probably wait some time before we bump again. |
@gziolo rc.0 just came out :D |
It’s fun business with all those deps 😅 |
a7241cf
to
92a4ff2
Compare
92a4ff2
to
2f02099
Compare
decc934
to
de9ea42
Compare
2696ece
to
7b2826d
Compare
PR has been editedAs this PR has been edited, Renovate will stop updating it in order to not cause any conflicts or other problems. If you wish to abandon your edits and have Renovate recreate this PR then you should rename this PR and then close it. |
ffd0456
to
af3abaa
Compare
regenerator: false, | ||
useESModules: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use Babel helpers with import/export syntax by enabling useESModules
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The useESModules: true
indeed looks interesting: the Babel helpers (i.e., node_modules/@babel/runtime/helpers/esm/inherits.js
) are then imported in a ES6 module rather than CommonJS version. There is negligible impact on build size though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, given that polyfills are off, it probably doesn't matter.
I updated this PR to the stable 7.0.0 release today. ICFY diff:
|
There is one failing test, investigating. |
Funny bug with mocked But it's still partially an array: Before the Babel upgrade, code if ( files instanceof window.FileList ) {
files = [ ...files ];
} transpiled to But after the upgrade, the I pushed a patch that adds the iterable capability to the mock. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Gutenberg is on beta-56, which is the last version before rc. I guess it’s going to be fine. I didn’t find any issues when upgrading to 7.0.0 stable. |
Makes the mocked FileList object created in the test iterable and therefore a valid input to `[ ...files ]` spread operator. Before Babel 7.0.0, the bug was covered up by Babel's `toConsumableArray`, because for the mocked object, `Array.isArray` still returns true.
2954d9d
to
5feb43f
Compare
This Pull Request renovates the package group "babel monorepo".
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
dependencies
): from7.0.0-beta.55
to7.0.0-rc.1
Release Notes
babel/babel
v7.0.0-rc.1
Compare Source
Same as rc.0 but fixes the peerDep issue #8443. It's changed to just be
^7.0.0-0
v7.0.0-rc.0
Compare Source
v7.0.0-rc.0 (2018-08-09)
EDIT: This had an issue with
peerDependencies
so please userc.1
.Alright finally at the end 🙂. Shouldn't have anymore breaking changes and going to wait some time to fix bugs/regressions
v7.0.0-beta.56
Compare Source
v7.0.0-beta.56 (2018-08-03)
@babel/runtime
: should work for helpers alone and opt-into core-js if necessary.babel-upgrade
issue: babel/babel-upgrade#70💥 Breaking Change
babel-plugin-transform-regenerator
,babel-plugin-transform-runtime
,babel-runtime-corejs2
,babel-runtime
babel-core
,babel-helper-module-imports
,babel-helpers
,babel-plugin-external-helpers
,babel-plugin-transform-runtime
🚀 New Feature
babel-plugin-transform-regenerator
,babel-plugin-transform-runtime
,babel-runtime-corejs2
,babel-runtime
🐛 Bug Fix
babel-parser
,babel-plugin-transform-typescript
babel-preset-env
📝 Documentation
Committers: 5
This PR has been generated by Renovate Bot.