@shopify/cli-hydrogen 5.1.2 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/commands/hydrogen/build.js +4 -1
  2. package/dist/commands/hydrogen/dev.js +25 -17
  3. package/dist/commands/hydrogen/generate/route.test.js +0 -1
  4. package/dist/commands/hydrogen/init.js +6 -3
  5. package/dist/commands/hydrogen/init.test.js +2 -0
  6. package/dist/commands/hydrogen/preview.js +2 -2
  7. package/dist/commands/hydrogen/setup.js +3 -0
  8. package/dist/generator-templates/starter/app/components/Footer.tsx +1 -1
  9. package/dist/generator-templates/starter/app/components/Header.tsx +1 -1
  10. package/dist/generator-templates/starter/app/components/Search.tsx +3 -3
  11. package/dist/generator-templates/starter/app/entry.server.tsx +9 -1
  12. package/dist/generator-templates/starter/app/root.tsx +31 -5
  13. package/dist/generator-templates/starter/app/routes/$.tsx +4 -0
  14. package/dist/generator-templates/starter/app/routes/_index.tsx +6 -2
  15. package/dist/generator-templates/starter/app/routes/account.$.tsx +1 -2
  16. package/dist/generator-templates/starter/app/routes/account.addresses.tsx +1 -1
  17. package/dist/generator-templates/starter/app/routes/account.orders._index.tsx +2 -7
  18. package/dist/generator-templates/starter/app/routes/account.profile.tsx +7 -2
  19. package/dist/generator-templates/starter/app/routes/account.tsx +4 -3
  20. package/dist/generator-templates/starter/app/routes/account_.activate.$id.$activationToken.tsx +6 -2
  21. package/dist/generator-templates/starter/app/routes/account_.login.tsx +6 -2
  22. package/dist/generator-templates/starter/app/routes/account_.logout.tsx +2 -6
  23. package/dist/generator-templates/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +1 -2
  24. package/dist/generator-templates/starter/app/routes/blogs.$blogHandle._index.tsx +1 -2
  25. package/dist/generator-templates/starter/app/routes/blogs._index.tsx +2 -3
  26. package/dist/generator-templates/starter/app/routes/cart.tsx +1 -2
  27. package/dist/generator-templates/starter/app/routes/collections.$handle.tsx +1 -2
  28. package/dist/generator-templates/starter/app/routes/pages.$handle.tsx +1 -2
  29. package/dist/generator-templates/starter/app/routes/policies.$handle.tsx +2 -3
  30. package/dist/generator-templates/starter/app/routes/products.$handle.tsx +23 -15
  31. package/dist/generator-templates/starter/app/routes/search.tsx +1 -2
  32. package/dist/generator-templates/starter/package.json +5 -5
  33. package/dist/generator-templates/starter/remix.config.js +1 -0
  34. package/dist/generator-templates/starter/storefrontapi.generated.d.ts +9 -9
  35. package/dist/generator-templates/starter/tsconfig.json +1 -0
  36. package/dist/lib/ast.js +9 -0
  37. package/dist/lib/check-version.test.js +1 -0
  38. package/dist/lib/codegen.js +17 -7
  39. package/dist/lib/environment-variables.js +15 -11
  40. package/dist/lib/file.js +1 -1
  41. package/dist/lib/find-port.js +9 -0
  42. package/dist/lib/flags.js +6 -5
  43. package/dist/lib/format-code.js +7 -4
  44. package/dist/lib/graphql/admin/client.js +18 -0
  45. package/dist/lib/graphql/admin/client.test.js +28 -3
  46. package/dist/lib/live-reload.js +62 -0
  47. package/dist/lib/log.js +6 -1
  48. package/dist/lib/mini-oxygen.js +28 -18
  49. package/dist/lib/missing-routes.js +17 -1
  50. package/dist/lib/onboarding/common.js +5 -0
  51. package/dist/lib/onboarding/local.js +21 -8
  52. package/dist/lib/remix-config.js +2 -0
  53. package/dist/lib/remix-version-check.test.js +1 -0
  54. package/dist/lib/setups/css/index.js +4 -2
  55. package/dist/lib/setups/css/replacers.js +7 -4
  56. package/dist/lib/setups/i18n/replacers.js +7 -5
  57. package/dist/lib/setups/routes/generate.js +15 -29
  58. package/dist/lib/setups/routes/generate.test.js +1 -3
  59. package/dist/lib/template-downloader.js +4 -0
  60. package/dist/lib/transpile-ts.js +5 -3
  61. package/dist/lib/virtual-routes.js +4 -1
  62. package/dist/virtual-routes/components/HydrogenLogoBaseBW.jsx +29 -4
  63. package/dist/virtual-routes/components/HydrogenLogoBaseColor.jsx +44 -10
  64. package/dist/virtual-routes/components/IconBanner.jsx +289 -44
  65. package/dist/virtual-routes/components/IconDiscord.jsx +18 -1
  66. package/dist/virtual-routes/components/IconError.jsx +58 -17
  67. package/dist/virtual-routes/components/IconGithub.jsx +20 -1
  68. package/dist/virtual-routes/components/IconTwitter.jsx +18 -1
  69. package/dist/virtual-routes/components/Layout.jsx +2 -1
  70. package/dist/virtual-routes/routes/index.jsx +199 -94
  71. package/dist/virtual-routes/virtual-root.jsx +62 -16
  72. package/oclif.manifest.json +3 -3
  73. package/package.json +8 -7
