Skip to content

Commit 74017ee

Browse files
authored
Merge pull request #900 from Shopify/javascript_updates
Convert template to Javascript
2 parents 11f70c5 + dc1caef commit 74017ee

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

CHANGELOG.md

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

3+
## 2024.12.05
4+
5+
- [#899](https://github.com/Shopify/shopify-app-template-remix/pull/899) Disable v3_singleFetch flag
6+
- [#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.
7+
38
## 2024.12.04
49

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

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

1116
## 2024.11.06
1217

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.js

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

vite.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default defineConfig({
5454
v3_relativeSplatPath: true,
5555
v3_throwAbortReason: true,
5656
v3_lazyRouteDiscovery: true,
57-
v3_singleFetch: true,
57+
v3_singleFetch: false,
5858
v3_routeConfig: true,
5959
},
6060
}),

0 commit comments

Comments
 (0)