@shopify/cli-kit 3.0.5 → 3.0.8

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @shopify/cli-kit
2
2
 
3
+ ## 3.0.8
4
+
5
+ ## 3.0.7
6
+
7
+ ### Patch Changes
8
+
9
+ - 8de7f95d: Fix an issue that causes releases not to pick the latest version of the CLI packages
10
+
11
+ ## 3.0.6
12
+
13
+ ### Patch Changes
14
+
15
+ - 1e4d024e: Fixed randomly misfunction for detecting Fatal error types
16
+ - 27677c2d: Added support for apps_next beta flag when creating apps
17
+
3
18
  ## 3.0.5
4
19
 
5
20
  ## 3.0.4
@@ -12317,7 +12317,7 @@ var path$w = /*#__PURE__*/Object.freeze({
12317
12317
  });
12318
12318
 
12319
12319
  var name = "@shopify/cli-kit";
12320
- var version$4 = "3.0.5";
12320
+ var version$1 = "3.0.8";
12321
12321
  var description$1 = "A set of utilities, interfaces, and models that are common across all the platform features";
12322
12322
  var keywords = [
12323
12323
  "shopify",
@@ -12413,7 +12413,7 @@ var devDependencies = {
12413
12413
  };
12414
12414
  var cliKitPackageJson = {
12415
12415
  name: name,
12416
- version: version$4,
12416
+ version: version$1,
12417
12417
  "private": false,
12418
12418
  description: description$1,
12419
12419
  keywords: keywords,
@@ -12433,12 +12433,6 @@ var cliKitPackageJson = {
12433
12433
  devDependencies: devDependencies
12434
12434
  };
12435
12435
 
12436
- var version$3 = "3.0.5";
12437
-
12438
- var version$2 = "3.0.5";
12439
-
12440
- var version$1 = "3.0.5";
12441
-
12442
12436
  const homedir$1 = os$8.homedir();
12443
12437
  const tmpdir$1 = os$8.tmpdir();
12444
12438
  const {env: env$3} = process$2;
@@ -12546,10 +12540,7 @@ const constants$2 = {
12546
12540
  }
12547
12541
  },
12548
12542
  versions: {
12549
- cliKit: version$4,
12550
- cli: version$3,
12551
- app: version$2,
12552
- cliHydrogen: version$1
12543
+ cliKit: version$1
12553
12544
  },
12554
12545
  keychain: {
12555
12546
  service: "shopify-cli"
@@ -21478,26 +21469,35 @@ var output = /*#__PURE__*/Object.freeze({
21478
21469
 
21479
21470
  sourceMapSupport.install();
21480
21471
  class Fatal extends Error {
21481
- constructor(message, tryMessage = null) {
21472
+ constructor(message, type, tryMessage = null) {
21482
21473
  super(message);
21483
21474
  this.tryMessage = tryMessage;
21475
+ this.type = type;
21484
21476
  }
21485
21477
  }
21486
21478
  class Abort extends Fatal {
21479
+ constructor(message, tryMessage = null) {
21480
+ super(message, 0 /* Abort */, tryMessage);
21481
+ }
21487
21482
  }
21488
21483
  class AbortSilent extends Fatal {
21489
21484
  constructor() {
21490
- super("");
21485
+ super("", 1 /* AbortSilent */);
21491
21486
  }
21492
21487
  }
21493
21488
  class Bug extends Fatal {
21489
+ constructor(message, tryMessage = null) {
21490
+ super(message, 2 /* Bug */, tryMessage);
21491
+ }
21494
21492
  }
21495
21493
  async function handler(error) {
21496
21494
  let fatal;
21497
- if (error instanceof Fatal) {
21495
+ if (isFatal(error)) {
21498
21496
  fatal = error;
21499
21497
  } else {
21500
21498
  fatal = new Bug(error.message);
21499
+ }
21500
+ if (fatal.type === 2 /* Bug */) {
21501
21501
  fatal.stack = error.stack;
21502
21502
  }
21503
21503
  await error$k(fatal);
@@ -21512,6 +21512,18 @@ function mapper$1(error) {
21512
21512
  return Promise.resolve(error);
21513
21513
  }
21514
21514
  }
21515
+ function isFatal(error) {
21516
+ return Object.prototype.hasOwnProperty.call(error, "type");
21517
+ }
21518
+ function shouldReport(error) {
21519
+ if (!isFatal(error)) {
21520
+ return true;
21521
+ }
21522
+ if (error.type === 2 /* Bug */) {
21523
+ return true;
21524
+ }
21525
+ return false;
21526
+ }
21515
21527
 
21516
21528
  var error$j = /*#__PURE__*/Object.freeze({
21517
21529
  __proto__: null,
@@ -21521,6 +21533,8 @@ var error$j = /*#__PURE__*/Object.freeze({
21521
21533
  Bug: Bug,
21522
21534
  handler: handler,
21523
21535
  mapper: mapper$1,
21536
+ isFatal: isFatal,
21537
+ shouldReport: shouldReport,
21524
21538
  AbortSignal: AbortSignal
21525
21539
  });
21526
21540
 
@@ -40730,7 +40744,7 @@ class Body$1 {
40730
40744
  return formData;
40731
40745
  }
40732
40746
 
40733
- const {toFormData} = await import('./multipart-parser-afb071c7.js');
40747
+ const {toFormData} = await import('./multipart-parser-f8b89807.js');
40734
40748
  return toFormData(this.body, ct);
40735
40749
  }
40736
40750
 
@@ -54661,7 +54675,7 @@ var github = /*#__PURE__*/Object.freeze({
54661
54675
 
54662
54676
  const dependencyManager = ["yarn", "npm", "pnpm"];
54663
54677
  const PackageJsonNotFoundError = (directory) => {
54664
- return new Bug(`The directory ${directory} doesn't have a package.json.`);
54678
+ return new Abort(`The directory ${directory} doesn't have a package.json.`);
54665
54679
  };
54666
54680
  function dependencyManagerUsedForCreating(env = process.env) {
54667
54681
  if (env.npm_config_user_agent?.includes("yarn")) {
@@ -84932,7 +84946,7 @@ var store = /*#__PURE__*/Object.freeze({
84932
84946
  });
84933
84947
 
84934
84948
  async function buildHeaders(token) {
84935
- const userAgent = `Shopify CLI; v=${constants$2.versions.cli}`;
84949
+ const userAgent = `Shopify CLI; v=${constants$2.versions.cliKit}`;
84936
84950
  await isShopify();
84937
84951
  const headers = {
84938
84952
  "User-Agent": userAgent,
@@ -172271,7 +172285,7 @@ Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get
172271
172285
  }(dist$1));
172272
172286
 
172273
172287
  const UnauthorizedAccessError = () => {
172274
- return new Bug(`You can't use Shopify CLI with development stores if you only have Partner staff member access.
172288
+ return new Abort(`You can't use Shopify CLI with development stores if you only have Partner staff member access.
172275
172289
  If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store`, `If you're the store owner, then you need to log in to the store directly using the store URL at least once (for example, using %s.myshopify.com/admin) before you log in using Shopify CLI.
172276
172290
  Logging in to the Shopify admin directly connects the development store with your Shopify login.`);
172277
172291
  };
@@ -172350,6 +172364,7 @@ const FindOrganizationQuery = dist$1.gql`
172350
172364
  id
172351
172365
  businessName
172352
172366
  website
172367
+ appsNext
172353
172368
  apps(first: 100) {
172354
172369
  nodes {
172355
172370
  id
@@ -172373,18 +172388,28 @@ const AllOrganizationsQuery = dist$1.gql`
172373
172388
  id
172374
172389
  businessName
172375
172390
  website
172391
+ appsNext
172376
172392
  }
172377
172393
  }
172378
172394
  }
172379
172395
  `;
172380
172396
 
172381
172397
  const CreateAppQuery = dist$1.gql`
172382
- mutation AppCreate($org: Int!, $title: String!, $appUrl: Url!, $redir: [Url]!) {
172383
- appCreate(input: {organizationID: $org, title: $title, applicationUrl: $appUrl, redirectUrlWhitelist: $redir}) {
172398
+ mutation AppCreate($org: Int!, $title: String!, $appUrl: Url!, $redir: [Url]!, $type: AppType) {
172399
+ appCreate(
172400
+ input: {
172401
+ organizationID: $org
172402
+ title: $title
172403
+ applicationUrl: $appUrl
172404
+ redirectUrlWhitelist: $redir
172405
+ appType: $type
172406
+ }
172407
+ ) {
172384
172408
  app {
172385
172409
  id
172386
172410
  apiKey
172387
172411
  title
172412
+ appType
172388
172413
  applicationUrl
172389
172414
  redirectUrlWhitelist
172390
172415
  apiSecretKeys {
@@ -173440,4 +173465,4 @@ var plugins = /*#__PURE__*/Object.freeze({
173440
173465
  });
173441
173466
 
173442
173467
  export { npm as A, port as B, cli as C, id as D, temporary as E, FormData$3 as F, dotEnv as G, abort as H, constants$2 as I, plugins as J, File$1 as a, string as b, github as c, dependency as d, error$j as e, file$1 as f, git as g, os$2 as h, environment as i, session as j, schema$2 as k, toml as l, store as m, api as n, output as o, path$w as p, http$2 as q, archiver as r, system as s, template as t, ui as u, version as v, checksum as w, ruby as x, yaml as y, semver as z };
173443
- //# sourceMappingURL=index-cc1e1cdd.js.map
173468
+ //# sourceMappingURL=index-f6a079e8.js.map