@@ -1,3 +1,4 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
2
  import { useLoaderData } from "@remix-run/react";
2
3
  import { HydrogenLogoBaseBW } from "../components/HydrogenLogoBaseBW.jsx";
3
4
  import { HydrogenLogoBaseColor } from "../components/HydrogenLogoBaseColor.jsx";
@@ -38,7 +39,7 @@ async function loader({
38
39
  }
39
40
  const HYDROGEN_SHOP_ID = "gid://shopify/Shop/55145660472";
40
41
  function ErrorBoundary() {
41
- return <ErrorPage />;
42
+ return /* @__PURE__ */ jsx(ErrorPage, {});
42
43
  }
43
44
  function Index() {
44
45
  const {
@@ -49,110 +50,214 @@ function Index() {
49
50
  const configDone = shopId !== HYDROGEN_SHOP_ID && !isMockShop;
50
51
  if (isMockShop || !shopName)
51
52
  shopName = "Hydrogen";
52
- return <><Layout shopName={shopName}>
53
- {configDone ? <HydrogenLogoBaseColor /> : <HydrogenLogoBaseBW />}
54
- <h1>
55
- {"Hello, "}
56
- {shopName}
57
- </h1>
58
- <p>Welcome to your new custom storefront</p>
59
- <section className="Banner">
60
- <div>
61
- <IconBanner />
62
- <h2>{configDone ? "Create your first route" : "Configure storefront token"}</h2>
63
- </div>
64
- {configDone ? <p>
65
- {"You\u2019re seeing this because you don\u2019t have a home route in your project yet. "}
66
- <br />
67
- {"Run "}
68
- <code>h2 generate route home</code>
69
- {" to create your home route. Learn more about"}
70
- {` `}
71
- <CreateRoutesLink />
72
- </p> : <p>
73
- {"You\u2019re seeing this because you have not yet configured your storefront token. "}
74
- <br />
75
- <br />
76
- {" To link your store,"}
77
- {` `}
78
- {"run "}
79
- <code>{"h2 link && h2 env pull"}</code>
80
- {". Then, run"}
81
- {" "}
82
- <code>h2 generate route home</code>
83
- {" to create your first route."}
84
- <br />
85
- {"Learn more about"}
86
- {` `}
87
- <a target="_blank" rel="norefferer noopener" href="https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables">editing environment variables</a>
88
- {` `}
89
- {"and"}
90
- {` `}
91
- <CreateRoutesLink />
92
- {"."}
93
- </p>}
94
- </section>
95
- <ResourcesLinks />
96
- </Layout></>;
53
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Layout, { shopName, children: [
54
+ configDone ? /* @__PURE__ */ jsx(HydrogenLogoBaseColor, {}) : /* @__PURE__ */ jsx(HydrogenLogoBaseBW, {}),
55
+ /* @__PURE__ */ jsxs("h1", { children: [
56
+ "Hello, ",
57
+ shopName
58
+ ] }),
59
+ /* @__PURE__ */ jsx("p", { children: "Welcome to your new custom storefront" }),
60
+ /* @__PURE__ */ jsxs("section", { className: "Banner", children: [
61
+ /* @__PURE__ */ jsxs("div", { children: [
62
+ /* @__PURE__ */ jsx(IconBanner, {}),
63
+ /* @__PURE__ */ jsx("h2", { children: configDone ? "Create your first route" : "Configure storefront token" })
64
+ ] }),
65
+ configDone ? /* @__PURE__ */ jsxs("p", { children: [
66
+ "You\u2019re seeing this because you don\u2019t have a home route in your project yet. ",
67
+ /* @__PURE__ */ jsx("br", {}),
68
+ "Run ",
69
+ /* @__PURE__ */ jsx("code", { children: "h2 generate route home" }),
70
+ " to create your home route. Learn more about",
71
+ ` `,
72
+ /* @__PURE__ */ jsx(CreateRoutesLink, {})
73
+ ] }) : /* @__PURE__ */ jsxs("p", { children: [
74
+ "You\u2019re seeing this because you have not yet configured your storefront token. ",
75
+ /* @__PURE__ */ jsx("br", {}),
76
+ /* @__PURE__ */ jsx("br", {}),
77
+ " To link your store,",
78
+ ` `,
79
+ "run ",
80
+ /* @__PURE__ */ jsx("code", { children: "h2 link && h2 env pull" }),
81
+ ". Then, run",
82
+ " ",
83
+ /* @__PURE__ */ jsx("code", { children: "h2 generate route home" }),
84
+ " to create your first route.",
85
+ /* @__PURE__ */ jsx("br", {}),
86
+ "Learn more about",
87
+ ` `,
88
+ /* @__PURE__ */ jsx(
89
+ "a",
90
+ {
91
+ target: "_blank",
92
+ rel: "norefferer noopener",
93
+ href: "https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables",
94
+ children: "editing environment variables"
95
+ }
96
+ ),
97
+ ` `,
98
+ "and",
99
+ ` `,
100
+ /* @__PURE__ */ jsx(CreateRoutesLink, {}),
101
+ "."
102
+ ] })
103
+ ] }),
104
+ /* @__PURE__ */ jsx(ResourcesLinks, {})
105
+ ] }) });
97
106
  }
