-
Notifications
You must be signed in to change notification settings - Fork 179
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
Packages: Move api-fetch
usage to new shared package
#8388
Comments
Adding this new package, adds a new number of benefits.
Thoughts @swissspidy ? |
With the decoupling work we'll end up with at least the following packages:
There will probably be a fifth one with shared utilities used by both
So I'd rather name this |
The decoupling work would be part of the reason we could do this. I am hoping that are some point, if when we decouple this editor from WordPress, we could simple replace the
|
In such a scenario we would create a dedicated
Ignore the name, I just made this up on the spot to try to explain the goal. The point is that there would be a shared package consumed by the two With this goal in mind, the package will look much different.
Edit: We're basically saying the same thing, it's just that this package will likely look quite different and contain more things. It's too early to work on this though. |
api-fetch
to new structureapi-fetch
usage to new shared package
Feature Description
/assets/src/edit-story/utils/base64Encode.js
to/packages/api-fetch/src/
/packages/design-system/src/utils/addQueryArgs.js
to/packages/api/src/
+ testsexport * from '@wordpress/api-fetch';
Use
@web-stories-wp/...
imports for anything that is already a package, relative imports for everything else./packages/api-fetch/package.json
referencing its dependencies/packages/api-fetch/README.md
with short documentation.Alternatives Considered
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
Implementation Brief
The text was updated successfully, but these errors were encountered: