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 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 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] }