Skip to content

[5.x] Fix deprecations in a backwards-compatible way - #1456

Open
Jade-GG wants to merge 1 commit into
masterfrom
bugfix/deprecations
Open

Jade-GG wants to merge 1 commit into
masterfrom
bugfix/deprecations

Conversation

@Jade-GG

@Jade-GG Jade-GG commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

ref: RAP-2049

These are deprecations that came from the 2.4.6 and 2.4.7 magento updates. There's also a few from the 2.4.9 update that I'm adding to the backlog for the 6.x release.

This changes:

  • cart.items -> cart.itemsV2, with a page size of 9999. The code in useCart has been changed such that it still supports the old query, in case you've overwritten it and won't switch to the V2 query for whatever reason. This keeps it fully backwards compatible.
  • Added the new uid versions of the deprecated id variables in this query as well without removing the old ones. Note that the blade files also ask for these new ones now, but overwritten blade files or other custom queries will keep working.
  • Also added the new uid and __typename fields next to the deprecated fields in t
    he product graphql fragment.

These backwards compatibilities are also relevant for the checkout-theme overrides, specifically the UID ones. While I've made branches there for this, I don't think we actually want to add version constraints there, so we should wait for 6.x there as well.

This doesn't touch the deprecated order data, because this may not be backwards compatible for every payment provider yet. That will have to be revised in 6.x as well.

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.

1 participant