98
107
  function CreateRoutesLink() {
99
- return <a target="_blank" rel="norefferer noopener" href="https://shopify.dev/docs/custom-storefronts/hydrogen/building/begin-development#step-4-create-a-route">creating routes</a>;
108
+ return /* @__PURE__ */ jsx(
109
+ "a",
110
+ {
111
+ target: "_blank",
112
+ rel: "norefferer noopener",
113
+ href: "https://shopify.dev/docs/custom-storefronts/hydrogen/building/begin-development#step-4-create-a-route",
114
+ children: "creating routes"
115
+ }
116
+ );
100
117
  }
101
118
  function ErrorPage() {
102
- return <><Layout shopName="Hydrogen">
103
- <HydrogenLogoBaseBW />
104
- <h1>Hello, Hydrogen</h1>
105
- <p>Welcome to your new custom storefront</p>
106
- <section className="Banner ErrorBanner">
107
- <div>
108
- <IconError />
109
- <h2>{"There\u2019s a problem with your storefront"}</h2>
110
- </div>
111
- <p>
112
- {"Check your domain and API token in your "}
113
- <code>.env</code>
114
- {" file. Learn more about"}
115
- {` `}
116
- <a target="_blank" rel="norefferer noopener" href="https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables">editing environment variables</a>
117
- {"."}
118
- </p>
119
- </section>
120
- <ResourcesLinks />
121
- </Layout></>;
119
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Layout, { shopName: "Hydrogen", children: [
120
+ /* @__PURE__ */ jsx(HydrogenLogoBaseBW, {}),
121
+ /* @__PURE__ */ jsx("h1", { children: "Hello, Hydrogen" }),
122
+ /* @__PURE__ */ jsx("p", { children: "Welcome to your new custom storefront" }),
123
+ /* @__PURE__ */ jsxs("section", { className: "Banner ErrorBanner", children: [
124
+ /* @__PURE__ */ jsxs("div", { children: [
125
+ /* @__PURE__ */ jsx(IconError, {}),
126
+ /* @__PURE__ */ jsx("h2", { children: "There\u2019s a problem with your storefront" })
127
+ ] }),
128
+ /* @__PURE__ */ jsxs("p", { children: [
129
+ "Check your domain and API token in your ",
130
+ /* @__PURE__ */ jsx("code", { children: ".env" }),
131
+ " file. Learn more about",
132
+ ` `,
133
+ /* @__PURE__ */ jsx(
134
+ "a",
135
+ {
136
+ target: "_blank",
137
+ rel: "norefferer noopener",
138
+ href: "https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables",
139
+ children: "editing environment variables"
140
+ }
141
+ ),
142
+ "."
143
+ ] })
144
+ ] }),
145
+ /* @__PURE__ */ jsx(ResourcesLinks, {})
146
+ ] }) });
122
147
  }
