@shopify/cli 3.77.0 → 3.78.0

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 (101) hide show
  1. package/dist/assets/hydrogen/bundle/analyzer.html +21 -17
  2. package/dist/assets/hydrogen/starter/CHANGELOG.md +167 -36
  3. package/dist/assets/hydrogen/starter/app/root.tsx +11 -11
  4. package/dist/assets/hydrogen/starter/app/routes/search.tsx +4 -3
  5. package/dist/assets/hydrogen/starter/app/routes.ts +9 -0
  6. package/dist/assets/hydrogen/starter/package.json +17 -15
  7. package/dist/assets/hydrogen/starter/tsconfig.json +1 -1
  8. package/dist/assets/hydrogen/starter/vite.config.ts +2 -1
  9. package/dist/assets/hydrogen/tailwind/package.json +1 -1
  10. package/dist/assets/hydrogen/vanilla-extract/package.json +2 -2
  11. package/dist/assets/hydrogen/virtual-routes/assets/debug-network.css +27 -10
  12. package/dist/assets/hydrogen/virtual-routes/assets/styles.css +13 -2
  13. package/dist/assets/hydrogen/virtual-routes/layout.jsx +39 -0
  14. package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +63 -0
  15. package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +10 -8
  16. package/dist/assets/hydrogen/vite/package.json +1 -1
  17. package/dist/assets/hydrogen/vite/vite.config.js +1 -0
  18. package/dist/{chunk-RA5UDHSI.js → chunk-2YVR2YAE.js} +3 -3
  19. package/dist/{chunk-O5U2T7LH.js → chunk-35A3HBTL.js} +4 -4
  20. package/dist/{chunk-CBLCYLJO.js → chunk-35XDICNP.js} +2 -2
  21. package/dist/{chunk-QVZW3IVL.js → chunk-5LKOKELK.js} +36 -32
  22. package/dist/{chunk-PHWPEUZI.js → chunk-A5LK333I.js} +3 -3
  23. package/dist/{chunk-LLYJXSNC.js → chunk-BV6PURBM.js} +3 -3
  24. package/dist/{chunk-GPICPOCE.js → chunk-C3Q6M5C3.js} +3 -3
  25. package/dist/{chunk-AW7SZYGV.js → chunk-D2R3AM3S.js} +6 -6
  26. package/dist/{chunk-3ARIMAIR.js → chunk-FIH2SHBE.js} +4 -4
  27. package/dist/{chunk-RWT677FV.js → chunk-GEAXCEGF.js} +4 -4
  28. package/dist/{chunk-7IKFEU6I.js → chunk-GRJWPHAK.js} +2 -2
  29. package/dist/{chunk-ACSVNEID.js → chunk-HLFLQFAO.js} +5 -5
  30. package/dist/{chunk-FJAIUBHO.js → chunk-HQF3OQCV.js} +6 -6
  31. package/dist/{chunk-5ZMRZCPZ.js → chunk-ICGAJSRH.js} +2 -2
  32. package/dist/{chunk-6ZKE2WPK.js → chunk-IJLYOQTB.js} +2 -2
  33. package/dist/{chunk-ZVNHCLRN.js → chunk-K6OZPDRE.js} +3 -3
  34. package/dist/{chunk-IX7XAR6F.js → chunk-KJNPOPZU.js} +3 -3
  35. package/dist/{chunk-SO33Y5TT.js → chunk-KKK42SBP.js} +3 -3
  36. package/dist/{chunk-AUBRXAVZ.js → chunk-KUVHPVGH.js} +3 -3
  37. package/dist/{chunk-DHO2PUCK.js → chunk-MLQTLKNQ.js} +2 -2
  38. package/dist/{chunk-S3PY2ULH.js → chunk-N2GQBM45.js} +13 -4
  39. package/dist/{chunk-V5G4FJZH.js → chunk-NCYK3NPS.js} +288 -241
  40. package/dist/{chunk-VSKRQ3JT.js → chunk-QAKYKTFV.js} +2 -1
  41. package/dist/{chunk-NZVJ77WD.js → chunk-QVDCZMPL.js} +3 -3
  42. package/dist/{chunk-J3C7BGUW.js → chunk-R2JN4S25.js} +4 -4
  43. package/dist/{chunk-YXR557PE.js → chunk-RYZBD47F.js} +3 -3
  44. package/dist/{chunk-AZ33PIX2.js → chunk-S6ZWGAX6.js} +8 -8
  45. package/dist/{chunk-ZKUNCSWD.js → chunk-TQMZLUGH.js} +5 -5
  46. package/dist/{chunk-YL7TDFFA.js → chunk-UDNM674J.js} +3 -3
  47. package/dist/{chunk-74V7KQLD.js → chunk-VAMD3FV3.js} +4 -4
  48. package/dist/{chunk-WN6OLVLP.js → chunk-VNCW4T6F.js} +4 -4
  49. package/dist/{chunk-4BPRKRYD.js → chunk-VNKMVUTV.js} +5 -5
  50. package/dist/{chunk-VTEM2QWG.js → chunk-VTV2W43J.js} +3 -3
  51. package/dist/{chunk-U7E5RRYF.js → chunk-WM4XS6OG.js} +3 -3
  52. package/dist/{chunk-MYIEKIZR.js → chunk-WVISX7R6.js} +2 -2
  53. package/dist/{chunk-NHMQOM7T.js → chunk-XSNERQSV.js} +2 -2
  54. package/dist/cli/commands/auth/logout.js +12 -12
  55. package/dist/cli/commands/auth/logout.test.js +13 -13
  56. package/dist/cli/commands/cache/clear.js +11 -11
  57. package/dist/cli/commands/debug/command-flags.js +11 -11
  58. package/dist/cli/commands/docs/generate.js +11 -11
  59. package/dist/cli/commands/docs/generate.test.js +11 -11
  60. package/dist/cli/commands/help.js +11 -11
  61. package/dist/cli/commands/kitchen-sink/async.js +12 -12
  62. package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
  63. package/dist/cli/commands/kitchen-sink/index.js +14 -14
  64. package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
  65. package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
  66. package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
  67. package/dist/cli/commands/kitchen-sink/static.js +12 -12
  68. package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
  69. package/dist/cli/commands/notifications/generate.js +12 -12
  70. package/dist/cli/commands/notifications/list.js +12 -12
  71. package/dist/cli/commands/search.js +12 -12
  72. package/dist/cli/commands/upgrade.js +12 -12
  73. package/dist/cli/commands/version.js +12 -12
  74. package/dist/cli/commands/version.test.js +12 -12
  75. package/dist/cli/services/commands/notifications.js +7 -7
  76. package/dist/cli/services/commands/search.js +3 -3
  77. package/dist/cli/services/commands/search.test.js +3 -3
  78. package/dist/cli/services/commands/version.js +4 -4
  79. package/dist/cli/services/commands/version.test.js +5 -5
  80. package/dist/cli/services/kitchen-sink/async.js +3 -3
  81. package/dist/cli/services/kitchen-sink/prompts.js +3 -3
  82. package/dist/cli/services/kitchen-sink/static.js +3 -3
  83. package/dist/cli/services/upgrade.js +4 -4
  84. package/dist/cli/services/upgrade.test.js +5 -5
  85. package/dist/{custom-oclif-loader-TE6EUPGI.js → custom-oclif-loader-URFPN7T5.js} +3 -3
  86. package/dist/data/default_setting_values.json +0 -56
  87. package/dist/data/latest.json +1 -1
  88. package/dist/{error-handler-WC4XSLZQ.js → error-handler-JMG43AG2.js} +9 -9
  89. package/dist/hooks/postrun.js +7 -7
  90. package/dist/hooks/prerun.js +8 -8
  91. package/dist/index.js +49586 -10952
  92. package/dist/{lib-SGEWXU7Z.js → lib-IZAG57CE.js} +2 -2
  93. package/dist/{local-7Q5JCU62.js → local-VNB4TMEI.js} +3 -3
  94. package/dist/{morph-WRZ7XCTF.js → morph-W4XLLZ47.js} +9 -9
  95. package/dist/{node-MNEYEH5U.js → node-4XPDXMES.js} +15 -15
  96. package/dist/{node-package-manager-3SFTB3BW.js → node-package-manager-GL4PGGZJ.js} +4 -4
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/dist/{ui-NMP2SY3G.js → ui-LKIZMLKP.js} +3 -3
  99. package/dist/{workerd-NN737W52.js → workerd-RCIF7HOL.js} +14 -14
  100. package/oclif.manifest.json +1 -1
  101. package/package.json +10 -8
