@shopify/cli 3.74.0 → 3.74.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 (79) hide show
  1. package/dist/{chunk-PMOQBQSE.js → chunk-4VWVAF7H.js} +3 -3
  2. package/dist/{chunk-NUW6LQU4.js → chunk-5L3V3XN7.js} +3 -3
  3. package/dist/{chunk-FMXC2O6H.js → chunk-6J2OGZ3N.js} +2 -2
  4. package/dist/{chunk-XBIDXV7B.js → chunk-6N46HJWX.js} +3 -3
  5. package/dist/{chunk-4W33LVQQ.js → chunk-7DCZ4PEB.js} +3 -3
  6. package/dist/{chunk-GVMUVIT5.js → chunk-7HJY7CZB.js} +6 -6
  7. package/dist/{chunk-5JWRABV2.js → chunk-AQFGEPN5.js} +7 -7
  8. package/dist/{chunk-I6YWZKVU.js → chunk-BGCAU2LM.js} +2 -2
  9. package/dist/{chunk-VI4NVMJH.js → chunk-C2KCEZK7.js} +2 -2
  10. package/dist/{chunk-2GCE2GUM.js → chunk-CGXWFHRF.js} +3 -3
  11. package/dist/{chunk-WNUVUNTL.js → chunk-CKTTNTVQ.js} +6 -6
  12. package/dist/{chunk-BWBSJLZN.js → chunk-DDHWVLT7.js} +3 -3
  13. package/dist/{chunk-6JNRBEP6.js → chunk-DH65BORI.js} +4 -4
  14. package/dist/{chunk-QEUQO265.js → chunk-DNKTPUYV.js} +4 -4
  15. package/dist/{chunk-XJNTFQIK.js → chunk-FKB56THZ.js} +5 -5
  16. package/dist/{chunk-WBTJ7MQU.js → chunk-GSDR4V4C.js} +3 -3
  17. package/dist/{chunk-D5AR5HKB.js → chunk-H6V3ZAMP.js} +2 -2
  18. package/dist/{chunk-ACIVN2Q4.js → chunk-IVI5VH2V.js} +2 -2
  19. package/dist/{chunk-JWRRKMF2.js → chunk-L5L7GDSR.js} +2 -2
  20. package/dist/{chunk-QRARFXIM.js → chunk-LOKVDI3S.js} +5 -5
  21. package/dist/{chunk-IYQNHNNP.js → chunk-MCL7WC6G.js} +3 -3
  22. package/dist/{chunk-4QRIOWN3.js → chunk-P6UIGUUZ.js} +2 -2
  23. package/dist/{chunk-B27LGWRZ.js → chunk-PLIMIFMY.js} +3 -3
  24. package/dist/{chunk-76NEANNG.js → chunk-POBZPEHK.js} +8 -8
  25. package/dist/{chunk-LH6BHL6J.js → chunk-POKIPHUC.js} +3 -3
  26. package/dist/{chunk-R7RENZQC.js → chunk-QVSOZYZT.js} +3 -3
  27. package/dist/{chunk-FCWD4NEK.js → chunk-RAAPXB5S.js} +3 -3
  28. package/dist/{chunk-UB7RN523.js → chunk-S7L4E7JJ.js} +6 -6
  29. package/dist/{chunk-WKO4CJCL.js → chunk-TKPN642B.js} +3 -3
  30. package/dist/{chunk-L3FVJFIT.js → chunk-TLXMY7OM.js} +2 -2
  31. package/dist/{chunk-MSBZRBI5.js → chunk-VKUWRIWE.js} +4 -4
  32. package/dist/{chunk-5JC3BUPR.js → chunk-WYNFQEFV.js} +2 -2
  33. package/dist/{chunk-MDJOXUMQ.js → chunk-X2GSBUQM.js} +3 -3
  34. package/dist/{chunk-7T4EKFVU.js → chunk-XCOZPDGL.js} +2 -2
  35. package/dist/{chunk-53WQGP7S.js → chunk-Z4WWAZEY.js} +4 -4
  36. package/dist/cli/commands/auth/logout.js +12 -12
  37. package/dist/cli/commands/auth/logout.test.js +13 -13
  38. package/dist/cli/commands/cache/clear.js +11 -11
  39. package/dist/cli/commands/debug/command-flags.js +11 -11
  40. package/dist/cli/commands/docs/generate.js +11 -11
  41. package/dist/cli/commands/docs/generate.test.js +11 -11
  42. package/dist/cli/commands/help.js +11 -11
  43. package/dist/cli/commands/kitchen-sink/async.js +12 -12
  44. package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
  45. package/dist/cli/commands/kitchen-sink/index.js +14 -14
  46. package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
  47. package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
  48. package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
  49. package/dist/cli/commands/kitchen-sink/static.js +12 -12
  50. package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
  51. package/dist/cli/commands/notifications/generate.js +12 -12
  52. package/dist/cli/commands/notifications/list.js +12 -12
  53. package/dist/cli/commands/search.js +12 -12
  54. package/dist/cli/commands/upgrade.js +12 -12
  55. package/dist/cli/commands/version.js +12 -12
  56. package/dist/cli/commands/version.test.js +12 -12
  57. package/dist/cli/services/commands/notifications.js +6 -6
  58. package/dist/cli/services/commands/search.js +2 -2
  59. package/dist/cli/services/commands/search.test.js +2 -2
  60. package/dist/cli/services/commands/version.js +3 -3
  61. package/dist/cli/services/commands/version.test.js +4 -4
  62. package/dist/cli/services/kitchen-sink/async.js +2 -2
  63. package/dist/cli/services/kitchen-sink/prompts.js +2 -2
  64. package/dist/cli/services/kitchen-sink/static.js +2 -2
  65. package/dist/cli/services/upgrade.js +3 -3
  66. package/dist/cli/services/upgrade.test.js +5 -5
  67. package/dist/{custom-oclif-loader-ZY5GUSB3.js → custom-oclif-loader-YCFOTKOV.js} +2 -2
  68. package/dist/{error-handler-YRN4E6SY.js → error-handler-S6ZLT6DF.js} +9 -9
  69. package/dist/hooks/postrun.js +7 -7
  70. package/dist/hooks/prerun.js +7 -7
  71. package/dist/index.js +42 -39
  72. package/dist/{local-VTZT5Q4L.js → local-62JTGJVG.js} +2 -2
  73. package/dist/{node-ONVZF27D.js → node-M7KO76D7.js} +13 -13
  74. package/dist/{node-package-manager-BZNXJETD.js → node-package-manager-RXCBZVWU.js} +3 -3
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/dist/{ui-3RKZNTJR.js → ui-CEJ6R3AV.js} +2 -2
  77. package/dist/{workerd-PSNADDQA.js → workerd-WLX2SY5E.js} +13 -13
  78. package/oclif.manifest.json +1 -1
  79. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -133,7 +133,7 @@ import {
133
133
  supressNodeExperimentalWarnings,
134
134
  unsetStorefront,
135
135
  waitForJob
136
- } from "./chunk-76NEANNG.js";
136
+ } from "./chunk-POBZPEHK.js";
137
137
  import {
138
138
  require_ms
139
139
  } from "./chunk-LQ2ZKVR6.js";
