From 01f71c3f1d4df6738ccfeb79d46229ba8c8552ec Mon Sep 17 00:00:00 2001 From: Richard Powell Date: Thu, 5 Dec 2024 12:57:30 -0500 Subject: [PATCH 1/3] Add the removeRest future flag. Don't configure REST Resources. --- app/shopify.server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/shopify.server.ts b/app/shopify.server.ts index ab03ab11..ec980711 100644 --- a/app/shopify.server.ts +++ b/app/shopify.server.ts @@ -5,7 +5,6 @@ import { shopifyApp, } from "@shopify/shopify-app-remix/server"; import { PrismaSessionStorage } from "@shopify/shopify-app-session-storage-prisma"; -import { restResources } from "@shopify/shopify-api/rest/admin/2024-10"; import prisma from "./db.server"; const shopify = shopifyApp({ @@ -17,9 +16,9 @@ const shopify = shopifyApp({ authPathPrefix: "/auth", sessionStorage: new PrismaSessionStorage(prisma), distribution: AppDistribution.AppStore, - restResources, future: { unstable_newEmbeddedAuthStrategy: true, + removeRest: true, }, ...(process.env.SHOP_CUSTOM_DOMAIN ? { customShopDomains: [process.env.SHOP_CUSTOM_DOMAIN] } From 286658a8f5c2e575afe99289d9adc7b8bfbb3392 Mon Sep 17 00:00:00 2001 From: Richard Powell Date: Thu, 5 Dec 2024 12:58:25 -0500 Subject: [PATCH 2/3] Remove reference to REST in the README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index fd1a376e..2789aac9 100644 --- a/README.md +++ b/README.md @@ -336,7 +336,6 @@ The Remix app template comes with the following out-of-the-box functionality: - [OAuth](https://github.com/Shopify/shopify-app-js/tree/main/packages/shopify-app-remix#authenticating-admin-requests): Installing the app and granting permissions - [GraphQL Admin API](https://github.com/Shopify/shopify-app-js/tree/main/packages/shopify-app-remix#using-the-shopify-admin-graphql-api): Querying or mutating Shopify admin data -- [REST Admin API](https://github.com/Shopify/shopify-app-js/tree/main/packages/shopify-app-remix#using-the-shopify-admin-rest-api): Resource classes to interact with the API - [Webhooks](https://github.com/Shopify/shopify-app-js/tree/main/packages/shopify-app-remix#authenticating-webhook-requests): Callbacks sent by Shopify when certain events occur - [AppBridge](https://shopify.dev/docs/api/app-bridge): This template uses the next generation of the Shopify App Bridge library which works in unison with previous versions. - [Polaris](https://polaris.shopify.com/): Design system that enables apps to create Shopify-like experiences From 3e3a45022b4931b8b15ded6b08e41ee25358ace8 Mon Sep 17 00:00:00 2001 From: Richard Powell Date: Thu, 5 Dec 2024 13:03:23 -0500 Subject: [PATCH 3/3] Add a changelog entry for removing REST --- CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a0aa446..7848afdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,16 @@ # @shopify/shopify-app-template-remix +## 2024.12.05 + +- [#898](https://github.com/Shopify/shopify-app-template-remix/pull/898) Enable the `removeRest` future flag so new apps aren't tempted to use the REST Admin API. + ## 2024.12.04 - [#891](https://github.com/Shopify/shopify-app-template-remix/pull/891) Enable remix future flags. -- + ## 2024.11.26 -- [888](https://github.com/Shopify/shopify-app-template-remix/pull/888) Update restResources version to 2024-10 +- [888](https://github.com/Shopify/shopify-app-template-remix/pull/888) Update restResources version to 2024-10 ## 2024.11.06