@@ -0,0 +1,39 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useNonce } from "@shopify/hydrogen";
3
+ import {
4
+ Links,
5
+ Meta,
6
+ Outlet,
7
+ Scripts,
8
+ ScrollRestoration
9
+ } from "@remix-run/react";
10
+ import { Layout as VirtualLayout } from "./components/Layout.jsx";
11
+ import styles from "./assets/styles.css?url";
12
+ function Layout() {
13
+ const nonce = useNonce();
14
+ return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
15
+ /* @__PURE__ */ jsxs("head", { children: [
16
+ /* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
17
+ /* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
18
+ /* @__PURE__ */ jsx("link", { rel: "stylesheet", href: styles }),
19
+ /* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
20
+ /* @__PURE__ */ jsx(
21
+ "meta",
22
+ {
23
+ name: "description",
24
+ content: "A custom storefront powered by Hydrogen"
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsx(Meta, {}),
28
+ /* @__PURE__ */ jsx(Links, {})
29
+ ] }),
30
+ /* @__PURE__ */ jsxs("body", { children: [
31
+ /* @__PURE__ */ jsx(VirtualLayout, { children: /* @__PURE__ */ jsx(Outlet, {}) }),
32
+ /* @__PURE__ */ jsx(ScrollRestoration, { nonce }),
33
+ /* @__PURE__ */ jsx(Scripts, { nonce })
34
+ ] })
35
+ ] });
36
+ }
37
+ export {
38
+ Layout as default
39
+ };
@@ -0,0 +1,63 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import {
3
+ Links,
4
+ Meta,
5
+ Outlet,
6
+ Scripts,
7
+ ScrollRestoration,
8
+ isRouteErrorResponse,
9
+ useRouteError
10
+ } from "@remix-run/react";
11
+ import favicon from "./assets/favicon.svg";
12
+ import { Layout as VirtualLayout } from "./components/Layout.jsx";
13
+ import { useNonce } from "@shopify/hydrogen";
14
+ import styles from "./assets/styles.css?url";
15
+ const links = () => {
16
+ return [{ rel: "icon", type: "image/svg+xml", href: favicon }];
17
+ };
18
+ function App() {
19
+ const nonce = useNonce();
20
+ return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
21
+ /* @__PURE__ */ jsxs("head", { children: [
22
+ /* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
23
+ /* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
24
+ /* @__PURE__ */ jsx("link", { rel: "stylesheet", href: styles }),
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(VirtualLayout, { children: /* @__PURE__ */ jsx(Outlet, {}) }),
38
+ /* @__PURE__ */ jsx(ScrollRestoration, { nonce }),
39
+ /* @__PURE__ */ jsx(Scripts, { nonce })
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__ */ jsx(VirtualLayout, { children: /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
54
+ /* @__PURE__ */ jsx("h1", { children: "Please report this error" }),
55
+ /* @__PURE__ */ jsx("h2", { children: errorStatus }),
56
+ errorMessage && /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("pre", { children: errorMessage }) })
57
+ ] }) });
58
+ }
59
+ export {
60
+ ErrorBoundary,
61
+ App as default,
62
+ links
63
+ };
@@ -9,21 +9,19 @@ import {
9
9
  useRouteError
10
10
  } from "@remix-run/react";
