-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 packages for 6.8 Beta 1 #8224
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN:
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Thanks @Mamaduka! Doing some initial testing to ensure nothing obvious is broken, but no initial big red flags from me.
I see that this sync is including several new __experimental…
settings, like __experimentalBorder
and continues the use of existing __experimentalDefaultControls
settings.
I've not been involved in these syncs in the past, but was under the impression that we were attempting to move away from shipping these kinds of features under the __experimental…
prefix. Am I mistaken? Regardless, I don't think that's a blocker for this sync, since those settings could be stabilized to remove the prefix, or removed entirely prior to shipping a final release. I mainly want to make sure I understand your expectations for how this is meant to work.
'@wordpress/dataviews/wp', | ||
'@wordpress/icons', | ||
'@wordpress/interface', | ||
'@wordpress/interactivity', | ||
'@wordpress/sync', | ||
'@wordpress/undo-manager', | ||
'@wordpress/upload-media', | ||
'@wordpress/fields', |
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.
Noting the new packages being bundled and their purpose in the commit message would probably be a good idea.
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.
Noted! Only @wordpress/upload-media
is the new package here; it looks like we missed synchronization of this config in past releases.
I'll double-check new values here before this is committed.
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.
@youknowriad, can I get a sanity check here? Do I need to include @wordpress/data views/wp
here? It seems to be a plugin-specific package.
Important note If you're trying to use the
DataViews
component in a WordPress plugin or theme and you're building your scripts using the@wordpress/scripts
package, you need to import the components from@wordpress/dataviews/wp
instead of@wordpress/dataviews
.
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.
No need, but it won't have any impact anyway.
@@ -56,6 +56,7 @@ | |||
remove_action( 'init', 'register_block_core_query_pagination_numbers' ); | |||
remove_action( 'init', 'register_block_core_query_pagination_previous' ); | |||
remove_action( 'init', 'register_block_core_query_title' ); | |||
remove_action( 'init', 'register_block_core_query_total' ); |
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.
👍🏻 New action being added to register the new core/query-total
block.
@joemcgill, that only applies to JS API. The |
Thanks for clarifying! Do we have any documentation or best practice for why and when to use those prefixes for block.json features? If they are intended to be backward compatible, should we be looking to remove these prefixes? |
These aren't new configuration values; they just got enabled for those blocks. When those features are stable, we usually create iteration issues like #64314 and stabilize the keys. I don't recall any official docs, but it is probably worth documenting. |
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.
I was able to reproduce the error with the @wordpress/fields
package, noted in the PR description.
I'm also seeing the following, which makes the site editor unusable currently.
Uncaught TypeError: Cannot read properties of undefined (reading 'initializeEditor')
at HTMLDocument.<anonymous> (site-editor.php:2369:16)
I'm adding request changes until we're confident in these being resolved in a way that doesn't totally block the site editor from being usable in trunk
To reproduce:
- Check out this PR
- Run
npm i && npm run build:dev
- Visit the site editor with no other plugins activated
bd2d325
to
e64d778
Compare
Updated packages to fix private API errors breaking the Site Editor (WordPress/gutenberg#68964). It should be working correctly now. Remaining issues:
Screeenshot |
@@ -1663,6 +1663,7 @@ module.exports = function(grunt) { | |||
grunt.registerTask( 'verify:source-maps', function() { | |||
const ignoredFiles = [ | |||
'build/wp-includes/js/dist/components.js', | |||
'build/wp-includes/js/dist/data.js', |
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.
I think this should be okay; the sourceMappingURL
in this package build doesn't cause 404 errors.
The recent update of the Redux package might have introduced the sourceMappingURL
change. See: WordPress/gutenberg#66966.
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
It looks like @swissspidy, any suggestions on how to approach this? |
Hmm good question, I wonder what caused this. Last time this topic came up was in WordPress/gutenberg#66552 and WordPress/gutenberg#67230 A quick test here shows that I thought with WordPress/gutenberg#65292 / WordPress/gutenberg#65582 the Tinkering with the Gutenberg package build process I see that the i18n package now tries to load these two polyfills for iterator helpers (which are currently not supported by Safari) in
And that's why ultimately the
I wonder if we should do something like WordPress/gutenberg#67230 but for Related: it can't hurt to update Babel & core-js to the latest versions in the Gutenberg repo, as this will affect polyfills too. |
The reason why polyfills are being added unnecessarily is due to fundamental limitations in This was likely caused by a |
To follow up on the above, the aforementioned Gutenberg PR updated @gziolo: Would it be worth it to replicate the unit test that's failing here ( |
Thanks, @swissspidy, @sgomes. So, for now, would the proposed resolution be something similar to WordPress/gutenberg#67230? |
In that case I would say so, yes. Adding a unit test or CI check for this stuff would be nice for sure. |
A list of known issues:
Trac ticket: https://core.trac.wordpress.org/ticket/62887
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.