#58623 closed task (blessed) (fixed)
Update npm packages to their latest versions for 6.3
Reported by: | isabel_brison | Owned by: | audrasjb |
---|---|---|---|
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.
18 months ago
#1
- Keywords has-patch added
This ticket was mentioned in βPR #4699 on βWordPress/wordpress-develop by β@isabel_brison.
18 months 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:
18 months 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:
18 months 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:
18 months 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:
18 months 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:
18 months 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:
18 months ago
#9
Sync scripts have been updated and committed over at: βhttps://github.com/WordPress/wordpress-develop/pull/4699
β@ramonopoly commented on βPR #4699:
18 months 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:
18 months 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
@
18 months 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:
18 months 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:
18 months 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:
18 months 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
@
18 months 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
@
18 months ago
- Owner set to Bernhard Reiter
- Resolution set to fixed
- Status changed from new to closed
In 56065:
β@Bernhard Reiter commented on βPR #4699:
18 months 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.
18 months 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:
18 months 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:
18 months ago
#23
Yay for name collisions. Looks like we'll need another round of npms π
CC @getdave
β@westonruter commented on βPR #4722:
18 months ago
#24
What about this Gutenberg reference:
I don't see that file updated here.
β@Bernhard Reiter commented on βPR #4722:
18 months 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:
18 months 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:
18 months 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:
18 months ago
#28
Thank you for reviewing/approving, folks!
As stated in Slack:
Since the tests on βthis PR are failing (βprobably because Core trunkβis 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
@
18 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
Re-opening to fix a fatal error.
β@Bernhard Reiter commented on βPR #4722:
18 months ago
#31
Committed to Core in https://core.trac.wordpress.org/changeset/56076/.
β@ramonopoly commented on βPR #4722:
18 months 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
@
17 months 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-maps
Grunt task to remove source map URLs (added byreact-spring
) from the block-editor build that would otherwise be flagged by theverify:source-maps
task. - Modify the
copy:block-json
Grunt task to include line breaks (and indentation) in theblock-json.php
file 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_contains
andstr_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.
17 months 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
β@isabel_brison commented on βPR #4762:
17 months ago
#36
Committed in r56126 / βab9d5e3
#37
in reply to:
βΒ 19
@
17 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
This ticket was mentioned in βSlack in #core-editor by peterwilsoncc. βView the logs.
17 months ago
This ticket was mentioned in βSlack in #core by audrasjb. βView the logs.
17 months ago
#40
@
16 months 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
@
16 months 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.
16 months ago
#42
Trac ticket: https://core.trac.wordpress.org/ticket/58623
Reverts the accidental downgrade of uuid in r56065.
β@audrasjb commented on βPR #4948:
16 months ago
#43
Thanks for the PR! Approved for commit and backport.
#44
@
16 months 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:js
task:I'm not sure if anything should be updated in the webpack config, as the files flagged are built with webpack.