Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/canary' into fix-nossr-rerender
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni-Schroevers committed Dec 3, 2024
2 parents 26dd829 + e528743 commit 561f734
Show file tree
Hide file tree
Showing 1,432 changed files with 27,137 additions and 104,391 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-ants-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-product': patch
---

Hide ProductScroller components when no items are available
5 changes: 5 additions & 0 deletions .changeset/calm-sheep-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/ecommerce-ui': patch
---

Added ref forwarding for the inputRef
5 changes: 5 additions & 0 deletions .changeset/chatty-adults-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-graphql': minor
---

Created a new field for products: `custom_attribute(attribute_code: "attribute_code")` to retrieve attribute option value labels. This field is only available in Magento 2.4.7 and up.
6 changes: 6 additions & 0 deletions .changeset/clever-fireants-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphcommerce/algolia-recommend': patch
'@graphcommerce/algolia-products': patch
---

Added support for Adobe Commerce for Algolia.
5 changes: 5 additions & 0 deletions .changeset/cool-moose-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-customer': patch
---

Solve issue where persisted Form-data would remain in the sessionStorage after logging out.
12 changes: 12 additions & 0 deletions .changeset/cuddly-tips-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@graphcommerce/next-config': minor
'@graphcommerce/graphql-mesh': minor
---

Solves the issue `TypeError: url?.startsWith is not a function`. The generated `.mesh/index.ts` would be generated as a requirejs module while next.js expects an esm module. In the end we properly generated the mesh correctly and now there is an `import.meta.url` instead of using `require('node:url')`. To solve this we needed to solve a chain of issues:

1. The generation of the mesh is based on the version of the mesh that is imported (esm or commonjs). See [source](https://github.com/ardatan/graphql-mesh/blob/bf588d372c0078378aaa24beea2da794af7949e6/scripts/replace-import-meta-url-in-cjs.ts#L9-L10) for the lines that need to be different. This meant that we needed to change the @graphcommerce/cli package to be of type:module instead of a commonjs module.

2) To properly convert the module to an esm module we've migrated the build of the cli package to use 'pkgroll' instead of tsc, because tsc is limited in what it outputs and can't really convert classic imports to esm.

