@shopify/cli-kit 3.49.7 → 3.50.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 (106) hide show
  1. package/assets/cli-ruby/lib/project_types/theme/commands/console.rb +3 -1
  2. package/assets/cli-ruby/lib/shopify_cli/theme/file.rb +2 -0
  3. package/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_dev_server.rb +2 -4
  4. package/assets/cli-ruby/lib/shopify_cli/theme/repl/remote_evaluator.rb +3 -0
  5. package/assets/cli-ruby/lib/shopify_cli/theme/repl.rb +4 -3
  6. package/dist/private/node/constants.d.ts +2 -0
  7. package/dist/private/node/constants.js +2 -0
  8. package/dist/private/node/constants.js.map +1 -1
  9. package/dist/private/node/context/utilities.js +2 -3
  10. package/dist/private/node/context/utilities.js.map +1 -1
  11. package/dist/private/node/otel-metrics.d.ts +32 -0
  12. package/dist/private/node/otel-metrics.js +131 -0
  13. package/dist/private/node/otel-metrics.js.map +1 -0
  14. package/dist/private/node/session/authorize.js +8 -5
  15. package/dist/private/node/session/authorize.js.map +1 -1
  16. package/dist/private/node/testing/ui.d.ts +4 -2
  17. package/dist/private/node/testing/ui.js +10 -3
  18. package/dist/private/node/testing/ui.js.map +1 -1
  19. package/dist/private/node/ui/components/AutocompletePrompt.js +6 -2
  20. package/dist/private/node/ui/components/AutocompletePrompt.js.map +1 -1
  21. package/dist/private/node/ui/components/AutocompletePrompt.test.js +5 -3
  22. package/dist/private/node/ui/components/AutocompletePrompt.test.js.map +1 -1
  23. package/dist/private/node/ui/components/DangerousConfirmationPrompt.js +12 -6
  24. package/dist/private/node/ui/components/DangerousConfirmationPrompt.js.map +1 -1
  25. package/dist/private/node/ui/components/DangerousConfirmationPrompt.test.js +1 -1
  26. package/dist/private/node/ui/components/DangerousConfirmationPrompt.test.js.map +1 -1
  27. package/dist/private/node/ui/components/Prompts/GitDiff.test.js +18 -11
  28. package/dist/private/node/ui/components/Prompts/GitDiff.test.js.map +1 -1
  29. package/dist/private/node/ui/components/SelectPrompt.js +8 -4
  30. package/dist/private/node/ui/components/SelectPrompt.js.map +1 -1
  31. package/dist/private/node/ui/components/SelectPrompt.test.js +5 -3
  32. package/dist/private/node/ui/components/SelectPrompt.test.js.map +1 -1
  33. package/dist/private/node/ui/components/Tasks.js +8 -1
  34. package/dist/private/node/ui/components/Tasks.js.map +1 -1
  35. package/dist/private/node/ui/components/TextPrompt.js +7 -3
  36. package/dist/private/node/ui/components/TextPrompt.js.map +1 -1
  37. package/dist/private/node/ui/components/TokenizedText.d.ts +10 -1
  38. package/dist/private/node/ui/components/TokenizedText.js +18 -0
  39. package/dist/private/node/ui/components/TokenizedText.js.map +1 -1
  40. package/dist/private/node/ui/components/TokenizedText.test.js +10 -1
  41. package/dist/private/node/ui/components/TokenizedText.test.js.map +1 -1
  42. package/dist/private/node/ui/utilities.d.ts +1 -1
  43. package/dist/public/common/version.d.ts +1 -1
  44. package/dist/public/common/version.js +1 -1
  45. package/dist/public/common/version.js.map +1 -1
  46. package/dist/public/node/analytics.d.ts +2 -0
  47. package/dist/public/node/analytics.js +48 -10
  48. package/dist/public/node/analytics.js.map +1 -1
  49. package/dist/public/node/api/graphql.js +8 -5
  50. package/dist/public/node/api/graphql.js.map +1 -1
  51. package/dist/public/node/base-command.js +4 -3
  52. package/dist/public/node/base-command.js.map +1 -1
  53. package/dist/public/node/cli.js +28 -2
  54. package/dist/public/node/cli.js.map +1 -1
  55. package/dist/public/node/context/local.d.ts +16 -0
  56. package/dist/public/node/context/local.js +23 -0
  57. package/dist/public/node/context/local.js.map +1 -1
  58. package/dist/public/node/error-handler.d.ts +4 -1
  59. package/dist/public/node/error-handler.js +26 -18
  60. package/dist/public/node/error-handler.js.map +1 -1
  61. package/dist/public/node/error.d.ts +1 -1
  62. package/dist/public/node/error.js +1 -1
  63. package/dist/public/node/error.js.map +1 -1
  64. package/dist/public/node/hooks/postrun.js +1 -1
  65. package/dist/public/node/hooks/postrun.js.map +1 -1
  66. package/dist/public/node/http.js +27 -22
  67. package/dist/public/node/http.js.map +1 -1
  68. package/dist/public/node/metadata.d.ts +12 -4
  69. package/dist/public/node/metadata.js +52 -4
  70. package/dist/public/node/metadata.js.map +1 -1
  71. package/dist/public/node/monorail.d.ts +8 -1
  72. package/dist/public/node/monorail.js +1 -1
  73. package/dist/public/node/monorail.js.map +1 -1
  74. package/dist/public/node/node-package-manager.d.ts +6 -0
  75. package/dist/public/node/node-package-manager.js +16 -2
  76. package/dist/public/node/node-package-manager.js.map +1 -1
  77. package/dist/public/node/testing/ui.d.ts +1 -1
  78. package/dist/public/node/testing/ui.js +1 -1
  79. package/dist/public/node/testing/ui.js.map +1 -1
  80. package/dist/public/node/ui.d.ts +1 -1
  81. package/dist/public/node/ui.js +63 -56
  82. package/dist/public/node/ui.js.map +1 -1
  83. package/dist/public/node/vendor/otel-js/export/InstantaneousMetricReader.d.ts +18 -0
  84. package/dist/public/node/vendor/otel-js/export/InstantaneousMetricReader.js +36 -0
  85. package/dist/public/node/vendor/otel-js/export/InstantaneousMetricReader.js.map +1 -0
  86. package/dist/public/node/vendor/otel-js/service/BaseOtelService/BaseOtelService.d.ts +46 -0
  87. package/dist/public/node/vendor/otel-js/service/BaseOtelService/BaseOtelService.js +112 -0
  88. package/dist/public/node/vendor/otel-js/service/BaseOtelService/BaseOtelService.js.map +1 -0
  89. package/dist/public/node/vendor/otel-js/service/DefaultOtelService/DefaultMeterProvider.d.ts +13 -0
  90. package/dist/public/node/vendor/otel-js/service/DefaultOtelService/DefaultMeterProvider.js +36 -0
  91. package/dist/public/node/vendor/otel-js/service/DefaultOtelService/DefaultMeterProvider.js.map +1 -0
  92. package/dist/public/node/vendor/otel-js/service/DefaultOtelService/DefaultOtelService.d.ts +24 -0
  93. package/dist/public/node/vendor/otel-js/service/DefaultOtelService/DefaultOtelService.js +33 -0
  94. package/dist/public/node/vendor/otel-js/service/DefaultOtelService/DefaultOtelService.js.map +1 -0
  95. package/dist/public/node/vendor/otel-js/service/types.d.ts +43 -0
  96. package/dist/public/node/vendor/otel-js/service/types.js +7 -0
  97. package/dist/public/node/vendor/otel-js/service/types.js.map +1 -0
  98. package/dist/public/node/vendor/otel-js/utils/throttle.d.ts +7 -0
  99. package/dist/public/node/vendor/otel-js/utils/throttle.js +42 -0
  100. package/dist/public/node/vendor/otel-js/utils/throttle.js.map +1 -0
  101. package/dist/public/node/vendor/otel-js/utils/validators.d.ts +1 -0
  102. package/dist/public/node/vendor/otel-js/utils/validators.js +11 -0
  103. package/dist/public/node/vendor/otel-js/utils/validators.js.map +1 -0
  104. package/dist/tsconfig.tsbuildinfo +1 -1
  105. package/package.json +27 -17
  106. package/assets/cli-ruby/RELEASING.md +0 -72
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/cli-kit",
3
- "version": "3.49.7",
3
+ "version": "3.50.1",
4
4
  "private": false,