11
11
  import favicon from "./assets/favicon.svg";
12
- import { Layout } from "./components/Layout.jsx";
12
+ import { Layout as VirtualLayout } from "./components/Layout.jsx";
13
13
  import { useNonce } from "@shopify/hydrogen";
14
14
  import styles from "./assets/styles.css?url";
15
15
  const links = () => {
16
- return [
17
- { rel: "stylesheet", href: styles },
18
- { rel: "icon", type: "image/svg+xml", href: favicon }
19
- ];
16
+ return [{ rel: "icon", type: "image/svg+xml", href: favicon }];
20
17
  };
21
- function App() {
18
+ function Layout({ children }) {
22
19
  const nonce = useNonce();
23
20
  return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
24
21
  /* @__PURE__ */ jsxs("head", { children: [
25
22
  /* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
26
23
  /* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
24
+ /* @__PURE__ */ jsx("link", { rel: "stylesheet", href: styles }),
27
25
  /* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
28
26
  /* @__PURE__ */ jsx(
29
27
  "meta",
@@ -36,12 +34,15 @@ function App() {
36
34
  /* @__PURE__ */ jsx(Links, {})
37
35
  ] }),
38
36
  /* @__PURE__ */ jsxs("body", { children: [
39
- /* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsx(Outlet, {}) }),
37
+ /* @__PURE__ */ jsx(VirtualLayout, { children }),
40
38
  /* @__PURE__ */ jsx(ScrollRestoration, { nonce }),
41
39
  /* @__PURE__ */ jsx(Scripts, { nonce })
42
40
  ] })
43
41
  ] });
44
42
  }
