@shopify/cli-hydrogen 13.0.3 → 13.0.5
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/dist/assets/hydrogen/starter/AGENTS.md +5 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +9 -0
- package/dist/assets/hydrogen/starter/CLAUDE.md +1 -0
- package/dist/assets/hydrogen/starter/package.json +3 -3
- package/dist/commands/hydrogen/{customer-account/push.js → customer-account-push.js} +11 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/lib/dev-shared.js +1 -1
- package/oclif.manifest.json +11 -5
- package/package.json +2 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Shopify Hydrogen development
|
|
2
|
+
|
|
3
|
+
This storefront is scaffolded from Shopify's Hydrogen skeleton template. See the README for framework-specific details.
|
|
4
|
+
|
|
5
|
+
Use the [Shopify AI Toolkit](https://shopify.dev/docs/apps/build/ai-toolkit) for all Shopify API and platform work. If missing, install it in the agent host per that page (or `npx skills add Shopify/shopify-ai-toolkit --list` for skill-compatible hosts).
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# skeleton
|
|
2
2
|
|
|
3
|
+
## 2026.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Recommend the Shopify AI Toolkit in newly scaffolded storefronts. ([#3887](https://github.com/Shopify/hydrogen/pull/3887)) by [@gonzaloriestra](https://github.com/gonzaloriestra)
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`10356c92fc1d4335244db7304cc6cdd47ba5c892`](https://github.com/Shopify/hydrogen/commit/10356c92fc1d4335244db7304cc6cdd47ba5c892), [`f15667f98826650f3904597b61b5dcb5f8b51c0a`](https://github.com/Shopify/hydrogen/commit/f15667f98826650f3904597b61b5dcb5f8b51c0a)]:
|
|
10
|
+
- @shopify/hydrogen@2026.4.5
|
|
11
|
+
|
|
3
12
|
## 2026.4.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "skeleton",
|
|
3
3
|
"private": true,
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2026.4.
|
|
5
|
+
"version": "2026.4.6",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "shopify hydrogen build --codegen",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"prettier": "@shopify/prettier-config",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@shopify/hydrogen": "2026.4.
|
|
17
|
+
"@shopify/hydrogen": "2026.4.5",
|
|
18
18
|
"graphql": "^16.10.0",
|
|
19
19
|
"graphql-tag": "^2.12.6",
|
|
20
20
|
"isbot": "^5.1.22",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@react-router/fs-routes": "7.16.0",
|
|
33
33
|
"@shopify/cli": "3.93.2",
|
|
34
34
|
"@shopify/hydrogen-codegen": "0.3.3",
|
|
35
|
-
"@shopify/mini-oxygen": "4.2.
|
|
35
|
+
"@shopify/mini-oxygen": "4.2.3",
|
|
36
36
|
"@shopify/oxygen-workers-types": "^4.1.6",
|
|
37
37
|
"@shopify/prettier-config": "^1.1.2",
|
|
38
38
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
@@ -2,12 +2,12 @@ import Command from '@shopify/cli-kit/node/base-command';
|
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { AbortError } from '@shopify/cli-kit/node/error';
|
|
4
4
|
import { outputDebug } from '@shopify/cli-kit/node/output';
|
|
5
|
-
import { linkStorefront } from '
|
|
6
|
-
import { commonFlags, flagsToCamelObject } from '
|
|
7
|
-
import { getCliCommand } from '
|
|
8
|
-
import { login } from '
|
|
9
|
-
import { setCustomerAccountConfig, getConfig } from '
|
|
10
|
-
import { replaceCustomerApplicationUrls } from '
|
|
5
|
+
import { linkStorefront } from './link.js';
|
|
6
|
+
import { commonFlags, flagsToCamelObject } from '../../lib/flags.js';
|
|
7
|
+
import { getCliCommand } from '../../lib/shell.js';
|
|
8
|
+
import { login } from '../../lib/auth.js';
|
|
9
|
+
import { setCustomerAccountConfig, getConfig } from '../../lib/shopify-config.js';
|
|
10
|
+
import { replaceCustomerApplicationUrls } from '../../lib/graphql/admin/customer-application-update.js';
|
|
11
11
|
|
|
12
12
|
class CustomerAccountPush extends Command {
|
|
13
13
|
static description = "Push project configuration to admin";
|
|
@@ -20,6 +20,9 @@ class CustomerAccountPush extends Command {
|
|
|
20
20
|
description: "The development domain of your application.",
|
|
21
21
|
required: true
|
|
22
22
|
}),
|
|
23
|
+
"javascript-origin": Flags.string({
|
|
24
|
+
description: "The origin to register as the allowed JavaScript origin for the Customer Account API OAuth flow. Defaults to --dev-origin. Must not include a port (Shopify rejects origins with ports); use this to register a portless origin while keeping a portful --dev-origin."
|
|
25
|
+
}),
|
|
23
26
|
"relative-redirect-uri": Flags.string({
|
|
24
27
|
description: "The relative url of allowed callback url for Customer Account API OAuth flow. Default is '/account/authorize'"
|
|
25
28
|
}),
|
|
@@ -36,6 +39,7 @@ async function runCustomerAccountPush({
|
|
|
36
39
|
path: root = process.cwd(),
|
|
37
40
|
storefrontId: storefrontIdFromFlag,
|
|
38
41
|
devOrigin,
|
|
42
|
+
javascriptOrigin: javascriptOriginFromArg,
|
|
39
43
|
redirectUriRelativeUrl = "/account/authorize",
|
|
40
44
|
logoutUriRelativeUrl
|
|
41
45
|
}) {
|
|
@@ -47,7 +51,7 @@ async function runCustomerAccountPush({
|
|
|
47
51
|
);
|
|
48
52
|
}
|
|
49
53
|
const redirectUri = redirectUriRelativeUrl ? new URL(redirectUriRelativeUrl, devOrigin).toString() : devOrigin;
|
|
50
|
-
const javascriptOrigin = devOrigin;
|
|
54
|
+
const javascriptOrigin = javascriptOriginFromArg ?? devOrigin;
|
|
51
55
|
const logoutUri = logoutUriRelativeUrl ? new URL(logoutUriRelativeUrl, devOrigin).toString() : devOrigin;
|
|
52
56
|
if (!redirectUri && !javascriptOrigin && !logoutUri) {
|
|
53
57
|
return;
|
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ declare class CustomerAccountPush extends Command {
|
|
|
51
51
|
static flags: {
|
|
52
52
|
'storefront-id': _oclif_core_lib_interfaces_parser_js.OptionFlag<string | undefined, _oclif_core_lib_interfaces_parser_js.CustomOptions>;
|
|
53
53
|
'dev-origin': _oclif_core_lib_interfaces_parser_js.OptionFlag<string, _oclif_core_lib_interfaces_parser_js.CustomOptions>;
|
|
54
|
+
'javascript-origin': _oclif_core_lib_interfaces_parser_js.OptionFlag<string | undefined, _oclif_core_lib_interfaces_parser_js.CustomOptions>;
|
|
54
55
|
'relative-redirect-uri': _oclif_core_lib_interfaces_parser_js.OptionFlag<string | undefined, _oclif_core_lib_interfaces_parser_js.CustomOptions>;
|
|
55
56
|
'relative-logout-uri': _oclif_core_lib_interfaces_parser_js.OptionFlag<string | undefined, _oclif_core_lib_interfaces_parser_js.CustomOptions>;
|
|
56
57
|
path: _oclif_core_lib_interfaces_parser_js.OptionFlag<string | undefined, _oclif_core_lib_interfaces_parser_js.CustomOptions>;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Build from './commands/hydrogen/build.js';
|
|
2
2
|
import Check from './commands/hydrogen/check.js';
|
|
3
3
|
import Codegen from './commands/hydrogen/codegen.js';
|
|
4
|
-
import CustomerAccountPush from './commands/hydrogen/customer-account
|
|
4
|
+
import CustomerAccountPush from './commands/hydrogen/customer-account-push.js';
|
|
5
5
|
import DebugCpu from './commands/hydrogen/debug/cpu.js';
|
|
6
6
|
import Deploy from './commands/hydrogen/deploy.js';
|
|
7
7
|
import Dev from './commands/hydrogen/dev.js';
|
package/dist/lib/dev-shared.js
CHANGED
|
@@ -2,7 +2,7 @@ import colors from '@shopify/cli-kit/node/colors';
|
|
|
2
2
|
import { outputInfo, outputToken, outputContent } from '@shopify/cli-kit/node/output';
|
|
3
3
|
import { renderInfo } from '@shopify/cli-kit/node/ui';
|
|
4
4
|
import { AbortError } from '@shopify/cli-kit/node/error';
|
|
5
|
-
import { getStorefrontId, runCustomerAccountPush } from '../commands/hydrogen/customer-account
|
|
5
|
+
import { getStorefrontId, runCustomerAccountPush } from '../commands/hydrogen/customer-account-push.js';
|
|
6
6
|
import { getLocalVariables } from '../lib/environment-variables.js';
|
|
7
7
|
import { startTunnelPlugin, pollTunnelURL } from './tunneling.js';
|
|
8
8
|
import { getConfig } from './shopify-config.js';
|
package/oclif.manifest.json
CHANGED
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"codegen.js"
|
|
193
193
|
]
|
|
194
194
|
},
|
|
195
|
-
"hydrogen:customer-account
|
|
195
|
+
"hydrogen:customer-account-push": {
|
|
196
196
|
"aliases": [],
|
|
197
197
|
"args": {},
|
|
198
198
|
"description": "Push project configuration to admin",
|
|
@@ -220,6 +220,13 @@
|
|
|
220
220
|
"multiple": false,
|
|
221
221
|
"type": "option"
|
|
222
222
|
},
|
|
223
|
+
"javascript-origin": {
|
|
224
|
+
"description": "The origin to register as the allowed JavaScript origin for the Customer Account API OAuth flow. Defaults to --dev-origin. Must not include a port (Shopify rejects origins with ports); use this to register a portless origin while keeping a portful --dev-origin.",
|
|
225
|
+
"name": "javascript-origin",
|
|
226
|
+
"hasDynamicHelp": false,
|
|
227
|
+
"multiple": false,
|
|
228
|
+
"type": "option"
|
|
229
|
+
},
|
|
223
230
|
"relative-redirect-uri": {
|
|
224
231
|
"description": "The relative url of allowed callback url for Customer Account API OAuth flow. Default is '/account/authorize'",
|
|
225
232
|
"name": "relative-redirect-uri",
|
|
@@ -237,7 +244,7 @@
|
|
|
237
244
|
},
|
|
238
245
|
"hasDynamicHelp": false,
|
|
239
246
|
"hiddenAliases": [],
|
|
240
|
-
"id": "hydrogen:customer-account
|
|
247
|
+
"id": "hydrogen:customer-account-push",
|
|
241
248
|
"pluginAlias": "@shopify/cli-hydrogen",
|
|
242
249
|
"pluginName": "@shopify/cli-hydrogen",
|
|
243
250
|
"pluginType": "core",
|
|
@@ -248,8 +255,7 @@
|
|
|
248
255
|
"dist",
|
|
249
256
|
"commands",
|
|
250
257
|
"hydrogen",
|
|
251
|
-
"customer-account"
|
|
252
|
-
"push.js"
|
|
258
|
+
"customer-account-push.js"
|
|
253
259
|
]
|
|
254
260
|
},
|
|
255
261
|
"hydrogen:debug:cpu": {
|
|
@@ -1745,5 +1751,5 @@
|
|
|
1745
1751
|
]
|
|
1746
1752
|
}
|
|
1747
1753
|
},
|
|
1748
|
-
"version": "13.0.
|
|
1754
|
+
"version": "13.0.5"
|
|
1749
1755
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"@shopify:registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
7
|
-
"version": "13.0.
|
|
7
|
+
"version": "13.0.5",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"repository": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"graphql-config": "^5.0.3",
|
|
60
60
|
"vite": "^5.1.0 || ^6.2.0 || ^7.0.0 || ^8.0.0",
|
|
61
61
|
"@shopify/hydrogen-codegen": "0.3.3",
|
|
62
|
-
"@shopify/mini-oxygen": "4.2.
|
|
62
|
+
"@shopify/mini-oxygen": "4.2.3"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@graphql-codegen/cli": {
|