Skip to content

Commit aff6bb3

Browse files
committed
Merge branch 'canary' into icatalina/merge-jun-2025
2 parents 0d11b87 + f74d714 commit aff6bb3

47 files changed

Lines changed: 963 additions & 277 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/busy-snakes-agree.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@bigcommerce/catalyst-core": patch
3+
---
4+
5+
Fix possibility of duplicate `key` error in Breadcrumbs component for truncated breadcrumbs.
6+
7+
## Migration
8+
Update `core/vibes/soul/sections/breadcrumbs/index.tsx` to use `index` as the `key` property instead of `href`
9+

.changeset/giant-teams-film.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bigcommerce/catalyst-core": patch
3+
---
4+
5+
Fix the faceted search pages to account for facets with spaces or other special characters in the name.

.changeset/happy-bats-happen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bigcommerce/catalyst-core": minor
3+
---
4+
5+
Drops CSS support for Safari < 15 due to those versions only having 0.09% global usage.

.changeset/icy-cars-camp.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/rare-news-jump.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@bigcommerce/catalyst-core": patch
3+
---
4+
5+
Fix blog post card date formatting on alternate locales
6+
7+
## Migration
8+
9+
### `core/vibes/soul/primitives/blog-post-card/index.tsx`
10+
11+
Update the component to use `<time dateTime={date}>{date}</time>` for the date, instead of calling `new Date(date).toLocaleDateString(...)`.

.changeset/sour-jeans-show.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@bigcommerce/catalyst-core": minor
3+
---
4+
5+
Reorganize and cleanup files:
6+
- Moved `core/context/search-context` to `core/lib/search`.
7+
- Moved `core/client/mutations/add-cart-line-item.ts` and `core/client/mutations/create-cart.ts` into `core/lib/cart/*`.
8+
- Removed `core/client/queries/get-cart.ts` in favor of a smaller, more focused query within `core/lib/cart/validate-cart.ts`.
9+
10+
### Migration
11+
- Replace imports from `~/context/search-context` to `~/lib/search`.
12+
- Replace imports from `~/client/mutations/` to `~/lib/cart/`.
13+
- Remove any direct imports from `~/client/queries/get-cart.ts` and use the new `validate-cart.ts` query instead. If you need the previous `getCart` function, you can copy it from the old file and adapt it to your needs.

core/app/[locale]/(default)/(faceted)/fetch-faceted-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export const PublicSearchParamsSchema = z.object({
330330
});
331331

332332
const AttributeKey = z.custom<`attr_${string}`>((val) => {
333-
return typeof val === 'string' ? /^attr_\w+$/.test(val) : false;
333+
return typeof val === 'string' ? /^attr_.+$/.test(val) : false;
334334
});
335335

336336
export const PublicToPrivateParams = PublicSearchParamsSchema.catchall(SearchParamToArray.nullish())

core/app/providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { PropsWithChildren } from 'react';
44

55
import { Toaster } from '@/vibes/soul/primitives/toaster';
6-
import { SearchProvider } from '~/context/search-context';
6+
import { SearchProvider } from '~/lib/search';
77

88
export function Providers({ children }: PropsWithChildren) {
99
return (

core/client/queries/get-cart.ts

Lines changed: 0 additions & 157 deletions
This file was deleted.

core/client/mutations/add-cart-line-item.ts renamed to core/lib/cart/add-cart-line-item.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getSessionCustomerAccessToken } from '~/auth';
2-
3-
import { client } from '..';
4-
import { graphql, VariablesOf } from '../graphql';
2+
import { client } from '~/client';
3+
import { graphql, VariablesOf } from '~/client/graphql';
54

65
const AddCartLineItemMutation = graphql(`
76
mutation AddCartLineItemMutation($input: AddCartLineItemsInput!) {

0 commit comments

Comments
 (0)