43
+ function App() {
44
+ return /* @__PURE__ */ jsx(Outlet, {});
45
+ }
45
46
  function ErrorBoundary() {
46
47
  const error = useRouteError();
47
48
  let errorMessage = "Unknown error";
@@ -52,7 +53,7 @@ function ErrorBoundary() {
52
53
  } else if (error instanceof Error) {
53
54
  errorMessage = error.message;
54
55
  }
55
- return /* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
56
+ return /* @__PURE__ */ jsx(VirtualLayout, { children: /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
56
57
  /* @__PURE__ */ jsx("h1", { children: "Please report this error" }),
57
58
  /* @__PURE__ */ jsx("h2", { children: errorStatus }),
58
59
  errorMessage && /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("pre", { children: errorMessage }) })
@@ -60,6 +61,7 @@ function ErrorBoundary() {
60
61
  }
61
62
  export {
62
63
  ErrorBoundary,
64
+ Layout,
63
65
  App as default,
64
66
  links
65
67
  };
@@ -8,7 +8,7 @@
8
8
  "isbot": "^5.1.21"
9
9
  },
10
10
  "devDependencies": {
11
- "vite": "^5.1.8",
11
+ "vite": "^6.2.0",
12
12
  "vite-tsconfig-paths": "^4.3.1"
13
13
  }
14
14
  }
@@ -14,6 +14,7 @@ export default defineConfig({
14
14
  v3_fetcherPersist: true,
15
15
  v3_relativeSplatPath: true,
16
16
  v3_throwAbortReason: true,
17
+ v3_routeConfig: true,
17
18
  },
18
19
  }),
19
20
  tsconfigPaths(),
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-5ZMRZCPZ.js";
3
+ } from "./chunk-ICGAJSRH.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-J3C7BGUW.js";
9
+ } from "./chunk-R2JN4S25.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ export {
25
25
  cliInstallCommand,
26
26
  getOutputUpdateCLIReminder
27
27
  };
