@shopify/oxygen-cli 4.6.17-unstable.202504071541.0 → 4.6.18

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,25 @@
1
1
  # @shopify/oxygen-cli
2
2
 
3
+ ## 4.6.18
4
+
5
+ ### Patch Changes
6
+
7
+ - e507108: Update @changesets/cli from 2.29.0 to 2.29.1
8
+ - b9ef01a: Update vite from 6.2.6 to 6.3.0
9
+ - a20f7ce: Update @changesets/cli from 2.29.1 to 2.29.2
10
+ - 817a449: use launchCLI from @shopify/cli-kit to launch, bump @shopify/cli-kit version constraint
11
+ - 5c54c1c: Use Observe proxy for Bugsnag notifier
12
+
13
+ ## 4.6.17
14
+
15
+ ### Patch Changes
16
+
17
+ - 589036e: Update vite from 6.2.5 to 6.2.6
18
+ - cbb2eac: Update oclif from 4.17.43 to 4.17.44
19
+ - 110b5bf: Update @types/node from 22.14.0 to 22.14.1
20
+ - e213d39: Update @changesets/cli from 2.28.1 to 2.29.0
21
+ - 5e28e0c: bump cross-spawn and @shopify/cli-kit
22
+
3
23
  ## 4.6.16
4
24
 
5
25
  ### Patch Changes
@@ -16,6 +16,7 @@ interface DeploymentCompleteQueryVariables extends Variables {
16
16
  generateAuthBypassToken: boolean;
17
17
  authBypassTokenDuration?: number;
18
18
  environmentVariables?: EnvironmentVariable[];
19
+ [key: string]: string | number | boolean | EnvironmentVariable[] | undefined;
19
20
  }
