You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What changes are you making?
It looks like we intentionally removed this from native - so this is aimed at parity. Totally fine to go the otherway and introduce to native though.
---
Removes the `checkout:buyerChange` event (`ec.buyer.change` protocol message) from the web platform. This includes removing the event class (`ShopifyCheckoutBuyerChangeEvent`), its associated detail interface (`ShopifyCheckoutBuyerChangeEventDetail`), the typed `addEventListener` overload, the protocol message handler, and all related type definitions (`CheckoutBuyerChangeEvent`, `CheckoutProtocolMessageMap["ec.buyer.change"]`). The event is also removed from the public exports, the sample app event list, and the README documentation.
The test suite is updated to verify that `ec.buyer.change` is now treated as an unsupported/ignored notification alongside other unknown methods.
### How to test
1. Run the existing test suite: `pnpm test` in `platforms/web`.
2. Confirm that the `"ignores unsupported notification"` test now covers both `"customMethod"` and `"ec.buyer.change"`.
3. Confirm that no `checkout:buyerChange` events are dispatched or exported by the package.
4. Verify the sample app no longer lists `checkout:buyerChange` as a subscribable event type.
---
### Before you merge
> [!IMPORTANT]
> - [ ] I've added tests to support my implementation
> - [ ] I have read and agree with the [Contribution Guidelines](./CONTRIBUTING.md)
> - [ ] I have read and agree with the [Code of Conduct](./CODE_OF_CONDUCT.md)
> - [ ] I've updated the relevant platform README (`platforms/swift/README.md` and/or `platforms/android/README.md`)
---
<details>
<summary>Releasing a new Swift version?</summary>
- [ ] I have bumped the version in `ShopifyCheckoutKit.podspec`
- [ ] I have bumped the version in `platforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swift`
- [ ] I have updated `platforms/swift/CHANGELOG.md`
- [ ] I have updated the SwiftPM/CocoaPods version snippets in `platforms/swift/README.md` (major version only)
</details>
<details>
<summary>Releasing a new Android version?</summary>
- [ ] I have bumped the `versionName` in `platforms/android/lib/build.gradle`
- [ ] I have updated `platforms/android/CHANGELOG.md`
- [ ] I have updated the Gradle/Maven version snippets in `platforms/android/README.md`
</details>
> [!TIP]
> See the [Contributing documentation](./CONTRIBUTING.md) for the full release process per platform.
0 commit comments