123
148
  function ResourcesLinks() {
124
- return <><section className="Links">
125
- <h2>Start building</h2>
126
- <ul>
127
- <li><a target="_blank" rel="norefferer noopener" href="https://shopify.dev/custom-storefronts/hydrogen/building/collection-page">Collection template</a></li>
128
- <li><a target="_blank" rel="norefferer noopener" href="https://shopify.dev/custom-storefronts/hydrogen/building/product-details-page">Product template</a></li>
129
- <li><a target="_blank" rel="norefferer noopener" href="https://shopify.dev/custom-storefronts/hydrogen/building/cart">Cart</a></li>
130
- </ul>
131
- <h2>Resources</h2>
132
- <ul>
133
- <li><a target="_blank" rel="norefferer noopener" href="https://shopify.dev/custom-storefronts/hydrogen">Hydrogen docs</a></li>
134
- <li><a target="_blank" rel="norefferer noopener" href="https://shopify.dev/custom-storefronts/hydrogen/project-structure">Remix and project structure</a></li>
135
- <li><a target="_blank" rel="norefferer noopener" href="https://shopify.dev/custom-storefronts/hydrogen/data-fetching/fetch-data">Data queries and fetching</a></li>
136
- </ul>
137
- </section></>;
149
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("section", { className: "Links", children: [
150
+ /* @__PURE__ */ jsx("h2", { children: "Start building" }),
151
+ /* @__PURE__ */ jsxs("ul", { children: [
152
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
153
+ "a",
154
+ {
155
+ target: "_blank",
156
+ rel: "norefferer noopener",
157
+ href: "https://shopify.dev/custom-storefronts/hydrogen/building/collection-page",
158
+ children: "Collection template"
159
+ }
160
+ ) }),
161
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
162
+ "a",
163
+ {
164
+ target: "_blank",
165
+ rel: "norefferer noopener",
166
+ href: "https://shopify.dev/custom-storefronts/hydrogen/building/product-details-page",
167
+ children: "Product template"
168
+ }
169
+ ) }),
170
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
171
+ "a",
172
+ {
173
+ target: "_blank",
174
+ rel: "norefferer noopener",
175
+ href: "https://shopify.dev/custom-storefronts/hydrogen/building/cart",
176
+ children: "Cart"
177
+ }
178
+ ) })
179
+ ] }),
180
+ /* @__PURE__ */ jsx("h2", { children: "Resources" }),
181
+ /* @__PURE__ */ jsxs("ul", { children: [
182
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
183
+ "a",
184
+ {
185
+ target: "_blank",
186
+ rel: "norefferer noopener",
187
+ href: "https://shopify.dev/custom-storefronts/hydrogen",
188
+ children: "Hydrogen docs"
189
+ }
190
+ ) }),
191
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
192
+ "a",
193
+ {
194
+ target: "_blank",
195
+ rel: "norefferer noopener",
196
+ href: "https://shopify.dev/custom-storefronts/hydrogen/project-structure",
197
+ children: "Remix and project structure"
198
+ }
199
+ ) }),
200
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
201
+ "a",
202
+ {
203
+ target: "_blank",
204
+ rel: "norefferer noopener",
205
+ href: "https://shopify.dev/custom-storefronts/hydrogen/data-fetching/fetch-data",
206
+ children: "Data queries and fetching"
207
+ }
208
+ ) })
209
+ ] })
210
+ ] }) });
138
211
  }
