Skip to content

Add typed JSON output to Hydrogen route generation - #4100

Open
gonzaloriestra wants to merge 2 commits into
gonzalo/hydrogen-json-envfrom
gonzalo/hydrogen-json-routes
Open

gonzaloriestra wants to merge 2 commits into
gonzalo/hydrogen-json-envfrom
gonzalo/hydrogen-json-routes

Conversation

@gonzaloriestra

@gonzaloriestra gonzaloriestra commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Route generation needs a typed result describing created, replaced, and skipped routes.

Fixes https://github.com/shop/issues-develop/issues/23681

WHAT is this pull request doing?

Add strict JSON output to route generation and its compatibility alias. Keep relative route names, named route collections, and explicit status and changed outcomes. Preserve confirmation prompts in JSON mode.

HOW to test your changes?

shopify hydrogen generate routes --json
shopify hydrogen generate route cart --json

Checklist

  • I have read the contributing guidelines
  • I have considered cross-platform impacts
  • I have added a changeset for user-facing changes
  • I have added tests
  • I have updated the documentation

@shopify

shopify Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Oxygen deployed a preview of your gonzalo/hydrogen-json-routes branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment October 14, 202610:30 AM

Learn more about Hydrogen's GitHub integration.

@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from f69ff8a to 58b2f56 Compare September 28, 2026 15:38
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from 58b2f56 to 783de51 Compare September 29, 2026 12:25
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from 783de51 to 26229df Compare September 29, 2026 14:54
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch 2 times, most recently from 5d2d9a1 to 10b6284 Compare October 6, 2026 12:11
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch 2 times, most recently from 338e5fd to a096ad1 Compare October 6, 2026 13:46
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from a096ad1 to e3751a4 Compare October 6, 2026 13:52
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from 214b842 to 2162dba Compare October 9, 2026 12:25
@gonzaloriestra
gonzaloriestra marked this pull request as ready for review October 9, 2026 12:28
@gonzaloriestra
gonzaloriestra requested a review from a team as a code owner October 9, 2026 12:28
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from 2162dba to c160aea Compare October 9, 2026 12:43
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch 2 times, most recently from 3680fc5 to fe21fa0 Compare October 9, 2026 13:02
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from fe21fa0 to 0681c07 Compare October 9, 2026 13:29
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from 0681c07 to 823d33d Compare October 9, 2026 14:01
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from 823d33d to 9da8651 Compare October 13, 2026 11:03
@gonzaloriestra
gonzaloriestra removed this pull request from stack #4104 October 13, 2026 11:03
@gonzaloriestra
gonzaloriestra added this pull request to stack #4177 October 13, 2026 11:04
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch 2 times, most recently from 6734beb to 9a10549 Compare October 14, 2026 09:52
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch 2 times, most recently from 2f623a3 to 88ba195 Compare October 14, 2026 10:12
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-routes branch from 88ba195 to b0c7968 Compare October 14, 2026 10:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants