-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: Bundle upload media. #68522
Update: Bundle upload media. #68522
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -826 B (-0.04%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
4178de6
to
a2e95b5
Compare
Flaky tests detected in 732945e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12652593436
|
package-lock.json
Outdated
"packages/block-editor/node_modules/@wordpress/upload-media": { | ||
"resolved": "packages/token-list", | ||
"link": true | ||
}, |
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.
This is a very strange record that shouldn't be there. Why is the upload-media
package linked to the packages/token-list
folder?
My PR (#68528) has this record that places the package in the top-level node_modules
folder and links correctly:
"node_modules/@wordpress/upload-media": {
"resolved": "packages/upload-media",
"link": true
},
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.
Good catch it should be fixed.
packages/upload-media/package.json
Outdated
@@ -1,7 +1,6 @@ | |||
{ | |||
"name": "@wordpress/upload-media", | |||
"version": "1.0.0-prerelease", |
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.
Let's change the version to 0.0.1
, that's a semver way to say that the package is unstable.
ac86584
to
3c35e8b
Compare
Hi @jsnajdr, thank you for the review, I applied your feedback. |
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.
Looks good 👍
…ry/interactivity-lazy-hydration * 'trunk' of https://github.com/WordPress/gutenberg: (143 commits) Update: Bundle upload media. (#68522) Add: Media field changing ui to Dataviews and content preview field to posts and pages (#67278) Bump the react-native group with 2 updates (#68095) Check Storybook build on CI for PRs (#68466) Bump the github-actions group across 1 directory with 2 updates (#68436) Classic theme preview: remove admin-bar class name (#68519) Remove geriux as code owner (#68523) Post Featured Image: Adds control to clear the the overlay color (#68525) Components: Standardize reduced motion handling using media queries (#68421) Upgrade Playwright to v1.49 (#68504) Document Outline: Use block client ID as unique 'key' (#68502) Storybook: Add UnitControl story (#67346) Details: Add allowedBlocks and TemplateLock attributes (#68489) Post Comment Link: Show Border Control By Default (#68506) Query Total: Show Border Controls By Default (#68507) RSS: Added Colour support (#66419) Refactor: Separate input form styles to a dedicated stylesheet (#68501) Code quality: Fix typos (#67304) Page List: Added color support (#66430) Fix flaky DataViews list arraow nav e2e tests (#68503) ...
The
@wordpress/upload-media
package was referenced in theBlockEditorProvider
. But is not published and is not declared as a dependency this will make any package relying on block editor and using the provider failing to build e.g: plugins because they can not resolve the package.This PR tries to make the
@wordpress/upload-media
a private bundled package.