5
5
  "description": "A set of utilities, interfaces, and models that are common across all the platform features",
6
6
  "keywords": [
@@ -45,6 +45,9 @@
45
45
  "extends": [
46
46
  "../../.eslintrc.cjs"
47
47
  ],
48
+ "ignorePatterns": [
49
+ "**/vendor/otel-js/**/*.ts"
50
+ ],
48
51
  "overrides": [
49
52
  {
50
53
  "files": [
@@ -62,7 +65,8 @@
62
65
  "@oclif/core",
63
66
  "../../private/node/constants.js",
64
67
  "./path.js",
65
- "./system.js"
68
+ "./system.js",
69
+ "./ui.js"
66
70
  ],
67
71
  "static": [
68
72
  "@oclif/core",
@@ -76,13 +80,19 @@
76
80
  ]
77
81
  },
78
82
  "dependencies": {
79
- "@bugsnag/js": "7.20.2",
83
+ "@bugsnag/js": "7.21.0",
80
84
  "@iarna/toml": "2.2.5",
81
85
  "@oclif/core": "2.11.7",
86
+ "@opentelemetry/api": "1.6.0",
87
+ "@opentelemetry/core": "1.17.1",
88
+ "@opentelemetry/exporter-metrics-otlp-http": "0.43.0",
89
+ "@opentelemetry/resources": "1.17.1",
90
+ "@opentelemetry/sdk-metrics": "1.17.1",
91
+ "@opentelemetry/semantic-conventions": "1.17.1",
82
92
  "@types/archiver": "5.3.2",
83
93
  "abort-controller": "3.0.0",
84
94
  "ansi-escapes": "6.2.0",
85
- "archiver": "5.3.1",
95
+ "archiver": "5.3.2",
86
96
  "bottleneck": "2.19.5",
87
97
  "chalk": "5.3.0",
88
98
  "change-case": "4.1.2",
@@ -106,23 +116,23 @@
106
116
  "get-port-please": "3.0.1",
107
117
  "git-diff": "2.0.6",
108
118
  "gradient-string": "2.0.2",
109
- "graphql": "16.4.0",
119
+ "graphql": "16.8.1",
110
120
  "graphql-request": "5.2.0",
111
- "ink": "4.2.0",
121
+ "ink": "4.4.1",
112
122
  "is-interactive": "2.0.0",
113
123
  "js-yaml": "4.1.0",
114
124
  "kill-port-process": "3.1.0",
115
125
  "latest-version": "7.0.0",
116
- "liquidjs": "10.8.4",
126
+ "liquidjs": "10.9.2",
117
127
  "lodash": "4.17.21",
118
128
  "macaddress": "0.5.3",
119
129
  "mrmime": "1.0.1",
120
130
  "node-abort-controller": "3.1.1",
121
- "node-fetch": "3.3.1",
131
+ "node-fetch": "3.3.2",
122
132
  "open": "8.4.2",
123
133
  "pathe": "1.1.1",
124
134
  "react": "18.2.0",
125
- "semver": "7.5.3",
135
+ "semver": "7.5.4",
126
136
  "simple-git": "3.19.1",
127
137
  "source-map-support": "0.5.21",
128
138
  "stacktracey": "2.1.8",
@@ -133,7 +143,7 @@
133
143
  "terminal-link": "3.0.0",
134
144
  "ts-error": "1.0.6",
135
145
  "unique-string": "3.0.0",
136
- "zod": "3.21.4"
146
+ "zod": "3.22.2"
137
147
  },
138
148
  "devDependencies": {
139
149
  "@types/commondir": "^1.0.0",
@@ -143,16 +153,16 @@
143
153
  "@types/git-diff": "^2.0.3",
144
154
  "@types/gradient-string": "^1.1.2",
145
155
  "@types/lodash": "4.14.195",
146
- "@types/node": "14.18.54",
156
+ "@types/node": "16.18.57",
147
157
  "@types/react": "18.2.0",
148
- "@types/semver": "^7.5.0",
149
- "@vitest/coverage-istanbul": "^0.34.1",
158
+ "@types/semver": "^7.5.2",
159
+ "@vitest/coverage-istanbul": "^0.34.3",
150
160
  "node-stream-zip": "^1.15.0",
151
161
  "ts-morph": "^17.0.1",
152
- "typedoc": "^0.24.8",
153
- "typescript": "5.0.4",
154
- "vite": "^4.4.8",
155
- "vitest": "^0.34.1"
162
+ "typedoc": "^0.25.0",
163
+ "typescript": "5.2.2",
164
+ "vite": "^4.4.9",
165
+ "vitest": "^0.34.3"
156
166
  },
157
167
  "engines": {
158
168
  "node": ">=14.17.0"
@@ -1,72 +0,0 @@
1
- ## Releasing Shopify CLI
2
-
3
- This page contains instructions for CLI 2.0. If you are looking for instructions for CLI 3.0, please visit the [CLI 3.0 documentation](https://github.com/Shopify/cli/blob/main/docs/release.md).
4
-
5
- ### Automated process
6
-
7
- We release the CLI with a series of Rake tasks run locally, interspersed with PR-based checkpoints. The steps are:
8
-
9
- 1. `export GITHUB_ACCESS_TOKEN=$(dev github print-auth | grep Password | awk '{print $NF}')`
10
- 2. `rake "release:prepare[2.x.x]"` (where 2.x.x is the version being released)
11
- 3. PR to shopify-cli will open in your browser. Sanity-check and merge.
12
- 4. Trigger [Shipit](https://shipit.shopify.io/shopify/shopify-cli/rubygems) on your version commit to release on RubyGems
13
- 5. `rake release:package`
14
- 6. Homebrew PR will open in your browser. Sanity-check and merge.
15
- 7. Release will also be opened in your browser, check that it includes debian and rpm files.
16
- 8. Go through all the [PRs labeled with includes-post-release-steps](https://github.com/Shopify/shopify-cli/issues?q=label%3Aincludes-post-release-steps+is%3Aclosed) and follow the post-release steps described in those PRs. Delete the labels afterward.
17
-
18
- In case the automation goes wrong, try with the manual instructions.
19
-
20
- ### Manual process
21
-
22
- 1. Check the Semantic Versioning page for info on how to version the new release: http://semver.org
23
- 2. Make sure you're on the most recent `main`
24
- ```
25
- $ git checkout main
26
- $ git pull
27
- ```
28
- 3. Create a branch named `release_X_Y_Z` (replacing `X_Y_Z` with the intended release version)
29
- ```
30
- $ git checkout -b release_X_Y_Z
31
- ```
32
- 4. Update the version of Shopify CLI in `lib/shopify_cli/version.rb`
33
- 5. Update the version of Shopify CLI at the top of `Gemfile.lock` (failing to do so causes the CI build to fail)
34
- 6. Add an entry for the new release to `CHANGELOG.md`
35
- 7. Commit the changes with a commit message like "Packaging for release X.Y.Z"
36
- ```
37
- $ git commit -am "Packaging for release vX.Y.Z"
38
- ```
39
- 8. Push out the changes
40
- ```
41
- $ git push -u origin release_X_Y_Z
42
- ```
43
-
44
- 9. Open a PR for the branch, get necessary approvals from code owners and merge into main branch. Note that the PR title will be the release note in Shipit, so make sure it mentions the release
45
- 10. Deploy to RubyGems using [Shipit](https://shipit.shopify.io/shopify/shopify-cli/rubygems)
46
- 11. Update your `main` branch to the latest version
47
- ```
48
- $ git checkout main
49
- $ git pull
50
- ```
51
-
52
- 12. On local machine and _AFTER_ gem has been published to https://rubygems.org/gems/shopify-cli, run
53
- ```
54
- $ rake package
55
- ```
56
- This will generate the `.deb`, `.rpm` and brew formula files, which will be located in `packaging/builds/X.Y.Z/`.
57
-
58
- 13. Clone the `Shopify/homebrew-shopify` repository (if not already cloned), and then
59
- * update your `master` branch to the latest version: `git checkout master && git pull`
60
- * create a new branch: `git checkout -b release_X_Y_Z_of_shopify-cli`
61
- * update the brew formula in `shopify-cli.rb` with the generated formula in `packaging/builds/X.Y.Z/` in the `Shopify/shopify-cli` repo (from the `rake package` step above)
62
- * commit the change and create a PR on the [Shopify Homebrew repository](https://github.com/Shopify/homebrew-shopify)
63
- * when PR is approved, merge into main branch
64
-
65
- 14. Go to [releases](https://github.com/Shopify/shopify-cli/releases) page of `Shopify/shopify-cli` repo and create a new release:
66
- * use the tag created by Shipit (should be "vX.Y.Z")
67
- * release title = "Version X.Y.Z"
68
- * description should be the content of the section in the `CHANGELOG.md`
69
- * upload the `.deb` and `.rpm` files from `packaging/builds/X.Y.Z/` (generated in step 9)
70
- * if it's a pre-release version, select the "This is a pre-release" checkbox
71
- * and click "Publish release".
72
- 15. Go through all the PR [labeled with `includes-post-release-steps`](https://github.com/Shopify/shopify-cli/labels/includes-post-release-steps) and follow the post-release steps described in those PRs. Delete the labels afterward.