@shopify/create-app 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.
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-RVS7NPOH.js";
4
+ } from "./chunk-UV6IYZ3Q.js";
5
5
  import {
6
6
  CLI_KIT_VERSION,
7
7
  getEnvironmentData
8
- } from "./chunk-QPEQYFIE.js";
8
+ } from "./chunk-VS6UX7CH.js";
9
9
  import {
10
10
  runWithRateLimit
11
- } from "./chunk-VK6YB4CW.js";
11
+ } from "./chunk-XENZIRXB.js";
12
12
  import {
13
13
  AbortSilentError,
14
14
  CancelExecution,
@@ -23,7 +23,7 @@ import {
23
23
  reportingRateLimit,
24
24
  require_stacktracey,
25
25
  shouldReportErrorAsUnexpected
26
- } from "./chunk-MFOTVT4R.js";
26
+ } from "./chunk-IS43CUN4.js";
27
27
  import {
28
28
  require_lib
29
29
  } from "./chunk-NBA3G6YQ.js";
@@ -2129,4 +2129,4 @@ export {
2129
2129
  registerCleanBugsnagErrorsFromWithinPlugins,
2130
2130
  addBugsnagMetadata
2131
2131
  };
2132
- //# sourceMappingURL=chunk-PNW5KDM2.js.map
2132
+ //# sourceMappingURL=chunk-7LUJ2Y3A.js.map
@@ -22458,7 +22458,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
22458
22458
  try {
22459
22459
  await getAndSet();
22460
22460
  } catch (error) {
22461
- let { sendErrorToBugsnag } = await import("./error-handler-N6P2X42R.js");
22461
+ let { sendErrorToBugsnag } = await import("./error-handler-OVH57TNJ.js");
22462
22462
  await sendErrorToBugsnag(error, "unexpected_error");
22463
22463
  }
22464
22464
  }, durationStack = [];
@@ -28020,7 +28020,7 @@ init_cjs_shims();
28020
28020
 
28021
28021
  // ../cli-kit/dist/public/common/function.js
28022
28022
  init_cjs_shims();
28023
- var import_memoize = __toESM(require_memoize()), import_debounce = __toESM(require_debounce());
28023
+ var import_memoize = __toESM(require_memoize(), 1), import_debounce = __toESM(require_debounce(), 1);
28024
28024
  function debounce(func, wait, options) {
28025
28025
  return (0, import_debounce.default)(func, wait, options);
28026
28026
  }
@@ -28060,7 +28060,7 @@ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, has
28060
28060
  }
28061
28061
 
28062
28062
  // ../cli-kit/dist/public/node/ui.js
28063
- var import_react55 = __toESM(require_react(), 1), defaultUIDebugOptions = {
28063
+ var import_react55 = __toESM(require_react()), defaultUIDebugOptions = {
28064
28064
  skipTTYCheck: !1
28065
28065
  };
28066
28066
  async function renderConcurrent({ renderOptions, ...props }) {
@@ -31566,4 +31566,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
31566
31566
  * LICENSE file in the root directory of this source tree.
31567
31567
  *)
31568
31568
  */
31569
- //# sourceMappingURL=chunk-MFOTVT4R.js.map
31569
+ //# sourceMappingURL=chunk-IS43CUN4.js.map
@@ -4,10 +4,10 @@ import {
4
4
  getEnvironmentData,
5
5
  getLastSeenUserIdAfterAuth,
6
6
  getSensitiveEnvironmentData
7
- } from "./chunk-QPEQYFIE.js";
7
+ } from "./chunk-VS6UX7CH.js";
8
8
  import {
9
9
  runWithRateLimit
10
- } from "./chunk-VK6YB4CW.js";
10
+ } from "./chunk-XENZIRXB.js";
11
11
  import {
12
12
  alwaysLogAnalytics,
13
13
  alwaysLogMetrics,
@@ -24,7 +24,7 @@ import {
24
24
  outputDebug,
25
25
  outputToken,
26
26
  reportingRateLimit
27
- } from "./chunk-MFOTVT4R.js";
27
+ } from "./chunk-IS43CUN4.js";
28
28
  import {
29
29
  __commonJS,
30
30
  __esm,
@@ -15926,4 +15926,4 @@ export {
15926
15926
  requestIdsCollection,
15927
15927
  reportAnalyticsEvent
15928
15928
  };
15929
- //# sourceMappingURL=chunk-RVS7NPOH.js.map
15929
+ //# sourceMappingURL=chunk-UV6IYZ3Q.js.map
@@ -10,7 +10,7 @@ import {
10
10
  packageManagerFromUserAgent,
11
11
  removeSession,
12
12
  setSession
13
- } from "./chunk-VK6YB4CW.js";
13
+ } from "./chunk-XENZIRXB.js";
14
14
  import {
15
15
  AbortError,
16
16
  BugError,
@@ -46,7 +46,7 @@ import {
46
46
  spinFqdn,
47
47
  themeKitAccessDomain,
48
48
  themeToken
49
- } from "./chunk-MFOTVT4R.js";
49
+ } from "./chunk-IS43CUN4.js";
50
50
  import {
51
51
  cwd
52
52
  } from "./chunk-ZUCWDIGE.js";
