Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into hl-2024-01-update-remix
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardlyhel committed Jan 19, 2024
2 parents ec81144 + 1820241 commit cf5950c
Show file tree
Hide file tree
Showing 100 changed files with 2,736 additions and 5,568 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-apes-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli-hydrogen': major
---

Remove deprecated CLI flags.
11 changes: 11 additions & 0 deletions .changeset/tasty-plums-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'skeleton': patch
'@shopify/hydrogen': patch
'@shopify/cli-hydrogen': patch
---

✨ Use the new Customer Account API in the account section of the skeleton template

✨ Add an `authUrl` option to `createCustomerClient` that defines the route in your app that authorizes a user after logging in. The default value is `/account/authorize`.

✨ Add an optional `redirectPath` parameter to customer client's login method. This param defines the final path the user lands on at the end of the oAuth flow. It defaults to `/`
11 changes: 9 additions & 2 deletions .graphqlrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ projects:
default:
schema: 'packages/hydrogen-react/storefront.schema.json'
documents:
- 'templates/**/app/**/*.{graphql,js,ts,jsx,tsx}'
- 'examples/**/app/**/*.{graphql,js,ts,jsx,tsx}'
- 'templates/**/app/**/*.{graphql,js,ts,jsx,tsx}'
- 'examples/**/app/**/*.{graphql,js,ts,jsx,tsx}'
- '!templates/**/app/graphql/**/*.{graphql,js,ts,jsx,tsx}'
- '!examples/**/app/graphql/**/*.{graphql,js,ts,jsx,tsx}'
customer-account:
schema: 'packages/hydrogen-react/customer-account.schema.json'
documents:
- 'templates/**/app/graphql/customer-account/**/*.{graphql,js,ts,jsx,tsx}'
- 'examples/**/app/graphql/customer-account/**/*.{graphql,js,ts,jsx,tsx}'
admin:
schema: 'packages/cli/admin.schema.json'
documents: 'packages/cli/src/**/graphql/admin/**/*.ts'
Expand Down
1 change: 0 additions & 1 deletion examples/customer-api/.gitignore

This file was deleted.

37 changes: 0 additions & 37 deletions examples/customer-api/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions examples/customer-api/app/entry.client.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions examples/customer-api/app/entry.server.tsx

This file was deleted.

74 changes: 0 additions & 74 deletions examples/customer-api/app/root.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions examples/customer-api/app/routes/_index.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions examples/customer-api/app/routes/authorize.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions examples/customer-api/app/routes/logout.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions examples/customer-api/app/styles/app.css

This file was deleted.

7 changes: 0 additions & 7 deletions examples/customer-api/example.env

This file was deleted.

42 changes: 0 additions & 42 deletions examples/customer-api/package.json

This file was deleted.

Loading

0 comments on commit cf5950c

Please sign in to comment.