Skip to content

I13.1 · Watch Shopify #86

Open
Open

Description

@adssib

Part of #16

Story

As a developer whose code calls Shopify, I want patch-it to know when Shopify breaks, deprecates or retires something, so I get the fix before production does.

Subtasks

  • Find Shopify's sources and record them with the date checked (verify, don't guess; leave TBD if unknown):
    • deprecations / sunset page
    • API changelog (RSS / Atom if there is one)
    • OpenAPI spec, if published
    • official SDKs and their release notes / changelogs (Python and JS first)
    • API versioning scheme (date-based, path, header, none)
  • Pick the format plugin for each source (OpenAPI, RSS, GitHub Releases, changelog file, registry, prose) and add catalog lines
  • Golden test: a saved copy of each source in, the expected events out
  • One real historical breaking change as a replay fixture
  • Provider page providers/shopify.md from the template
  • Add or update its row in docs/plugins.md (see CONTRIBUTING.md)
  • Note what the client needs to fix it (existing handler, or a new fix kind in the client)

Acceptance criteria

  • Daily ingest emits Shopify events, each with source_url and an exact source_excerpt
  • The replayed historical change produces the right events
  • The provider page lists every source with its date checked

Activity

  1. brandonphelps1212 commented on Nov 19, 2026

    @brandonphelps1212
    Contributor

    Research findings (checked 2026-11-19): on hold for two decisions

    Sources

    Item Finding
    API versioning Quarterly, date-based (2026-10). Each stable version is supported for at least 12 months and "guaranteed not to change for its supported lifetime". The schedule, with each version's "Accessible until" date, is on About Shopify API versioning (also served as .md).
    API changelog shopify.dev/changelog, RSS at https://shopify.dev/changelog/feed.xml: 816 posts from 2024-11-21 to 2026-11-18. The categories include Breaking API Change (74), Deprecation announcement (55) and Action Required (150), plus the API version (2026-10) and the surface (GraphQL Admin API, Storefront API, Admin REST API).
    Deprecations / sunset page None separate (/docs/api/usage/deprecations is a 404). The changelog categories are where Shopify announces deprecations.
    OpenAPI spec None: the main API is GraphQL.
    GraphQL schema The Admin schema isn't published anywhere I could find. It answers introspection, without credentials, at the proxy behind the docs' API explorer (https://shopify.dev/admin-graphql-direct-proxy/<version>), which isn't a documented API. The Storefront and Customer Account schemas are published, pinned by version, in the npm package @shopify/hydrogen-react (storefront.schema.json, customer-account.schema.json).
    SDKs JS: @shopify/shopify-api and the other packages in Shopify/shopify-app-js. Shopify/shopify-api-js is archived. Ruby: Shopify/shopify-api-ruby. I found no maintained official Python SDK.

    Why it's on hold

    1. The event contract has no GraphQL shape. api_operation describes REST and OpenAPI locations: an operation like POST /v1/charges, plus a schema and property. Nothing says how to name a removed GraphQL field (DraftOrderLineItem.grams) or mutation (draftOrderCreate). The contract is owned by patch-it, so it's decided there first. Most of I13 (Contentful, Sanity, …) will need the same answer.

    2. The changelog's breaking posts are prose about many kinds of change. A sample of Breaking API Change posts:

      • a field removed ("DraftOrderLineItem.grams field removed in 2026-07");
      • a permission newly required (draftOrderCreate and draftOrderUpdate);
      • query-language syntax (= true → MATCHES);
      • an enum gaining a value;
      • a storefront cookie.

      Reading typed subjects out of those reliably isn't possible, so a feed reader would guess.

    3. The precise source is a schema diff between quarterly versions, like the Stripe plugin's: removed fields, arguments and types, and new @deprecated with Shopify's deprecationReason, each dated by the API version it arrives in.

      • It would catch the removals above exactly: DraftOrderLineItem.grams (2026-07), FulfillmentService.permitsSkuSharing (2026-04) and Shop.draftOrders (2026-01).
      • It needs a GraphQL format plugin, which doesn't exist yet.
      • It also needs a source we can cite pinned. The Storefront schema is pinned through npm, but the Admin schema is only available through the explorer proxy.
    4. Client side: fixing GraphQL queries in a repo is a new fix kind for the patch-it client.

    Decisions needed

    • How a GraphQL change is expressed as a change event (patch-it's contract).
    • Whether reading the Admin schema from the docs explorer's proxy is acceptable as a source, or the Admin API waits until Shopify publishes its schema.

    Once those are settled, the plan is a graphql format plugin diffing each new quarterly version against the previous one, starting with the Storefront API (pinned via @shopify/hydrogen-react) if the Admin source isn't acceptable.

  2. added
    good first issue
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

good first issuestory

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions