Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented May 25, 2022

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v1.x-2022-07, this PR will be updated.

Releases

[email protected]

Minor Changes

  • #1313 ed1933e3 Thanks @frandiox! - Breaking change: The routes property in hydrogen.config.js file has been simplified. It is now a string that represents the path to the routes from the project root:

    // hydrogen.config.js
    
    export default defineConfig({
    -  routes: import('./src/routes/**/*.server.[jt](s|sx)'),
    +  routes: '/src/routes',
    });

    Its default value is /src/routes so this property can be removed when using this directory.

    In the object syntax version, dirPrefix is removed and files becomes a string:

    // hydrogen.config.js
    
    export default defineConfig({
      routes: {
    -   files: import('./src/routes/**/*.server.[jt](s|sx)'),
    -   dirPrefix: './src/routes',
    +   files: '/src/routes',
        basePath: '/',
      },
    });
  • #930 750baf8f Thanks @michenly! - Add an end-to-end implementation of customer account creation, login, reset password, and logout. The following routes are added:

    1. /account - An account settings page for the current logged in user. At the moment mostly unimplemented. If the user accesses the route while not logged in, they will be forwarded to /account/login.
    2. /account/login - A page for the user to present their credentials and login.
    3. /account/logout - An API route that expects a POST to delete the current session.
    4. /account/register - Contains a form for the user to setup a new account. On success, forwards the user to /account
    5. /account/recover - A form for the user to fill out to initiate a password reset. If the form succeeds, an email will be sent to the user with a link to reset their password. Clicking the link leads the user to the page /account/reset/[resetToken].
    6. /account/reset/[id]/[resetToken] - A form to enter a new password. Submits the new password and resetToken to /account/reset. On success, forwards the user to /account.
    7. /account/reset - An API route to update the user with a new password.
    8. /account/activate/[id]/[activationToken] - This is a form to activate a new user. The user should only reach this form from a link in their email. Submits the password and activationToken to /account/activate, On success, forwards the user to /account.
    9. /account/activate - An API route to activate the user with a password.

    Note: At the moment, the email sent to the user for password resets has the web storefront domain, instead of your Hydrogen domain. This will be resolved, but in the mean time, you can manually replace the domain with your Hydrogen domain to proceed.

    A later release will include a large account admin implementation.

@shopify/[email protected]

Minor Changes

  • #930 750baf8f Thanks @michenly! - With the introduction of authenticated pages, we also now provide the ability to prevent pages from being indexed by bots. You can do so by passing noindex to the Seo component:

    <Seo type="noindex" data={{title: 'Login'}} />
  • #1313 ed1933e3 Thanks @frandiox! - Breaking change: The routes property in hydrogen.config.js file has been simplified. It is now a string that represents the path to the routes from the project root:

    // hydrogen.config.js
    
    export default defineConfig({
    -  routes: import('./src/routes/**/*.server.[jt](s|sx)'),
    +  routes: '/src/routes',
    });

    Its default value is /src/routes so this property can be removed when using this directory.

    In the object syntax version, dirPrefix is removed and files becomes a string:

    // hydrogen.config.js
    
    export default defineConfig({
      routes: {
    -   files: import('./src/routes/**/*.server.[jt](s|sx)'),
    -   dirPrefix: './src/routes',
    +   files: '/src/routes',
        basePath: '/',
      },
    });
  • #1332 5ec1bc62 Thanks @frandiox! - A new gql utility is exported from @shopify/hydrogen that replaces graphql-tag dependency when using useShopQuery. It helps reducing bundle size in production when compared to the original graphql-tag.

    Before:

    import gql from 'graphql-tag';
    
    // ...
    
    useShopQuery({
      query: gql`...`,
      // ...
    });

    After:

    import {gql} from '@shopify/hydrogen';
    
    // ...
    
    useShopQuery({
      query: gql`...`,
      // ...
    });
  • #1340 631832ec Thanks @jplhomer! - Breaking change: The response.send() function has been removed. Use export async function api() to send custom responses instead.

Patch Changes

  • #1371 84a2fd09 Thanks @frehner! - Made updates to <Image/>:

    • Fixed some TypeScript type issues with Image.
    • data.url and alt are now required props in Typescript, but won't break the actual component if you don't pass them.
  • #1348 211093e5 Thanks @developit! - Fix HTML double-decoding in flight response

  • #1345 331ff3c0 Thanks @frandiox! - Reduce the amount of user app files downloaded in the browser.

  • #1322 36bd77c4 Thanks @frandiox! - Fix server hanging in Node.js environment when not using Hydrogen Middleware.

  • #1360 d9b0d03b Thanks @blittle! - Fix a problem where encoded html content props passed from server to client components would get double decoded, and break hydration on app load.

  • #1355 c45a45e8 Thanks @jplhomer! - Ensure all Hydrogen components are exported properly

  • #1339 fef4cb84 Thanks @jplhomer! - Use import.meta.env.DEV instead of process.env.LOCAL_DEV to hash asset filenames and show performance metrics debugging

  • #1320 7e9df897 Thanks @jplhomer! - Properly log errors during flight responses

  • #1363 0941d3be Thanks @frandiox! - Remove some server utilities from client build.

