---
title: >-
  The JS Buy SDK now matches the updated schema for the Storefront API - Shopify
  developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/the-js-buy-sdk-now-matches-the-updated-schema-for-the-storefront-api
  md: >-
    https://shopify.dev/changelog/the-js-buy-sdk-now-matches-the-updated-schema-for-the-storefront-api.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: Tools
    handle: tools
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2019-01-03T11:27:43-05:00'
  postedAt: '2019-01-03T00:00:00-05:00'
  updatedAt: '2024-02-02T10:04:52-05:00'
  effectiveAt: '2019-01-03T00:00:00-05:00'
---

January 3, 2019

Tags:

* Tools

# The JS Buy SDK now matches the updated schema for the Storefront API

We're updating the [JS Buy SDK](https://github.com/Shopify/js-buy-sdk/) so that it matches the new Storefront API schema.

***

This update does the following:

* Removes unused fixtures.
* Allows collections, products, collectionByHandle, and productByHandle to be fetched from the QueryRoot instead of from the Shop object.
* Returns checkoutUserErrors when they're present (instead of returning userErrors). This adds an extra field called `code`.
* Exposes the checkoutLineItemsReplace mutation (to replace the deprecated checkoutLineItemsAdd , checkoutLineItemsRemove , and checkoutLineItemsUpdate mutations).

You can learn more about these changes [here](https://github.com/Shopify/js-buy-sdk/pull/606).