28
- //# sourceMappingURL=chunk-RA5UDHSI.js.map
28
+ //# sourceMappingURL=chunk-2YVR2YAE.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-CBLCYLJO.js";
3
+ } from "./chunk-35XDICNP.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-4BPRKRYD.js";
6
+ } from "./chunk-VNKMVUTV.js";
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-VSKRQ3JT.js";
9
+ } from "./chunk-QAKYKTFV.js";
10
10
  import {
11
11
  __toESM,
12
12
  init_cjs_shims
@@ -48,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
48
48
  export {
49
49
  Search
50
50
  };
51
- //# sourceMappingURL=chunk-O5U2T7LH.js.map
51
+ //# sourceMappingURL=chunk-35A3HBTL.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openURL
3
- } from "./chunk-J3C7BGUW.js";
3
+ } from "./chunk-R2JN4S25.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-PKR7KJ6P.js";
@@ -15,4 +15,4 @@ async function searchService(query) {
15
15
  export {
16
16
  searchService
17
17
  };
18
- //# sourceMappingURL=chunk-CBLCYLJO.js.map
18
+ //# sourceMappingURL=chunk-35XDICNP.js.map
@@ -4,16 +4,16 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-AW7SZYGV.js";
7
+ } from "./chunk-D2R3AM3S.js";
8
8
  import {
9
9
  getEnvironmentData
10
- } from "./chunk-S3PY2ULH.js";
10
+ } from "./chunk-N2GQBM45.js";
11
11
  import {
12
12
  CLI_KIT_VERSION
13
- } from "./chunk-DHO2PUCK.js";
13
+ } from "./chunk-MLQTLKNQ.js";
14
14
  import {
15
15
  runWithRateLimit
16
- } from "./chunk-5ZMRZCPZ.js";
16
+ } from "./chunk-ICGAJSRH.js";
17
17
  import {
18
18
  AbortSilentError,
19
19
  CancelExecution,
@@ -28,7 +28,7 @@ import {
28
28
  reportingRateLimit,
29
29
  require_stacktracey,
30
30
  shouldReportErrorAsUnexpected
31
- } from "./chunk-J3C7BGUW.js";
31
+ } from "./chunk-R2JN4S25.js";
32
32
  import {
33
33
  cwd,
34
34
  isAbsolutePath,
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-57Q6OQG4.js";
39
39
  import {
40
40
  require_lib
41
- } from "./chunk-VSKRQ3JT.js";
41
+ } from "./chunk-QAKYKTFV.js";
42
42
  import {
43
43
  __commonJS,
44
44
  __require,
@@ -2042,33 +2042,37 @@ var reportError = async (error, config) => {
2042
2042
  shouldReportErrorAsUnexpected(error) && (exitMode = "unexpected_error"), config !== void 0 && await reportAnalyticsEvent({ config, errorMessage: error instanceof Error ? error.message : void 0, exitMode }), await sendErrorToBugsnag(error, exitMode);
2043
2043
  };
2044
2044
  async function sendErrorToBugsnag(error, exitMode) {
2045
- if (import_core.settings.debug)
2046
- return outputDebug("Skipping Bugsnag report"), { reported: !1, error, unhandled: void 0 };
2047
- let unhandled = exitMode === "unexpected_error", reportableError, stacktrace, report = !1;
2048
- error instanceof Error ? (report = !0, reportableError = new Error(error.message), stacktrace = error.stack) : typeof error == "string" && error.trim().length !== 0 ? (report = !0, reportableError = new Error(error), stacktrace = reportableError.stack) : (report = !1, reportableError = new Error("Unknown error"));
2049
- let formattedStacktrace = new import_stacktracey.default(stacktrace ?? "").clean().items.map((item) => {
2050
- let filePath = cleanSingleStackTracePath(item.file);
2051
- return ` at ${item.callee} (${filePath}:${item.line}:${item.column})`;
2052
- }).join(`
2045
+ try {
2046
+ if (import_core.settings.debug)
2047
+ return outputDebug("Skipping Bugsnag report"), { reported: !1, error, unhandled: void 0 };
2048
+ let unhandled = exitMode === "unexpected_error", reportableError, stacktrace, report = !1;
2049
+ error instanceof Error ? (report = !0, reportableError = new Error(error.message), stacktrace = error.stack) : typeof error == "string" && error.trim().length !== 0 ? (report = !0, reportableError = new Error(error), stacktrace = reportableError.stack) : (report = !1, reportableError = new Error("Unknown error"));
2050
+ let formattedStacktrace = new import_stacktracey.default(stacktrace ?? "").clean().items.map((item) => {
2051
+ let filePath = cleanSingleStackTracePath(item.file);
2052
+ return ` at ${item.callee} (${filePath}:${item.line}:${item.column})`;
2053
+ }).join(`
2053
2054
  `);
2054
- reportableError.stack = `Error: ${reportableError.message}
2055
+ reportableError.stack = `Error: ${reportableError.message}
2055
2056
  ${formattedStacktrace}`;
2056
- let withinRateLimit = !1;
2057
- return await runWithRateLimit({
2058
- key: "send-error-to-bugsnag",
2059
- ...reportingRateLimit,
2060
- task: async () => {
2061
- withinRateLimit = !0;
2062
- }
2063
- }), withinRateLimit || (outputDebug("Skipping Bugsnag report due to rate limiting"), report = !1), report && (initializeBugsnag(), await new Promise((resolve, reject) => {
2064
- outputDebug(`Reporting ${unhandled ? "unhandled" : "handled"} error to Bugsnag: ${reportableError.message}`);
2065
- let eventHandler = (event) => {
2066
- event.severity = "error", event.unhandled = unhandled;
2067
- }, errorHandler2 = (error2) => {
2068
- error2 ? reject(error2) : resolve(reportableError);
2069
- };
2070
- import_js.default.notify(reportableError, eventHandler, errorHandler2);
2071
- })), { error: reportableError, reported: report, unhandled };
2057
+ let withinRateLimit = !1;
2058
+ return await runWithRateLimit({
2059
+ key: "send-error-to-bugsnag",
2060
+ ...reportingRateLimit,
2061
+ task: async () => {
2062
+ withinRateLimit = !0;
2063
+ }
2064
+ }), withinRateLimit || (outputDebug("Skipping Bugsnag report due to rate limiting"), report = !1), report && (initializeBugsnag(), await new Promise((resolve, reject) => {
2065
+ outputDebug(`Reporting ${unhandled ? "unhandled" : "handled"} error to Bugsnag: ${reportableError.message}`);
2066
+ let eventHandler = (event) => {
2067
+ event.severity = "error", event.unhandled = unhandled;
2068
+ }, errorHandler2 = (error2) => {
2069
+ error2 ? reject(error2) : resolve(reportableError);
2070
+ };
2071
+ import_js.default.notify(reportableError, eventHandler, errorHandler2);
2072
+ })), { error: reportableError, reported: report, unhandled };
2073
+ } catch (err) {
2074
+ return outputDebug(`Error reporting to Bugsnag: ${err}`), { error, reported: !1, unhandled: void 0 };
2075
+ }
2072
2076
  }
2073
2077
  function cleanStackFrameFilePath({ currentFilePath, projectRoot, pluginLocations }) {
2074
2078
  let fullLocation = isAbsolutePath(currentFilePath) ? currentFilePath : joinPath(projectRoot, currentFilePath), matchingPluginPath = pluginLocations.filter(({ pluginPath }) => fullLocation.startsWith(pluginPath))[0];
@@ -2136,4 +2140,4 @@ export {
2136
2140
  registerCleanBugsnagErrorsFromWithinPlugins,
2137
2141
  addBugsnagMetadata
2138
2142
  };
2139
- //# sourceMappingURL=chunk-QVZW3IVL.js.map
2143
+ //# sourceMappingURL=chunk-5LKOKELK.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-4BPRKRYD.js";
3
+ } from "./chunk-VNKMVUTV.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-VSKRQ3JT.js";
6
+ } from "./chunk-QAKYKTFV.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims
@@ -46,4 +46,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
46
46
  export {
47
47
  HelpCommand
48
48
  };