[email protected]

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/v1.x-2022-07 branch 30 times, most recently from 106bf47 to e147f6c Compare May 30, 2022 08:25
@github-actions github-actions bot force-pushed the changeset-release/v1.x-2022-07 branch 4 times, most recently from 3504c65 to 1b08e36 Compare May 31, 2022 17:25
@github-actions github-actions bot force-pushed the changeset-release/v1.x-2022-07 branch from 1b08e36 to d4b5f0c Compare May 31, 2022 18:55
@jplhomer jplhomer merged commit 3544bc6 into v1.x-2022-07 May 31, 2022
@jplhomer jplhomer deleted the changeset-release/v1.x-2022-07 branch May 31, 2022 19:01
lordofthecactus added a commit that referenced this pull request Jun 8, 2022
* Center logo in Demo Store header (#1378)

* Template favicons updated with SVGs, and moved to /src/assets (#1377)

* Automatically fix GQL imports in exisiting Hydrogen Projects (#1336)

* Add eslint rule to fix gql imports

* Update README.md

* add tests with fixer

* Update packages/eslint-plugin/src/rules/prefer-gql/README.md

Co-authored-by: Michelle Vinci <[email protected]>

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

* Final copy edits

Co-authored-by: Michelle Vinci <[email protected]>

* Remove CLI scripts (#1379)

* Support ESLint v8 in `eslint-plugin` (#1373)

* remove and reorganize duplicated content (#1380)

* Simplify `routes` property in Hydrogen config (#1313)

* Drop import.meta.globEager in dev

* Refactor variables and virtual modules

* Fix code after cherry-pick

* Extract Vitception

* Use Vitception to load routes during build

* Use static imports to fix build

* Add default routes path

* Fix types and paths

* Fix dirPrefix issues

* Fix HMR in route files

* Use default value for config.routes

* Fix issue in Node 16.15

* Extract virtual-files plugin for clarity

* Cleanup

* Fix unit tests

* Update docs

* Changeset

* Cleanup

* Regenerate broken graphql.schema.json

* Disable rules-of-hooks in server components

* Disable prefer-gql in test

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

* Revert "Disable prefer-gql in test"

This reverts commit d130f1c.

* Revert "Disable rules-of-hooks in server components"

This reverts commit e0ffbf6.

Co-authored-by: Michelle Vinci <[email protected]>

* Update formatting of release notes

* minor fixes (#1391)

* Remove hello world code (#1392)

* [ci] release v1.x-2022-07 (#1343)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Remove broken changesets

* [Hydrogen docs]: User authentication (#1353)

* initial draft

* remove useCustomer docs

* add address and order routes

* integrate feedback

* Make graphql-tag a dep instead of a devDep to fix dev errors (#1394)

* [ci] release v1.x-2022-07 (#1396)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* StackBlitz: turn off auto-save (#1386)

* Simplify renderHydrogen internal logic (#1384)

* Simplify entry-server code

* Combine stream and render into runSsr

* Rename some variables and functions for consistency

* Fix: write head before checking redirects in Node

* Remove unnecessary check and add comment

* These li'l babies need a flipperoo (#1398)

* Rename utility `isClient` to `isBrowser` (#1389)

* Rename utility `isClient` to `isBrowser`

* Switch to document check instead of window

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/utilities/isserver.md

Co-authored-by: Michelle Vinci <[email protected]>

Co-authored-by: Michelle Vinci <[email protected]>

* Fix unique key issue in old demo store template

* Workers support streaming now (#1227)

* I think streaming is supported now?

* Bump

* Add changeset

* style guide fixes (#1407)

* Move logger options to Hydrogen config (#1403)

* Stop using globalThis for logger and minor refactor

* Move logger options to Hydrogen config file

* Update unit tests

* Remove setLogger call from e2e tests

* Always call setLogger for HMR

* Remove unnecessary type

* Add docs

* Changeset

* Fix link

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

Co-authored-by: Michelle Vinci <[email protected]>

* Fix CountrySelector styling in demo store (#1415)

* fix-demo-store-country-selector-styling

* move conditional classes back to newline

* add changeset

* Fix logger title in docs (#1419)

* Fix logger title in docs

* Fix unrelated changeset

* Suppress confusing warnings (#1399)

* Supress confusing warnings

* Changeset

* Typo

* Improve component bundling and reduce total downloaded files (#1361)

* Skip module references for nested client components

* Changeset

* Move Viteception to RSC plugin. Augment Vite module graph. Bundle client components in boundary chunks

* Minor refactor of internal components to reduce generated chunks

* Changeset

* Update plugin with latest changes

* Maybe fix Windows paths

* Fix undefined variable

* Add moduleSideEffects info

* Sync React experimental with upstream

* Deprecate `enableStreaming` (#1401)

* Deprecate enableStreaming option

* Changeset

* Add docs

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

* Fix link

Co-authored-by: Michelle Vinci <[email protected]>

* Move client options to Hydrogen config (#1418)

* Move client options to Hydrogen config

* Update docs

* Changeset

* Remove global config (#1422)

* Remove global config

* Fix unit tests

* Move global context to request internals (#1423)

* Move global context to request internals

* Changeset

Co-authored-by: Josh Larson <[email protected]>

* Support async logs (#1424)

* Move global context to request internals

* Changeset

* Support async logs

* Change docs example

* Changeset

* Make sure waitUntil exists

Co-authored-by: Josh Larson <[email protected]>

* Rename internal Hydrogen global variables (#1425)

* Rename hydrogen globals

* Changeset

Co-authored-by: Josh Larson <[email protected]>

* Rename Request/Response classes to `HydrogenRequest` and `HydrogenResponse` (#1408)

* Rename `ServerComponentRequest` to `HydrogenRequest`

* Move `HydrogenRequest` out of weird Hydration folder

* Move test, too

* Rename `ServerComponentResponse` to `HydrogenResponse`

* Update old references of names

* Fix broken references

* Call out breaking changes in changesets

* Move non-CJS files out of `framework` into `foundation` (#1409)

* Move HydrogenRequest to foundation

* Move HydrogenResponse to foundation

* Move HydrogenRequest test

* Move Cache things to foundation

* Move runtime to foundation

* Move Html to foundation

* Move rsc stuff to entry-client

* StackBlitz: temporary start command workaround (#1434)

* Ignore skipped tests to avoid CI noise (#1432)

* Support Node 18 by avoiding `Headers.raw()` (#1427)

* Split cookies manually instead of using `Headers.raw()`

* Add Node v18 to the testing matrix

* Add changeset

* Fix types, logic, and bundling issues

* Add support for sending ReadableStream to node responses

* Update set-cookie-parser to enhance tree-shaking in workers

* Update packages/hydrogen/src/entry-server.tsx

Co-authored-by: Fran Dios <[email protected]>

* Use existing bufferReadableStream utility

* Don't run tests on Node 17 anymore

Co-authored-by: Fran Dios <[email protected]>

* Implement the account details pages (#1334)

* add account create form

add login form

move login to api route and set it in response & server

get e2e login & logout working

remove setting cookie directly into the server

simplify logout

simplify login

condition render account route using customerAccessToken

add account icon link

rename account route and add no cache

add no cache to customer related query & mutation

move login form to a different route

add register & recover route and create account folder

add account creation flow

fix account login redirect

replace cookie module with worktop/cookie

add checking to account details

add customer recover form

add password reset flow

add more test to cart provider

refactor useCookie to useCustomer instead

if user logined already, use the access token for cart creation

explore multipass login

fix up customer related toolings using sessions

remove @shopify/react-form from login

Remove @shopify/react-form from account create

remove @shopify/react-form from password recover

remove @shopify/react-form from password reset

remove @shopify/react-form

* Fixes

* Fix lint problems

* Fix error handling on account creation

* Fixes to login form

* Fix layout for desktop

* Fix create account page

* Fix recovery page

* Fixes

* Fixes

* Move AccountProfile image to a static svg

* Remove multipass stuff for now

* Mo fixes

* Fix lint errors

* Add docs

* Add docs and changeset

* Update the useCustomer hook

* Update docs/hooks/global/usecustomer.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/hooks/global/usecustomer.md

Co-authored-by: Michelle Vinci <[email protected]>

* Prevent account pages from being indexed by bots

* Update docs

* Remove multipassify for now

* Fix verbiage

* Fix docs

* Add activate account page and move client components into common directory

* Fix gql

* Remove `useCustomer` hooks

* Implement account pages

* Fixes

* Fixes

* Fix bad merge

* Fixes

Co-authored-by: Michelle Chen <[email protected]>
Co-authored-by: Michelle Vinci <[email protected]>

* Allow scroll restoration to be disabled (#1431)

* Allow scroll restoration to be disabled

* Update examples

* Revert to prior default value

* Always restore scroll on pop events, regardless of initial intent

* Change to `scroll`

Co-authored-by: Bret Little <[email protected]>

* [Hydrogen docs]: Specify experimental features (#1445)

* call out experimental features

* add experimental note to showqueryTiming option

* [Hydrogen docs]: Remove references to render props (#1442)

* remove references to render props

* reference customizing components section

* typo fixes (#1446)

* fix note (#1448)

* [Hydrogen docs]: Update app scaffolding commands (#1292)

* update commands

* typo

* typo

* Remove writeHead and make status writable (#1433)

* Remove writeHead and make status writable

* Changeset

* Cleanup

* Add highWaterMark default to React Flight readable (#1451)

* Improve CPU performance in RSC (#1452)

* Improve CPU performance in RSC check

* Changeset

* Generate a default srcset for an image returned by the Shopify CDN (#1330)

* feat: add default img srcset to Shopify images

* feat: add custom widths to Image srcset

* doc: add srcset documentation

* doc: add change set

* feat: lift widths prop to Image level

* feat: use the available loader to generate srcset

* feat:reduce srcset to max-width without distortion

* test: add default img srcset test

* Update packages/hydrogen/src/components/Image/Image.tsx

Co-authored-by: Michelle Vinci <[email protected]>

* doc: update Image docs with widths prop changes

* feat: generate srcset for extarnal images

* Update docs/components/primitive/image.md

Co-authored-by: Michelle Vinci <[email protected]>

* test: add test for images using src

Co-authored-by: Michelle Vinci <[email protected]>
Co-authored-by: Anthony Frehner <[email protected]>

* Improve error message when storefront API is not JSON (#1444)

* Propagate a better error message when the response from the storefront API is not JSON parseable

* Shopify analytics 2 (#1325)

* Instrumented page view and make sure Shopfiy live view works

Co-authored-by: Michelle Vinci <[email protected]>

* [ci] release v1.x-2022-07 (#1404)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Get changelogs to see the new name

* Try to retrigger changeset (#1459)

* Product provider work (#1397)

* saving progress

* Saving progress

I think I have the code all working, it's now just updating tests and stuff. I updated the docs but they probably need to be cleaned up more.

* Working on tests

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productprice.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/hooks/product-variant/useproductoptions.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/hooks/product-variant/useproductoptions.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Get tests passing and fix a lot of issues in the meantime

* Update docs to show nodes instead of edges->node

* Replace ProductProvider with ProductOptionsProvider

* Fix issue with useEffect

* update selectedoptions on initialVariantId change

Co-authored-by: Michelle Vinci <[email protected]>

* Fix doc links (#1460)

* fix doc links

* add changeset

* Remove demo-store frontmatter

* Revert "[ci] release v1.x-2022-07 (#1404)" (#1462)

This reverts commit c05c999.

* [ci] release v1.x-2022-07 (#1461)

* [ci] release v1.x-2022-07

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anthony Frehner <[email protected]>

* fix link (#1463)

* Lint changesets (#1464)

* Add script to lint changesets

* Add note about avoiding headings as first line of changesets, and a linter for that

* Add more specific actionable stuff

* Try removing emoji

* Revert "Try removing emoji"

This reverts commit 2ce6301.

* Add final success message

* Remove unused dependencies (#1457)

Co-authored-by: Anthony Frehner <[email protected]>

* Cart types update (#1237)

* saving progress

* update queries, types, and add documentation

* Saving progress; I think I'm done but the SFAPI may be down?

* Update docs

* Update .changeset/wet-dingos-kick.md

Co-authored-by: Josh Larson <[email protected]>

* Update types and make a small update to CartLinePrice

Co-authored-by: Josh Larson <[email protected]>

* Updates yarn lock

* Remove unconfig vite files

* Moves demo-store to demo-store-neue folder

* Moves demo-store-archive to demo-store

* Replaces dynamic import with CSS classes

* Temp switch to non-aliased Header/Footer imports to fix dev

* Removes unconfig vite file

* Updates Favicon design

* Hides cart badge when 0

* Fixes Product Page with updated ProductOptionsProvider

* Updates Cart page for dark mode and Icon colors

* Fixes broken query on Collection page

* Fixes imports and other linting errors across several files

* Fix `ProductGrid`

* Fix locations index route

Co-authored-by: Matt Seccafien <[email protected]>
Co-authored-by: Michelle Vinci <[email protected]>
Co-authored-by: Fran Dios <[email protected]>
Co-authored-by: Josh Larson <[email protected]>
Co-authored-by: Bret Little <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Scott Dixon <[email protected]>
Co-authored-by: BradMurchison <[email protected]>
Co-authored-by: Josh Larson <[email protected]>
Co-authored-by: Michelle Chen <[email protected]>
Co-authored-by: Emilio Franco <[email protected]>
Co-authored-by: Anthony Frehner <[email protected]>
Co-authored-by: Helen Lin <[email protected]>
Co-authored-by: Daniel Rios Pavia <[email protected]>
lordofthecactus added a commit that referenced this pull request Jun 8, 2022
* Inits new demo store template

* Update package.json

* Use `gql` from `hydrogen` in demo store v2

* Remove server utilities from client build (#1363)

* Remove server utilities from client build

* Changeset

Co-authored-by: Josh Larson <[email protected]>

* remove stray console.log (#1364)

* Prevent encoded props from double decoding  (#1360)

* Prevent encoded props from double decoding in the RSC flight inlined in the initial page load

* Removed unused htmlDecode

* Update stackblitz workflow to manually update files (#1365)

This needs to happen in a single commit as opposed to
concurrent/parallel workflows because they both check out
the main branch first and then force push.

* Add rule override (#1367)

* Adds @types/react to typescript example (#1362)

* Update docs to describe the difference between experimental and unstable releases (#1366)

* Explicitly log errors for Flight onError (#1320)

* wip: Explicitly log errors for Flight onError

* Rename variables for clarity

* Add changeset

* Revert streaming thing

* Bump hydrogen eslint plugin version (#1368)

* Bump hydrogen eslint plugin version

This gets rid of the annoying error we're seeing while developing the monorepo

* Use new name for hook

* Update for more lax server component hooks rules

* Drop prefixes from template names (#1369)

* Drop prefixes from template names

* Update publish_stackblitz.yml

* Update index.server.jsx

* Update index.server.jsx

* Typescript updates (#1374)

* Update typescript and ts-node

ts-node was required to update because of this comment jestjs/jest#12655 (comment)

* Dedupe the react/types and finish the update

* Fix Image typescript issues (#1371)

* Add TS test-ish things for Image's TS types

Make any console.warn only happen in dev

Fix Image's weird types issue with Simplify from type-fest

Update the readme for the TS example

* Fix dev warnings and a type issue

* add changelog

* Update yarn.lock

* Adds basic layout components and content for 404

* @benjaminsehl/demo store neue (#1387)

* Adds basic components for Collection. Refines Product Card. Co-locates mock data.

* Adds Locations page, refines existing components

* Runs yarn format

* Updates Icons to work with SSR

* Removes custom spacing from Tailwind config

* Updates temp country banner

* Refactors product card, adds search page, beginning of product page

* Adds search functionality, adds real data to homepage, improves components

* Completes desktop hero with dynamic data

* Improves layout and adds data for homepage, cart, header, product card, collections, swimlane

* Updates to locations, collections, products all

* Style consistency updates and addition of dark mode

* Adds functioning search bar on search page

* Adds queries and dynamic data for components

* Update styling on hero and search

* Yarn format

* Updates to hero and search

* Revert "Updates to hero and search"

This reverts commit 145defe.

* Style tweaks to header

* Complete locations template

* Update Location template layout

* Demo store neue: collection pagination (#1400)

* Dynamic Product Swimlane & Mobile Layouts (#1412)

* Product Swimlane now works with product recommendations

* Updates Header for mobile

* Mobile layout for header, footer, and key layout components

* Adds expanding menus to footer

* Adds mobile layout for search

* @benjaminsehl/pdp demo store neue (#1414)

* Product Swimlane now works with product recommendations

* Updates Header for mobile

* Mobile layout for header, footer, and key layout components

* Adds expanding menus to footer

* Adds mobile layout for search

* Basic product page layout

* Adds URL param control to PDP

* Added account pages from demo-store (#1410)

* Added account pages from demo-store

* Autofocus email and password inputs

* adds cart functionality (#1417)

* Wire up cart page

* Fixes typeof error in swimlane

* Wires up cart data

* Demo store neue: Intersection Observer for infinite scroll (#1421)

Co-authored-by: Benjamin Sehl <[email protected]>

* Dy orders (#1420)

* wip - display empty state for order history if customer doesn't have any orders yet

* Updated empty state based on 404 page

* Display custom welcome heading if customer account has a first name

* Added featured collections, products, and locations sections to account details page

* Styling updates on forms

* Styling, padding, alignment for order history

* Demo store neue: clean up country selector (#1436)

* Renames metaobjects to contentEntries

* Updates metaobject references to contentEntry

* Minor visual fixes and a catch for a bug with availableOnSale

* Moves Neue to main demo store, moves existing demo store to demo-store-archive

* Display order history as a grid of cards (#1440)

* Display order history as grid of cards
* Use Text component
* Fixed text spacing

* Fix new demo store build after update to [email protected] (#1454)

* Remove package-lock file

* Update to `@shopify/[email protected]` and `@shopify/[email protected]`

* Remove `graphql-tag`

* Update yarn lock file with latest new demo store changes

* Fix environment variable in `App.server.jsx`

* Use default routes in hydrogen config

* Revert "Fix new demo store build after update to [email protected] (#1454)"

This reverts commit ba43a31.

Easier to merge 0.23.0 and then update given the name changes in folders causing too many conflicsts

* Upgrade Demo Store Neue to v23 (#1467)

* Center logo in Demo Store header (#1378)

* Template favicons updated with SVGs, and moved to /src/assets (#1377)

* Automatically fix GQL imports in exisiting Hydrogen Projects (#1336)

* Add eslint rule to fix gql imports

* Update README.md

* add tests with fixer

* Update packages/eslint-plugin/src/rules/prefer-gql/README.md

Co-authored-by: Michelle Vinci <[email protected]>

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

* Final copy edits

Co-authored-by: Michelle Vinci <[email protected]>

* Remove CLI scripts (#1379)

* Support ESLint v8 in `eslint-plugin` (#1373)

* remove and reorganize duplicated content (#1380)

* Simplify `routes` property in Hydrogen config (#1313)

* Drop import.meta.globEager in dev

* Refactor variables and virtual modules

* Fix code after cherry-pick

* Extract Vitception

* Use Vitception to load routes during build

* Use static imports to fix build

* Add default routes path

* Fix types and paths

* Fix dirPrefix issues

* Fix HMR in route files

* Use default value for config.routes

* Fix issue in Node 16.15

* Extract virtual-files plugin for clarity

* Cleanup

* Fix unit tests

* Update docs

* Changeset

* Cleanup

* Regenerate broken graphql.schema.json

* Disable rules-of-hooks in server components

* Disable prefer-gql in test

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

* Revert "Disable prefer-gql in test"

This reverts commit d130f1c.

* Revert "Disable rules-of-hooks in server components"

This reverts commit e0ffbf6.

Co-authored-by: Michelle Vinci <[email protected]>

* Update formatting of release notes

* minor fixes (#1391)

* Remove hello world code (#1392)

* [ci] release v1.x-2022-07 (#1343)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Remove broken changesets

* [Hydrogen docs]: User authentication (#1353)

* initial draft

* remove useCustomer docs

* add address and order routes

* integrate feedback

* Make graphql-tag a dep instead of a devDep to fix dev errors (#1394)

* [ci] release v1.x-2022-07 (#1396)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* StackBlitz: turn off auto-save (#1386)

* Simplify renderHydrogen internal logic (#1384)

* Simplify entry-server code

* Combine stream and render into runSsr

* Rename some variables and functions for consistency

* Fix: write head before checking redirects in Node

* Remove unnecessary check and add comment

* These li'l babies need a flipperoo (#1398)

* Rename utility `isClient` to `isBrowser` (#1389)

* Rename utility `isClient` to `isBrowser`

* Switch to document check instead of window

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/utilities/isserver.md

Co-authored-by: Michelle Vinci <[email protected]>

Co-authored-by: Michelle Vinci <[email protected]>

* Fix unique key issue in old demo store template

* Workers support streaming now (#1227)

* I think streaming is supported now?

* Bump

* Add changeset

* style guide fixes (#1407)

* Move logger options to Hydrogen config (#1403)

* Stop using globalThis for logger and minor refactor

* Move logger options to Hydrogen config file

* Update unit tests

* Remove setLogger call from e2e tests

* Always call setLogger for HMR

* Remove unnecessary type

* Add docs

* Changeset

* Fix link

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

Co-authored-by: Michelle Vinci <[email protected]>

* Fix CountrySelector styling in demo store (#1415)

* fix-demo-store-country-selector-styling

* move conditional classes back to newline

* add changeset

* Fix logger title in docs (#1419)

* Fix logger title in docs

* Fix unrelated changeset

* Suppress confusing warnings (#1399)

* Supress confusing warnings

* Changeset

* Typo

* Improve component bundling and reduce total downloaded files (#1361)

* Skip module references for nested client components

* Changeset

* Move Viteception to RSC plugin. Augment Vite module graph. Bundle client components in boundary chunks

* Minor refactor of internal components to reduce generated chunks

* Changeset

* Update plugin with latest changes

* Maybe fix Windows paths

* Fix undefined variable

* Add moduleSideEffects info

* Sync React experimental with upstream

* Deprecate `enableStreaming` (#1401)

* Deprecate enableStreaming option

* Changeset

* Add docs

* Apply suggestions from code review

Co-authored-by: Michelle Vinci <[email protected]>

* Fix link

Co-authored-by: Michelle Vinci <[email protected]>

* Move client options to Hydrogen config (#1418)

* Move client options to Hydrogen config

* Update docs

* Changeset

* Remove global config (#1422)

* Remove global config

* Fix unit tests

* Move global context to request internals (#1423)

* Move global context to request internals

* Changeset

Co-authored-by: Josh Larson <[email protected]>

* Support async logs (#1424)

* Move global context to request internals

* Changeset

* Support async logs

* Change docs example

* Changeset

* Make sure waitUntil exists

Co-authored-by: Josh Larson <[email protected]>

* Rename internal Hydrogen global variables (#1425)

* Rename hydrogen globals

* Changeset

Co-authored-by: Josh Larson <[email protected]>

* Rename Request/Response classes to `HydrogenRequest` and `HydrogenResponse` (#1408)

* Rename `ServerComponentRequest` to `HydrogenRequest`

* Move `HydrogenRequest` out of weird Hydration folder

* Move test, too

* Rename `ServerComponentResponse` to `HydrogenResponse`

* Update old references of names

* Fix broken references

* Call out breaking changes in changesets

* Move non-CJS files out of `framework` into `foundation` (#1409)

* Move HydrogenRequest to foundation

* Move HydrogenResponse to foundation

* Move HydrogenRequest test

* Move Cache things to foundation

* Move runtime to foundation

* Move Html to foundation

* Move rsc stuff to entry-client

* StackBlitz: temporary start command workaround (#1434)

* Ignore skipped tests to avoid CI noise (#1432)

* Support Node 18 by avoiding `Headers.raw()` (#1427)

* Split cookies manually instead of using `Headers.raw()`

* Add Node v18 to the testing matrix

* Add changeset

* Fix types, logic, and bundling issues

* Add support for sending ReadableStream to node responses

* Update set-cookie-parser to enhance tree-shaking in workers

* Update packages/hydrogen/src/entry-server.tsx

Co-authored-by: Fran Dios <[email protected]>

* Use existing bufferReadableStream utility

* Don't run tests on Node 17 anymore

Co-authored-by: Fran Dios <[email protected]>

* Implement the account details pages (#1334)

* add account create form

add login form

move login to api route and set it in response & server

get e2e login & logout working

remove setting cookie directly into the server

simplify logout

simplify login

condition render account route using customerAccessToken

add account icon link

rename account route and add no cache

add no cache to customer related query & mutation

move login form to a different route

add register & recover route and create account folder

add account creation flow

fix account login redirect

replace cookie module with worktop/cookie

add checking to account details

add customer recover form

add password reset flow

add more test to cart provider

refactor useCookie to useCustomer instead

if user logined already, use the access token for cart creation

explore multipass login

fix up customer related toolings using sessions

remove @shopify/react-form from login

Remove @shopify/react-form from account create

remove @shopify/react-form from password recover

remove @shopify/react-form from password reset

remove @shopify/react-form

* Fixes

* Fix lint problems

* Fix error handling on account creation

* Fixes to login form

* Fix layout for desktop

* Fix create account page

* Fix recovery page

* Fixes

* Fixes

* Move AccountProfile image to a static svg

* Remove multipass stuff for now

* Mo fixes

* Fix lint errors

* Add docs

* Add docs and changeset

* Update the useCustomer hook

* Update docs/hooks/global/usecustomer.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/hooks/global/usecustomer.md

Co-authored-by: Michelle Vinci <[email protected]>

* Prevent account pages from being indexed by bots

* Update docs

* Remove multipassify for now

* Fix verbiage

* Fix docs

* Add activate account page and move client components into common directory

* Fix gql

* Remove `useCustomer` hooks

* Implement account pages

* Fixes

* Fixes

* Fix bad merge

* Fixes

Co-authored-by: Michelle Chen <[email protected]>
Co-authored-by: Michelle Vinci <[email protected]>

* Allow scroll restoration to be disabled (#1431)

* Allow scroll restoration to be disabled

* Update examples

* Revert to prior default value

* Always restore scroll on pop events, regardless of initial intent

* Change to `scroll`

Co-authored-by: Bret Little <[email protected]>

* [Hydrogen docs]: Specify experimental features (#1445)

* call out experimental features

* add experimental note to showqueryTiming option

* [Hydrogen docs]: Remove references to render props (#1442)

* remove references to render props

* reference customizing components section

* typo fixes (#1446)

* fix note (#1448)

* [Hydrogen docs]: Update app scaffolding commands (#1292)

* update commands

* typo

* typo

* Remove writeHead and make status writable (#1433)

* Remove writeHead and make status writable

* Changeset

* Cleanup

* Add highWaterMark default to React Flight readable (#1451)

* Improve CPU performance in RSC (#1452)

* Improve CPU performance in RSC check

* Changeset

* Generate a default srcset for an image returned by the Shopify CDN (#1330)

* feat: add default img srcset to Shopify images

* feat: add custom widths to Image srcset

* doc: add srcset documentation

* doc: add change set

* feat: lift widths prop to Image level

* feat: use the available loader to generate srcset

* feat:reduce srcset to max-width without distortion

* test: add default img srcset test

* Update packages/hydrogen/src/components/Image/Image.tsx

Co-authored-by: Michelle Vinci <[email protected]>

* doc: update Image docs with widths prop changes

* feat: generate srcset for extarnal images

* Update docs/components/primitive/image.md

Co-authored-by: Michelle Vinci <[email protected]>

* test: add test for images using src

Co-authored-by: Michelle Vinci <[email protected]>
Co-authored-by: Anthony Frehner <[email protected]>

* Improve error message when storefront API is not JSON (#1444)

* Propagate a better error message when the response from the storefront API is not JSON parseable

* Shopify analytics 2 (#1325)

* Instrumented page view and make sure Shopfiy live view works

Co-authored-by: Michelle Vinci <[email protected]>

* [ci] release v1.x-2022-07 (#1404)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Get changelogs to see the new name

* Try to retrigger changeset (#1459)

* Product provider work (#1397)

* saving progress

* Saving progress

I think I have the code all working, it's now just updating tests and stuff. I updated the docs but they probably need to be cleaned up more.

* Working on tests

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productprice.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/hooks/product-variant/useproductoptions.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/hooks/product-variant/useproductoptions.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Update docs/components/product-variant/productoptionsprovider.md

Co-authored-by: Michelle Vinci <[email protected]>

* Get tests passing and fix a lot of issues in the meantime

* Update docs to show nodes instead of edges->node

* Replace ProductProvider with ProductOptionsProvider

* Fix issue with useEffect

* update selectedoptions on initialVariantId change

Co-authored-by: Michelle Vinci <[email protected]>

* Fix doc links (#1460)

* fix doc links

* add changeset

* Remove demo-store frontmatter

* Revert "[ci] release v1.x-2022-07 (#1404)" (#1462)

This reverts commit c05c999.

* [ci] release v1.x-2022-07 (#1461)

* [ci] release v1.x-2022-07

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anthony Frehner <[email protected]>

* fix link (#1463)

* Lint changesets (#1464)

* Add script to lint changesets

* Add note about avoiding headings as first line of changesets, and a linter for that

* Add more specific actionable stuff

* Try removing emoji

* Revert "Try removing emoji"

This reverts commit 2ce6301.

* Add final success message

* Remove unused dependencies (#1457)

Co-authored-by: Anthony Frehner <[email protected]>

* Cart types update (#1237)

* saving progress

* update queries, types, and add documentation

* Saving progress; I think I'm done but the SFAPI may be down?

* Update docs

* Update .changeset/wet-dingos-kick.md

Co-authored-by: Josh Larson <[email protected]>

* Update types and make a small update to CartLinePrice

Co-authored-by: Josh Larson <[email protected]>

* Updates yarn lock

* Remove unconfig vite files

* Moves demo-store to demo-store-neue folder

* Moves demo-store-archive to demo-store

* Replaces dynamic import with CSS classes

* Temp switch to non-aliased Header/Footer imports to fix dev

* Removes unconfig vite file

* Updates Favicon design

* Hides cart badge when 0

* Fixes Product Page with updated ProductOptionsProvider

* Updates Cart page for dark mode and Icon colors

* Fixes broken query on Collection page

* Fixes imports and other linting errors across several files

* Fix `ProductGrid`

* Fix locations index route

Co-authored-by: Matt Seccafien <[email protected]>
Co-authored-by: Michelle Vinci <[email protected]>
Co-authored-by: Fran Dios <[email protected]>
Co-authored-by: Josh Larson <[email protected]>
Co-authored-by: Bret Little <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Scott Dixon <[email protected]>
Co-authored-by: BradMurchison <[email protected]>
Co-authored-by: Josh Larson <[email protected]>
Co-authored-by: Michelle Chen <[email protected]>
Co-authored-by: Emilio Franco <[email protected]>
Co-authored-by: Anthony Frehner <[email protected]>
Co-authored-by: Helen Lin <[email protected]>
Co-authored-by: Daniel Rios Pavia <[email protected]>

* Remove package lock file

* Temporarily comment out missing account components and fixes small issues

* Update to `[email protected]`

* Fix graphql schema

Co-authored-by: Benjamin Sehl <[email protected]>
Co-authored-by: Matt Seccafien <[email protected]>
Co-authored-by: Fran Dios <[email protected]>
Co-authored-by: Josh Larson <[email protected]>
Co-authored-by: Bret Little <[email protected]>
Co-authored-by: JrFelix540 <[email protected]>
Co-authored-by: Anthony Frehner <[email protected]>
Co-authored-by: Scott Dixon <[email protected]>
Co-authored-by: Dave Yen <[email protected]>
Co-authored-by: Michelle Vinci <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: BradMurchison <[email protected]>
Co-authored-by: Josh Larson <[email protected]>
Co-authored-by: Michelle Chen <[email protected]>
Co-authored-by: Emilio Franco <[email protected]>
Co-authored-by: Helen Lin <[email protected]>
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.

1 participant