Skip to content

Commit 1daefed

Browse files
Merge pull request #898 from Shopify/enable-remove-rest-future-flag
Enable remove rest future flag
2 parents 930e14d + 3e3a450 commit 1daefed

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# @shopify/shopify-app-template-remix
22

3+
## 2024.12.05
4+
5+
- [#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.
6+
37
## 2024.12.04
48

59
- [#891](https://github.com/Shopify/shopify-app-template-remix/pull/891) Enable remix future flags.
6-
-
10+
711
## 2024.11.26
8-
- [888](https://github.com/Shopify/shopify-app-template-remix/pull/888) Update restResources version to 2024-10
912

13+
- [888](https://github.com/Shopify/shopify-app-template-remix/pull/888) Update restResources version to 2024-10
1014

1115
## 2024.11.06
1216

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ The Remix app template comes with the following out-of-the-box functionality:
336336

337337
- [OAuth](https://github.com/Shopify/shopify-app-js/tree/main/packages/shopify-app-remix#authenticating-admin-requests): Installing the app and granting permissions
338338
- [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
339-
- [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
340339
- [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
341340
- [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.
342341
- [Polaris](https://polaris.shopify.com/): Design system that enables apps to create Shopify-like experiences

app/shopify.server.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
shopifyApp,
66
} from "@shopify/shopify-app-remix/server";
77
import { PrismaSessionStorage } from "@shopify/shopify-app-session-storage-prisma";
8-
import { restResources } from "@shopify/shopify-api/rest/admin/2024-10";
98
import prisma from "./db.server";
109

1110
const shopify = shopifyApp({
@@ -17,9 +16,9 @@ const shopify = shopifyApp({
1716
authPathPrefix: "/auth",
1817
sessionStorage: new PrismaSessionStorage(prisma),
1918
distribution: AppDistribution.AppStore,
20-
restResources,
2119
future: {
2220
unstable_newEmbeddedAuthStrategy: true,
21+
removeRest: true,
2322
},
2423
...(process.env.SHOP_CUSTOM_DOMAIN
2524
? { customShopDomains: [process.env.SHOP_CUSTOM_DOMAIN] }

0 commit comments

Comments
 (0)