Skip to content

Commit 8f16ffd

Browse files
authored
Merge pull request #6188 from Shopify/update-cli-hydrogen-11.1.2
hydrogen/Bump cli-hydrogen to 11.1.2 (main)
2 parents 97e0134 + 6920373 commit 8f16ffd

File tree

7 files changed

+18
-87
lines changed

7 files changed

+18
-87
lines changed

docs-shopify.dev/commands/interfaces/hydrogen-dev.interface.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ export interface hydrogendev {
7272
*/
7373
'--inspector-port <value>'?: string
7474

75-
/**
76-
* [Classic Remix Compiler] Runs the app in a Node.js sandbox instead of an Oxygen worker.
77-
* @environment SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME
78-
*/
79-
'--legacy-runtime'?: ''
80-
8175
/**
8276
* The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
8377
* @environment SHOPIFY_HYDROGEN_FLAG_PATH
@@ -90,12 +84,6 @@ export interface hydrogendev {
9084
*/
9185
'--port <value>'?: string
9286

93-
/**
94-
* [Classic Remix Compiler] Controls whether server sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.
95-
* @environment SHOPIFY_HYDROGEN_FLAG_SOURCEMAP
96-
*/
97-
'--sourcemap'?: ''
98-
9987
/**
10088
* Outputs more information about the command's execution.
10189
* @environment SHOPIFY_HYDROGEN_FLAG_VERBOSE

docs-shopify.dev/commands/interfaces/hydrogen-preview.interface.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ export interface hydrogenpreview {
5454
*/
5555
'--inspector-port <value>'?: string
5656

57-
/**
58-
* Runs the app in a Node.js sandbox instead of an Oxygen worker.
59-
* @environment SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME
60-
*/
61-
'--legacy-runtime'?: ''
62-
6357
/**
6458
* The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
6559
* @environment SHOPIFY_HYDROGEN_FLAG_PATH

docs-shopify.dev/generated/generated_docs_data.json

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3366,15 +3366,6 @@
33663366
"isOptional": true,
33673367
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT"
33683368
},
3369-
{
3370-
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-dev.interface.ts",
3371-
"syntaxKind": "PropertySignature",
3372-
"name": "--legacy-runtime",
3373-
"value": "\"\"",
3374-
"description": "[Classic Remix Compiler] Runs the app in a Node.js sandbox instead of an Oxygen worker.",
3375-
"isOptional": true,
3376-
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME"
3377-
},
33783369
{
33793370
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-dev.interface.ts",
33803371
"syntaxKind": "PropertySignature",
@@ -3393,15 +3384,6 @@
33933384
"isOptional": true,
33943385
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_PORT"
33953386
},
3396-
{
3397-
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-dev.interface.ts",
3398-
"syntaxKind": "PropertySignature",
3399-
"name": "--sourcemap",
3400-
"value": "\"\"",
3401-
"description": "[Classic Remix Compiler] Controls whether server sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.",
3402-
"isOptional": true,
3403-
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_SOURCEMAP"
3404-
},
34053387
{
34063388
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-dev.interface.ts",
34073389
"syntaxKind": "PropertySignature",
@@ -3412,7 +3394,7 @@
34123394
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_VERBOSE"
34133395
}
34143396
],
3415-
"value": "export interface hydrogendev {\n /**\n * Automatically generates GraphQL types for your project’s Storefront API queries.\n *\n */\n '--codegen'?: ''\n\n /**\n * Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.\n *\n */\n '--codegen-config-path <value>'?: string\n\n /**\n * Enables inspector connections to the server with a debugger such as Visual Studio Code or Chrome DevTools.\n * @environment SHOPIFY_HYDROGEN_FLAG_DEBUG\n */\n '--debug'?: ''\n\n /**\n * Disable adding dependencies to Vite's `ssr.optimizeDeps.include` automatically\n * @environment SHOPIFY_HYDROGEN_FLAG_DISABLE_DEPS_OPTIMIZER\n */\n '--disable-deps-optimizer'?: ''\n\n /**\n * Skip the version check when running `hydrogen dev`\n *\n */\n '--disable-version-check'?: ''\n\n /**\n * Disable rendering fallback routes when a route file doesn't exist.\n * @environment SHOPIFY_HYDROGEN_FLAG_DISABLE_VIRTUAL_ROUTES\n */\n '--disable-virtual-routes'?: ''\n\n /**\n * Entry file for the worker. Defaults to `./server`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ENTRY\n */\n '--entry <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.\n *\n */\n '--env <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its Git branch name.\n * @environment SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH\n */\n '--env-branch <value>'?: string\n\n /**\n * Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.\n *\n */\n '--env-file <value>'?: string\n\n /**\n * Expose the server to the local network\n *\n */\n '--host'?: ''\n\n /**\n * The port where the inspector is available. Defaults to 9229.\n * @environment SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT\n */\n '--inspector-port <value>'?: string\n\n /**\n * [Classic Remix Compiler] Runs the app in a Node.js sandbox instead of an Oxygen worker.\n * @environment SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME\n */\n '--legacy-runtime'?: ''\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * The port to run the server on. Defaults to 3000.\n * @environment SHOPIFY_HYDROGEN_FLAG_PORT\n */\n '--port <value>'?: string\n\n /**\n * [Classic Remix Compiler] Controls whether server sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.\n * @environment SHOPIFY_HYDROGEN_FLAG_SOURCEMAP\n */\n '--sourcemap'?: ''\n\n /**\n * Outputs more information about the command's execution.\n * @environment SHOPIFY_HYDROGEN_FLAG_VERBOSE\n */\n '--verbose'?: ''\n}"
3397+
"value": "export interface hydrogendev {\n /**\n * Automatically generates GraphQL types for your project’s Storefront API queries.\n *\n */\n '--codegen'?: ''\n\n /**\n * Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.\n *\n */\n '--codegen-config-path <value>'?: string\n\n /**\n * Enables inspector connections to the server with a debugger such as Visual Studio Code or Chrome DevTools.\n * @environment SHOPIFY_HYDROGEN_FLAG_DEBUG\n */\n '--debug'?: ''\n\n /**\n * Disable adding dependencies to Vite's `ssr.optimizeDeps.include` automatically\n * @environment SHOPIFY_HYDROGEN_FLAG_DISABLE_DEPS_OPTIMIZER\n */\n '--disable-deps-optimizer'?: ''\n\n /**\n * Skip the version check when running `hydrogen dev`\n *\n */\n '--disable-version-check'?: ''\n\n /**\n * Disable rendering fallback routes when a route file doesn't exist.\n * @environment SHOPIFY_HYDROGEN_FLAG_DISABLE_VIRTUAL_ROUTES\n */\n '--disable-virtual-routes'?: ''\n\n /**\n * Entry file for the worker. Defaults to `./server`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ENTRY\n */\n '--entry <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.\n *\n */\n '--env <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its Git branch name.\n * @environment SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH\n */\n '--env-branch <value>'?: string\n\n /**\n * Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.\n *\n */\n '--env-file <value>'?: string\n\n /**\n * Expose the server to the local network\n *\n */\n '--host'?: ''\n\n /**\n * The port where the inspector is available. Defaults to 9229.\n * @environment SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT\n */\n '--inspector-port <value>'?: string\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * The port to run the server on. Defaults to 3000.\n * @environment SHOPIFY_HYDROGEN_FLAG_PORT\n */\n '--port <value>'?: string\n\n /**\n * Outputs more information about the command's execution.\n * @environment SHOPIFY_HYDROGEN_FLAG_VERBOSE\n */\n '--verbose'?: ''\n}"
34163398
}
34173399
}
34183400
}
@@ -4243,15 +4225,6 @@
42434225
"isOptional": true,
42444226
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT"
42454227
},
4246-
{
4247-
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-preview.interface.ts",
4248-
"syntaxKind": "PropertySignature",
4249-
"name": "--legacy-runtime",
4250-
"value": "\"\"",
4251-
"description": "Runs the app in a Node.js sandbox instead of an Oxygen worker.",
4252-
"isOptional": true,
4253-
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME"
4254-
},
42554228
{
42564229
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-preview.interface.ts",
42574230
"syntaxKind": "PropertySignature",
@@ -4288,7 +4261,7 @@
42884261
"isOptional": true
42894262
}
42904263
],
4291-
"value": "export interface hydrogenpreview {\n /**\n * Builds the app before starting the preview server.\n *\n */\n '--build'?: ''\n\n /**\n * Automatically generates GraphQL types for your project’s Storefront API queries.\n *\n */\n '--codegen'?: ''\n\n /**\n * Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.\n *\n */\n '--codegen-config-path <value>'?: string\n\n /**\n * Enables inspector connections to the server with a debugger such as Visual Studio Code or Chrome DevTools.\n * @environment SHOPIFY_HYDROGEN_FLAG_DEBUG\n */\n '--debug'?: ''\n\n /**\n * Entry file for the worker. Defaults to `./server`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ENTRY\n */\n '--entry <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.\n *\n */\n '--env <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its Git branch name.\n * @environment SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH\n */\n '--env-branch <value>'?: string\n\n /**\n * Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.\n *\n */\n '--env-file <value>'?: string\n\n /**\n * The port where the inspector is available. Defaults to 9229.\n * @environment SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT\n */\n '--inspector-port <value>'?: string\n\n /**\n * Runs the app in a Node.js sandbox instead of an Oxygen worker.\n * @environment SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME\n */\n '--legacy-runtime'?: ''\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * The port to run the server on. Defaults to 3000.\n * @environment SHOPIFY_HYDROGEN_FLAG_PORT\n */\n '--port <value>'?: string\n\n /**\n * Outputs more information about the command's execution.\n * @environment SHOPIFY_HYDROGEN_FLAG_VERBOSE\n */\n '--verbose'?: ''\n\n /**\n * Watches for changes and rebuilds the project.\n *\n */\n '--watch'?: ''\n}"
4264+
"value": "export interface hydrogenpreview {\n /**\n * Builds the app before starting the preview server.\n *\n */\n '--build'?: ''\n\n /**\n * Automatically generates GraphQL types for your project’s Storefront API queries.\n *\n */\n '--codegen'?: ''\n\n /**\n * Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.\n *\n */\n '--codegen-config-path <value>'?: string\n\n /**\n * Enables inspector connections to the server with a debugger such as Visual Studio Code or Chrome DevTools.\n * @environment SHOPIFY_HYDROGEN_FLAG_DEBUG\n */\n '--debug'?: ''\n\n /**\n * Entry file for the worker. Defaults to `./server`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ENTRY\n */\n '--entry <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.\n *\n */\n '--env <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its Git branch name.\n * @environment SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH\n */\n '--env-branch <value>'?: string\n\n /**\n * Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.\n *\n */\n '--env-file <value>'?: string\n\n /**\n * The port where the inspector is available. Defaults to 9229.\n * @environment SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT\n */\n '--inspector-port <value>'?: string\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * The port to run the server on. Defaults to 3000.\n * @environment SHOPIFY_HYDROGEN_FLAG_PORT\n */\n '--port <value>'?: string\n\n /**\n * Outputs more information about the command's execution.\n * @environment SHOPIFY_HYDROGEN_FLAG_VERBOSE\n */\n '--verbose'?: ''\n\n /**\n * Watches for changes and rebuilds the project.\n *\n */\n '--watch'?: ''\n}"
42924265
}
42934266
}
42944267
}