@@ -151,37 +151,37 @@ import {
151
151
  } from "./chunk-MW7RWHY5.js";
152
152
  import {
153
153
  List
154
- } from "./chunk-2GCE2GUM.js";
154
+ } from "./chunk-CGXWFHRF.js";
155
155
  import {
156
156
  Search
157
- } from "./chunk-NUW6LQU4.js";
157
+ } from "./chunk-5L3V3XN7.js";
158
158
  import {
159
159
  Upgrade
160
- } from "./chunk-53WQGP7S.js";
161
- import "./chunk-FCWD4NEK.js";
160
+ } from "./chunk-Z4WWAZEY.js";
161
+ import "./chunk-RAAPXB5S.js";
162
162
  import {
163
163
  Version
164
- } from "./chunk-R7RENZQC.js";
165
- import "./chunk-B27LGWRZ.js";
166
- import "./chunk-FMXC2O6H.js";
164
+ } from "./chunk-QVSOZYZT.js";
165
+ import "./chunk-PLIMIFMY.js";
166
+ import "./chunk-6J2OGZ3N.js";
167
167
  import {
168
168
  KitchenSinkAll
169
- } from "./chunk-XJNTFQIK.js";
169
+ } from "./chunk-FKB56THZ.js";
170
170
  import {
171
171
  KitchenSinkPrompts
172
- } from "./chunk-4W33LVQQ.js";
173
- import "./chunk-VI4NVMJH.js";
172
+ } from "./chunk-7DCZ4PEB.js";
173
+ import "./chunk-C2KCEZK7.js";
174
174
  import {
175
175
  KitchenSinkStatic
176
- } from "./chunk-LH6BHL6J.js";
177
- import "./chunk-7T4EKFVU.js";
176
+ } from "./chunk-POKIPHUC.js";
177
+ import "./chunk-XCOZPDGL.js";
178
178
  import {
179
179
  Generate
180
- } from "./chunk-PMOQBQSE.js";
181
- import "./chunk-QEUQO265.js";
180
+ } from "./chunk-4VWVAF7H.js";
181
+ import "./chunk-DNKTPUYV.js";
182
182
  import {
183
183
  Logout
184
- } from "./chunk-MSBZRBI5.js";
184
+ } from "./chunk-VKUWRIWE.js";
185
185
  import {
186
186
  ensureAuthenticatedAdmin,
187
187
  ensureAuthenticatedAppManagement,
@@ -189,31 +189,31 @@ import {
189
189
  ensureAuthenticatedPartners,
190
190
  ensureAuthenticatedStorefront,
191
191
  ensureAuthenticatedThemes
192
- } from "./chunk-WKO4CJCL.js";
192
+ } from "./chunk-TKPN642B.js";
193
193
  import {
194
194
  ClearCache,
195
195
  globalFlags,
196
196
  jsonFlag,
197
197
  runCLI
198
- } from "./chunk-5JWRABV2.js";
198
+ } from "./chunk-AQFGEPN5.js";
199
199
  import {
200
200
  CommandFlags
201
- } from "./chunk-MDJOXUMQ.js";
201
+ } from "./chunk-X2GSBUQM.js";
202
202
  import {
203
203
  DocsGenerate
204
- } from "./chunk-IYQNHNNP.js";
204
+ } from "./chunk-MCL7WC6G.js";
205
205
  import {
206
206
  HelpCommand
207
- } from "./chunk-5JC3BUPR.js";
207
+ } from "./chunk-WYNFQEFV.js";
208
208
  import {
209
209
  KitchenSinkAsync
210
- } from "./chunk-WBTJ7MQU.js";
211
- import "./chunk-D5AR5HKB.js";
210
+ } from "./chunk-GSDR4V4C.js";
211
+ import "./chunk-H6V3ZAMP.js";
212
212
  import {
213
213
  base_command_default,
214
214
  decodeToml,
215
215
  encodeToml
216
- } from "./chunk-6JNRBEP6.js";
216
+ } from "./chunk-DH65BORI.js";
217
217
  import {
218
218
  require_byline,
219
219
  require_end_of_stream,
@@ -221,7 +221,7 @@ import {
221
221
  require_iserror,
222
222
  require_pump,
223
223
  require_stack_generator
224
- } from "./chunk-WNUVUNTL.js";
224
+ } from "./chunk-CKTTNTVQ.js";
225
225
  import {
226
226
  require_once
227
227
  } from "./chunk-SHWOPMLQ.js";
@@ -229,7 +229,7 @@ import {
229
229
  fanoutHooks,
230
230
  getListOfTunnelPlugins,
231
231
  reportAnalyticsEvent
232
- } from "./chunk-UB7RN523.js";
232
+ } from "./chunk-S7L4E7JJ.js";
233
233
  import {
234
234
  appManagementFqdn,
235
235
  developerDashboardFqdn,
@@ -241,14 +241,14 @@ import {
241
241
  restRequestBody,
242
242
  restRequestHeaders,
243
243
  restRequestUrl
244
- } from "./chunk-QRARFXIM.js";
244
+ } from "./chunk-LOKVDI3S.js";
245
245
  import {
246
246
  platformAndArch,
247
247
  username
248
- } from "./chunk-4QRIOWN3.js";
248
+ } from "./chunk-P6UIGUUZ.js";
249
249
  import {
250
250
  showNotificationsIfNeeded
251
- } from "./chunk-GVMUVIT5.js";
251
+ } from "./chunk-7HJY7CZB.js";
252
252
  import {
253
253
  ClientError,
254
254
  FetchError,
@@ -260,11 +260,11 @@ import {
260
260
  require_lib as require_lib2,
261
261
  require_mime_types,
262
262
  z
263
- } from "./chunk-BWBSJLZN.js";
263
+ } from "./chunk-DDHWVLT7.js";
264
264
  import "./chunk-25IMI7TH.js";
265
265
  import {
266
266
  CLI_KIT_VERSION
267
- } from "./chunk-JWRRKMF2.js";
267
+ } from "./chunk-L5L7GDSR.js";
268
268
  import {
269
269
  LocalStorage,
270
270
  UnknownPackageManagerError,
@@ -287,7 +287,7 @@ import {
287
287
  usesWorkspaces,
288
288
  versionSatisfies,
289
289
  writePackageJSON
290
- } from "./chunk-ACIVN2Q4.js";
290
+ } from "./chunk-IVI5VH2V.js";
291
291
  import "./chunk-HMDWNGIV.js";
292
292
  import {
293
293
  AbortController as AbortController2,
@@ -478,7 +478,7 @@ import {
478
478
  use_stdin_default,
479
479
  writeFile,
480
480
  writeFileSync
481
- } from "./chunk-L3FVJFIT.js";
481
+ } from "./chunk-TLXMY7OM.js";
482
482
  import "./chunk-B5EXYCV3.js";
483
483
  import {
484
484
  require_graceful_fs
@@ -159120,10 +159120,10 @@ async function buildAssetsUrl(port, root) {
159120
159120
  async function startMiniOxygen(options, useNodeRuntime = !1) {
159121
159121
  if (useNodeRuntime) {
159122
159122
  process.env.MINIFLARE_SUBREQUEST_LIMIT = 100;
159123
- let { startNodeServer } = await import("./node-ONVZF27D.js");
159123
+ let { startNodeServer } = await import("./node-M7KO76D7.js");
159124
159124
  return startNodeServer(options);
159125
159125
  }
159126
- let { startWorkerdServer } = await import("./workerd-PSNADDQA.js");
159126
+ let { startWorkerdServer } = await import("./workerd-WLX2SY5E.js");
159127
159127
  return startWorkerdServer(options);
159128
159128
  }
159129
159129
 
@@ -162079,10 +162079,10 @@ function compact(object) {
162079
162079
  }
162080
162080
 
162081
162081
  // ../app/dist/cli/services/function/build.js
162082
- var SHOPIFY_FUNCTION_NPM_PACKAGE_MAJOR_VERSION = "1", InvalidShopifyFunctionPackageError = class extends AbortError {
162082
+ var ALLOWED_FUNCTION_NPM_PACKAGE_MAJOR_VERSIONS = ["0", "1"], PREFERRED_FUNCTION_NPM_PACKAGE_MAJOR_VERSION = "1", InvalidShopifyFunctionPackageError = class extends AbortError {
162083
162083
  constructor(message) {
162084
162084
  super(message, outputContent`Make sure you have a compatible version of the ${outputToken.yellow("@shopify/shopify_function")} library installed.`, [
162085
- outputContent`Add ${outputToken.green(`"@shopify/shopify_function": "~${SHOPIFY_FUNCTION_NPM_PACKAGE_MAJOR_VERSION}.0.0"`)} to the dependencies section of the package.json file in your function's directory, if not already present.`.value,
162085
+ outputContent`Add ${outputToken.green(`"@shopify/shopify_function": "~${PREFERRED_FUNCTION_NPM_PACKAGE_MAJOR_VERSION}.0.0"`)} to the dependencies section of the package.json file in your function's directory, if not already present.`.value,
162086
162086
  "Run your package manager's install command to update dependencies."
162087
162087
  ]);
162088
162088
  }
@@ -162150,7 +162150,8 @@ async function validateShopifyFunctionPackageVersion(fun) {
162150
162150
  });
162151
162151
  if (!packageJsonPath)
162152
162152
  throw new InvalidShopifyFunctionPackageError("Could not find the Shopify Functions JavaScript library.");
162153
- if (JSON.parse(await readFile(packageJsonPath)).version.split(".")[0] !== SHOPIFY_FUNCTION_NPM_PACKAGE_MAJOR_VERSION)
162153
+ let majorVersion = JSON.parse(await readFile(packageJsonPath)).version.split(".")[0];
162154
+ if (!ALLOWED_FUNCTION_NPM_PACKAGE_MAJOR_VERSIONS.includes(majorVersion))
162154
162155
  throw new InvalidShopifyFunctionPackageError("The installed version of the Shopify Functions JavaScript library is not compatible with this version of Shopify CLI.");
162155
162156
  }
162156
162157
  async function bundleExtension(fun, options, processEnv = process.env) {
@@ -163478,6 +163479,8 @@ async function buildFunctionExtension(extension, options) {
163478
163479
  await touchFile(bundlePath), await writeFile(bundlePath, base64Contents);
163479
163480
  }
163480
163481
  } catch (error) {
163482
+ if (error instanceof AbortError)
163483
+ throw error;
163481
163484
  let errorMessage2 = error.message ?? "Unknown error occurred";
163482
163485
  throw new AbortError("Failed to build function.", errorMessage2);
163483
163486
  } finally {
@@ -177556,7 +177559,7 @@ function getFunctionRuntimeDependencies(templateLanguage) {
177556
177559
  let dependencies = [];
177557
177560
  return templateLanguage === "javascript" && dependencies.push({
177558
177561
  name: "@shopify/shopify_function",
177559
- version: `~${SHOPIFY_FUNCTION_NPM_PACKAGE_MAJOR_VERSION}.0.0`
177562
+ version: `~${PREFERRED_FUNCTION_NPM_PACKAGE_MAJOR_VERSION}.0.0`
177560
177563
  }), dependencies;
177561
177564
  }
177562
177565
  async function changeIndexFileExtension(extensionDirectory, fileExtension, renameGlob = "*") {
@@ -22,7 +22,7 @@ import {
22
22
  themeToken,
23
23
  useEmbeddedThemeCLI,
24
24
  useThemebundling
25
- } from "./chunk-L3FVJFIT.js";
25
+ } from "./chunk-TLXMY7OM.js";
26
26
  import "./chunk-B5EXYCV3.js";
27
27
  import "./chunk-75LV6AQS.js";
28
28
  import "./chunk-57Q6OQG4.js";
@@ -62,4 +62,4 @@ export {
62
62
  useEmbeddedThemeCLI,
63
63
  useThemebundling
64
64
  };
65
- //# sourceMappingURL=local-VTZT5Q4L.js.map
65
+ //# sourceMappingURL=local-62JTGJVG.js.map
@@ -12,21 +12,21 @@ import {
12
12
  importLocal,
13
13
  logRequestLine,
14
14
  setConstructors
15
- } from "./chunk-76NEANNG.js";
15
+ } from "./chunk-POBZPEHK.js";
16
16
  import "./chunk-LQ2ZKVR6.js";
17
17
  import "./chunk-CP3BRHWK.js";
18
- import "./chunk-WKO4CJCL.js";
19
- import "./chunk-6JNRBEP6.js";
20
- import "./chunk-WNUVUNTL.js";
18
+ import "./chunk-TKPN642B.js";
19
+ import "./chunk-DH65BORI.js";
20
+ import "./chunk-CKTTNTVQ.js";
21
21
  import "./chunk-SHWOPMLQ.js";
22
- import "./chunk-UB7RN523.js";
23
- import "./chunk-QRARFXIM.js";
24
- import "./chunk-4QRIOWN3.js";
25
- import "./chunk-GVMUVIT5.js";
26
- import "./chunk-BWBSJLZN.js";
22
+ import "./chunk-S7L4E7JJ.js";
23
+ import "./chunk-LOKVDI3S.js";
24
+ import "./chunk-P6UIGUUZ.js";
25
+ import "./chunk-7HJY7CZB.js";
26
+ import "./chunk-DDHWVLT7.js";
27
27
  import "./chunk-25IMI7TH.js";
28
- import "./chunk-JWRRKMF2.js";
29
- import "./chunk-ACIVN2Q4.js";
28
+ import "./chunk-L5L7GDSR.js";
29
+ import "./chunk-IVI5VH2V.js";
30
30
  import "./chunk-HMDWNGIV.js";
31
31
  import {
32
32
  AbortError,
@@ -34,7 +34,7 @@ import {
34
34
  readFile,
35
35
  renderSuccess,
36
36
  source_default
37
- } from "./chunk-L3FVJFIT.js";
37
+ } from "./chunk-TLXMY7OM.js";
38
38
  import "./chunk-B5EXYCV3.js";
39
39
  import "./chunk-75LV6AQS.js";
40
40
  import "./chunk-57Q6OQG4.js";
@@ -165,4 +165,4 @@ async function startNodeServer({
165
165
  export {
166
166
  startNodeServer
167
167
  };
168
- //# sourceMappingURL=node-ONVZF27D.js.map
168
+ //# sourceMappingURL=node-M7KO76D7.js.map
@@ -29,9 +29,9 @@ import {
29
29
  versionSatisfies,
30
30
  writePackageJSON,
31
31
  yarnLockfile
32
- } from "./chunk-ACIVN2Q4.js";
32
+ } from "./chunk-IVI5VH2V.js";
33
33
  import "./chunk-HMDWNGIV.js";
34
- import "./chunk-L3FVJFIT.js";
34
+ import "./chunk-TLXMY7OM.js";
35
35
  import "./chunk-B5EXYCV3.js";
36
36
  import "./chunk-75LV6AQS.js";
37
37
  import "./chunk-57Q6OQG4.js";
@@ -78,4 +78,4 @@ export {
78
78
  writePackageJSON,
79
79
  yarnLockfile
80
80
  };
81
- //# sourceMappingURL=node-package-manager-BZNXJETD.js.map
81
+ //# sourceMappingURL=node-package-manager-RXCBZVWU.js.map