@@ -26916,7 +26916,7 @@ var require_form_data2 = __commonJS({
26916
26916
 
26917
26917
  // ../cli-kit/dist/public/common/version.js
26918
26918
  init_cjs_shims();
26919
- var CLI_KIT_VERSION = "3.74.0";
26919
+ var CLI_KIT_VERSION = "3.74.1";
26920
26920
 
26921
26921
  // ../cli-kit/dist/private/node/analytics.js
26922
26922
  init_cjs_shims();
@@ -32434,4 +32434,4 @@ mime-types/index.js:
32434
32434
  * MIT Licensed
32435
32435
  *)
32436
32436
  */
32437
- //# sourceMappingURL=chunk-QPEQYFIE.js.map
32437
+ //# sourceMappingURL=chunk-VS6UX7CH.js.map
@@ -18,7 +18,7 @@ import {
18
18
  require_get_stream,
19
19
  runWithTimer,
20
20
  writeFile
21
- } from "./chunk-MFOTVT4R.js";
21
+ } from "./chunk-IS43CUN4.js";
22
22
  import {
23
23
  dirname,
24
24
  joinPath
@@ -14830,4 +14830,4 @@ deep-extend/lib/deep-extend.js:
14830
14830
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14831
14831
  *)
14832
14832
  */
14833
- //# sourceMappingURL=chunk-VK6YB4CW.js.map
14833
+ //# sourceMappingURL=chunk-XENZIRXB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  execaSync,
3
3
  fileExistsSync
4
- } from "./chunk-MFOTVT4R.js";
4
+ } from "./chunk-IS43CUN4.js";
5
5
  import {
6
6
  require_lib
7
7
  } from "./chunk-NBA3G6YQ.js";
@@ -44,4 +44,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
44
44
  export {
45
45
  ShopifyConfig
46
46
  };
47
- //# sourceMappingURL=custom-oclif-loader-3WFQ2GRD.js.map
47
+ //# sourceMappingURL=custom-oclif-loader-N77DUCDG.js.map
@@ -4,12 +4,12 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-PNW5KDM2.js";
8
- import "./chunk-RVS7NPOH.js";
9
- import "./chunk-QPEQYFIE.js";
7
+ } from "./chunk-7LUJ2Y3A.js";
8
+ import "./chunk-UV6IYZ3Q.js";
9
+ import "./chunk-VS6UX7CH.js";
10
10
  import "./chunk-25IMI7TH.js";
11
- import "./chunk-VK6YB4CW.js";
12
- import "./chunk-MFOTVT4R.js";
11
+ import "./chunk-XENZIRXB.js";
12
+ import "./chunk-IS43CUN4.js";
13
13
  import "./chunk-NBA3G6YQ.js";
14
14
  import "./chunk-3I3GQNEW.js";
15
15
  import "./chunk-CFIKVUNW.js";
@@ -29,4 +29,4 @@ export {
29
29
  registerCleanBugsnagErrorsFromWithinPlugins,
30
30
  sendErrorToBugsnag
31
31
  };
32
- //# sourceMappingURL=error-handler-N6P2X42R.js.map
32
+ //# sourceMappingURL=error-handler-OVH57TNJ.js.map
@@ -3,16 +3,16 @@ import {
3
3
  } from "../chunk-CP3BRHWK.js";
4
4
  import {
5
5
  reportAnalyticsEvent
6
- } from "../chunk-RVS7NPOH.js";
7
- import "../chunk-QPEQYFIE.js";
6
+ } from "../chunk-UV6IYZ3Q.js";
7
+ import "../chunk-VS6UX7CH.js";
8
8
  import "../chunk-25IMI7TH.js";