49
- //# sourceMappingURL=chunk-PHWPEUZI.js.map
49
+ //# sourceMappingURL=chunk-A5LK333I.js.map
@@ -2,7 +2,7 @@ import {
2
2
  init_cjs_shims
3
3
  } from "./chunk-PKR7KJ6P.js";
4
4
 
5
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
5
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
6
6
  init_cjs_shims();
7
7
 
8
8
  // ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
@@ -94,7 +94,7 @@ function portNumbers(from, to) {
94
94
  }(from, to);
95
95
  }
96
96
 
97
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.8_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
97
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
98
98
  function findPort(portPreference, range = 100) {
99
99
  return getPorts({
100
100
  port: portNumbers(portPreference, portPreference + range)
@@ -104,4 +104,4 @@ function findPort(portPreference, range = 100) {
104
104
  export {
105
105
  findPort
106
106
  };
107
- //# sourceMappingURL=chunk-LLYJXSNC.js.map
107
+ //# sourceMappingURL=chunk-BV6PURBM.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-4BPRKRYD.js";
3
+ } from "./chunk-VNKMVUTV.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-J3C7BGUW.js";
9
+ } from "./chunk-R2JN4S25.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
@@ -118,4 +118,4 @@ export {
118
118
  writeCommandFlagInterface,
119
119
  writeCommandUsageExampleFile
120
120
  };
121
- //# sourceMappingURL=chunk-GPICPOCE.js.map
121
+ //# sourceMappingURL=chunk-C3Q6M5C3.js.map
@@ -2,16 +2,16 @@ import {
2
2
  getEnvironmentData,
3
3
  getLastSeenUserIdAfterAuth,
4
4
  getSensitiveEnvironmentData
5
- } from "./chunk-S3PY2ULH.js";
5
+ } from "./chunk-N2GQBM45.js";
6
6
  import {
7
7
  fetch
8
- } from "./chunk-IX7XAR6F.js";
8
+ } from "./chunk-KJNPOPZU.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-DHO2PUCK.js";
11
+ } from "./chunk-MLQTLKNQ.js";
12
12
  import {
13
13
  runWithRateLimit
14
- } from "./chunk-5ZMRZCPZ.js";
14
+ } from "./chunk-ICGAJSRH.js";
15
15
  import {
16
16
  alwaysLogAnalytics,
17
17
  alwaysLogMetrics,
@@ -28,7 +28,7 @@ import {
28
28
  outputDebug,
29
29
  outputToken,
30
30
  reportingRateLimit
31
- } from "./chunk-J3C7BGUW.js";
31
+ } from "./chunk-R2JN4S25.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __esm,
@@ -15930,4 +15930,4 @@ export {
15930
15930
  requestIdsCollection,
15931
15931
  reportAnalyticsEvent
15932
15932
  };
