Skip to content

Deprecate useBuyerJourneyIntercept and buyerJourney.intercept#4534

Open
gil-- wants to merge 2 commits into
Shopify:2026-07-rcfrom
gil--:deprecate-buyer-journey-intercept-2026-07-rc
Open

Deprecate useBuyerJourneyIntercept and buyerJourney.intercept#4534
gil-- wants to merge 2 commits into
Shopify:2026-07-rcfrom
gil--:deprecate-buyer-journey-intercept-2026-07-rc

Conversation

@gil--

@gil-- gil-- commented Jun 29, 2026

Copy link
Copy Markdown
Member

What

Marks the buyer journey intercept hook and the underlying intercept API as deprecated, mirroring the existing localization.market deprecation.

  • Adds an @deprecated JSDoc tag to useBuyerJourneyIntercept in packages/ui-extensions/src/surfaces/checkout/preact/buyer-journey.ts
  • Adds the same tag to the underlying buyerJourney.intercept method on the BuyerJourney interface in packages/ui-extensions/src/surfaces/checkout/api/standard/standard.ts
  • Regenerates the checkout docs data (yarn docs:checkout 2026-07-rc), which feeds the shopify.dev "Deprecated" callout
  • Adds a changeset

Deprecation message:

Use a cart and checkout validation function instead. The buyer journey intercept will be removed in a future version of the API.

Why

The buyer journey intercept is being phased out in favor of cart and checkout validation functions. Surfacing the deprecation in the reference docs (and via the @deprecated TS tag in editors) guides developers to the supported approach ahead of removal.

Notes

  • Base branch: Targeting 2026-07-rc, which carries the live market deprecation. unstable is stale (lacks the preact hooks and the market deprecation), so this is the realistic target. Please confirm with the UI Extension Stewards which version branch(es) this should land on.
  • Generated JSON: Produced by running yarn docs:checkout 2026-07-rc rather than hand-editing. The generator emits a deprecationMessage for the intercept method; it does not emit one at the top-level hook (UseBuyerJourneyInterceptGeneratedType) — no export function type in the generated data carries a deprecationMessage — so the committed output reflects exactly what the generator produces. The @deprecated tag on the hook source still drives editor/TS deprecation warnings.

🤖 Generated with Claude Code

Co-authored-by: River shopify.river@shopify.com

@gil-- gil-- closed this Jun 29, 2026
@gil-- gil-- reopened this Jun 29, 2026
Mark the buyer journey intercept hook and the underlying intercept API as
deprecated, mirroring the existing localization.market deprecation. Adds an
@deprecated JSDoc tag (which drives the shopify.dev deprecation callout) and
regenerates the checkout docs data (yarn docs:checkout 2026-07-rc), plus a
changeset.

Co-authored-by: River <shopify.river@shopify.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gil-- gil-- force-pushed the deprecate-buyer-journey-intercept-2026-07-rc branch from 9139ace to 5465dca Compare June 29, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants