> For the complete documentation index, see [llms.txt](https://docs.chord.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chord.co/chord-oms/shopify/developer-tools/gatsby/guides/v2-x-to-v3-x-migration-guide.md).

# v2.x to v3.x Migration Guide

This major release of this Gatsby theme moves Gatsby and all related Gatsby plugins and transformers from direct `dependencies` to `peerDependencies` so that consumers of this package can upgrade Gatsby without any intervention from Chord. This will require you to do more than just bump this version in the `package.json`.

## Upgrade Guide

First, edit your `package.json` to remove `@chordcommerce/gatsby-theme-performance` and any of the package's `peerDependencies` from your `dependencies` list. We will be reinstalling them next. These `peerDependencies` are:

{% code title="peerDependencies" %}

```json
"@sentry/browser": ">=6.0.0",
"gatsby": "^4.4.0",
"gatsby-plugin-alias-imports": "^1.0.5",
"gatsby-plugin-image": "^2.4.0",
"gatsby-plugin-intl": "^0.3.3",
"gatsby-plugin-manifest": "^4.4.0",
"gatsby-plugin-netlify": "^4.2.0",
"gatsby-plugin-offline": "^5.4.0",
"gatsby-plugin-react-helmet": "^5.4.0",
"gatsby-plugin-robots-txt": "^1.6.14",
"gatsby-plugin-segment-js": "^3.7.1",
"gatsby-plugin-sharp": "^4.4.0",
"gatsby-plugin-sitemap": "^4.4.0",
"gatsby-react-router-scroll": "^4.4.0",
"gatsby-source-contentful": "^7.2.0",
"gatsby-transformer-inline-svg": "^1.2.0",
"gatsby-transformer-remark": "^5.4.0",
"gatsby-transformer-sharp": "^4.4.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
```

{% endcode %}

Then, run the following command in your shell:

{% tabs %}
{% tab title="yarn" %}

```shell
$ npx install-peerdeps --yarn @chordcommerce/gatsby-theme-performance
```

{% endtab %}

{% tab title="npm" %}

```shell
$ npx install-peerdeps @chordcommerce/gatsby-theme-performance
```

{% endtab %}
{% endtabs %}

If this command fails, `npx` will output an `npm install/yarn add` command that you can copy and run manually.

For more information and caveats around this, please read the [installation instructions for this package](https://github.com/chordcommerce/chord-ui/tree/main/packages/gatsby-theme-performance#installation).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chord.co/chord-oms/shopify/developer-tools/gatsby/guides/v2-x-to-v3-x-migration-guide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