20
21
  interface DeploymentCompleteResponse {
21
22
  deployment: Deployment;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/deploy/graphql/deployment-complete.ts"],"names":[],"mappings":"AAIO,MAAM,uBAA0B,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","file":"deployment-complete.js","sourcesContent":["import {Variables} from 'graphql-request';\n\nimport {OxygenError} from '../types.js';\n\nexport const DeploymentCompleteQuery = `\n mutation DeploymentComplete($deploymentId: ID!, $generateAuthBypassToken: Boolean, $authBypassTokenDuration: Int, $environmentVariables: [EnvironmentVariableInput!]) {\n deploymentComplete(id: $deploymentId, generateAuthBypassToken: $generateAuthBypassToken, authBypassTokenDuration: $authBypassTokenDuration, environmentVariables: $environmentVariables) {\n deployment {\n id\n url\n }\n authBypassToken\n userErrors {\n message\n }\n }\n }\n`;\n\nexport interface DeploymentCompleteQueryData {\n deploymentComplete: DeploymentCompleteResponse;\n}\n\ninterface EnvironmentVariable {\n isSecret: boolean;\n key: string;\n value: string;\n}\n\nexport interface DeploymentCompleteQueryVariables extends Variables {\n deploymentId: string;\n generateAuthBypassToken: boolean;\n authBypassTokenDuration?: number;\n environmentVariables?: EnvironmentVariable[];\n}\n\nexport interface DeploymentCompleteResponse {\n deployment: Deployment;\n authBypassToken: string | null;\n userErrors: OxygenError[];\n}\n\ninterface Deployment {\n id: string;\n url: string;\n}\n"]}
1
+ {"version":3,"sources":["../../../src/deploy/graphql/deployment-complete.ts"],"names":[],"mappings":"AAIO,MAAM,uBAA0B,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","file":"deployment-complete.js","sourcesContent":["import {Variables} from 'graphql-request';\n\nimport {OxygenError} from '../types.js';\n\nexport const DeploymentCompleteQuery = `\n mutation DeploymentComplete($deploymentId: ID!, $generateAuthBypassToken: Boolean, $authBypassTokenDuration: Int, $environmentVariables: [EnvironmentVariableInput!]) {\n deploymentComplete(id: $deploymentId, generateAuthBypassToken: $generateAuthBypassToken, authBypassTokenDuration: $authBypassTokenDuration, environmentVariables: $environmentVariables) {\n deployment {\n id\n url\n }\n authBypassToken\n userErrors {\n message\n }\n }\n }\n`;\n\nexport interface DeploymentCompleteQueryData {\n deploymentComplete: DeploymentCompleteResponse;\n}\n\ninterface EnvironmentVariable {\n isSecret: boolean;\n key: string;\n value: string;\n}\n\nexport interface DeploymentCompleteQueryVariables extends Variables {\n deploymentId: string;\n generateAuthBypassToken: boolean;\n authBypassTokenDuration?: number;\n environmentVariables?: EnvironmentVariable[];\n [key: string]: string | number | boolean | EnvironmentVariable[] | undefined;\n}\n\nexport interface DeploymentCompleteResponse {\n deployment: Deployment;\n authBypassToken: string | null;\n userErrors: OxygenError[];\n}\n\ninterface Deployment {\n id: string;\n url: string;\n}\n"]}
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
- import { runCLI } from '@shopify/cli-kit/node/cli';
1
+ import { launchCLI } from '@shopify/cli-kit/node/cli-launcher';
2
2
 
3
3
  async function runOxygenCLI() {
4
- await runCLI({
5
- moduleURL: import.meta.url,
6
- development: false
4
+ await launchCLI({
5
+ moduleURL: import.meta.url
7
6
  });
8
7
  }
9
8
  var index_default = runOxygenCLI;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,eAAe,YAAe,GAAA;AAC5B,EAAA,MAAM,MAAO,CAAA;AAAA,IACX,WAAW,MAAY,CAAA,IAAA,CAAA,GAAA;AAAA,IACvB,WAAa,EAAA;AAAA,GACd,CAAA;AACH;AAEA,IAAO,aAAQ,GAAA","file":"index.js","sourcesContent":["import {runCLI} from '@shopify/cli-kit/node/cli';\n\nasync function runOxygenCLI() {\n await runCLI({\n moduleURL: import.meta.url,\n development: false,\n });\n}\n\nexport default runOxygenCLI;\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,eAAe,YAAe,GAAA;AAC5B,EAAA,MAAM,SAAU,CAAA;AAAA,IACd,WAAW,MAAY,CAAA,IAAA,CAAA;AAAA,GACxB,CAAA;AACH;AAEA,IAAO,aAAQ,GAAA","file":"index.js","sourcesContent":["import {launchCLI} from '@shopify/cli-kit/node/cli-launcher';\n\nasync function runOxygenCLI() {\n await launchCLI({\n moduleURL: import.meta.url,\n });\n}\n\nexport default runOxygenCLI;\n"]}
@@ -13,6 +13,10 @@ function setupBugsnag(disableBugsnag) {
13
13
  apiKey: "21fd37fe87ead4b9c5a8eed90752b455",
14
14
  autoDetectErrors: true,
15
15
  appVersion: packageJson.version,
16
+ endpoints: {
17
+ notify: "https://error-analytics-production.shopifysvc.com",
18
+ sessions: "https://error-analytics-sessions-production.shopifysvc.com"
19
+ },
16
20
  logger: null
17
21
  };
18
22
  return Bugsnag.start(bugsnagServerOptions);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/bugsnag.ts"],"names":[],"mappings":";;;AAKA,IAAI,aAAA;AAEJ,SAAS,aAAa,cAAyB,EAAA;AAC7C,EAAA,IAAI,cAAgB,EAAA;AAClB,IAAA;AAAA,GACF,MAAA,IAAY,QAAgB,OAAS,EAAA;AACnC,IAAO,OAAA,OAAA;AAAA;AAGT,EAAA,MAAM,cAAc,eAAgB,EAAA;AAEpC,EAAA,MAAM,oBAA2C,GAAA;AAAA,IAC/C,MAAQ,EAAA,kCAAA;AAAA,IACR,gBAAkB,EAAA,IAAA;AAAA,IAClB,YAAY,WAAY,CAAA,OAAA;AAAA,IACxB,MAAQ,EAAA;AAAA,GACV;AAEA,EAAQ,OAAA,OAAA,CAAgB,MAAM,oBAAoB,CAAA;AACpD;AAEO,SAAS,kBAAkB,cAAyB,EAAA;AACzD,EAAA,aAAA,GAAgB,aAAa,cAAc,CAAA;AAC7C;AAEO,SAAS,UAAa,GAAA;AAC3B,EAAO,OAAA,aAAA;AACT;AAEO,SAAS,aAAA,CACd,OACA,QACgB,EAAA;AAChB,EAAA,IAAI,CAAC,QAAU,EAAA;AACb,IAAO,OAAA,KAAA;AAAA;AAGT,EAAM,MAAA,eAAA,GAAkB,CAAC,OAAoB,KAAA;AAC3C,IAAA,OAAO,QAAQ,OAAQ,CAAA,IAAI,OAAO,QAAU,EAAA,GAAG,GAAG,KAAK,CAAA;AAAA,GACzD;AAEA,EAAA,IAAI,iBAAiB,KAAO,EAAA;AAC1B,IAAA,MAAM,aAAa,MAAO,CAAA,MAAA,CAAO,MAAO,CAAA,cAAA,CAAe,KAAK,CAAC,CAAA;AAC7D,IAAO,MAAA,CAAA,MAAA,CAAO,YAAY,KAAO,EAAA;AAAA,MAC/B,OAAA,EAAS,eAAgB,CAAA,KAAA,CAAM,OAAO,CAAA;AAAA,MACtC,OAAO,KAAM,CAAA,KAAA,GAAQ,eAAgB,CAAA,KAAA,CAAM,KAAK,CAAI,GAAA;AAAA,KACrD,CAAA;AAED,IAAO,OAAA,UAAA;AAAA;AAGT,EAAA,OAAO,gBAAgB,KAAK,CAAA;AAC9B","file":"bugsnag.js","sourcesContent":["import Bugsnag from '@bugsnag/node';\nimport * as BugsnagCore from '@bugsnag/core';\n\nimport {loadPackageJson} from './utils.js';\n\nlet BugsnagClient: BugsnagCore.Client | undefined;\n\nfunction setupBugsnag(disableBugsnag: boolean) {\n if (disableBugsnag) {\n return;\n } else if ((Bugsnag as any)._client) {\n return Bugsnag;\n }\n\n const packageJson = loadPackageJson();\n\n const bugsnagServerOptions: BugsnagCore.Config = {\n apiKey: '21fd37fe87ead4b9c5a8eed90752b455',\n autoDetectErrors: true,\n appVersion: packageJson.version,\n logger: null,\n };\n\n return (Bugsnag as any).start(bugsnagServerOptions);\n}\n\nexport function initializeBugsnag(disableBugsnag: boolean) {\n BugsnagClient = setupBugsnag(disableBugsnag);\n}\n\nexport function getBugsnag() {\n return BugsnagClient;\n}\n\nexport function sanitizeError(\n error: Error | string,\n rootPath?: string,\n): Error | string {\n if (!rootPath) {\n return error;\n }\n\n const replaceRootPath = (message: string) => {\n return message.replace(new RegExp(rootPath, 'g'), '***');\n };\n\n if (error instanceof Error) {\n const cleanError = Object.create(Object.getPrototypeOf(error));\n Object.assign(cleanError, error, {\n message: replaceRootPath(error.message),\n stack: error.stack ? replaceRootPath(error.stack) : undefined,\n });\n\n return cleanError;\n }\n\n return replaceRootPath(error);\n}\n"]}
1
+ {"version":3,"sources":["../../src/utils/bugsnag.ts"],"names":[],"mappings":";;;AAKA,IAAI,aAAA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A;AAAA,KACrD,CAAA;AAED,IAAO,OAAA,UAAA;AAAA;AAGT,EAAA,OAAO,gBAAgB,KAAK,CAAA;AAC9B","file":"bugsnag.js","sourcesContent":["import Bugsnag from '@bugsnag/node';\nimport * as BugsnagCore from '@bugsnag/core';\n\nimport {loadPackageJson} from './utils.js';\n\nlet BugsnagClient: BugsnagCore.Client | undefined;\n\nfunction setupBugsnag(disableBugsnag: boolean) {\n if (disableBugsnag) {\n return;\n } else if ((Bugsnag as any)._client) {\n return Bugsnag;\n }\n\n const packageJson = loadPackageJson();\n\n const bugsnagServerOptions: BugsnagCore.Config = {\n apiKey: '21fd37fe87ead4b9c5a8eed90752b455',\n autoDetectErrors: true,\n appVersion: packageJson.version,\n endpoints: {\n notify: 'https://error-analytics-production.shopifysvc.com',\n sessions: 'https://error-analytics-sessions-production.shopifysvc.com',\n },\n logger: null,\n };\n\n return (Bugsnag as any).start(bugsnagServerOptions);\n}\n\nexport function initializeBugsnag(disableBugsnag: boolean) {\n BugsnagClient = setupBugsnag(disableBugsnag);\n}\n\nexport function getBugsnag() {\n return BugsnagClient;\n}\n\nexport function sanitizeError(\n error: Error | string,\n rootPath?: string,\n): Error | string {\n if (!rootPath) {\n return error;\n }\n\n const replaceRootPath = (message: string) => {\n return message.replace(new RegExp(rootPath, 'g'), '***');\n };\n\n if (error instanceof Error) {\n const cleanError = Object.create(Object.getPrototypeOf(error));\n Object.assign(cleanError, error, {\n message: replaceRootPath(error.message),\n stack: error.stack ? replaceRootPath(error.stack) : undefined,\n });\n\n return cleanError;\n }\n\n return replaceRootPath(error);\n}\n"]}
@@ -203,5 +203,5 @@
203
203
  ]
204
204
  }
205
205
  },