139
212
  function Layout({
140
213
  shopName,
141
214
  children
142
215
  }) {
143
- return <>
144
- <header>
145
- <h1>{shopName?.toUpperCase()}</h1>
146
- <p>{"\xA0Dev Mode\xA0"}</p>
147
- <nav>
148
- <a target="_blank" rel="norefferer noopener" href="https://discord.com/invite/shopifydevs"><IconDiscord /></a>
149
- <a target="_blank" rel="norefferer noopener" href="https://github.com/Shopify/hydrogen"><IconGithub /></a>
150
- <a target="_blank" rel="norefferer noopener" href="https://twitter.com/shopifydevs?lang=en"><IconTwitter /></a>
151
- </nav>
152
- </header>
153
- <main>{children}</main>
154
- <footer><div><a href="https://shopify.com" target="_blank" rel="noreferrer noopener">Powered by Shopify</a></div></footer>
155
- </>;
216
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
217
+ /* @__PURE__ */ jsxs("header", { children: [
218
+ /* @__PURE__ */ jsx("h1", { children: shopName?.toUpperCase() }),
219
+ /* @__PURE__ */ jsx("p", { children: "\xA0Dev Mode\xA0" }),
220
+ /* @__PURE__ */ jsxs("nav", { children: [
221
+ /* @__PURE__ */ jsx(
222
+ "a",
223
+ {
224
+ target: "_blank",
225
+ rel: "norefferer noopener",
226
+ href: "https://discord.com/invite/shopifydevs",
227
+ children: /* @__PURE__ */ jsx(IconDiscord, {})
228
+ }
229
+ ),
230
+ /* @__PURE__ */ jsx(
231
+ "a",
232
+ {
233
+ target: "_blank",
234
+ rel: "norefferer noopener",
235
+ href: "https://github.com/Shopify/hydrogen",
236
+ children: /* @__PURE__ */ jsx(IconGithub, {})
237
+ }
238
+ ),
239
+ /* @__PURE__ */ jsx(
240
+ "a",
241
+ {
242
+ target: "_blank",
243
+ rel: "norefferer noopener",
244
+ href: "https://twitter.com/shopifydevs?lang=en",
245
+ children: /* @__PURE__ */ jsx(IconTwitter, {})
246
+ }
247
+ )
248
+ ] })
249
+ ] }),
250
+ /* @__PURE__ */ jsx("main", { children }),
251
+ /* @__PURE__ */ jsx("footer", { children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
252
+ "a",
253
+ {
254
+ href: "https://shopify.com",
255
+ target: "_blank",
256
+ rel: "noreferrer noopener",
257
+ children: "Powered by Shopify"
258
+ }
259
+ ) }) })
260
+ ] });
156
261
  }
157
262
  const LAYOUT_QUERY = `#graphql
158
263
  query layout {
@@ -1,9 +1,12 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
1
2
  import {
2
3
  Links,
3
4
  Meta,
4
5
  Outlet,
5
6
  Scripts,
6
- ScrollRestoration
7
+ ScrollRestoration,
8
+ isRouteErrorResponse,
9
+ useRouteError
7
10
  } from "@remix-run/react";
8
11
  import styles from "./assets/styles.css";
9
12
  import favicon from "./assets/favicon.svg";
@@ -15,23 +18,66 @@ const links = () => {
15
18
  ];
16
19
  };
17
20
  function App() {
18
- return <html lang="en">
19
- <head>
20
- <meta charSet="utf-8" />
21
- <meta name="viewport" content="width=device-width,initial-scale=1" />
22
- <title>Hydrogen</title>
23
- <meta name="description" content="A custom storefront powered by Hydrogen" />
24
- <Meta />
25
- <Links />
26
- </head>
27
- <body>
28
- <Layout><Outlet /></Layout>
29
- <ScrollRestoration />
30
- <Scripts />
31
- </body>
32
- </html>;
21
+ return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
22
+ /* @__PURE__ */ jsxs("head", { children: [
23
+ /* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
24
+ /* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
25
+ /* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
26
+ /* @__PURE__ */ jsx(
27
+ "meta",
28
+ {
29
+ name: "description",
30
+ content: "A custom storefront powered by Hydrogen"
31
+ }
32
+ ),
33
+ /* @__PURE__ */ jsx(Meta, {}),
34
+ /* @__PURE__ */ jsx(Links, {})
35
+ ] }),
36
+ /* @__PURE__ */ jsxs("body", { children: [
37
+ /* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsx(Outlet, {}) }),
38
+ /* @__PURE__ */ jsx(ScrollRestoration, {}),
39
+ /* @__PURE__ */ jsx(Scripts, {})
40
+ ] })
41
+ ] });
42
+ }
43
+ function ErrorBoundary() {
44
+ const error = useRouteError();
45
+ let errorMessage = "Unknown error";
46
+ let errorStatus = 500;
47
+ if (isRouteErrorResponse(error)) {
48
+ errorMessage = error?.data?.message ?? error.data;
49
+ errorStatus = error.status;
50
+ } else if (error instanceof Error) {
51
+ errorMessage = error.message;
52
+ }
53
+ return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
54
+ /* @__PURE__ */ jsxs("head", { children: [
55
+ /* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
56
+ /* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
57
+ /* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
58
+ /* @__PURE__ */ jsx(
59
+ "meta",
60
+ {
61
+ name: "description",
62
+ content: "A custom storefront powered by Hydrogen"
63
+ }
64
+ ),
65
+ /* @__PURE__ */ jsx(Meta, {}),
66
+ /* @__PURE__ */ jsx(Links, {})
67
+ ] }),
68
+ /* @__PURE__ */ jsxs("body", { children: [
69
+ /* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
70
+ /* @__PURE__ */ jsx("h1", { children: "Please report this error" }),
71
+ /* @__PURE__ */ jsx("h2", { children: errorStatus }),
72
+ errorMessage && /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("pre", { children: errorMessage }) })
73
+ ] }) }),
74
+ /* @__PURE__ */ jsx(ScrollRestoration, {}),
75
+ /* @__PURE__ */ jsx(Scripts, {})
76
+ ] })
77
+ ] });
33
78
  }
34
79
  export {
80
+ ErrorBoundary,
35
81
  App as default,
36
82
  links
37
83
  };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.1.2",
2
+ "version": "5.2.1",
3
3
  "commands": {
4
4
  "hydrogen:build": {
5
5
  "id": "hydrogen:build",
@@ -266,7 +266,7 @@
266
266
  "styling": {
267
267
  "name": "styling",
268
268
  "type": "option",
269
- "description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`.",
269
+ "description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`, `none`.",
270
270
  "multiple": false