3) To load possible mesh plugins we require additional .ts files to be loaded with [tsx](https://tsx.is/). To get the tsx loader to work properly in combination with esm modules, we need at least [node 18.19.0](https://nodejs.org/en/blog/release/v18.19.0#new-nodemodule-api-register-for-module-customization-hooks-new-initialize-hook). Minimal Node version upped to 18.19.0 and add support for node 22.
5 changes: 5 additions & 0 deletions .changeset/dull-pots-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/next-ui': patch
---

Mark the menu item as active if router.asPath matches the href, or if the first URL segment matches, indicating it's the parent item.
5 changes: 5 additions & 0 deletions .changeset/eight-ears-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-customer': patch
---

Prevent overlap between autofilled data and input label for all TextFieldElements and its derivatives.
25 changes: 25 additions & 0 deletions .changeset/empty-grapes-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'@graphcommerce/next-ui': patch
---

Added MediaQuery Component: Render (and hydrate) a Component based on a media query given.

```tsx
<MediaQuery query={(theme) => theme.breakpoints.up('md')}>
<MyExpensiveDesktopComponent>Only visisble on desktop</MyExpensiveDesktopComponent>
</MediaQuery>
```

When to use, replacement for:
1. useMediaQuery: When you are now using useMediaQuery to conditionally render content for mobile or desktop.
a. Is very slow as it has to wait for the JS to initialize on pageload.
b. Can cause CLS problems if the useMediaQuery is used to render elements in the viewport.
c. Can cause LCP issues if useMediaQuery is used to render the LCP element.
d. Causes TBT problems as a component always needs to be rerendered. (And bad TBT can cause INP problems)
e. HTML isn't present in the DOM, which can cause SEO issues.

2. CSS Media query: When you are using CSS to show or hide content based on media queries.
a. Causes TBT problems as both code paths need to be rendered. (And bad TBT can cause INP problems)

It wraps the component in a div that has 'display: contents;' when shown and 'display: none;' when hidden so it should not interfere with other styling.
It conditionally hydrates the component if the query matches. If it doesn't match, it will NOT hydrate the component (and thus not execute the JS).
5 changes: 5 additions & 0 deletions .changeset/four-ladybugs-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/next-config': patch
---

Added graphql.config.ts to projects
5 changes: 5 additions & 0 deletions .changeset/gorgeous-ears-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/image": patch
---

Solve an issue where image sizes are served in higher resolution than expected.
5 changes: 5 additions & 0 deletions .changeset/healthy-plums-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/graphql': patch
---

Added back ApolloClient caching for SSR requests to projects
5 changes: 5 additions & 0 deletions .changeset/hungry-walls-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/next-config': minor
---

To have additional namespaces be considered as a graphcommerce package, set PRIVATE_PACKAGE_NAMESPACES
5 changes: 5 additions & 0 deletions .changeset/khaki-pens-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/eslint-config-pwa': patch
---

Let eslint also work for js/mjs files
5 changes: 5 additions & 0 deletions .changeset/little-pets-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/next-ui': patch
---

Added locale prop support for all Intl components and exposed all functionality as hooks.
6 changes: 6 additions & 0 deletions .changeset/nasty-coins-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphcommerce/magento-search': patch
'@graphcommerce/ecommerce-ui': patch
---

Solve issue: Warning: Cannot update a component (`FormAutoSubmitBase`) while rendering a different component (`ActionCardListForm`).
19 changes: 19 additions & 0 deletions .changeset/neat-frogs-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'@graphcommerce/graphql-codegen-relay-optimizer-plugin': patch
'@graphcommerce/graphql-codegen-near-operation-file': patch
'@graphcommerce/graphql-codegen-markdown-docs': patch
'@graphcommerce/prettier-config-pwa': patch
'@graphcommerce/google-datalayer': patch
'@graphcommerce/googletagmanager': patch
'@graphcommerce/eslint-config-pwa': patch
'@graphcommerce/googleanalytics': patch
'@graphcommerce/react-hook-form': patch
'@graphcommerce/next-config': patch
'@graphcommerce/graphql-mesh': patch
'@graphcommerce/hygraph-cli': patch
'@graphcommerce/graphql': patch
'@graphcommerce/next-ui': patch
'@graphcommerce/cli': patch
---

Resolve peer dependency issues so we get a clean install
6 changes: 6 additions & 0 deletions .changeset/neat-timers-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphcommerce/docs': patch
'@graphcommerce/service-worker': patch
---

Moved to serwist for service workers
6 changes: 6 additions & 0 deletions .changeset/nice-socks-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphcommerce/graphcms-ui': patch
'@graphcommerce/hygraph-ui': patch
---

Renamed from `@graphcommerce/graphcms-ui` to `@graphcommerce/hygraph-ui`. See [CHANGELOG.md](../graphcms-ui/CHANGELOG.md) for details.
5 changes: 5 additions & 0 deletions .changeset/odd-mails-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-customer': patch
---

Remove the inContext directive from the query before sending to the server
5 changes: 5 additions & 0 deletions .changeset/old-dodos-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/next-config': minor
---

Added a functionality to copy directories from packages to the project and keep them managed with GraphCommerce
5 changes: 5 additions & 0 deletions .changeset/olive-windows-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-customer': patch
---

fix session expired email not always available in cache
5 changes: 5 additions & 0 deletions .changeset/pink-goats-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/ecommerce-ui': patch
---

Omit disableUnderline prop for ‘outlined’ variant, because its not supported.
5 changes: 5 additions & 0 deletions .changeset/pink-students-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/next-ui': patch
---

Solve an issue where internal full URL's would cause prefetching errors and would use a hard navigation.
45 changes: 44 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@
"@graphcommerce/algolia-categories": "9.0.0-canary.76",
"@graphcommerce/algolia-insights": "9.0.0-canary.83",
"@graphcommerce/algolia-products": "9.0.0-canary.83",
"@graphcommerce/algolia-recommend": "9.0.0-canary.76"
"@graphcommerce/algolia-recommend": "9.0.0-canary.76",
"@graphcommerce/hygraph-ui": "9.0.0-canary.102",
"@graphcommerce/magento-open-source": "9.0.0-canary.103",
"@graphcommerce/google-playstore": "9.0.0-canary.106",
"@graphcommerce/service-worker": "9.0.0-canary.107"
},
"changesets": [
"afraid-ants-shout",
"afraid-islands-remain",
"afraid-rockets-rule",
"angry-badgers-carry",
Expand All @@ -96,7 +101,9 @@
"breezy-badgers-divide",
"brown-tools-design",
"calm-humans-tickle",
"calm-sheep-relate",
"calm-yaks-shave",
"chatty-adults-run",
"chatty-goats-deliver",
"chatty-melons-heal",
"chilly-nails-enjoy",
Expand All @@ -106,11 +113,14 @@
"clever-cups-sort",
"clever-eagles-lie",
"clever-ears-change",
"clever-fireants-reply",
"clever-hats-sort",
"clever-shirts-invite",
"cold-eels-end",
"cool-moose-kick",
"cuddly-ducks-draw",
"cuddly-forks-relate",
"cuddly-tips-argue",
"curly-ladybugs-cross",
"curly-mugs-rule",
"curly-yaks-boil",
Expand All @@ -119,11 +129,14 @@
"dull-badgers-prove",
"dull-colts-greet",
"dull-olives-tap",
"dull-pots-draw",
"dull-trains-poke",
"eight-ears-leave",
"eight-hounds-sit",
"eight-keys-allow",
"eight-pigs-wink",
"empty-glasses-rescue",
"empty-grapes-decide",
"empty-nails-battle",
"empty-windows-behave",
"fast-cows-rush",
Expand All @@ -138,6 +151,7 @@
"fluffy-rockets-collect",
"forty-parrots-sparkle",
"four-drinks-decide",
"four-ladybugs-nail",
"friendly-cheetahs-cry",
"fuzzy-cycles-impress",
"fuzzy-hornets-remain",
Expand All @@ -146,13 +160,15 @@
"giant-ladybugs-kiss",
"gorgeous-bobcats-think",
"gorgeous-coins-poke",
"gorgeous-ears-walk",
"great-apples-drive",
"great-rules-pump",
"green-flowers-double",
"grumpy-cheetahs-greet",
"grumpy-spies-sniff",
"happy-hats-train",
"healthy-lies-act",
"healthy-plums-rescue",
"heavy-houses-attack",
"heavy-spiders-grow",
"hip-pianos-sip",
Expand All @@ -163,8 +179,10 @@
"hot-forks-lick",
"hungry-apricots-applaud",
"hungry-balloons-divide",
"hungry-walls-carry",
"itchy-pens-travel",
"itchy-waves-brush",
"khaki-pens-agree",
"khaki-pianos-cry",
"kind-cobras-judge",
"large-coins-shave",
Expand All @@ -175,6 +193,7 @@
"light-dolls-clean",
"light-kings-eat",
"light-lies-decide",
"little-pets-shave",
"little-shirts-rescue",
"lucky-bananas-carry",
"lucky-lizards-taste",
Expand All @@ -186,18 +205,27 @@
"modern-toes-boil",
"moody-eggs-vanish",
"moody-vans-juggle",
"nasty-coins-dream",
"neat-frogs-hide",
"neat-timers-unite",
"nervous-bulldogs-relax",
"new-squids-clean",
"nice-socks-occur",
"nice-trainers-judge",
"nine-poets-appear",
"ninety-countries-perform",
"ninety-elephants-speak",
"ninety-impalas-grab",
"ninety-pillows-deny",
"odd-mails-yell",
"old-chefs-deny",
"old-dodos-listen",
"olive-days-brush",
"olive-pumas-perform",
"olive-windows-tickle",
"perfect-wombats-raise",
"pink-goats-shop",
"pink-students-greet",
"polite-crabs-cry",
"polite-kiwis-wash",
"poor-masks-learn",
Expand All @@ -214,6 +242,7 @@
"red-zoos-unite",
"rotten-experts-occur",
"rotten-foxes-repeat",
"rotten-pots-cheat",
"rotten-steaks-yawn",
"serious-cycles-punch",
"seven-humans-hide",
Expand All @@ -236,39 +265,53 @@
"sixty-rockets-fix",
"slimy-swans-repair",
"slow-kiwis-exercise",
"small-onions-marry",
"small-pans-cry",
"smooth-jars-walk",
"soft-cycles-drop",
"soft-dogs-hide",
"soft-turtles-float",
"sour-falcons-yawn",
"sour-weeks-beam",
"spotty-ads-live",
"spotty-moons-jog",
"stale-coins-explode",
"stale-dogs-prove",
"strange-tools-kiss",
"strong-pumpkins-attack",
"sweet-insects-joke",
"sweet-shoes-happen",
"sweet-tips-listen",
"swift-fireants-hear",
"tall-insects-exist",
"tall-moles-rush",
"tall-stingrays-serve",
"tasty-days-give",
"tasty-glasses-tan",
"tasty-phones-begin",
"tasty-queens-hunt",
"ten-camels-repeat",
"tender-ads-rest",
"tender-mangos-flow",
"thick-snakes-explode",
"thin-teachers-try",
"three-eels-kiss",
"three-mails-rescue",
"tidy-timers-live",
"tiny-ghosts-sit",
"tiny-plums-pay",
"tricky-spies-itch",
"twenty-actors-decide",
"two-donuts-joke",
"unlucky-crabs-notice",
"unlucky-items-clap",
"violet-cherries-jog",
"violet-radios-report",
"warm-tomatoes-try",
"weak-falcons-repair",
"wild-news-notice",
"witty-apes-rescue",
"witty-beers-fail",
"witty-carpets-flow",
"witty-geckos-flash",
"yellow-ladybugs-exist",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/rotten-pots-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/graphql': patch
---

measurePerformanceLink now reports queries made in the subgraph and is only included during development and not in production.
Loading

0 comments on commit 561f734

Please sign in to comment.