fix(commerce-elastic-path): restore EPMultiLocationStock as deprecated (unblocks publish-hostless) - #512
Merged
Conversation
0.5.0 removed the component outright, which makes publish-hostless fail with "Hostless package removed components plasmic-commerce-ep-multi-location-stock". A component missing from a hostless package's registered set is a fatal error there, and the only repair path is Studio's client-side remap prompt, so a headless publish cannot get past it — 0.5.0 cannot be published as a hostless bundle at all. Components in a hostless package can be deprecated but not removed, which is what upstream does: "Table (deprecated)" in antd5, "Aria Heading (deprecated)" in react-aria. The registration comes back with a deprecated displayName, a description pointing at EPStockProvider + EPLocationPicker + EPLocationField, and hideFromContentCreators.
field123
added a commit
that referenced
this pull request
Aug 28, 2026
…loader-bundle-env and the example app (#513) 0.5.1 restores the component whose removal in 0.5.0 makes publish-hostless fail (#512). The `^0.5.0` ranges already allowed 0.5.1, but all three lockfiles pinned the resolved version at 0.5.0 and publish-hostless installs with --frozen-lockfile, so it would have installed 0.5.0 again and failed the same way. Ranges moved to ^0.5.1 as well, to record the real floor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@elasticpath/plasmic-ep-commerce-elastic-pathis a published npm package of ElasticPath commerce components for the Plasmic visual builder. It is also distributed as a
"hostless package" — a Plasmic project that carries the component definitions, refreshed
by a
publish-hostlessjob.0.5.0 removed
EPMultiLocationStock. That makespublish-hostlessfail outright:A component that disappears from a hostless package's registered set is treated as a
fatal error (
server/code-components/code-components.tsasserts, commented "should be afatal error anyways"). The only repair path is Studio's client-side prompt to remap or
delete instances, which needs a human in a browser, so a headless publish cannot get past
it. 0.5.0 therefore cannot be published as a hostless bundle at all, and the npm
release is unusable for designers until this lands.
What this does
Restores the registration, marked deprecated:
displayName: "EP Multi-Location Stock (deprecated)"EPStockProviderwithEPLocationPickerand
EPLocationFieldhideFromContentCreators: trueThe component code and its three presentational helpers come back unchanged, so existing
projects using it keep rendering.
Why not just delete it
Components in a hostless package can be deprecated but not removed. Upstream does the
same rather than deleting:
Table (deprecated)inantd5,Aria Heading (deprecated)in
react-aria— both hostless packages, both still fully registered.Checked for alternatives first: no bundle migration has ever removed a code component,
and the error had never occurred in any previous
publish-hostlessrun.Also
plasmicpkgs-devpin andpnpm-lock.yamlbumped to 0.5.1 — the EP fork integrity testrequires the pin to equal the workspace version, and
--frozen-lockfilerequires thelockfile to match
0.5.0 is already on npm
Follow-up, not in this PR
The deprecated component should not be insertable going forward.
hideFromContentCreatorsonly applies in content-creator mode, and the per-item
hiddenflag for hostless packageslives in
DEVFLAGS.hostLessComponents, which has no entry for this package. Needs its ownchange once the insert path is confirmed.