9
- import "../chunk-VK6YB4CW.js";
9
+ import "../chunk-XENZIRXB.js";
10
10
  import {
11
11
  addSensitiveMetadata,
12
12
  getAllSensitiveMetadata,
13
13
  outputDebug,
14
14
  renderWarning
15
- } from "../chunk-MFOTVT4R.js";
15
+ } from "../chunk-IS43CUN4.js";
16
16
  import "../chunk-NBA3G6YQ.js";
17
17
  import "../chunk-3I3GQNEW.js";
18
18
  import "../chunk-CFIKVUNW.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  CLI_KIT_VERSION,
3
3
  startAnalytics
4
- } from "../chunk-QPEQYFIE.js";
4
+ } from "../chunk-VS6UX7CH.js";
5
5
  import "../chunk-25IMI7TH.js";
6
6
  import {
7
7
  checkForCachedNewVersion,
8
8
  checkForNewVersion,
9
9
  packageManagerFromUserAgent,
10
10
  runAtMinimumInterval
11
- } from "../chunk-VK6YB4CW.js";
11
+ } from "../chunk-XENZIRXB.js";
12
12
  import {
13
13
  currentProcessIsGlobal,
14
14
  inferPackageManagerForGlobalCLI,
@@ -16,7 +16,7 @@ import {
16
16
  outputDebug,
17
17
  outputToken,
18
18
  outputWarn
19
- } from "../chunk-MFOTVT4R.js";
19
+ } from "../chunk-IS43CUN4.js";
20
20
  import "../chunk-NBA3G6YQ.js";
21
21
  import "../chunk-3I3GQNEW.js";
22
22
  import "../chunk-CFIKVUNW.js";
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  errorHandler,
13
13
  registerCleanBugsnagErrorsFromWithinPlugins,
14
14
  require_end_of_stream
15
- } from "./chunk-PNW5KDM2.js";
15
+ } from "./chunk-7LUJ2Y3A.js";
16
16
  import {
17
17
  setNextDeprecationDate
18
18
  } from "./chunk-CP3BRHWK.js";
@@ -21,7 +21,7 @@ import {
21
21
  getListOfTunnelPlugins,
22
22
  reportAnalyticsEvent,
23
23
  requestIdsCollection
24
- } from "./chunk-RVS7NPOH.js";
24
+ } from "./chunk-UV6IYZ3Q.js";
25
25
  import {
26
26
  CLI_KIT_VERSION,
27
27
  ClientError,
@@ -59,7 +59,7 @@ import {
59
59
  setLastSeenUserIdAfterAuth,
60
60
  username,
61
61
  z
62
- } from "./chunk-QPEQYFIE.js";
62
+ } from "./chunk-VS6UX7CH.js";
63
63
  import "./chunk-25IMI7TH.js";
64
64
  import {
65
65
  LocalStorage,
@@ -84,7 +84,7 @@ import {
84
84
  usesWorkspaces,
85
85
  versionSatisfies,
86
86
  writePackageJSON
87
- } from "./chunk-VK6YB4CW.js";
87
+ } from "./chunk-XENZIRXB.js";
88
88
  import {
89
89
  AbortController as AbortController2,
90
90
  AbortError,
@@ -269,7 +269,7 @@ import {
269
269
  use_stdin_default,
270
270
  writeFile,
271
271
  writeFileSync
272
- } from "./chunk-MFOTVT4R.js";
272
+ } from "./chunk-IS43CUN4.js";
273
273
  import {
274
274
  require_brace_expansion,
275
275
  require_lib
@@ -143676,10 +143676,10 @@ function compact(object) {
143676
143676
  }
143677
143677
 
143678
143678
  // ../app/dist/cli/services/function/build.js
143679
- var SHOPIFY_FUNCTION_NPM_PACKAGE_MAJOR_VERSION = "1", InvalidShopifyFunctionPackageError = class extends AbortError {
143679
+ var ALLOWED_FUNCTION_NPM_PACKAGE_MAJOR_VERSIONS = ["0", "1"], PREFERRED_FUNCTION_NPM_PACKAGE_MAJOR_VERSION = "1", InvalidShopifyFunctionPackageError = class extends AbortError {
143680
143680
  constructor(message) {
143681
143681
  super(message, outputContent`Make sure you have a compatible version of the ${outputToken.yellow("@shopify/shopify_function")} library installed.`, [
143682
- 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,
143682
+ 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,
143683
143683
  "Run your package manager's install command to update dependencies."
143684
143684
  ]);
143685
143685
  }
@@ -143747,7 +143747,8 @@ async function validateShopifyFunctionPackageVersion(fun) {
143747
143747
  });
143748
143748
  if (!packageJsonPath)
143749
143749
  throw new InvalidShopifyFunctionPackageError("Could not find the Shopify Functions JavaScript library.");
143750
- if (JSON.parse(await readFile(packageJsonPath)).version.split(".")[0] !== SHOPIFY_FUNCTION_NPM_PACKAGE_MAJOR_VERSION)
143750
+ let majorVersion = JSON.parse(await readFile(packageJsonPath)).version.split(".")[0];
143751
+ if (!ALLOWED_FUNCTION_NPM_PACKAGE_MAJOR_VERSIONS.includes(majorVersion))
143751
143752
  throw new InvalidShopifyFunctionPackageError("The installed version of the Shopify Functions JavaScript library is not compatible with this version of Shopify CLI.");
143752
143753
  }
143753
143754
  async function bundleExtension(fun, options2, processEnv = process.env) {
@@ -144036,7 +144037,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
144036
144037
  throw new AbortSilentError();
144037
144038
  let errorMessage2 = `Error retrieving notifications: ${error.message}`;
144038
144039
  outputDebug(errorMessage2);
144039
- let { sendErrorToBugsnag } = await import("./error-handler-N6P2X42R.js");
144040
+ let { sendErrorToBugsnag } = await import("./error-handler-OVH57TNJ.js");
144040
144041
  await sendErrorToBugsnag(errorMessage2, "unexpected_error");
144041
144042
  }
144042
144043
  }