206
- "version": "4.6.17-unstable.202504071541.0"
206
+ "version": "4.6.18"
207
207
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "@shopify:registry": "https://registry.npmjs.org"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "4.6.17-unstable.202504071541.0",
8
+ "version": "4.6.18",
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "build": "tsup --sourcemap --clean --config ./tsup.config.ts && oclif manifest",
@@ -39,19 +39,20 @@
39
39
  "@bugsnag/core": "^8.2.0",
40
40
  "@bugsnag/js": "^8.2.0",
41
41
  "@bugsnag/node": "^8.0.0",
42
- "async": "^3.2.6"
42
+ "async": "^3.2.6",
43
+ "graphql-request": "^7.1.2"
43
44
  },
44
45
  "peerDependencies": {
45
- "@oclif/core": "^3.15.1",
46
- "@shopify/cli-kit": "^3.58.0"
46
+ "@oclif/core": "^3.26.5",
47
+ "@shopify/cli-kit": "^3.78.1"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@bugsnag/source-maps": "^2.3.3",
50
- "@changesets/cli": "^2.28.1",
51
+ "@changesets/cli": "^2.29.2",
51
52
  "@shopify/eslint-plugin": "^48.0.2",
52
53
  "@shopify/prettier-config": "^1.1.4",
53
54
  "@types/async": "^3.2.24",
54
- "@types/node": "^22.14.0",
55
+ "@types/node": "^22.14.1",
55
56
  "eslint": "^8.57.1",
56
57
  "eslint-plugin-node": "^11.1.0",
57
58
  "eslint-plugin-prettier": "^5.2.6",
@@ -59,7 +60,7 @@
59
60
  "oclif": "^4",
60
61
  "tsup": "^8.4.0",
61
62
  "typescript": "^5.8.3",
62
- "vite": "^6.2.5",
63
+ "vite": "^6.3.0",
63
64
  "vitest": "^3.1.1"
64
65
  },
65
66
  "prettier": "@shopify/prettier-config",