packages/cli/README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,7 @@ Runs Hydrogen storefront in an Oxygen worker for development.
10701070
USAGE
10711071
$ shopify hydrogen dev [--codegen-config-path <value> --codegen] [--debug] [--disable-deps-optimizer]
10721072
[--disable-version-check] [--disable-virtual-routes] [--entry <value>] [--env <value> | --env-branch <value>]
1073-
[--env-file <value>] [--host] [--inspector-port <value>] [--legacy-runtime] [--path <value>] [--port <value>]
1074-
[--sourcemap] [--verbose]
1073+
[--env-file <value>] [--host] [--inspector-port <value>] [--path <value>] [--port <value>] [--verbose]
10751074
10761075
FLAGS
10771076
--codegen Automatically generates GraphQL types for your project’s Storefront API queries.
@@ -1090,12 +1089,9 @@ FLAGS
10901089
Defaults to the '.env' located in your project path `--path`.
10911090
--host Expose the server to the local network
10921091
--inspector-port=<value> The port where the inspector is available. Defaults to 9229.
1093-
--legacy-runtime [Classic Remix Compiler] Runs the app in a Node.js sandbox instead of an Oxygen worker.
10941092
--path=<value> The path to the directory of the Hydrogen storefront. Defaults to the current directory
10951093
where the command is run.
10961094
--port=<value> The port to run the server on. Defaults to 3000.
1097-
--[no-]sourcemap [Classic Remix Compiler] Controls whether server sourcemaps are generated. Default to
1098-
`true`. Deactivate `--no-sourcemaps`.
10991095
--verbose Outputs more information about the command's execution.
11001096
11011097
DESCRIPTION
@@ -1170,8 +1166,9 @@ USAGE
11701166
[--typescript]
11711167
11721168
ARGUMENTS
1173-
ROUTENAME (home|page|cart|products|collections|policies|blogs|account|search|robots|sitemap|all) The route to
1174-
generate. One of home,page,cart,products,collections,policies,blogs,account,search,robots,sitemap,all.
1169+
ROUTENAME (home|page|cart|products|collections|policies|blogs|account|search|robots|sitemap|tokenlessApi|all) The
1170+
route to generate. One of
1171+
home,page,cart,products,collections,policies,blogs,account,search,robots,sitemap,tokenlessApi,all.
11751172
11761173
FLAGS
11771174
-f, --force Overwrites the destination directory and files if they already exist.
@@ -1314,8 +1311,8 @@ Runs a Hydrogen storefront in an Oxygen worker for production.
13141311
```
13151312
USAGE
13161313
$ shopify hydrogen preview [--codegen-config-path <value> [--codegen --build]] [--debug] [--entry <value> ] [--env
1317-
<value> | --env-branch <value>] [--env-file <value>] [--inspector-port <value>] [--legacy-runtime] [--path <value>]
1318-
[--port <value>] [--verbose] [--watch ]
1314+
<value> | --env-branch <value>] [--env-file <value>] [--inspector-port <value>] [--path <value>] [--port <value>]
1315+
[--verbose] [--watch ]
13191316
13201317
FLAGS
13211318
--build Builds the app before starting the preview server.
@@ -1331,7 +1328,6 @@ FLAGS
13311328
--env-file=<value> [default: .env] Path to an environment file to override existing environment variables.
13321329
Defaults to the '.env' located in your project path `--path`.
13331330
--inspector-port=<value> The port where the inspector is available. Defaults to 9229.
1334-
--legacy-runtime Runs the app in a Node.js sandbox instead of an Oxygen worker.
13351331
--path=<value> The path to the directory of the Hydrogen storefront. Defaults to the current directory
13361332
where the command is run.
13371333
--port=<value> The port to run the server on. Defaults to 3000.

packages/cli/oclif.manifest.json

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3378,13 +3378,6 @@
33783378
"name": "inspector-port",
33793379
"type": "option"
33803380
},
3381-
"legacy-runtime": {
3382-
"allowNo": false,
3383-
"description": "[Classic Remix Compiler] Runs the app in a Node.js sandbox instead of an Oxygen worker.",
3384-
"env": "SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME",
3385-
"name": "legacy-runtime",
3386-
"type": "boolean"
3387-
},
33883381
"path": {
33893382
"description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
33903383
"env": "SHOPIFY_HYDROGEN_FLAG_PATH",
@@ -3402,13 +3395,6 @@
34023395
"required": false,
34033396
"type": "option"
34043397
},
3405-
"sourcemap": {
3406-
"allowNo": true,
3407-
"description": "[Classic Remix Compiler] Controls whether server sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.",
3408-
"env": "SHOPIFY_HYDROGEN_FLAG_SOURCEMAP",
3409-
"name": "sourcemap",
3410-
"type": "boolean"
3411-
},
34123398
"verbose": {
34133399
"allowNo": false,
34143400
"description": "Outputs more information about the command's execution.",
@@ -3593,7 +3579,7 @@
35933579
],
35943580
"args": {
35953581
"routeName": {
3596-
"description": "The route to generate. One of home,page,cart,products,collections,policies,blogs,account,search,robots,sitemap,all.",
3582+
"description": "The route to generate. One of home,page,cart,products,collections,policies,blogs,account,search,robots,sitemap,tokenlessApi,all.",
35973583
"name": "routeName",
35983584
"options": [
35993585
"home",
@@ -3607,6 +3593,7 @@
36073593
"search",
36083594
"robots",
36093595
"sitemap",
3596+
"tokenlessApi",
36103597
"all"
36113598
],
36123599
"required": true
@@ -4090,13 +4077,6 @@
40904077
"name": "inspector-port",
40914078
"type": "option"
40924079
},
4093-
"legacy-runtime": {
4094-
"allowNo": false,
4095-
"description": "Runs the app in a Node.js sandbox instead of an Oxygen worker.",
4096-
"env": "SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME",
4097-
"name": "legacy-runtime",
4098-
"type": "boolean"
4099-
},
41004080
"path": {
41014081
"description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
41024082
"env": "SHOPIFY_HYDROGEN_FLAG_PATH",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"@shopify/plugin-did-you-mean": "3.83.0",
116116
"@shopify/theme": "3.83.0",
117117
"@shopify/store": "3.83.0",
118-
"@shopify/cli-hydrogen": "10.0.1",
118+
"@shopify/cli-hydrogen": "11.1.2",
119119
"@types/global-agent": "3.0.0",
120120
"@typescript-eslint/eslint-plugin": "7.13.1",
121121
"@vitest/coverage-istanbul": "^3.1.4",

0 commit comments

Comments
 (0)