@@ -145367,6 +145368,8 @@ async function buildFunctionExtension(extension, options2) {
145367
145368
  await touchFile(bundlePath), await writeFile(bundlePath, base64Contents);
145368
145369
  }
145369
145370
  } catch (error) {
145371
+ if (error instanceof AbortError)
145372
+ throw error;
145370
145373
  let errorMessage2 = error.message ?? "Unknown error occurred";
145371
145374
  throw new AbortError("Failed to build function.", errorMessage2);
145372
145375
  } finally {
@@ -149106,7 +149109,7 @@ var DevStoresByOrg = {
149106
149109
 
149107
149110
  // ../cli-kit/dist/public/node/api/partners.js
149108
149111
  init_cjs_shims();
149109
- var import_bottleneck = __toESM(require_lib4()), limiter = new import_bottleneck.default({
149112
+ var import_bottleneck = __toESM(require_lib4(), 1), limiter = new import_bottleneck.default({
149110
149113
  minTime: 150,
149111
149114
  maxConcurrent: 10
149112
149115
  });
@@ -153476,7 +153479,7 @@ init_cjs_shims();
153476
153479
  init_cjs_shims();
153477
153480
  import { fileURLToPath as fileURLToPath2 } from "node:url";
153478
153481
  async function launchCLI(options2) {
153479
- let { errorHandler: errorHandler3 } = await import("./error-handler-N6P2X42R.js"), { isDevelopment: isDevelopment2 } = await import("./local-EBAW6AUD.js"), oclif = await import("./lib-ZAUU5FOJ.js"), { ShopifyConfig } = await import("./custom-oclif-loader-3WFQ2GRD.js");
153482
+ let { errorHandler: errorHandler3 } = await import("./error-handler-OVH57TNJ.js"), { isDevelopment: isDevelopment2 } = await import("./local-ERLG2ZPN.js"), oclif = await import("./lib-ZAUU5FOJ.js"), { ShopifyConfig } = await import("./custom-oclif-loader-N77DUCDG.js");
153480
153483
  isDevelopment2() && (oclif.default.settings.debug = !0);
153481
153484
  try {
153482
153485
  let config2 = new ShopifyConfig({ root: fileURLToPath2(options2.moduleURL) });
@@ -153491,7 +153494,7 @@ var import_core3 = __toESM(require_lib());
153491
153494
  async function warnIfOldNodeVersion(versions2 = process.versions) {
153492
153495
  let nodeVersion = versions2.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
153493
153496
  if (nodeMajorVersion < 18) {
153494
- let { renderWarning: renderWarning2 } = await import("./ui-QBKDPUJX.js");
153497
+ let { renderWarning: renderWarning2 } = await import("./ui-J4ZQO6RP.js");
153495
153498
  renderWarning2({
153496
153499
  headline: "Upgrade to a supported Node version now.",
153497
153500
  body: [
@@ -153518,7 +153521,7 @@ async function runCLI(options2, launchCLI2 = launchCLI, argv = process.argv, env
153518
153521
  return setupEnvironmentVariables(options2, argv, env), options2.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options2, argv), forceNoColor(argv, env), await warnIfOldNodeVersion(versions2), launchCLI2({ moduleURL: options2.moduleURL });
153519
153522
  }
153520
153523
  async function addInitToArgvWhenRunningCreateCLI(options2, argv = process.argv) {
153521
- let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-VTG2B4KW.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-GWAZZN2N.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options2.moduleURL))).content.name.replace("@shopify/create-", "");
153524
+ let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-YQCLDJCT.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-GWAZZN2N.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options2.moduleURL))).content.name.replace("@shopify/create-", "");
153522
153525
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
153523
153526
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
153524
153527
  argv.splice(initIndex2, 0, "init");
@@ -170778,7 +170781,7 @@ function getFunctionRuntimeDependencies(templateLanguage) {
170778
170781
  let dependencies = [];
170779
170782
  return templateLanguage === "javascript" && dependencies.push({
170780
170783
  name: "@shopify/shopify_function",
170781
- version: `~${SHOPIFY_FUNCTION_NPM_PACKAGE_MAJOR_VERSION}.0.0`
170784
+ version: `~${PREFERRED_FUNCTION_NPM_PACKAGE_MAJOR_VERSION}.0.0`
170782
170785
  }), dependencies;
170783
170786
  }
170784
170787
  async function changeIndexFileExtension(extensionDirectory, fileExtension, renameGlob = "*") {
@@ -22,7 +22,7 @@ import {
22
22
  themeToken,
23
23
  useEmbeddedThemeCLI,
24
24
  useThemebundling
25
- } from "./chunk-MFOTVT4R.js";
25
+ } from "./chunk-IS43CUN4.js";
26
26
  import "./chunk-NBA3G6YQ.js";
27
27
  import "./chunk-3I3GQNEW.js";
28
28
  import "./chunk-CFIKVUNW.js";
@@ -59,4 +59,4 @@ export {
59
59
  useEmbeddedThemeCLI,
60
60
  useThemebundling
61
61
  };
62
- //# sourceMappingURL=local-EBAW6AUD.js.map
62
+ //# sourceMappingURL=local-ERLG2ZPN.js.map
@@ -29,8 +29,8 @@ import {
29
29
  versionSatisfies,
30
30
  writePackageJSON,
31
31
  yarnLockfile
32
- } from "./chunk-VK6YB4CW.js";
33
- import "./chunk-MFOTVT4R.js";
32
+ } from "./chunk-XENZIRXB.js";
33
+ import "./chunk-IS43CUN4.js";
34
34
  import "./chunk-NBA3G6YQ.js";
35
35
  import "./chunk-3I3GQNEW.js";
36
36
  import "./chunk-CFIKVUNW.js";
@@ -74,4 +74,4 @@ export {
74
74
  writePackageJSON,
75
75
  yarnLockfile
76
76
  };
77
- //# sourceMappingURL=node-package-manager-VTG2B4KW.js.map
77
+ //# sourceMappingURL=node-package-manager-YQCLDJCT.js.map
@@ -17,7 +17,7 @@ import {
17
17
  renderText,
18
18
  renderTextPrompt,
19
19
  renderWarning
20
- } from "./chunk-MFOTVT4R.js";
20
+ } from "./chunk-IS43CUN4.js";
21
21
  import "./chunk-NBA3G6YQ.js";
22
22
  import "./chunk-3I3GQNEW.js";
23
23
  import "./chunk-CFIKVUNW.js";
@@ -49,4 +49,4 @@ export {
49
49
  renderTextPrompt,
50
50
  renderWarning
51
51
  };
52
- //# sourceMappingURL=ui-QBKDPUJX.js.map
52
+ //# sourceMappingURL=ui-J4ZQO6RP.js.map
@@ -104,5 +104,5 @@
104
104
  "summary": "Create a new app project"
105
105
  }
106
106
  },
107
- "version": "3.74.0"
107
+ "version": "3.74.1"
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/create-app",
3
- "version": "3.74.0",
3
+ "version": "3.74.1",
4
4
  "private": false,
5
5
  "description": "A CLI tool to create a new Shopify app.",
6
6
  "keywords": [
@@ -47,8 +47,8 @@
47
47
  "esbuild": "0.24.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@shopify/cli-kit": "3.74.0",
51
- "@shopify/app": "3.74.0",
50
+ "@shopify/cli-kit": "3.74.1",
51
+ "@shopify/app": "3.74.1",
52
52
  "esbuild-plugin-copy": "^2.1.1",
53
53
  "@vitest/coverage-istanbul": "^1.6.0"
54
54
  },