271
271
  },
272
272
  "markets": {
@@ -439,7 +439,7 @@
439
439
  "styling": {
440
440
  "name": "styling",
441
441
  "type": "option",
442
- "description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`.",
442
+ "description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`, `none`.",
443
443
  "multiple": false
444
444
  },
445
445
  "markets": {
package/package.json CHANGED
@@ -4,12 +4,12 @@
4
4
  "access": "public",
5
5
  "@shopify:registry": "https://registry.npmjs.org"
6
6
  },
7
- "version": "5.1.2",
7
+ "version": "5.2.1",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "scripts": {
11
- "build": "rm -rf dist && tsup --config ./tsup.config.ts && node scripts/build-check.mjs",
12
- "dev": "tsup --watch --config ./tsup.config.ts",
11
+ "build": "tsup && node scripts/build-check.mjs",
12
+ "dev": "tsup --watch",
13
13
  "typecheck": "tsc --noEmit",
14
14
  "generate:manifest": "node scripts/generate-manifest.mjs",
15
15
  "test": "cross-env SHOPIFY_UNIT_TEST=1 vitest run --test-timeout=15000",
@@ -28,26 +28,27 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@remix-run/react": "1.19.1",
31
- "@shopify/hydrogen-react": "^2023.7.1",
31
+ "@shopify/hydrogen-react": "^2023.7.3",
32
32
  "@shopify/remix-oxygen": "^1.1.3"
33
33
  },
34
34
  "dependencies": {
35
- "@ast-grep/napi": "^0.5.3",
35
+ "@ast-grep/napi": "0.11.0",
36
36
  "@graphql-codegen/cli": "3.3.1",
37
37
  "@oclif/core": "2.8.11",
38
38
  "@remix-run/dev": "1.19.1",
39
39
  "@shopify/cli-kit": "3.48.0",
40
40
  "@shopify/hydrogen-codegen": "^0.0.2",
41
- "@shopify/mini-oxygen": "^1.7.0",
41
+ "@shopify/mini-oxygen": "^2.1.2",
42
42
  "ansi-escapes": "^6.2.0",
43
43
  "diff": "^5.1.0",
44
44
  "fast-glob": "^3.2.12",
45
45
  "fs-extra": "^11.1.0",
46
+ "get-port": "^7.0.0",
46
47
  "gunzip-maybe": "^1.4.2",
47
48
  "prettier": "^2.8.4",
48
49
  "recursive-readdir": "^2.2.3",
49
50
  "tar-fs": "^2.1.1",
50
- "typescript": "^4.9.5"
51
+ "typescript": "^5.2.2"
51
52
  },
52
53
  "bin": "dist/create-app.js",
53
54
  "exports": {