-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Revert "Make wordpress/fields a private package"
#65477
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
Conversation
This reverts commit 1a60dff.
|
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: 0 B Total Size: 1.77 MB ℹ️ View Unchanged
|
|
Oh, I see, that's unfortunate. No blockers from my side to making it public. |
|
It wasn't in use when it got marked as private. Now, it definitely should. It was a miscommunication issue. |
This reverts commit 1a60dff. Co-authored-by: noisysocks <[email protected]> Co-authored-by: gziolo <[email protected]> Co-authored-by: oandregal <[email protected]>
|
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 76af44f |
|
I triggered npm publishing targeting WP 6.7 release. |
|
Thanks for confirming! |
This reverts #65269 which marked the
@wordpress/fieldspackage private. In other words, this PR makes it public.The problem with making
@wordpress/fieldsprivate is that it is used by Core/Gutenberg. Specifically, it's a dependency of@wordpress/editor:gutenberg/packages/editor/package.json
Line 50 in fe25bf1
This means that if you run
npm install @wordpress/editor(which we have to do to update packages in Core for 6.7) you get a 404 error when npm tries to download@wordpress/fields.I don't see a good way to "conditionally depend" on a package so I think the best thing to do is to just publish
@wordpress/fields. It's already a bundled package so there won't be awp.fieldsentry point. It would behave much like@wordpress/dataviews.Before I publish, I want to check with @oandregal, @youknowriad and @gziolo as it sounded like they might have had some reservations e.g. about the name #65230 (comment).