15933
- //# sourceMappingURL=chunk-AW7SZYGV.js.map
15933
+ //# sourceMappingURL=chunk-D2R3AM3S.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-4BPRKRYD.js";
3
+ } from "./chunk-VNKMVUTV.js";
4
4
  import {
5
5
  renderTable,
6
6
  renderText
7
- } from "./chunk-J3C7BGUW.js";
7
+ } from "./chunk-R2JN4S25.js";
8
8
  import {
9
9
  require_lib
10
- } from "./chunk-VSKRQ3JT.js";
10
+ } from "./chunk-QAKYKTFV.js";
11
11
  import {
12
12
  __toESM,
13
13
  init_cjs_shims
@@ -83,4 +83,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
83
83
  export {
84
84
  CommandFlags
85
85
  };
86
- //# sourceMappingURL=chunk-3ARIMAIR.js.map
86
+ //# sourceMappingURL=chunk-FIH2SHBE.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-VTEM2QWG.js";
3
+ } from "./chunk-VTV2W43J.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-4BPRKRYD.js";
6
+ } from "./chunk-VNKMVUTV.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-J3C7BGUW.js";
9
+ } from "./chunk-R2JN4S25.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-RWT677FV.js.map
28
+ //# sourceMappingURL=chunk-GEAXCEGF.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clearCollectedLogs,
3
3
  collectedLogs
4
- } from "./chunk-J3C7BGUW.js";
4
+ } from "./chunk-R2JN4S25.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-PKR7KJ6P.js";
@@ -33,4 +33,4 @@ function mockAndCaptureOutput() {
33
33
  export {
34
34
  mockAndCaptureOutput
35
35
  };
36
- //# sourceMappingURL=chunk-7IKFEU6I.js.map
36
+ //# sourceMappingURL=chunk-GRJWPHAK.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-NHMQOM7T.js";
3
+ } from "./chunk-XSNERQSV.js";
4
4
  import {
5
5
  staticService
6
- } from "./chunk-6ZKE2WPK.js";
6
+ } from "./chunk-IJLYOQTB.js";
7
7
  import {
8
8
  asyncTasks
9
- } from "./chunk-MYIEKIZR.js";
9
+ } from "./chunk-WVISX7R6.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-4BPRKRYD.js";
12
+ } from "./chunk-VNKMVUTV.js";
13
13
  import {
14
14
  init_cjs_shims
15
15
  } from "./chunk-PKR7KJ6P.js";
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
34
34
  export {
35
35
  KitchenSinkAll
36
36
  };
37
- //# sourceMappingURL=chunk-ACSVNEID.js.map
37
+ //# sourceMappingURL=chunk-HLFLQFAO.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  fetch,
3
3
  z
