#58623 closed task (blessed) (fixed)
Update npm packages to their latest versions for 6.3
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.3 | Priority: | normal |
| Severity: | normal | Version: | 6.3 |
| Component: | Editor | Keywords: | gutenberg-merge add-to-field-guide dev-reviewed |
| Focuses: | Cc: |
Description
This ticket tracks updates to @wordpress npm packages pre-6.3 beta 1.
Change History (48)
This ticket was mentioned in PR #4698 on WordPress/wordpress-develop by @isabel_brison.
2 years ago
#1
- Keywords has-patch added
This ticket was mentioned in PR #4699 on WordPress/wordpress-develop by @isabel_brison.
2 years ago
#2
Trac ticket: https://core.trac.wordpress.org/ticket/58623
Alternative to #4698. Updates the @wordpress npm packages without updating browserslist, to avoid the errors from the other PR.
@isabel_brison commented on PR #4699:
2 years ago
#3
PHP unit tests are failing because #4624 hasn't been committed yet.
I'm running into an issue that seems to be related to the framer-motion dependency of @wordpress/components: both the post and site editor crash when a popover is opened. Not entirely sure why this is happening yet.
@youknowriad commented on PR #4699:
2 years ago
#4
Can we instead of avoiding to update browser list, remove that jsvalidation? Why are we validating built/ignored files anyway, maybe it's just a matter of excluding that js folder from some validation command or else, updating the validation rules to be inline with the latest supported browsers.
@spacedmonkey commented on PR #4698:
2 years ago
#5
@tellthemachines This PR will be blocked by https://github.com/WordPress/wordpress-develop/pull/4152. Becasue of upstream changes. Please review this PR, I will commit and we can continue.
joemcgill commented on PR #4699:
2 years ago
#7
Why are we validating built/ignored files anyway...
@youknowriad I was just asking myself this same question when I came across your comment here. From what I can tell this old validation process has become more of a hinderance than a help to our process over the last few releases. Now that it's no longer a maintained library, it may be time to eliminate it completely. Would appreciate you weighing in on the related conversation in Slack.
@spacedmonkey commented on PR #4699:
2 years ago
#8
It seems like is not in this change. https://github.com/WordPress/gutenberg/pull/51866
It is needed now https://github.com/WordPress/wordpress-develop/commit/d8409a205a40a9c5a69d668a9aa2aa3123f4c3e5 is core.
@ramonopoly commented on PR #4699:
2 years ago
#9
Sync scripts have been updated and committed over at: https://github.com/WordPress/wordpress-develop/pull/4699
@ramonopoly commented on PR #4699:
2 years ago
#10
It seems like is not in this change. https://github.com/WordPress/gutenberg/pull/51866
As far as I know, that PR is marked for backporting to the 16.2RC, which will get backported to core after these packages.
@ramonopoly commented on PR #4699:
2 years ago
#11
Not sure if it's relevant, but if the sync script is blocked by the deprecated nux package, @ockham says:
I guess one workaround -- to unblock the sync script -- would be to add the wp-6.3 dist tag to the latest existing @wordpress/nux package; but I'm not sure if that's possible for a deprecated npm 🤔
Otherwise, I guess we'll have to remove the dependency before running the sync script, and then add it back afterwards
#12
@
2 years ago
The changes for the @wordpress/block-serialization-default-parser packages include splitting the block parser PHP classes in to separate files in order to follow the WP coding standards and (at a future date) allow for the use of an auto-loader, see #57832.
In order to maintain the history of the relocated classes, an svn copy will need to be done so @isabel_brison and I are coordinating to do that package on a separate commit.
@isabel_brison commented on PR #4699:
2 years ago
#14
Not sure if it's relevant, but if the sync script is blocked by the deprecated nux package, @ockham says:
The problem isn't the nux package (or that might be _a_ problem, but it's not the main one). It's that some packages were published last week and the versions don't seem to have been updated on trunk, so the version bump from the publishing yesterday is actually a lower version than last weeks for some packages. Afaict the sync task picks up the highest version from npm, so it's picking up the wrong versions for a bunch of packages.
@isabel_brison commented on PR #4699:
2 years ago
#15
Can we instead of avoiding to update browser list, remove that jsvalidation?
I'm fine with doing that, but unless we have any volunteers to get it done in the next few hours, let's leave it until after Beta 1. The priority now is updating the npm packages.
@ramonopoly commented on PR #4699:
2 years ago
#17
I've been smoke testing GB 16.1 features and bugfixes.
Things are looking stable! 🙇
I guess we need to commit a few backports to get the unit tests passing (?)
#18
@
2 years ago
- Type changed from enhancement to task (blessed)
Converting to a task as this can ship after beta 1 is released.
#19
follow-up:
↓ 37
@
2 years ago
- Owner set to Bernhard Reiter
- Resolution set to fixed
- Status changed from new to closed
In 56065:
@Bernhard Reiter commented on PR #4699:
2 years ago
#20
Committed in https://core.trac.wordpress.org/changeset/56065.
This ticket was mentioned in PR #4722 on WordPress/wordpress-develop by @Bernhard Reiter.
2 years ago
#21
Follow-up to https://github.com/WordPress/wordpress-develop/pull/4699 / r56065.
Includes https://github.com/WordPress/gutenberg/pull/51978, which fixes the following fatal error:
Fatal error: Uncaught Error: Class 'WP_Navigation_Fallback_Gutenberg' not found
Trac ticket: https://core.trac.wordpress.org/ticket/58623
@Bernhard Reiter commented on PR #4722:
2 years ago
#22
Activating Gutenberg v16.0.0 alongside this PR seems to result in a fatal error:
Fatal error: Cannot declare class WP_REST_Navigation_Fallback_Controller, because the name is already in use in /var/www/src/wp-content/plugins/gutenberg/lib/experimental/class-wp-rest-navigation-fallback-controller.php on line 0
Yay for name collisions. Looks like we'll need another round of npms 😕
@spacedmonkey commented on PR #4722:
2 years ago
#23
Yay for name collisions. Looks like we'll need another round of npms 😕
CC @getdave
@westonruter commented on PR #4722:
2 years ago
#24
What about this Gutenberg reference:
I don't see that file updated here.
@Bernhard Reiter commented on PR #4722:
2 years ago
#25
Activating Gutenberg v16.0.0 alongside this PR seems to result in a fatal error:
Fatal error: Cannot declare class WP_REST_Navigation_Fallback_Controller, because the name is already in use in /var/www/src/wp-content/plugins/gutenberg/lib/experimental/class-wp-rest-navigation-fallback-controller.php on line 0Yay for name collisions. Looks like we'll need another round of npms 😕
Ah, interesting. Looks like those collisions have been fixed in GB trunk already — they’re just not present in the current stable version (16.0.0). They will be in 16.1.0, which I believe is scheduled for tomorrow 🤔 : (I’ve confirmed that a GB plugin built from current trunk doesn’t fatal upon activation.)
@Bernhard Reiter commented on PR #4722:
2 years ago
#26
What about this Gutenberg reference:
I don't see that file updated here.
I'll look into this.
Sidenote, I guess we could really use something like this 😅
@Bernhard Reiter commented on PR #4722:
2 years ago
#27
What about this Gutenberg reference:
https://github.com/WordPress/wordpress-develop/blob/87a0ad45a51a0294b9056a06f7fcb15082b7ff3b/src/wp-includes/blocks/navigation-submenu.php#L204
I don't see that file updated here.
I'll look into this.
@Bernhard Reiter commented on PR #4722:
2 years ago
#28
Thank you for reviewing/approving, folks!
As stated in Slack:
Since the tests on this PR are failing (probably because Core trunkis currently in a broken state), I’m considering only landing [this PR right here] for now (which should unbreak Core) and leave the rest for Beta 2. How does that sound? (It should shave off at least another hour of work for now; whereas landing [this PR] should be a matter of a few minutes only.)
#29
@
2 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Re-opening to fix a fatal error.
@Bernhard Reiter commented on PR #4722:
2 years ago
#31
Committed to Core in https://core.trac.wordpress.org/changeset/56076/.
@ramonopoly commented on PR #4722:
2 years ago
#32
Sidenote, I guess we could really use something like this 😅
I'll add it to a list that I might never return to. I agree though. I'm sure this has been a problem before
thanks @ockham
#33
@
2 years ago
I made a mistake when writing the commit message, so a number of changes that go beyond the npm packages version update aren't documented there. I'll cover those here instead:
- Amend the
replace:source-mapsGrunt task to remove source map URLs (added byreact-spring) from the block-editor build that would otherwise be flagged by theverify:source-mapstask. - Modify the
copy:block-jsonGrunt task to include line breaks (and indentation) in theblock-json.phpfile it generates, as that file was rejected by a pre-commit SVN hook on the server due to all of its contents being on just one line. - Rewrite a number of calls to
str_containsandstr_ends_with, which are only available in PHP 8+ and are polyfilled by WordPress for earlier PHP versions, as some of them are called even before WordPress' compat layer is loaded, thus leading to fatals on earlier PHP versions.
This ticket was mentioned in PR #4762 on WordPress/wordpress-develop by @ramonopoly.
2 years ago
#34
block_core_navigation_submenu_build_css_colors was deprecated in https://github.com/WordPress/gutenberg/pull/48936 in favour of wp_apply_colors_support
This commit adds a deprecation to core.
See comment: https://github.com/WordPress/wordpress-develop/pull/4699/files#r1243172213
Props to @peterwilsoncc
Trac ticket: https://core.trac.wordpress.org/ticket/58623
This ticket was mentioned in Slack in #core-editor by peterwilsoncc. View the logs.
2 years ago
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
2 years ago
#40
@
2 years ago
Nice catch & triaging @hareesh-pillai, I see that @audrasjb referenced that there are "several upcoming commits" but not seeing a PR/patch that lines up with that. @bernhard-reiter @isabel_brison is there something pending here? Do you / someone need help to get that ready for review/commit?
#41
@
2 years ago
uuid hasn't been updated back to 9.0.0 in trunk so we should still fix that. I can put up a quick PR.
This ticket was mentioned in PR #4948 on WordPress/wordpress-develop by @isabel_brison.
2 years ago
#42
Trac ticket: https://core.trac.wordpress.org/ticket/58623
Reverts the accidental downgrade of uuid in r56065.
@audrasjb commented on PR #4948:
2 years ago
#43
Thanks for the PR! Approved for commit and backport.
#44
@
2 years ago
- Keywords dev-reviewed added; has-patch removed
- Owner changed from Bernhard Reiter to audrasjb
- Status changed from reopened to assigned
Trac ticket: https://core.trac.wordpress.org/ticket/58623
Currently not working: after installing, there's an error while running the
build:jstask:I'm not sure if anything should be updated in the webpack config, as the files flagged are built with webpack.