chore(pos): remove deprecated .observe event extension targets#4535
Merged
Conversation
Remove the four early-access POS .observe targets (transaction-complete, cash-tracking-session-start, cash-tracking-session-complete, cart-update) and their exclusive payload types. Replacement is the pos.app.ready.data background target with addEventListener / cart.current.subscribe(). Assisted-By: devx/8ba453a3-96d0-4701-a8cc-43c4651bd027
henryStelle
approved these changes
Jul 2, 2026
akhayoon
approved these changes
Jul 2, 2026
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.
What
Removes the four POS
.observeevent extension targets and their exclusive payload types:pos.transaction-complete.event.observepos.cash-tracking-session-start.event.observepos.cash-tracking-session-complete.event.observepos.cart-update.event.observeWhy
These were early-access targets, deprecated and marked
@privatein #4146. Runtime telemetry over the last 30 days shows almost no usage: three of them had zero events, andtransaction-completehad 4 initializations from a single known early-access partner shop. The replacement target,pos.app.ready.data, ships in this version line.Migration
pos.app.ready.datapos.transaction-complete.event.observeshopify.addEventListener('transactioncomplete', callback)pos.cash-tracking-session-start.event.observeshopify.addEventListener('cashtrackingsessionstart', callback)pos.cash-tracking-session-complete.event.observeshopify.addEventListener('cashtrackingsessioncomplete', callback)pos.cart-update.event.observeshopify.cart.current.subscribe()Notes
EventExtensionTargets/EventExtensionTargettypes and theTransactionCompleteData,CashTrackingSessionStartData,CashTrackingSessionCompleteData, andCartUpdateEventDatapayload types. The receipt-target typeTransactionCompleteWithReprintDatais unchanged.ui-extensions-testermock factories for these targets are removed.docs/.../generatedare produced by the docs pipeline and aren't regenerated here.Part of https://github.com/shop/issues-retail/issues/31540