4
- } from "./chunk-IX7XAR6F.js";
4
+ } from "./chunk-KJNPOPZU.js";
5
5
  import {
6
6
  CLI_KIT_VERSION
7
- } from "./chunk-DHO2PUCK.js";
7
+ } from "./chunk-MLQTLKNQ.js";
8
8
  import {
9
9
  cacheRetrieve,
10
10
  cacheStore,
11
11
  versionSatisfies
12
- } from "./chunk-5ZMRZCPZ.js";
12
+ } from "./chunk-ICGAJSRH.js";
13
13
  import {
14
14
  AbortSilentError,
15
15
  exec,
@@ -19,7 +19,7 @@ import {
19
19
  renderError,
20
20
  renderInfo,
21
21
  renderWarning
22
- } from "./chunk-J3C7BGUW.js";
22
+ } from "./chunk-R2JN4S25.js";
23
23
  import {
24
24
  init_cjs_shims
25
25
  } from "./chunk-PKR7KJ6P.js";
@@ -87,7 +87,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
87
87
  throw new AbortSilentError();
88
88
  let errorMessage = `Error showing notifications: ${error.message}`;
89
89
  outputDebug(errorMessage);
90
- let { sendErrorToBugsnag } = await import("./error-handler-WC4XSLZQ.js");
90
+ let { sendErrorToBugsnag } = await import("./error-handler-JMG43AG2.js");
91
91
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
92
92
  }
93
93
  }
@@ -199,4 +199,4 @@ export {
199
199
  fetchNotificationsInBackground,
200
200
  stringifyFilters
201
201
  };
202
- //# sourceMappingURL=chunk-FJAIUBHO.js.map
202
+ //# sourceMappingURL=chunk-HQF3OQCV.js.map
@@ -21,7 +21,7 @@ import {
21
21
  require_get_stream,
22
22
  runWithTimer,
23
23
  writeFile
24
- } from "./chunk-J3C7BGUW.js";
24
+ } from "./chunk-R2JN4S25.js";
25
25
  import {
26
26
  dirname,
27
27
  joinPath
@@ -13749,4 +13749,4 @@ deep-extend/lib/deep-extend.js:
13749
13749
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13750
13750
  *)
13751
13751
  */
13752
- //# sourceMappingURL=chunk-5ZMRZCPZ.js.map
13752
+ //# sourceMappingURL=chunk-ICGAJSRH.js.map
@@ -7,7 +7,7 @@ import {
7
7
  renderSuccess,
8
8
  renderTable,
9
9
  renderWarning
10
- } from "./chunk-J3C7BGUW.js";
10
+ } from "./chunk-R2JN4S25.js";
11
11
  import {
12
12
  init_cjs_shims
13
13
  } from "./chunk-PKR7KJ6P.js";
@@ -203,4 +203,4 @@ async function staticService() {
203
203
  export {
204
204
  staticService
205
205
  };
206
- //# sourceMappingURL=chunk-6ZKE2WPK.js.map
206
+ //# sourceMappingURL=chunk-IJLYOQTB.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-NHMQOM7T.js";
3
+ } from "./chunk-XSNERQSV.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-4BPRKRYD.js";
6
+ } from "./chunk-VNKMVUTV.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var KitchenSinkPrompts = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkPrompts
27
27
  };
28
- //# sourceMappingURL=chunk-ZVNHCLRN.js.map
28
+ //# sourceMappingURL=chunk-K6OZPDRE.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-25IMI7TH.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-DHO2PUCK.js";
8
+ } from "./chunk-MLQTLKNQ.js";
9
9
  import {
10
10
  Environment,
11
11
  firstPartyDev,
@@ -17,7 +17,7 @@ import {
17
17
  serviceEnvironment,
18
18
  skipNetworkLevelRetry,
19
19
  sleep
20
- } from "./chunk-J3C7BGUW.js";
20
+ } from "./chunk-R2JN4S25.js";
21
21
  import {
22
22
  __commonJS,
23
23
  __require,
@@ -31386,4 +31386,4 @@ mime-types/index.js:
31386
31386
  * MIT Licensed
31387
31387
  *)
31388
31388
  */
31389
- //# sourceMappingURL=chunk-IX7XAR6F.js.map
31389
+ //# sourceMappingURL=chunk-KJNPOPZU.js.map