From 27c54fef601ae0f5e5b6eb0d9554aa3a00d6be5b Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Wed, 28 Oct 2026 15:05:11 +0000 Subject: [PATCH 01/19] LTRAC-2695: docs(core) - Add #3302 to the 1.13.1 changelog (#3312) #3302 shipped in catalyst-core 1.13.1 without a changeset, so the generated changelog left it out. Refs LTRAC-2695 --- core/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 9b12f9b22d..b612885c4b 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -18,6 +18,8 @@ - [#3303](https://github.com/bigcommerce/catalyst/pull/3303) [`4a8752f`](https://github.com/bigcommerce/catalyst/commit/4a8752fe4ecf5cec8f9d8709658aab272ba6775a) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Log a warning in production when the proxy's route cache falls back to per-instance memory because no shared KV store is configured, and document which hosts need one. +- [#3302](https://github.com/bigcommerce/catalyst/pull/3302) [`8e4a393`](https://github.com/bigcommerce/catalyst/commit/8e4a3939af7981043c84d0b89abcf337f88032ff) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Run the E2E `tests-chromium` Playwright project in full Chromium headless mode (`channel: 'chromium'`). The headless shell sends `HeadlessChrome` in `sec-ch-ua`, which BigCommerce treats as a crawler and rejects on checkout session sync, so the checkout E2E tests failed. + ## 1.13.0 ### Minor Changes From e969404e85034e32618a4c7fd242b4b4197352e7 Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Wed, 28 Oct 2026 10:48:37 -0500 Subject: [PATCH 02/19] LTRAC-2729: fix(makeswift) - Sort carousel product IDs for a stable cache key (#3313) The additional products request URL used the editor's order, so the same products in a different order missed the cache. Sort a copy of the IDs for the URL; display order still comes from the original list. Refs LTRAC-2729 --- .changeset/stable-carousel-product-ids.md | 5 +++++ core/lib/makeswift/utils/use-products.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/stable-carousel-product-ids.md diff --git a/.changeset/stable-carousel-product-ids.md b/.changeset/stable-carousel-product-ids.md new file mode 100644 index 0000000000..3d20f77856 --- /dev/null +++ b/.changeset/stable-carousel-product-ids.md @@ -0,0 +1,5 @@ +--- +'@bigcommerce/catalyst-makeswift': patch +--- + +Sort the `ProductsCarousel` additional product IDs in the request URL so the same products always hit the same cache entry, regardless of their order in the editor. diff --git a/core/lib/makeswift/utils/use-products.ts b/core/lib/makeswift/utils/use-products.ts index 7b16bc24bb..4b4ee73be1 100644 --- a/core/lib/makeswift/utils/use-products.ts +++ b/core/lib/makeswift/utils/use-products.ts @@ -38,7 +38,7 @@ export function useProducts({ collection, collectionLimit = 20, additionalProduc const searchParams = new URLSearchParams(); - searchParams.append('ids', additionalProductIds.join(',')); + searchParams.append('ids', [...additionalProductIds].sort().join(',')); searchParams.append('locale', locale); const additionalProductsUrl = `/api/products/ids?${searchParams.toString()}`; From 4793d5136218b4ac37fed16ef37003c7469c3357 Mon Sep 17 00:00:00 2001 From: Andrii Postoliuk <84462142+apostoliukG@users.noreply.github.com> Date: Wed, 28 Oct 2026 15:53:54 +0000 Subject: [PATCH 03/19] fix(core): keep cart quantity column fixed-width so backorder message wraps (#3060) * fix(core): keep cart quantity column fixed-width so backorder message wraps The cart line-item quantity column used `size-min` (min-content), so a long unbreakable inventory message token expanded the column, shifting the counter out of its fixed position and stretching the message across the row. Apply `overflow-wrap: anywhere` to the inventory-message spans so they no longer contribute to the column's min-content width. The column width is now driven solely by the constant-width counter, keeping it fixed in place while long messages wrap onto the next line. Co-Authored-By: Claude Opus 4.8 (1M context) * chore(core): add changeset for cart backorder column-width fix Co-Authored-By: Claude Opus 4.8 (1M context) --------- Co-authored-by: Claude Opus 4.8 (1M context) --- .changeset/back-684-cart-backorder-column-width.md | 5 +++++ core/vibes/soul/sections/cart/client.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/back-684-cart-backorder-column-width.md diff --git a/.changeset/back-684-cart-backorder-column-width.md b/.changeset/back-684-cart-backorder-column-width.md new file mode 100644 index 0000000000..11ae2ec06f --- /dev/null +++ b/.changeset/back-684-cart-backorder-column-width.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Keep the cart quantity column at a fixed width so long backorder/inventory messages wrap to the next line instead of stretching the column. diff --git a/core/vibes/soul/sections/cart/client.tsx b/core/vibes/soul/sections/cart/client.tsx index 5a658c0011..808ead68e4 100644 --- a/core/vibes/soul/sections/cart/client.tsx +++ b/core/vibes/soul/sections/cart/client.tsx @@ -698,7 +698,7 @@ function CounterForm({ return (
-
+
{/* Counter */}
Date: Wed, 28 Oct 2026 16:39:29 +0000 Subject: [PATCH 04/19] LTRAC-2743: fix(core) - Include sub-categories when filtering by the Category facet (#3317) * fix(core): include sub-categories when filtering by the Category facet categoryEntityIds only matches products assigned directly to the selected categories, but the Category facet's options and counts include their sub-categories. Selecting a parent category on a brand or search page returned no products when they were assigned only to its children. * LTRAC-2743: fix(core) - Only search sub-categories for the Category facet Category pages share this filter mapping, so setting searchSubCategories unconditionally would start listing sub-category products there too. Refs LTRAC-2743 --------- Co-authored-by: corbinkol --- .changeset/category-facet-subcategories.md | 5 +++++ .../app/[locale]/(default)/(faceted)/fetch-faceted-search.ts | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/category-facet-subcategories.md diff --git a/.changeset/category-facet-subcategories.md b/.changeset/category-facet-subcategories.md new file mode 100644 index 0000000000..6b45d63d2e --- /dev/null +++ b/.changeset/category-facet-subcategories.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Include sub-categories when filtering by the Category facet on brand and search pages. Selecting a parent category previously returned no products when they were assigned only to its sub-categories, even though the facet's counts included them. diff --git a/core/app/[locale]/(default)/(faceted)/fetch-faceted-search.ts b/core/app/[locale]/(default)/(faceted)/fetch-faceted-search.ts index 49de0bc818..310a4a311f 100644 --- a/core/app/[locale]/(default)/(faceted)/fetch-faceted-search.ts +++ b/core/app/[locale]/(default)/(faceted)/fetch-faceted-search.ts @@ -383,6 +383,10 @@ export const PublicToPrivateParams = PublicSearchParamsSchema.catchall(SearchPar brandEntityIds: brand, categoryEntityId: category, categoryEntityIds: categoryIn, + // Without this, `categoryEntityIds` only matches products assigned directly to the selected + // categories, while the Category facet's options and counts include their sub-categories. + // Only set for the facet filter so category pages keep listing their own products. + searchSubCategories: categoryIn?.length ? true : undefined, hideOutOfStock: stock?.includes('in_stock'), isFreeShipping: shipping?.includes('free_shipping'), isFeatured, From e8a92cf954609aa0c919edeeef375ad00a107fb2 Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Wed, 28 Oct 2026 17:14:55 +0000 Subject: [PATCH 05/19] LTRAC-2733: docs - Fix rel="noreferrer" typo in README (#3315) Fixes #3032's typo from an upstream branch so required CI can run. Refs LTRAC-2733 Co-authored-by: Viktor Kaninets --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3a4ef88d6..6675f23323 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - + Catalyst for Composable Commerce Image Banner From b1a6cd8bdba92733cc542941c18f96f1393cb425 Mon Sep 17 00:00:00 2001 From: Nathan Booker Date: Wed, 28 Oct 2026 14:34:01 -0700 Subject: [PATCH 06/19] feat(core): add verify-catalyst agent skill for UI verification evidence (#3296) * feat(core): add verify-catalyst agent skill for UI verification evidence Adapted from pstack's create-verification-skill. Ships inside core/ so projects created with create catalyst receive it too. * fix(core): tighten verify-catalyst State/Province guidance from TRAC-291 run - SKILL.md example asserts absence by label, not textbox role (a role-based toHaveCount(0) would false-pass if the field rendered as a dropdown) - Note that publish handles one run; paste both desktop and mobile blocks - Note that git.dirty includes files next dev rewrites (AGENTS.md) - account.md: concrete getByLabel handle and wait-for-country-switch tip * fix(core): name device and uncommitted files in verify-catalyst evidence * feat(core): post verify-catalyst evidence to PRs with gh --attach (gh 2.99.0+) Uses native PR attachments when the viewer has write access; fork contributors fall back to a gist or evidence branch, with the markdown still posted to the PR by gh. Publishes several runs in one go. * feat(core): size verify-catalyst evidence by orientation Fit GIFs in 800x600, trim the blank about:blank lead-in from MP4/GIF, render portrait screenshots as a filmstrip, and lay out gh --attach uploads as sized tags in a second pass. * fix(core): list verify-catalyst dirty files without porcelain prefixes * fix(core): fail closed on unknown repo visibility and require synthetic form data in verify-catalyst - publish --to auto only picks a secret gist when GitHub confirms the repository is public; an unreadable visibility now falls back to manual upload instead of guessing - SKILL.md and features/account.md tell the agent to fill forms with synthetic values only and to review screenshots before publishing - Note that evidence only ever posts to the PR's own repository --------- Co-authored-by: mfaris9 --- .changeset/verify-catalyst-skill.md | 5 + core/.agents/skills/verify-catalyst/SKILL.md | 189 +++ .../skills/verify-catalyst/features/README.md | 36 + .../verify-catalyst/features/account.md | 39 + .../skills/verify-catalyst/features/cart.md | 39 + .../features/product-detail.md | 38 + .../skills/verify-catalyst/features/search.md | 34 + .../skills/verify-catalyst/scripts/verify.mjs | 1364 +++++++++++++++++ core/.gitignore | 3 + core/AGENTS.md | 4 + 10 files changed, 1751 insertions(+) create mode 100644 .changeset/verify-catalyst-skill.md create mode 100644 core/.agents/skills/verify-catalyst/SKILL.md create mode 100644 core/.agents/skills/verify-catalyst/features/README.md create mode 100644 core/.agents/skills/verify-catalyst/features/account.md create mode 100644 core/.agents/skills/verify-catalyst/features/cart.md create mode 100644 core/.agents/skills/verify-catalyst/features/product-detail.md create mode 100644 core/.agents/skills/verify-catalyst/features/search.md create mode 100644 core/.agents/skills/verify-catalyst/scripts/verify.mjs diff --git a/.changeset/verify-catalyst-skill.md b/.changeset/verify-catalyst-skill.md new file mode 100644 index 0000000000..6400f2b504 --- /dev/null +++ b/.changeset/verify-catalyst-skill.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Add the `verify-catalyst` agent skill (`.agents/skills/verify-catalyst`), which drives the storefront in a real browser to prove UI changes and attaches screenshot, video, and trace evidence to pull requests. It works in the monorepo and in projects created with `create catalyst`, on macOS, Linux, and Windows. diff --git a/core/.agents/skills/verify-catalyst/SKILL.md b/core/.agents/skills/verify-catalyst/SKILL.md new file mode 100644 index 0000000000..ebdbfef87c --- /dev/null +++ b/core/.agents/skills/verify-catalyst/SKILL.md @@ -0,0 +1,189 @@ +--- +name: verify-catalyst +description: Drive a Catalyst storefront in a real browser to prove a UI change works, and attach screenshot and video evidence to the pull request. Use when you change anything a shopper can see or do (pages, components, forms, cart, account, search), when asked to "verify", "show it working", "screenshot this", or "add evidence to the PR", and before marking a UI pull request ready for review. Works in the Catalyst monorepo and in any project created with `create catalyst` or forked from it. +license: MIT +compatibility: Requires Node.js 24+, the storefront's installed dependencies (including @playwright/test), and a BigCommerce store configured in .env.local. git and GitHub CLI 2.99.0+ (for `--attach`) are needed only to publish evidence; ffmpeg is optional (GIF/MP4). Runs on macOS, Linux, Windows, and WSL. +metadata: + adapted-from: https://github.com/cursor/plugins/tree/main/pstack/skills/create-verification-skill +--- + +# Verify a Catalyst storefront + +Prove a change by driving the real storefront the way a shopper would, then hand the reviewer the evidence: a recording, step screenshots, and a Playwright trace. Unit tests and type checks do not count as proof of UI behavior. + +Everything goes through one helper, run from the **storefront directory** (the folder with `next.config.ts`): + +- Catalyst monorepo: `core/` +- A project created with `create catalyst`, or a fork of one: the repository root + +```sh +node .agents/skills/verify-catalyst/scripts/verify.mjs +``` + +The helper is plain Node, so the same command works in bash, zsh, PowerShell, and cmd. Below, `verify` stands for that whole command. + +## Rules + +- **Exercise the real user path.** Click, type, and navigate as a shopper. Do not call server actions, set cookies, or hit internal routes to fake a state. +- **Capture the action and the result,** not only the final screen. A step's screenshot is taken _after_ its action, so name steps by what they prove. +- **Never hardcode store data.** Each store has its own catalog, categories, and settings. Discover product URLs, category names, and countries from the running store (`verify explore`), or read them from `.env.test.local` (`DEFAULT_PRODUCT_ID`, `TEST_CUSTOMER_EMAIL`, …). +- **Read-only by default.** The storefront talks to a live BigCommerce store. Do not submit orders, register customers, or write reviews unless the store is a sandbox and the change requires it. Stop before the final submit button when the visible result is enough. Treat `TESTS_READ_ONLY=true` in `.env.test.local` as a hard stop. +- **Never weaken a journey to make it pass.** If the store lacks a precondition (no product with variants, no country without states), report the run as blocked and name the missing data. +- **Never drive or stop a server you did not start.** Point `--url` at a developer's own server only when asked to. +- **Synthetic data only.** Everything you type into a form ends up in the recording. Use obviously fake values (`Test Shopper`, `test@example.com`, a made-up street address, `555` phone numbers) and never the developer's own name, email, address, or payment details. Credentials come only from `.env.test.local`. Look at the step screenshots before publishing; if one shows something that should not leave the machine, do not publish it. +- **Evidence is not secret-free by default.** Screenshots show the store's real catalog and prices. `publish` chooses where uploads go based on your access and the repository's visibility; see _Publish_. Evidence only ever goes to the repository that owns the PR, so a private storefront's PR never posts to a public repository. + +## 1. Doctor + +```sh +verify doctor +``` + +This read-only check covers Node, dependencies, `.env.local` keys (names only, never values), Makeswift config, Chromium, ffmpeg, the GitHub CLI, and whether the target URL serves Catalyst (``). Fix every `FAIL` before going on, and run it again whenever something looks wrong. + +Common fixes: + +| FAIL | Fix | +| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `.env.local missing` in a git worktree | Worktrees do not copy gitignored files. Copy `.env.local` (and `.env.test.local`, if present) from the main checkout path the doctor prints. | +| `.env.local missing` elsewhere | Copy `.env.example` and fill it in, or use the Catalyst CLI to link a store. | +| `chromium missing` | `npx playwright install chromium`. On a fresh Linux box or in CI, use `npx playwright install --with-deps chromium`. | +| `dependencies` | `pnpm install` (the monorepo and new projects use pnpm). | + +`WARN` lines are optional capabilities: ffmpeg gives GIF/MP4 output, `gh` 2.99.0+ posts evidence straight to the PR, and a test customer enables signed-in journeys. + +## 2. Launch + +```sh +verify launch # next dev on port 3100 +verify launch --prod # next build + next start, closer to production; slower +verify launch --port 3200 +``` + +`launch` builds `@bigcommerce/catalyst-client` when the monorepo needs it, regenerates GraphQL types, and starts Next.js detached with its log at `.verification/server.log`. It returns once the home page serves a Catalyst page; the first dev compile can take a few minutes. It refuses a busy port instead of attaching to someone else's server. + +A developer who already runs `pnpm dev` can skip `launch` and pass `--url http://localhost:3000` to the other commands. Next.js allows only one `next dev` per directory, so if `launch` reports the server exiting at startup, check for an existing dev server and use `--url` instead. + +## 3. Find stable handles + +```sh +verify explore / # whole page +verify explore /register --selector main +verify explore "/search?term=shirt" --device mobile --screenshot tmp.png +``` + +`explore` prints the page's ARIA snapshot. Build locators from roles and accessible names (`page.getByRole('button', { name: 'Add to cart' })`). Avoid CSS classes, which are Tailwind utilities and change freely, and avoid DOM position. + +Before writing a journey, read the matching feature file in [`features/`](features/README.md). It lists entry points, known handles, and gotchas for each area of the storefront. + +## 4. Write a journey + +A journey is a small ES module. Keep throwaway journeys in `.verification/journeys/`, which is gitignored: + +```js +// .verification/journeys/state-field.mjs +export const meta = { title: 'Register: State/Province follows country', feature: 'account' }; + +export default async function journey({ page, step, expect }) { + await step('Open the registration form', async () => { + await page.goto('/register'); + await expect(page.getByRole('heading', { level: 1 })).toBeVisible(); + }); + + await step('Country without states hides State/Province', async () => { + // ...interact, then assert what the shopper sees. Match by label: the field can be a + // textbox or a dropdown, and a role-based "absent" check would pass on the wrong one. + await expect(page.getByLabel('State/Province', { exact: true })).toHaveCount(0); + }); +} +``` + +The journey receives: + +- `page`, `context`: Playwright objects with `baseURL` set, so `page.goto('/cart')` works. +- `step(label, fn, { fullPage })`: runs `fn`, waits for the network to settle, then screenshots. If `fn` throws, it saves a `-FAILED` screenshot and the run fails. +- `expect`: Playwright's auto-waiting assertions. Assert inside every step; a screenshot with no assertion proves nothing. +- `env`: values from `.env.test.local`, such as test customer credentials. + +## 5. Capture + +```sh +verify capture .verification/journeys/state-field.mjs +verify capture .verification/journeys/state-field.mjs --device mobile +``` + +Each run writes `.verification/runs/--/` containing: + +- `video.webm`, plus `video.mp4` and `video.gif` when ffmpeg is installed +- `NN-.png` for every step +- `trace.zip` (open it with `npx playwright show-trace trace.zip`) +- `manifest.json` (git SHA, dirty flag, OS, viewport, step results, console errors, same-origin 4xx/5xx responses) +- `summary.md` + +`git.dirtyFiles` lists uncommitted tracked files, and the evidence names them. `next dev` rewrites `AGENTS.md` on start, so that entry alone does not mean untested code. + +Exit code 0 means every step passed. Read `manifest.json` → `consoleErrors` even when the run passes; a new hydration error is a finding. + +**Responsive changes:** capture both `--device desktop` and `--device mobile`. +**Before/after:** for a visual change, capture the base branch too. Run `git worktree add ../catalyst-base origin/`, install dependencies, copy `.env.local`, then `verify launch --port 3101`. Capture with `--label before --url http://localhost:3101` there, and with `--label after` on your branch. Stop the base server from the base worktree. + +## 6. Publish to the pull request + +Evidence belongs on the PR, posted from the CLI. Use **GitHub CLI 2.99.0 or newer**. That release added `--attach` to `gh pr create`, `gh pr edit`, and `gh pr comment`, which upload images and videos as native GitHub attachments: MP4s play inline and access follows the repository. Check with `gh --version`. Upgrade with `brew upgrade gh` (macOS), `winget upgrade --id GitHub.cli` (Windows), or your Linux package manager / [the releases page](https://github.com/cli/cli/releases), then run `gh auth login`. `verify doctor` warns when `gh` is missing, too old, or signed out. + +```sh +verify publish # latest run → new comment on this branch's PR +verify publish # several runs in one comment +verify publish --pr 123 --into body # into the PR body instead of a comment +verify publish --dry-run # write the markdown and print the gh command only +``` + +`publish` writes the evidence markdown (recording, step table, screenshots, console errors), then posts it with `gh`. Images are sized by orientation: landscape captures stack at 720px, portrait (mobile) captures sit side by side as a filmstrip, and GIFs are rendered to fit within 800×600 and start at the first page load rather than on a blank frame. The PR defaults to the current branch's (`gh pr view`); pass `--pr ` otherwise. With `--into body`, it replaces a `` marker if the body has one (put it under **Testing**), or else appends a section. + +GitHub only accepts `--attach` uploads from accounts with **write access** to the PR's repository. `--to auto` (the default) checks that and picks the route: + +| Situation | Route | Result | +| ------------------------------------------------------------------------------------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Write access, `gh` ≥ 2.99.0 | `attach` | Native attachments on the PR; video plays inline. Traces stay local (not a media type). | +| No write access (fork contribution to a **confirmed public** repo), or `gh` < 2.99.0 | `gist` | Files go to a secret gist you own; the markdown, posted by `gh`, embeds the GIF and links the MP4 and trace. | +| Same, but the repository is private | `branch` | Files go to an orphan `verification-evidence/` on `--remote` (default `origin`; use your fork) so GitHub's access control applies. The PR diff is untouched. | +| `gh` missing or signed out, or the repository's visibility is unknown | `manual` | Prints the files to drag into a PR comment on github.com, which hosts them and plays MP4 inline. | + +Force a route with `--to attach|gist|branch|manual`. Secret gists are unlisted but readable by anyone with the link, so `auto` picks `gist` only when GitHub confirms the repository is public. If it cannot read the visibility, it falls back to `manual` rather than guess; pass `--to gist` yourself if you know the repository is public. Never use `gist` for a private storefront's evidence. + +**By hand.** The `attach` route is plain `gh`, so a person can do the same thing without the helper. Run it from the directory that holds the files. `gh` rewrites any `![alt](./path)` reference in the body that matches an `--attach` path to the uploaded URL, and appends files the body does not reference: + +```sh +gh pr comment 123 --body-file evidence.md --attach ./video.mp4 --attach './03-result.png#State/Province hidden' +``` + +The limit is 50 files per command. If some uploads fail, `gh` still posts the rest and exits non-zero. + +## 7. Clean up + +```sh +verify stop +``` + +This stops only the server that `launch` started, using its recorded PID: process group on macOS and Linux, `taskkill /T` on Windows. It never removes `.verification/runs/`; evidence must outlive the server. Delete old runs by hand when you no longer need them. Run `stop` after failed attempts too, so you do not strand ports. + +## Reporting + +End with a short report containing: + +- Which feature and entry points were driven, and on which devices. +- Pass or fail per step, linked to the evidence (`pr-evidence.md` or the run directory). +- Anything skipped or blocked, with the missing precondition. Never report a skipped entry point as verified through a different path. +- Any console errors or failed requests recorded during the run. + +## Platform notes + +- **Windows:** use the same commands in PowerShell or cmd, with forward slashes in paths. The helper spawns Node directly, so it needs no bash and no `.cmd` shims. Install ffmpeg with `winget install Gyan.FFmpeg`. +- **WSL:** run everything inside WSL, including Node, the browser, and the git checkout. Do not mix a Windows Node with a WSL checkout. +- **Linux/CI (headless):** run `npx playwright install --with-deps chromium` once. No display is needed. +- **macOS:** install ffmpeg with `brew install ffmpeg`. +- **Watching the browser:** set `VERIFY_HEADED=1` (`$env:VERIFY_HEADED=1` in PowerShell). + +## Keep the feature map honest + +[`features/`](features/README.md) is the maintained recipe book. When a verification run teaches you something, update the matching file in the same PR: a new entry point, a handle that changed, or a gotcha that cost time. Add a new file when you verify an area that has none. diff --git a/core/.agents/skills/verify-catalyst/features/README.md b/core/.agents/skills/verify-catalyst/features/README.md new file mode 100644 index 0000000000..fb4a3c6ba0 --- /dev/null +++ b/core/.agents/skills/verify-catalyst/features/README.md @@ -0,0 +1,36 @@ +# Catalyst verification map + +This directory is the maintained source for verifying shopper-facing behavior. Read this index before driving the storefront, then use the matching feature file as the recipe. Handles below come from the stock Catalyst UI (`vibes/soul`) with English messages. If your storefront has a customized UI or another default locale, run `verify explore` and update the files. + +## Baseline preconditions + +- Run `verify doctor` with no `FAIL`, against a server you started with `verify launch` (or one you were explicitly given via `--url`). +- The store has at least one visible, purchasable product. Find one with the search popup or a category page. Do not assume a product URL, because catalogs differ per store. +- Signed-in journeys need `TEST_CUSTOMER_EMAIL` and `TEST_CUSTOMER_PASSWORD` in `.env.test.local`. Journeys receive these as `env`. +- Cookie consent: if the store enables a consent banner, it can cover the bottom of the page. Accept or dismiss it in the first step and capture that step. + +## Driving conventions + +- Navigate with `page.goto('/path')`; the base URL is set for you. With the default locale, paths have no locale prefix (`/cart`, not `/en/cart`). +- Locate by role and accessible name. Tailwind class names are not stable handles. +- Wait for UI state with `expect(...)` assertions, never fixed sleeps. Server actions and streamed (Suspense) sections finish after `load`. +- One `step` per shopper action, named by what it proves. +- Every mutation (cart, wishlist, account) touches the live store. Prefer flows that are reversible, and restore state at the end: remove the cart line you added. + +## Proof and skip reporting + +- UI proof is the step screenshot plus an `expect` on the visible result. For mutations, add a second, read-only view, such as reloading `/cart` after adding a line. +- Responsive or layout changes need captures at both `--device desktop` and `--device mobile`. +- Report an unreachable path with the attempted action and the unmet precondition (for example "store has no country without states"). +- Do not report a skipped entry point as verified through a different path. + +## Feature entry contract + +Each feature file starts with an H1 title and one paragraph describing the user-visible behavior. It then uses exactly four H2 sections, in order: `Sub-features`, `How to get to it (user POV)`, `Driving it with verify.mjs` (starting with `Preconditions:`), and `Gotchas`. Keep implementation details out; name only user paths, stable handles, required state, and observable proof. + +## Features + +- [Search](./search.md) covers the header search popup, the search results page, and empty results. +- [Product detail page](./product-detail.md) covers the gallery, quantity, add to cart, and the added-to-cart toast. +- [Cart](./cart.md) covers line items, quantity changes, removal, the summary, and the checkout handoff. +- [Account](./account.md) covers log in, registration (including State/Province rules), and the signed-in account area. diff --git a/core/.agents/skills/verify-catalyst/features/account.md b/core/.agents/skills/verify-catalyst/features/account.md new file mode 100644 index 0000000000..135943f051 --- /dev/null +++ b/core/.agents/skills/verify-catalyst/features/account.md @@ -0,0 +1,39 @@ +# Account + +Shoppers log in, register a new account through a form driven by the store's customer and address fields, and manage their orders, addresses, wishlists, and settings once signed in. + +## Sub-features + +- `account-login` logs in with email and password and lands in the account area. +- `account-register` renders the store-configured registration form and creates a customer. +- `account-register-state` shows State/Province only when the selected country has states. +- `account-forgot-password` requests a reset email. +- `account-area` covers orders, addresses, wishlists, and settings for signed-in shoppers. + +## How to get to it (user POV) + +- Choose the `Profile` link in the header. Signed-out shoppers land on `/login`. +- On `/login`, choose `Create account` to reach `/register`. +- Visit `/login`, `/register`, or `/account/orders` directly. Signed-out shoppers are redirected to log in. + +## Driving it with verify.mjs + +Preconditions: + +- Log-in and account-area journeys need `env.TEST_CUSTOMER_EMAIL` and `env.TEST_CUSTOMER_PASSWORD` from `.env.test.local`. +- Registration journeys stay read-only: fill in the form and assert the visible behavior, but do not choose `Create account` unless the store is a sandbox. +- Fill registration and address forms with synthetic values only (`Test Shopper`, `test@example.com`, a made-up address). The recording captures every keystroke, so never type the developer's own details. + +- **Log in.** `page.goto('/login')`, fill `textbox` `Email` and `textbox` `Password`, then choose `button` `Log in`. The URL moves under `/account`. +- **Registration form.** `page.goto('/register')`. The `heading` level 1 reads `New account`, followed by text fields (`First Name`, `Last Name`, `Email Address`, `Password`, `Confirm Password`, address fields) and a `combobox` `Country`. +- **Choose a country.** Choose the `combobox` `Country`, then the `option` by name, for example `page.getByRole('option', { name: 'United States' })`. The list is long; typing the first letters narrows it. +- **State/Province follows the country.** With a country that has states, the `State/Province` field is present. With a country that has none, the field is absent: assert `toHaveCount(0)` on `page.getByLabel('State/Province', { exact: true })`. Switching back brings it back. Confirm the switch landed first (`expect(country).toContainText('Algeria')`) so an absent field is not a race. The field sits beside `Country`, so the step screenshot (scrolled to the focused combobox) shows both. +- **Validation.** Choose `Create account` with empty required fields. Inline errors appear and no request leaves the form. This is safe because nothing is submitted. + +## Gotchas + +- Countries without states come from the store's own country data. Algeria (`DZ`) has none in BigCommerce defaults, but a store can add states to any country, so confirm visually before asserting. +- With no country chosen, the field shows as a text input labeled `State/Province`; for countries with states it can render as a dropdown. Match it by label, not by role. +- Registration fields are configurable per store (extra customer and address fields, required flags). Never assume the stock field list. +- reCAPTCHA, when enabled on the store, blocks automated submission. Verify up to the submit button. +- Logging in sets a session cookie for the rest of the journey's context; log-out lives at `/logout`. diff --git a/core/.agents/skills/verify-catalyst/features/cart.md b/core/.agents/skills/verify-catalyst/features/cart.md new file mode 100644 index 0000000000..4f74cd6723 --- /dev/null +++ b/core/.agents/skills/verify-catalyst/features/cart.md @@ -0,0 +1,39 @@ +# Cart + +The cart lists line items with quantity controls and removal, a summary with subtotal, tax, shipping estimate, coupon code, and total, and hands off to BigCommerce checkout. + +## Sub-features + +- `cart-empty` shows the empty state with `Continue shopping`. +- `cart-lines` lists each item with price, quantity controls, and `Remove item`. +- `cart-quantity` updates totals when quantity changes; rapid clicks coalesce. +- `cart-shipping` estimates shipping from the summary's `Shipping` → `Add` form. +- `cart-coupon` applies a coupon code. +- `cart-checkout` sends the shopper to checkout via `Proceed to checkout`. + +## How to get to it (user POV) + +- Choose the `Cart` link in the header. +- Choose `your cart` in the toast after adding a product. +- Visit `/cart`. + +## Driving it with verify.mjs + +Preconditions: + +- For anything except the empty state: add a product first, through the PDP flow in [product-detail.md](./product-detail.md). Do not seed the cart another way. + +- **Empty state.** On a fresh context, `page.goto('/cart')`. The `heading` level 1 reads `Your cart is empty.` and a `link` `Continue shopping` points to the catalog. +- **Line items.** After adding a product, `page.goto('/cart')`. The `main` region contains a `list` whose `listitem` shows the product name and price. The level 1 `heading` reads `Cart` followed by the item count. +- **Quantity.** Choose `button` `Increase quantity` inside the line. The quantity text and the `Subtotal` and `Total` definitions in the summary update. +- **Remove.** Choose `button` `Remove item`. The line disappears; with no lines left, the empty state returns. +- **Coupon.** Fill `textbox` `Coupon code` and choose `Apply`. A valid code shows a discount line; an invalid code shows a field error. +- **Checkout handoff.** Choose `button` `Proceed to checkout`. The browser leaves Catalyst for the store's checkout domain. Stop the journey once the URL changes; checkout is not Catalyst UI. + +## Gotchas + +- The decrease button's accessible name is `Decrease count`, while the PDP uses `Decrease quantity`. Increase is `Increase quantity` in both places. +- `Decrease count` is disabled at quantity 1; use `Remove item` instead. +- Each browser context has its own cart cookie. Carts are per channel, so multi-channel storefronts keep a separate cart per channel. +- Checkout runs on BigCommerce. Cross-origin preflight can fail under headless Chromium on some stores; record that as a boundary, not as a Catalyst failure. +- Restore state: remove lines you added so later runs start from an empty cart. diff --git a/core/.agents/skills/verify-catalyst/features/product-detail.md b/core/.agents/skills/verify-catalyst/features/product-detail.md new file mode 100644 index 0000000000..24f136f940 --- /dev/null +++ b/core/.agents/skills/verify-catalyst/features/product-detail.md @@ -0,0 +1,38 @@ +# Product detail page + +The product detail page (PDP) shows a product's gallery, price, options, quantity, add to cart, wishlist, description, specifications, related products, and reviews. + +## Sub-features + +- `pdp-gallery` swaps the main image from the thumbnail buttons, and follows variant images when options change. +- `pdp-options` selects variant options (swatches, radios, dropdowns, date pickers) and updates the price and stock. +- `pdp-quantity` changes quantity within stock limits. +- `pdp-add-to-cart` adds the configured item and confirms it with a toast. +- `pdp-wishlist` adds to a wish list (signed-in shoppers). +- `pdp-reviews` shows reviews and the `Write a review` form. + +## How to get to it (user POV) + +- Choose a product card on a category page, the home page, or search results. +- Visit the product's SEO URL directly (`/`). The `with-routes` proxy resolves it, so the path is not `/product/`. + +## Driving it with verify.mjs + +Preconditions: + +- A product URL discovered from the running store, for example via the search popup or a category page. For options or variant work, use a product with variants (`DEFAULT_COMPLEX_PRODUCT_ID` in `.env.test.local` names one when it is set). + +- **Land on the PDP.** `page.goto(productPath)`. The `heading` level 1 is the product name. +- **Gallery.** Choose `button` `View image number 2`. The main image changes. +- **Quantity.** Use `button` `Increase quantity` and `Decrease quantity`. The `spinbutton` `Quantity` reflects the value. +- **Add to cart.** `page.getByRole('button', { name: 'Add to cart' }).click()`. An `alert` in the `Notifications` region reads `1 item added to your cart` with a `link` `your cart`. Prove the side effect with a read-only second view: `page.goto('/cart')` lists the product. +- **Wishlist.** `button` `Add to wish list` redirects signed-out shoppers to log in. +- **Reviews.** `button` `Scroll to reviews` jumps to the `heading` `Reviews `. + +## Gotchas + +- Products with required options keep `Add to cart` disabled, or show field errors, until the options are chosen. +- Out-of-stock and backorder settings change the button label and messaging per store. Read them from the page; do not assume them. +- Adding to cart mutates the live cart. Remove the line on `/cart` at the end of the journey. +- Related products and reviews stream in after the main content. Assert them with `expect`, which waits. +- The toast disappears after a few seconds. Assert it right after the click, in the same step. diff --git a/core/.agents/skills/verify-catalyst/features/search.md b/core/.agents/skills/verify-catalyst/features/search.md new file mode 100644 index 0000000000..35a28fff85 --- /dev/null +++ b/core/.agents/skills/verify-catalyst/features/search.md @@ -0,0 +1,34 @@ +# Search + +Shoppers search the catalog from a popup in the header, which shows live category and product suggestions, or from the full search results page with sorting, filters, and pagination. + +## Sub-features + +- `search-popup` opens the header popup and shows suggestions as the shopper types. +- `search-submit` submits the query and lands on the results page. +- `search-results` lists matching products with sort and filters. +- `search-empty` shows the empty state for a query with no matches. + +## How to get to it (user POV) + +- Choose the search icon in the header (button `Open search popup`). +- Visit `/search?term=` directly, for example from a shared link. + +## Driving it with verify.mjs + +Preconditions: + +- At least one product name in the store contains your query. Pick the query by first exploring a category page. + +- **Open popup.** `page.getByRole('button', { name: 'Open search popup' }).click()`. A `dialog` appears containing a `textbox` whose placeholder reads `Search products, categories, brands...` (store settings can change it). +- **Live suggestions.** `page.getByRole('dialog').getByRole('textbox').fill(query)`. Wait for `page.getByRole('dialog').getByRole('region', { name: 'Products' })` to be visible; each suggestion is an `article` with a `link` named after the product. A `Categories` region may also appear. +- **Submit.** Press `Enter` in the textbox or choose the `Search` button in the dialog. The URL contains `/search?term=` and the `heading` level 1 reads `Search results for ""`. +- **Results page.** Products are `article` elements with a product `link`. Sorting uses `combobox` `Sort by:`; filters live in the `complementary` region headed `Filters`. +- **Empty state.** Search for a nonsense term (`zzqxv`). Assert that the result count is `0` and that no product `article` is rendered. + +## Gotchas + +- The popup's input is a `textbox`, not a `searchbox`. `getByRole('searchbox')` times out. +- Suggestions are debounced. Wait for the `Products` region, not a timeout. +- On mobile, the header collapses into a menu, but the `Open search popup` button stays visible. +- The search placeholder text comes from store settings, so locate the input by role inside the dialog, not by placeholder. diff --git a/core/.agents/skills/verify-catalyst/scripts/verify.mjs b/core/.agents/skills/verify-catalyst/scripts/verify.mjs new file mode 100644 index 0000000000..f8e6fef376 --- /dev/null +++ b/core/.agents/skills/verify-catalyst/scripts/verify.mjs @@ -0,0 +1,1364 @@ +#!/usr/bin/env node +// Verification helper for Catalyst storefronts. See ../SKILL.md for how to use it. +// +// Pure Node (no shell scripts) so the same commands work on macOS, Linux, and Windows. +// It resolves Playwright and Next.js from the storefront's own node_modules, so it works +// both in the Catalyst monorepo (`core/`) and in standalone projects created with +// `create catalyst`, where the storefront is the repository root. + +import { spawn, spawnSync } from 'node:child_process'; +import { + closeSync, + copyFileSync, + existsSync, + mkdirSync, + mkdtempSync, + openSync, + readdirSync, + readFileSync, + renameSync, + rmSync, + statSync, + writeFileSync, +} from 'node:fs'; +import { createRequire } from 'node:module'; +import { createServer } from 'node:net'; +import { tmpdir } from 'node:os'; +import { basename, dirname, extname, join, relative, resolve } from 'node:path'; +import { fileURLToPath, pathToFileURL } from 'node:url'; +import { parseArgs } from 'node:util'; + +const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url)); +const APP_DIR = resolve(SCRIPT_DIR, '../../../..'); +const EVIDENCE_DIR = join(APP_DIR, '.verification'); +const STATE_FILE = join(EVIDENCE_DIR, 'server.json'); +const IS_WINDOWS = process.platform === 'win32'; +const DEFAULT_PORT = 3100; +const READY_TIMEOUT_MS = 6 * 60 * 1000; +const REQUIRED_ENV = [ + 'BIGCOMMERCE_STORE_HASH', + 'BIGCOMMERCE_STOREFRONT_TOKEN', + 'BIGCOMMERCE_CHANNEL_ID', + 'AUTH_SECRET', +]; +const VIEWPORTS = { + desktop: { viewport: { width: 1440, height: 900 }, deviceScaleFactor: 1 }, + tablet: { viewport: { width: 834, height: 1112 }, deviceScaleFactor: 1, hasTouch: true }, + mobile: { + viewport: { width: 390, height: 844 }, + deviceScaleFactor: 2, + isMobile: true, + hasTouch: true, + }, +}; + +// --------------------------------------------------------------------------------------------- +// Small utilities + +const requireFromApp = createRequire(join(APP_DIR, 'package.json')); + +function fail(message) { + console.error(`\n✖ ${message}`); + process.exit(1); +} + +function run(cmd, args, opts = {}) { + // `.cmd` shims (pnpm, npm, npx) need a shell on Windows; real executables (git, gh, ffmpeg) do not. + const result = spawnSync(cmd, args, { + cwd: APP_DIR, + encoding: 'utf8', + shell: IS_WINDOWS && opts.shim === true, + ...opts, + }); + + return { + ok: result.status === 0, + status: result.status, + stdout: (result.stdout ?? '').trim(), + stderr: (result.stderr ?? '').trim(), + error: result.error, + }; +} + +// ffmpeg only understands `-version`; git and gh accept it too. +function has(cmd) { + return run(cmd, ['-version']).ok || run(cmd, ['--version']).ok; +} + +function slugify(value) { + return ( + value + .toLowerCase() + .replace(/[^a-z0-9]+/g, '-') + .replace(/^-+|-+$/g, '') + .slice(0, 60) || 'run' + ); +} + +function timestamp() { + return new Date().toISOString().replace(/[:T]/g, '-').replace(/\..+$/, ''); +} + +function parseEnvFile(file) { + if (!existsSync(file)) return {}; + + const env = {}; + + for (const line of readFileSync(file, 'utf8').split(/\r?\n/)) { + const match = line.match(/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*)\s*$/); + + if (!match) continue; + + let value = match[2]; + + if (/^(['"]).*\1$/.test(value)) value = value.slice(1, -1); + else value = value.replace(/\s+#.*$/, ''); + + env[match[1]] = value; + } + + return env; +} + +function readState() { + if (!existsSync(STATE_FILE)) return null; + + try { + return JSON.parse(readFileSync(STATE_FILE, 'utf8')); + } catch { + return null; + } +} + +function isAlive(pid) { + try { + process.kill(pid, 0); + + return true; + } catch (error) { + return error.code === 'EPERM'; + } +} + +function portIsFree(port) { + return new Promise((done) => { + const server = createServer(); + + server.once('error', () => done(false)); + server.once('listening', () => server.close(() => done(true))); + server.listen(port); + }); +} + +function layout() { + const parent = dirname(APP_DIR); + const monorepo = + existsSync(join(parent, 'pnpm-workspace.yaml')) && + existsSync(join(parent, 'packages', 'client')); + + return { monorepo, repoRoot: monorepo ? parent : APP_DIR }; +} + +function git(args, opts = {}) { + return run('git', args, opts); +} + +function gitInfo() { + const sha = git(['rev-parse', 'HEAD']).stdout; + const branch = git(['rev-parse', '--abbrev-ref', 'HEAD']).stdout; + // `next dev` rewrites agent docs (AGENTS.md) on startup; list changed files so a reviewer can + // tell that apart from untested code. + const dirtyFiles = git(['diff', '--name-only', 'HEAD']).stdout.split(/\r?\n/).filter(Boolean); + + return { sha, branch, dirty: dirtyFiles.length > 0, dirtyFiles }; +} + +// The first entry of `git worktree list` is the main checkout. Worktrees do not inherit +// gitignored files such as `.env.local`, so this is where to copy them from. +function mainCheckoutAppDir() { + const list = git(['worktree', 'list', '--porcelain']); + + if (!list.ok) return null; + + const mainRoot = list.stdout.split(/\r?\n/)[0]?.replace(/^worktree /, ''); + const { repoRoot } = layout(); + + if (!mainRoot || resolve(mainRoot) === resolve(repoRoot)) return null; + + return join(mainRoot, relative(repoRoot, APP_DIR)); +} + +function resolveBaseURL(values) { + if (values.url) return values.url.replace(/\/$/, ''); + + const state = readState(); + + if (state && isAlive(state.pid)) return state.url; + + return null; +} + +async function probe(url) { + try { + const response = await fetch(url, { redirect: 'follow', signal: AbortSignal.timeout(60_000) }); + const html = await response.text(); + const meta = (name) => + html.match(new RegExp(`]+name="${name}"[^>]+content="([^"]*)"`))?.[1] ?? null; + + return { + ok: response.ok, + status: response.status, + catalyst: meta('platform') === 'bigcommerce.catalyst', + channelId: meta('channel_id'), + }; + } catch (error) { + return { ok: false, status: 0, error: error.message }; + } +} + +function loadPlaywright() { + try { + return requireFromApp('@playwright/test'); + } catch { + return null; + } +} + +// --------------------------------------------------------------------------------------------- +// doctor: read-only "is this instance worth driving?" + +async function doctor(values) { + const rows = []; + const add = (level, check, detail) => rows.push({ level, check, detail }); + const { monorepo } = layout(); + const pkg = JSON.parse(readFileSync(join(APP_DIR, 'package.json'), 'utf8')); + + add( + 'PASS', + 'storefront', + `${pkg.name}@${pkg.version} at ${APP_DIR} (${monorepo ? 'monorepo' : 'standalone project'})`, + ); + + const wantedNode = pkg.engines?.node?.match(/(\d+)/)?.[1]; + const haveNode = Number(process.versions.node.split('.')[0]); + + add( + wantedNode && haveNode < Number(wantedNode) ? 'FAIL' : 'PASS', + 'node', + `v${process.versions.node}${wantedNode ? ` (needs >=${wantedNode})` : ''}`, + ); + + add( + existsSync(join(APP_DIR, 'node_modules', 'next')) ? 'PASS' : 'FAIL', + 'dependencies', + existsSync(join(APP_DIR, 'node_modules', 'next')) ? 'installed' : 'run `pnpm install` first', + ); + + if (monorepo) { + const clientDist = join(dirname(APP_DIR), 'packages', 'client', 'dist'); + + add( + existsSync(clientDist) ? 'PASS' : 'WARN', + 'catalyst-client build', + existsSync(clientDist) + ? 'packages/client/dist present' + : '`launch` will build it (pnpm --filter @bigcommerce/catalyst-client build)', + ); + } + + const envFile = join(APP_DIR, '.env.local'); + + if (!existsSync(envFile)) { + const main = mainCheckoutAppDir(); + const hint = + main && existsSync(join(main, '.env.local')) + ? `this is a git worktree; copy it from the main checkout: ${join(main, '.env.local')}` + : 'create it from .env.example (or run `catalyst project link` / the Catalyst CLI)'; + + add('FAIL', '.env.local', `missing — ${hint}`); + } else { + const env = { ...parseEnvFile(envFile), ...process.env }; + const missing = REQUIRED_ENV.filter((key) => !env[key]); + + add( + missing.length ? 'FAIL' : 'PASS', + '.env.local', + missing.length ? `empty: ${missing.join(', ')}` : 'required keys set (values not shown)', + ); + + if (pkg.dependencies?.['@makeswift/runtime'] && !env.MAKESWIFT_SITE_API_KEY) { + add('FAIL', 'makeswift', 'MAKESWIFT_SITE_API_KEY is empty (this storefront uses Makeswift)'); + } + + const testEnv = parseEnvFile(join(APP_DIR, '.env.test.local')); + + add( + testEnv.TEST_CUSTOMER_EMAIL ? 'PASS' : 'WARN', + 'test customer', + testEnv.TEST_CUSTOMER_EMAIL + ? '.env.test.local has TEST_CUSTOMER_EMAIL' + : 'no .env.test.local TEST_CUSTOMER_* — signed-in journeys unavailable', + ); + } + + const playwright = loadPlaywright(); + + if (!playwright) { + add( + 'FAIL', + 'playwright', + '@playwright/test not resolvable from the storefront — `pnpm add -D @playwright/test`', + ); + } else { + const exe = playwright.chromium.executablePath(); + + add( + existsSync(exe) ? 'PASS' : 'FAIL', + 'chromium', + existsSync(exe) + ? 'installed' + : `missing — run \`npx playwright install chromium\`${process.platform === 'linux' ? ' (add --with-deps on a fresh Linux box)' : ''}`, + ); + } + + add( + has('ffmpeg') ? 'PASS' : 'WARN', + 'ffmpeg', + has('ffmpeg') ? 'available (GIF/MP4 from video)' : `optional, for GIF/MP4: ${ffmpegHint()}`, + ); + + const gh = has('gh') ? ghVersion() : null; + const ghAuthed = gh && run('gh', ['auth', 'status']).ok; + const ghMin = GH_ATTACH_MIN.join('.'); + + if (!gh) { + add('WARN', 'gh', `not installed — install GitHub CLI ${ghMin}+ to upload evidence to PRs`); + } else if (!supportsAttach(gh)) { + add( + 'WARN', + 'gh', + `${gh.join('.')} is too old for \`--attach\` — upgrade to ${ghMin}+ (${ghUpgradeHint()})`, + ); + } else if (!ghAuthed) { + add('WARN', 'gh', `${gh.join('.')} installed but not authenticated — run \`gh auth login\``); + } else { + add('PASS', 'gh', `${gh.join('.')} authenticated (publish uploads straight to the PR)`); + } + + const state = readState(); + + if (state) { + const alive = isAlive(state.pid); + + add( + alive ? 'PASS' : 'WARN', + 'launched server', + alive + ? `pid ${state.pid} on ${state.url} (${state.mode})` + : `stale state for pid ${state.pid} — run \`stop\``, + ); + } + + const url = resolveBaseURL(values); + + if (url) { + const result = await probe(url); + + if (!result.ok) + add('FAIL', 'target', `${url} not responding (${result.status || result.error})`); + else if (!result.catalyst) + add( + 'FAIL', + 'target', + `${url} responded but is not a Catalyst storefront (no platform meta tag)`, + ); + else add('PASS', 'target', `${url} is Catalyst (channel ${result.channelId ?? '?'})`); + } else { + add('WARN', 'target', 'no server — run `launch`, or pass --url for one you started yourself'); + } + + const width = Math.max(...rows.map((row) => row.check.length)); + + for (const row of rows) { + console.log(`${row.level.padEnd(4)} ${row.check.padEnd(width)} ${row.detail}`); + } + + if (rows.some((row) => row.level === 'FAIL')) process.exitCode = 1; +} + +function ghUpgradeHint() { + if (process.platform === 'darwin') return '`brew upgrade gh`'; + if (IS_WINDOWS) return '`winget upgrade --id GitHub.cli`'; + + return 'your package manager, or https://github.com/cli/cli/releases'; +} + +function ffmpegHint() { + if (process.platform === 'darwin') return '`brew install ffmpeg`'; + if (IS_WINDOWS) return '`winget install Gyan.FFmpeg`'; + + return '`sudo apt-get install ffmpeg` (or your distro equivalent)'; +} + +// --------------------------------------------------------------------------------------------- +// launch / stop + +async function launch(values) { + const existing = readState(); + + if (existing && isAlive(existing.pid)) { + console.log( + `Already running: pid ${existing.pid} at ${existing.url} (run \`stop\` first to relaunch)`, + ); + + return; + } + + if (!existsSync(join(APP_DIR, '.env.local'))) + fail('.env.local is missing — run `doctor` for the fix.'); + + const port = Number(values.port ?? DEFAULT_PORT); + + if (!(await portIsFree(port))) { + fail( + `Port ${port} is in use. Pick another with --port, or drive the server already there with --url http://localhost:${port}.`, + ); + } + + const { monorepo } = layout(); + + if (monorepo && !existsSync(join(dirname(APP_DIR), 'packages', 'client', 'dist'))) { + console.log('Building @bigcommerce/catalyst-client (monorepo only)…'); + + const build = run('pnpm', ['--filter', '@bigcommerce/catalyst-client', 'build'], { + cwd: dirname(APP_DIR), + shim: true, + stdio: 'inherit', + }); + + if (!build.ok) fail('catalyst-client build failed.'); + } + + mkdirSync(EVIDENCE_DIR, { recursive: true }); + + const logFile = join(EVIDENCE_DIR, 'server.log'); + const node = process.execPath; + const envArgs = ['--env-file-if-exists=.env.local']; + + if (existsSync(join(APP_DIR, 'scripts', 'generate.cjs'))) { + console.log('Generating GraphQL types (scripts/generate.cjs)…'); + + const generate = run(node, [...envArgs, 'scripts/generate.cjs'], { stdio: 'inherit' }); + + if (!generate.ok) + fail('GraphQL generation failed — check the store credentials in .env.local.'); + } + + const nextBin = requireFromApp.resolve('next/dist/bin/next'); + const mode = values.prod ? 'prod' : 'dev'; + + if (mode === 'prod') { + console.log('Building production bundle (next build)…'); + + const build = run(node, [nextBin, 'build'], { stdio: 'inherit' }); + + if (!build.ok) fail('next build failed.'); + } + + const out = openSync(logFile, 'w'); + const child = spawn(node, [nextBin, mode === 'prod' ? 'start' : 'dev', '--port', String(port)], { + cwd: APP_DIR, + detached: true, + windowsHide: true, + stdio: ['ignore', out, out], + env: { ...process.env, NEXT_TELEMETRY_DISABLED: '1', PORT: String(port) }, + }); + + child.unref(); + closeSync(out); + + const url = `http://localhost:${port}`; + + writeFileSync( + STATE_FILE, + JSON.stringify( + { pid: child.pid, port, url, mode, logFile, startedAt: new Date().toISOString() }, + null, + 2, + ), + ); + + console.log(`Started next ${mode} (pid ${child.pid}); log: ${logFile}`); + console.log( + `Waiting for ${url} to serve a Catalyst page (first dev compile can take a few minutes)…`, + ); + + const deadline = Date.now() + READY_TIMEOUT_MS; + + while (Date.now() < deadline) { + if (!isAlive(child.pid)) { + const tail = readFileSync(logFile, 'utf8').split(/\r?\n/).slice(-30).join('\n'); + + rmSync(STATE_FILE, { force: true }); + fail(`Server exited during startup. Last log lines:\n${tail}`); + } + + const result = await probe(url); + + if (result.ok && result.catalyst) { + console.log(`\n✔ Ready: ${url} (channel ${result.channelId ?? '?'})`); + + return; + } + + await new Promise((done) => setTimeout(done, 3000)); + } + + fail(`Timed out waiting for ${url}. Inspect ${logFile}, then run \`stop\`.`); +} + +function killTree(pid) { + if (IS_WINDOWS) { + run('taskkill', ['/pid', String(pid), '/T', '/F']); + + return; + } + + try { + // `launch` starts the server as a process-group leader, so this reaches its children too. + process.kill(-pid, 'SIGTERM'); + } catch { + try { + process.kill(pid, 'SIGTERM'); + } catch { + // already gone + } + } +} + +async function stop() { + const state = readState(); + + if (!state) { + console.log( + 'Nothing to stop: no server was launched by this skill. (It never stops servers it did not start.)', + ); + + return; + } + + if (isAlive(state.pid)) { + killTree(state.pid); + + for (let i = 0; i < 20 && isAlive(state.pid); i++) { + await new Promise((done) => setTimeout(done, 250)); + } + + if (isAlive(state.pid) && !IS_WINDOWS) process.kill(-state.pid, 'SIGKILL'); + } + + rmSync(STATE_FILE, { force: true }); + console.log( + `Stopped pid ${state.pid} (${state.url}). Evidence in ${EVIDENCE_DIR} was left in place.`, + ); +} + +// --------------------------------------------------------------------------------------------- +// Browser helpers shared by explore and capture + +// Hide the Next.js dev-mode indicator so it does not appear in evidence. +const HIDE_DEV_OVERLAY = ` + addEventListener('DOMContentLoaded', () => { + const style = document.createElement('style'); + style.textContent = 'nextjs-portal { display: none !important; }'; + document.head.appendChild(style); + }); +`; + +async function openBrowser(playwright, device, extra = {}) { + const browser = await playwright.chromium.launch({ headless: !process.env.VERIFY_HEADED }); + const context = await browser.newContext({ ...VIEWPORTS[device], ...extra }); + + await context.addInitScript(HIDE_DEV_OVERLAY); + + return { browser, context }; +} + +function requireBaseURL(values) { + const url = resolveBaseURL(values); + + if (!url) fail('No target server. Run `launch` first, or pass --url.'); + + return url; +} + +// explore: print the ARIA snapshot of a page so stable handles can be chosen. +async function explore(values, positionals) { + const playwright = + loadPlaywright() ?? fail('@playwright/test is not installed in the storefront.'); + const baseURL = requireBaseURL(values); + const device = values.device ?? 'desktop'; + const target = new URL(positionals[0] ?? '/', `${baseURL}/`).toString(); + const { browser, context } = await openBrowser(playwright, device); + + try { + const page = await context.newPage(); + + await page.goto(target, { waitUntil: 'networkidle', timeout: 120_000 }).catch(() => undefined); + console.log(`# ${page.url()} — ${await page.title()}\n`); + console.log( + await page + .locator(values.selector ?? 'body') + .first() + .ariaSnapshot(), + ); + + if (values.screenshot) { + await page.screenshot({ path: values.screenshot, fullPage: true }); + console.log(`\nScreenshot: ${resolve(values.screenshot)}`); + } + } finally { + await browser.close(); + } +} + +// --------------------------------------------------------------------------------------------- +// capture: run a journey and keep the evidence + +async function capture(values, positionals) { + const journeyPath = positionals[0] + ? resolve(positionals[0]) + : fail('Usage: capture '); + + if (!existsSync(journeyPath)) fail(`Journey not found: ${journeyPath}`); + + const playwright = + loadPlaywright() ?? fail('@playwright/test is not installed in the storefront.'); + const baseURL = requireBaseURL(values); + const health = await probe(baseURL); + + if (!health.ok || !health.catalyst) fail(`${baseURL} is not serving Catalyst — run \`doctor\`.`); + + const journey = await import(pathToFileURL(journeyPath).href); + const meta = journey.meta ?? {}; + const device = values.device ?? meta.device ?? 'desktop'; + + if (!VIEWPORTS[device]) + fail(`Unknown device "${device}" (use ${Object.keys(VIEWPORTS).join(', ')}).`); + + const name = slugify(values.name ?? meta.name ?? basename(journeyPath, extname(journeyPath))); + const label = values.label ? `-${slugify(values.label)}` : ''; + const runId = `${timestamp()}-${name}${label}-${device}`; + const runDir = join(EVIDENCE_DIR, 'runs', runId); + const videoTmp = join(runDir, '.video'); + + mkdirSync(videoTmp, { recursive: true }); + copyFileSync(journeyPath, join(runDir, 'journey.mjs')); + + const { browser, context } = await openBrowser(playwright, device, { + baseURL, + recordVideo: { dir: videoTmp, size: VIEWPORTS[device].viewport }, + }); + + await context.tracing.start({ screenshots: true, snapshots: true }); + + const page = await context.newPage(); + // Recording starts on about:blank; note when the first page has loaded so the MP4 and GIF can + // skip the blank lead-in (otherwise their first frame, GitHub's poster, is pure white). + const recordingStarted = Date.now(); + let firstLoad = null; + + page.once('load', () => { + firstLoad = Date.now(); + }); + + const consoleErrors = []; + const failedRequests = []; + const steps = []; + const origin = new URL(baseURL).origin; + + page.on( + 'console', + (msg) => msg.type() === 'error' && consoleErrors.push(msg.text().slice(0, 500)), + ); + page.on('pageerror', (error) => consoleErrors.push(`pageerror: ${error.message.slice(0, 500)}`)); + page.on('response', (response) => { + if (response.status() >= 400 && response.url().startsWith(origin)) { + failedRequests.push(`${response.status()} ${response.request().method()} ${response.url()}`); + } + }); + + const step = async (stepLabel, action, opts = {}) => { + const n = String(steps.length + 1).padStart(2, '0'); + const file = `${n}-${slugify(stepLabel)}.png`; + const record = { n: steps.length + 1, label: stepLabel, status: 'passed', screenshot: file }; + + steps.push(record); + console.log(` ${n}. ${stepLabel}`); + + try { + if (action) await action(); + await page.waitForLoadState('networkidle', { timeout: 10_000 }).catch(() => undefined); + } catch (error) { + record.status = 'failed'; + record.error = error.message.split('\n').slice(0, 6).join('\n'); + record.screenshot = file.replace(/\.png$/, '-FAILED.png'); + } finally { + record.url = page.url(); + await page + .screenshot({ path: join(runDir, record.screenshot), fullPage: opts.fullPage === true }) + .catch(() => undefined); + } + + if (record.status === 'failed') { + const error = new Error(`Step "${stepLabel}" failed: ${record.error}`); + + error.stepFailure = true; + throw error; + } + }; + + const started = Date.now(); + let status = 'passed'; + let failure = null; + + console.log(`Capturing "${meta.title ?? name}" on ${baseURL} (${device})`); + + try { + await journey.default({ + page, + context, + baseURL, + step, + expect: playwright.expect, + env: { ...parseEnvFile(join(APP_DIR, '.env.test.local')) }, + }); + } catch (error) { + status = 'failed'; + failure = error.stepFailure ? error.message : error.stack; + } + + await context.tracing.stop({ path: join(runDir, 'trace.zip') }); + + const video = page.video(); + + await context.close(); + await browser.close(); + + const files = []; + + if (video) { + renameSync(await video.path(), join(runDir, 'video.webm')); + files.push('video.webm'); + + if (has('ffmpeg')) { + const input = join(runDir, 'video.webm'); + const skip = firstLoad ? ((firstLoad - recordingStarted) / 1000).toFixed(2) : '0'; + const mp4 = run('ffmpeg', [ + '-y', + '-loglevel', + 'error', + '-i', + input, + '-ss', + skip, + '-c:v', + 'libx264', + '-pix_fmt', + 'yuv420p', + '-movflags', + '+faststart', + join(runDir, 'video.mp4'), + ]); + const gif = run('ffmpeg', [ + '-y', + '-loglevel', + 'error', + '-i', + input, + '-ss', + skip, + '-vf', + // Fit inside 800×600 so portrait (mobile) recordings stay a reasonable size. + 'fps=8,scale=800:600:force_original_aspect_ratio=decrease:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse', + join(runDir, 'video.gif'), + ]); + + if (mp4.ok) files.push('video.mp4'); + if (gif.ok) files.push('video.gif'); + } + } + + rmSync(videoTmp, { recursive: true, force: true }); + + const manifest = { + runId, + title: meta.title ?? name, + feature: meta.feature ?? null, + label: values.label ?? null, + status, + failure, + baseURL, + device, + viewport: VIEWPORTS[device].viewport, + git: gitInfo(), + platform: `${process.platform}-${process.arch}`, + startedAt: new Date(started).toISOString(), + durationMs: Date.now() - started, + steps, + consoleErrors, + failedRequests, + files: [...files, 'trace.zip', 'journey.mjs'], + }; + + writeFileSync(join(runDir, 'manifest.json'), JSON.stringify(manifest, null, 2)); + writeFileSync( + join(runDir, 'summary.md'), + renderMarkdown(manifest, (file) => file), + ); + + console.log( + `\n${status === 'passed' ? '✔' : '✖'} ${status.toUpperCase()} — evidence in ${runDir}`, + ); + if (failure) console.log(`\n${failure}`); + if (consoleErrors.length) + console.log(`\n⚠ ${consoleErrors.length} console error(s) recorded in manifest.json`); + if (status !== 'passed') process.exitCode = 1; +} + +// Display widths for the PR. GitHub scales images to the comment column (~880px), which blows a +// portrait (mobile) capture up to several screens tall, so size by orientation instead. +const DISPLAY = { + landscape: { recording: 720, screenshot: 720 }, + portrait: { recording: 280, screenshot: 180 }, +}; + +function img(src, alt, width) { + return `${alt.replace(/`; +} + +function renderMarkdown(manifest, urlFor, { attach = false } = {}) { + const lines = []; + const icon = manifest.status === 'passed' ? '✅' : '❌'; + const sha = manifest.git.sha ? manifest.git.sha.slice(0, 10) : 'unknown'; + const { width, height } = manifest.viewport; + const portrait = height > width; + const size = DISPLAY[portrait ? 'portrait' : 'landscape']; + + const tags = [manifest.device, manifest.label].filter(Boolean).join(', '); + const dirtyFiles = manifest.git.dirtyFiles ?? []; + const dirtyNote = dirtyFiles.length + ? ` + uncommitted changes to ${dirtyFiles + .slice(0, 3) + .map((file) => `\`${file}\``) + .join(', ')}${dirtyFiles.length > 3 ? ` and ${dirtyFiles.length - 3} more` : ''}` + : ''; + + lines.push(`### ${icon} ${manifest.title} (${tags})`); + lines.push(''); + lines.push( + `\`${sha}\`${dirtyNote} · ${manifest.device} ${width}×${height} · ${manifest.platform} · ${(manifest.durationMs / 1000).toFixed(1)}s`, + ); + lines.push(''); + + if (manifest.failure) lines.push('```', manifest.failure, '```', ''); + + const videoFile = manifest.files.includes('video.mp4') ? 'video.mp4' : 'video.webm'; + + if (attach) { + // A bare attachment URL on its own line renders as GitHub's video player. + if (manifest.files.includes(videoFile)) lines.push(urlFor(videoFile), ''); + } else { + if (manifest.files.includes('video.gif')) { + lines.push(img(urlFor('video.gif'), 'Recording', size.recording), ''); + } + + if (manifest.files.includes(videoFile)) { + lines.push( + `🎥 [Full recording (${videoFile.split('.')[1]})](${urlFor(videoFile)}) · 🔍 [Playwright trace](${urlFor('trace.zip')}) (\`npx playwright show-trace trace.zip\`)`, + '', + ); + } + } + + lines.push('| # | Step | Result |', '|---|---|---|'); + + for (const s of manifest.steps) { + lines.push( + `| ${s.n} | ${s.label} | ${s.status === 'passed' ? '✅' : `❌ ${s.error?.split('\n')[0] ?? ''}`} |`, + ); + } + + lines.push(''); + lines.push('
Screenshots', ''); + + if (portrait) { + // Narrow captures read best side by side, as a filmstrip. + lines.push( + `| ${manifest.steps.map((s) => `${s.n}. ${s.label}`).join(' | ')} |`, + `|${manifest.steps.map(() => '---').join('|')}|`, + `| ${manifest.steps.map((s) => img(urlFor(s.screenshot), s.label, size.screenshot)).join(' | ')} |`, + '', + ); + } else { + for (const s of manifest.steps) { + lines.push( + `**${s.n}. ${s.label}**`, + '', + img(urlFor(s.screenshot), s.label, size.screenshot), + '', + ); + } + } + + lines.push('
', ''); + + if (manifest.consoleErrors.length || manifest.failedRequests.length) { + lines.push('
Console errors / failed requests', '', '```'); + lines.push(...manifest.consoleErrors, ...manifest.failedRequests); + lines.push('```', '
', ''); + } + + return lines.join('\n'); +} + +// --------------------------------------------------------------------------------------------- +// publish: upload a run's evidence and write PR-ready markdown + +// `gh` 2.99.0 added `--attach` to `gh pr create|edit|comment`, which uploads images and videos as +// native GitHub attachments: videos play inline and access follows the repository. GitHub only +// accepts attachments from accounts with write access to the repository, so contributors +// opening a PR from a fork upload elsewhere and post the markdown instead. +const GH_ATTACH_MIN = [2, 99, 0]; +const ATTACH_LIMIT = 50; +const EVIDENCE_MARKER = ''; +const UPLOAD_START = ''; +const UPLOAD_END = ''; + +function ghVersion() { + const match = run('gh', ['--version']).stdout.match(/gh version (\d+)\.(\d+)\.(\d+)/); + + return match ? match.slice(1, 4).map(Number) : null; +} + +function supportsAttach(version) { + if (!version) return false; + + for (let i = 0; i < 3; i++) { + if (version[i] !== GH_ATTACH_MIN[i]) return version[i] > GH_ATTACH_MIN[i]; + } + + return true; +} + +function resolvePr(values) { + const view = run('gh', [ + 'pr', + 'view', + ...(values.pr ? [values.pr] : []), + '--json', + 'url', + '--jq', + '.url', + ]); + + return view.ok ? view.stdout : (values.pr ?? null); +} + +function prRepo(prUrl) { + const match = prUrl?.match(/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/); + + return match ? { owner: match[1], repo: match[2] } : null; +} + +function repoAccess({ owner, repo }) { + const view = run('gh', [ + 'repo', + 'view', + `${owner}/${repo}`, + '--json', + 'visibility,viewerPermission', + ]); + + return view.ok ? JSON.parse(view.stdout) : {}; +} + +function githubSlug(remote) { + const url = git(['remote', 'get-url', remote]).stdout; + const match = url.match(/github\.com[:/]([^/]+)\/(.+?)(?:\.git)?$/); + + return match ? { owner: match[1], repo: match[2] } : null; +} + +function latestRunDir() { + const runsDir = join(EVIDENCE_DIR, 'runs'); + + if (!existsSync(runsDir)) return null; + + const runs = readdirSync(runsDir) + .map((entry) => join(runsDir, entry)) + .filter((entry) => statSync(entry).isDirectory()) + .sort(); + + return runs.at(-1) ?? null; +} + +// Media for the PR. The MP4 supersedes the WebM (and the GIF, where video plays inline). +function mediaFiles(manifest, { inlineVideo }) { + const files = []; + const video = ['video.mp4', 'video.webm'].find((file) => manifest.files.includes(file)); + + if (video) files.push(video); + if (!inlineVideo && manifest.files.includes('video.gif')) files.push('video.gif'); + + return [...files, ...manifest.steps.map((s) => s.screenshot)]; +} + +function uploadToBranch(runs, remote) { + const slug = githubSlug(remote) ?? fail(`Remote "${remote}" is not a GitHub remote.`); + const branch = `verification-evidence/${slugify(runs[0].manifest.git.branch || 'detached')}`; + const index = join(mkdtempSync(join(tmpdir(), 'verify-index-')), 'index'); + const env = { ...process.env, GIT_INDEX_FILE: index }; + const fetched = git(['fetch', '--quiet', remote, `refs/heads/${branch}`]); + const parent = fetched.ok ? git(['rev-parse', 'FETCH_HEAD']).stdout : null; + + git(parent ? ['read-tree', parent] : ['read-tree', '--empty'], { env }); + + for (const r of runs) { + for (const file of [...mediaFiles(r.manifest, { inlineVideo: false }), 'trace.zip']) { + if (!existsSync(join(r.dir, file))) continue; + + const blob = git(['hash-object', '-w', join(r.dir, file)]).stdout; + + git(['update-index', '--add', '--cacheinfo', `100644,${blob},${r.manifest.runId}/${file}`], { + env, + }); + } + } + + const tree = git(['write-tree'], { env }).stdout; + const commit = git( + ['commit-tree', tree, ...(parent ? ['-p', parent] : []), '-m', 'verification evidence'], + { env }, + ); + + rmSync(dirname(index), { recursive: true, force: true }); + + if (!commit.ok) fail(`git commit-tree failed: ${commit.stderr}`); + + const push = git(['push', '--quiet', remote, `${commit.stdout}:refs/heads/${branch}`]); + + if (!push.ok) fail(`Pushing ${branch} to ${remote} failed: ${push.stderr}`); + + console.log( + `Uploaded evidence to ${remote}/${branch} (outside the PR branch; the diff is untouched).`, + ); + + return (r) => (file) => + `https://github.com/${slug.owner}/${slug.repo}/raw/${commit.stdout}/${r.manifest.runId}/${file}`; +} + +function uploadToGist(runs) { + const login = + run('gh', ['api', 'user', '--jq', '.login']).stdout || fail('`gh` is not authenticated.'); + const tmp = mkdtempSync(join(tmpdir(), 'verify-gist-')); + const readme = join(tmp, '00-verification.md'); + const title = runs.map((r) => r.manifest.runId).join(', '); + + writeFileSync(readme, `Catalyst verification evidence: ${title}\n`); + + const created = run('gh', [ + 'gist', + 'create', + readme, + '--desc', + `Catalyst verification: ${title}`, + ]); + const id = created.stdout.match(/gist\.github\.com\/(?:[^/]+\/)?([0-9a-f]+)/)?.[1]; + + if (!created.ok || !id) fail(`gh gist create failed: ${created.stderr}`); + + // Gists are flat git repositories; binaries cannot go through `gh gist create`, but they can be + // pushed. Prefix each file with its device so runs do not collide. + const clone = join(tmp, 'gist'); + const cloned = git(['clone', '--quiet', `https://gist.github.com/${id}.git`, clone]); + + if (!cloned.ok) fail(`Cloning the gist failed (try \`gh auth setup-git\`): ${cloned.stderr}`); + + const name = (r, file) => + `${r.manifest.device}${r.manifest.label ? `-${r.manifest.label}` : ''}-${file}`; + + for (const r of runs) { + for (const file of [...mediaFiles(r.manifest, { inlineVideo: false }), 'trace.zip']) { + if (existsSync(join(r.dir, file))) + copyFileSync(join(r.dir, file), join(clone, name(r, file))); + } + } + + git(['add', '.'], { cwd: clone }); + git(['commit', '--quiet', '-m', 'verification evidence'], { cwd: clone }); + + const push = git(['push', '--quiet'], { cwd: clone }); + + if (!push.ok) fail(`Pushing to the gist failed (try \`gh auth setup-git\`): ${push.stderr}`); + + const sha = git(['rev-parse', 'HEAD'], { cwd: clone }).stdout; + + rmSync(tmp, { recursive: true, force: true }); + console.log(`Uploaded evidence to secret gist https://gist.github.com/${login}/${id}`); + + return (r) => (file) => + `https://gist.githubusercontent.com/${login}/${id}/raw/${sha}/${name(r, file)}`; +} + +function chooseDestination(values, prUrl) { + const remote = values.remote ?? 'origin'; + const version = has('gh') ? ghVersion() : null; + const authed = version && run('gh', ['auth', 'status']).ok; + + if (!authed) { + console.log( + `gh ${GH_ATTACH_MIN.join('.')}+ is not installed and signed in, so evidence cannot be uploaded from the CLI.`, + ); + + return 'manual'; + } + + const target = prRepo(prUrl) ?? githubSlug(remote); + const access = target ? repoAccess(target) : {}; + const canWrite = ['ADMIN', 'MAINTAIN', 'WRITE'].includes(access.viewerPermission); + + if (canWrite && supportsAttach(version)) return 'attach'; + + if (!supportsAttach(version)) { + console.log( + `gh ${version.join('.')} predates --attach; upgrade to ${GH_ATTACH_MIN.join('.')}+ (${ghUpgradeHint()}) to upload straight to the PR.`, + ); + } else { + console.log( + `No write access to ${target.owner}/${target.repo} (a fork contribution?), and GitHub only takes --attach uploads from writers.`, + ); + } + + // Secret gists are unlisted but readable by anyone with the link, so they are only used when + // GitHub confirms the repository is public. A private repository's evidence goes to a branch, + // where GitHub's access control applies. If the visibility lookup failed, fail closed: do not + // guess, and leave the upload to the user (or an explicit `--to gist`). + if (access.visibility === 'PUBLIC') return 'gist'; + if (access.visibility) return 'branch'; + + console.log( + `Could not read the visibility of ${target ? `${target.owner}/${target.repo}` : 'the repository'}, so evidence is not uploaded automatically. Pass --to gist if you know it is public.`, + ); + + return 'manual'; +} + +function publish(values, positionals) { + const dirs = positionals.length ? positionals.map((p) => resolve(p)) : [latestRunDir()]; + const runs = dirs.map((dir) => { + if (!dir || !existsSync(join(dir, 'manifest.json'))) { + fail(`No run at ${dir ?? EVIDENCE_DIR} — run \`capture\` first.`); + } + + return { dir, manifest: JSON.parse(readFileSync(join(dir, 'manifest.json'), 'utf8')) }; + }); + const cwd = dirname(runs[0].dir); + + if (runs.some((r) => dirname(r.dir) !== cwd)) fail('Publish runs from the same directory.'); + + const pr = resolvePr(values); + let to = values.to ?? 'auto'; + + if (to === 'auto') { + to = chooseDestination(values, pr); + console.log(`--to auto → ${to}`); + } + + const attach = to === 'attach'; + const local = (r) => (file) => `./${basename(r.dir)}/${file}`; + const urlsFor = + to === 'gist' + ? uploadToGist(runs) + : to === 'branch' + ? uploadToBranch(runs, values.remote ?? 'origin') + : local; + const render = (urlFor) => + runs + .map((r) => renderMarkdown(r.manifest, urlFor(r), { attach })) + .join('\n') + .concat( + attach + ? '\nRecorded with the verify-catalyst skill. Playwright traces stay local: `npx playwright show-trace /trace.zip`.\n' + : '\nRecorded with the verify-catalyst skill.\n', + ); + // `gh --attach` only rewrites markdown references (`![alt](./path)`), not sized `` tags. + // So attach mode posts plain references first, then rewrites them into the final layout. + const refs = attach + ? runs.flatMap((r) => + mediaFiles(r.manifest, { inlineVideo: true }).map((file) => local(r)(file)), + ) + : []; + const evidence = attach + ? `${UPLOAD_START}\n\n${refs.map((ref) => `![${ref}](${ref})`).join('\n\n')}\n\n${UPLOAD_END}` + : render(urlsFor); + const bodyFile = join(cwd, `pr-evidence-${timestamp()}.md`); + + if (to === 'manual') { + writeFileSync(bodyFile, evidence); + console.log( + `Drag the MP4s and screenshots from\n ${runs.map((r) => r.dir).join('\n ')}\ninto a comment on the PR at github.com (GitHub hosts them and plays MP4 inline).\nA text skeleton is in ${bodyFile}.`, + ); + + return; + } + + const into = values.into ?? 'comment'; + let args; + + if (into === 'body') { + const current = pr ? run('gh', ['pr', 'view', pr, '--json', 'body', '--jq', '.body']) : null; + const body = current?.ok ? current.stdout : ''; + + writeFileSync( + bodyFile, + body.includes(EVIDENCE_MARKER) + ? body.replace(EVIDENCE_MARKER, `\n\n${evidence}\n`) + : `${body}\n\n## Verification evidence\n\n${evidence}`, + ); + args = ['pr', 'edit', pr ?? '', '--body-file', bodyFile]; + } else { + writeFileSync(bodyFile, evidence); + args = ['pr', 'comment', pr ?? '', '--body-file', bodyFile]; + } + + if (attach) { + if (refs.length > ATTACH_LIMIT) { + fail( + `${refs.length} files exceed gh's ${ATTACH_LIMIT}-attachment limit; publish fewer runs at once.`, + ); + } + + for (const file of refs) args.push('--attach', file); + } + + const printable = `gh ${args.map((a) => (/[\s<>]/.test(a) ? `"${a}"` : a)).join(' ')}`; + + if (!pr || values['dry-run']) { + if (!pr) console.log('No pull request found for this branch; pass --pr .'); + console.log(`Evidence markdown: ${bodyFile}\nFrom ${cwd}, run:\n ${printable}`); + + return; + } + + const result = run('gh', args, { cwd }); + + if (!result.ok) { + fail( + `gh ${args[0]} ${args[1]} failed: ${result.stderr || result.stdout}\nFrom ${cwd}, retry with:\n ${printable}`, + ); + } + + if (attach) layOutAttachments({ pr, into, posted: result.stdout, refs, render, local, bodyFile }); + + console.log( + `Posted evidence to ${into === 'body' ? 'the body of' : 'a comment on'} ${pr}\n${result.stdout}`, + ); +} + +// Second pass of attach mode: read back the URLs `gh` uploaded (in reference order) and replace +// the plain references with the sized layout. Editing text needs no attachment rights. +function layOutAttachments({ pr, into, posted, refs, render, local, bodyFile }) { + const repo = prRepo(pr); + const commentId = posted.match(/#issuecomment-(\d+)/)?.[1]; + const read = + into === 'body' + ? run('gh', ['pr', 'view', pr, '--json', 'body', '--jq', '.body']) + : run('gh', [ + 'api', + `repos/${repo.owner}/${repo.repo}/issues/comments/${commentId}`, + '--jq', + '.body', + ]); + const text = read.stdout; + const start = text.indexOf(UPLOAD_START); + const end = text.indexOf(UPLOAD_END); + const warn = (why) => + console.log(`⚠ Uploaded, but ${why}; the PR shows unsized images. Edit it by hand if needed.`); + + if (!read.ok || start < 0 || end < 0) return warn('could not read the post back'); + + // Images keep their `![alt](url)` form; a video becomes a bare URL on its own line. + const urls = [ + ...text.slice(start, end).matchAll(/!\[[^\]]*\]\((https:\/\/[^)\s]+)\)|^(https:\/\/\S+)$/gm), + ].map((m) => m[1] ?? m[2]); + + if (urls.length !== refs.length) return warn(`found ${urls.length} of ${refs.length} uploads`); + + const uploaded = new Map(refs.map((ref, i) => [ref, urls[i]])); + const final = render((r) => (file) => uploaded.get(local(r)(file)) ?? local(r)(file)); + + writeFileSync(bodyFile, `${text.slice(0, start)}${final}${text.slice(end + UPLOAD_END.length)}`); + + const update = + into === 'body' + ? run('gh', ['pr', 'edit', pr, '--body-file', bodyFile]) + : run('gh', [ + 'api', + '-X', + 'PATCH', + `repos/${repo.owner}/${repo.repo}/issues/comments/${commentId}`, + '-F', + `body=@${bodyFile}`, + ]); + + if (!update.ok) warn(`the layout edit failed (${update.stderr})`); +} + +// --------------------------------------------------------------------------------------------- + +const HELP = `Usage: node /scripts/verify.mjs [options] + + doctor [--url URL] Read-only health check of tools, env, and the target + launch [--port ${DEFAULT_PORT}] [--prod] Start a storefront for verification and wait until it is ready + stop Stop the server started by \`launch\` (never anything else) + explore [path] [--selector css] [--device d] [--screenshot file] + Print the ARIA snapshot of a page to find stable handles + capture [--device desktop|tablet|mobile] [--label before|after] [--name slug] [--url URL] + Run a journey; record video, screenshots, and a trace + publish [run-dir ...] [--pr ] [--into comment|body] [--dry-run] + [--to auto|attach|gist|branch|manual] [--remote origin] + Upload runs to the pull request (gh 2.99.0+ --attach) + + --url defaults to the server started by \`launch\`. Evidence lives in ${relative(process.cwd(), EVIDENCE_DIR) || '.verification'}/runs/. + Set VERIFY_HEADED=1 to watch the browser.`; + +const { values, positionals } = parseArgs({ + allowPositionals: true, + options: { + url: { type: 'string' }, + port: { type: 'string' }, + prod: { type: 'boolean' }, + device: { type: 'string' }, + label: { type: 'string' }, + name: { type: 'string' }, + selector: { type: 'string' }, + screenshot: { type: 'string' }, + to: { type: 'string' }, + remote: { type: 'string' }, + pr: { type: 'string' }, + into: { type: 'string' }, + 'dry-run': { type: 'boolean' }, + help: { type: 'boolean', short: 'h' }, + }, +}); + +const [command, ...rest] = positionals; +const commands = { doctor, launch, stop, explore, capture, publish }; + +if (!command || values.help || !commands[command]) { + console.log(HELP); + process.exit(command && !values.help ? 1 : 0); +} + +await commands[command](values, rest); diff --git a/core/.gitignore b/core/.gitignore index 5d7da0f5f9..191bd9ab15 100644 --- a/core/.gitignore +++ b/core/.gitignore @@ -62,3 +62,6 @@ build-config.json # written by `npm run generate`. Commit them, so lint, typecheck and editor # tooling work without store credentials. See "GraphQL Schema and Types" in # README.md before adding them here. + +# Verification evidence (see .agents/skills/verify-catalyst) +/.verification diff --git a/core/AGENTS.md b/core/AGENTS.md index 9c419ba898..3dd427eaec 100644 --- a/core/AGENTS.md +++ b/core/AGENTS.md @@ -273,6 +273,10 @@ export default async function ProductPage({ params, searchParams }: Props) { 5. **Centralized API Access**: All BigCommerce API interactions go through the configured GraphQL client 6. **Proxy-First**: Critical functionality like routing, auth, and internationalization handled at the proxy layer +## Verifying UI Changes + +Before opening or updating a pull request that changes anything a shopper can see or do, prove it in a real browser and attach the evidence. Follow the [`verify-catalyst`](.agents/skills/verify-catalyst/SKILL.md) skill: it launches the storefront, drives it with Playwright, records video, screenshots, and a trace, and publishes them to the PR. The helper is plain Node, so it runs on macOS, Linux, and Windows. + ## Notes This codebase differs significantly from typical Next.js applications due to the custom routing proxy and e-commerce-specific patterns. The `with-routes` proxy (composed within `proxy.ts`) essentially turns Next.js into a headless CMS router, where content structure is determined by the BigCommerce backend rather than the filesystem. Understanding this fundamental difference is crucial for working effectively with the codebase. From e90ea0c26a8aec8288d68294c49a90c6bb72e8df Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Wed, 28 Oct 2026 21:44:06 +0000 Subject: [PATCH 07/19] LTRAC-2749: fix(core) - Hide the filters column when there are no filters (#3318) FiltersPanel renders nothing when there are no filters, but its aside wrapper still reserved a column. Show the aside only when it contains the panel or its skeleton. Fixes #915 Refs LTRAC-2749 --- .changeset/empty-filters-column.md | 5 +++++ core/vibes/soul/sections/products-list-section/index.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/empty-filters-column.md diff --git a/.changeset/empty-filters-column.md b/.changeset/empty-filters-column.md new file mode 100644 index 0000000000..f4f755f672 --- /dev/null +++ b/.changeset/empty-filters-column.md @@ -0,0 +1,5 @@ +--- +'@bigcommerce/catalyst-core': patch +--- + +Hide the desktop filters column on product list pages when there are no filters, so products use the full width instead of leaving an empty column. diff --git a/core/vibes/soul/sections/products-list-section/index.tsx b/core/vibes/soul/sections/products-list-section/index.tsx index 6efc97fd94..f969423f50 100644 --- a/core/vibes/soul/sections/products-list-section/index.tsx +++ b/core/vibes/soul/sections/products-list-section/index.tsx @@ -147,7 +147,7 @@ export function ProductsListSection({
-
Date: Mon, 2 Nov 2026 15:31:36 +0000 Subject: [PATCH 12/19] Update translations (#3326) * feat(other): LOCAL-1444 delivery translation * chore(core): create translations patch --------- Co-authored-by: bc-svc-local --- .changeset/translations-patch-218678fb.md | 5 +++++ core/messages/da.json | 1 + core/messages/de.json | 1 + core/messages/es-419.json | 1 + core/messages/es-AR.json | 1 + core/messages/es-CL.json | 1 + core/messages/es-CO.json | 1 + core/messages/es-LA.json | 1 + core/messages/es-MX.json | 1 + core/messages/es-PE.json | 1 + core/messages/es.json | 1 + core/messages/fr.json | 1 + core/messages/it.json | 1 + core/messages/ja.json | 1 + core/messages/nl.json | 1 + core/messages/no.json | 1 + core/messages/pl.json | 1 + core/messages/pt-BR.json | 1 + core/messages/pt.json | 1 + core/messages/sv.json | 1 + 20 files changed, 24 insertions(+) create mode 100644 .changeset/translations-patch-218678fb.md diff --git a/.changeset/translations-patch-218678fb.md b/.changeset/translations-patch-218678fb.md new file mode 100644 index 0000000000..ad17b2636a --- /dev/null +++ b/.changeset/translations-patch-218678fb.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Update translations. diff --git a/core/messages/da.json b/core/messages/da.json index 89ade9b0c4..f4746d8407 100644 --- a/core/messages/da.json +++ b/core/messages/da.json @@ -370,6 +370,7 @@ "cartCombined": "Vi bemærkede, at du havde gemt varer i en tidligere indkøbskurv, så vi har føjet dem til din nuværende indkøbskurv for dig.", "cartRestored": "Du startede en indkøbskurv på en anden enhed, og vi har gendannet den her, så du kan fortsætte, hvor du slap.", "cartUpdateInProgress": "Du har en igangværende opdatering af din indkøbskurv. Er du sikker på, at du vil forlade denne side? Dine ændringer kan gå tabt.", + "includedItems": "Inkluderet", "originalPrice": "Den oprindelige pris var {price}.", "currentPrice": "Den aktuelle pris er {price}.", "quantityReadyToShip": "{quantity, number} klar til forsendelse", diff --git a/core/messages/de.json b/core/messages/de.json index 7ce2dd239e..87c750ea6d 100644 --- a/core/messages/de.json +++ b/core/messages/de.json @@ -370,6 +370,7 @@ "cartCombined": "Wir haben festgestellt, dass Sie Artikel in einem früheren Warenkorb gespeichert hatten, also haben wir diese Ihrem aktuellen Warenkorb hinzugefügt.", "cartRestored": "Sie haben einen Warenkorb auf einem anderen Gerät angelegt, und wir haben ihn hier wiederhergestellt, damit Sie dort weitermachen können, wo Sie aufgehört haben.", "cartUpdateInProgress": "Sie führen derzeit eine Aktualisierung Ihres Warenkorbs durch. Sind Sie sicher, dass Sie diese Seite verlassen möchten? Ihre Änderungen könnten verloren gehen.", + "includedItems": "Enthalten", "originalPrice": "Der ursprüngliche Preis war {price}.", "currentPrice": "Der aktuelle Preis beträgt {price}.", "quantityReadyToShip": "{quantity, number} bereit zum Versand", diff --git a/core/messages/es-419.json b/core/messages/es-419.json index ecf0f1952e..6a3a871406 100644 --- a/core/messages/es-419.json +++ b/core/messages/es-419.json @@ -370,6 +370,7 @@ "cartCombined": "Notamos que tenías artículos guardados en un carrito anterior, así que los hemos agregado a tu carrito actual.", "cartRestored": "Iniciaste un carrito en otro dispositivo y lo hemos restaurado aquí para que puedas continuar desde donde lo dejaste.", "cartUpdateInProgress": "Tiene una actualización de carrito en proceso. ¿Estás seguro de que quieres salir de esta página? Es posible que se pierdan sus cambios.", + "includedItems": "Incluido", "originalPrice": "El precio original era {price}.", "currentPrice": "El precio actual es {price}.", "quantityReadyToShip": "{cantidad, número} listo para enviar", diff --git a/core/messages/es-AR.json b/core/messages/es-AR.json index ecf0f1952e..6a3a871406 100644 --- a/core/messages/es-AR.json +++ b/core/messages/es-AR.json @@ -370,6 +370,7 @@ "cartCombined": "Notamos que tenías artículos guardados en un carrito anterior, así que los hemos agregado a tu carrito actual.", "cartRestored": "Iniciaste un carrito en otro dispositivo y lo hemos restaurado aquí para que puedas continuar desde donde lo dejaste.", "cartUpdateInProgress": "Tiene una actualización de carrito en proceso. ¿Estás seguro de que quieres salir de esta página? Es posible que se pierdan sus cambios.", + "includedItems": "Incluido", "originalPrice": "El precio original era {price}.", "currentPrice": "El precio actual es {price}.", "quantityReadyToShip": "{cantidad, número} listo para enviar", diff --git a/core/messages/es-CL.json b/core/messages/es-CL.json index ecf0f1952e..6a3a871406 100644 --- a/core/messages/es-CL.json +++ b/core/messages/es-CL.json @@ -370,6 +370,7 @@ "cartCombined": "Notamos que tenías artículos guardados en un carrito anterior, así que los hemos agregado a tu carrito actual.", "cartRestored": "Iniciaste un carrito en otro dispositivo y lo hemos restaurado aquí para que puedas continuar desde donde lo dejaste.", "cartUpdateInProgress": "Tiene una actualización de carrito en proceso. ¿Estás seguro de que quieres salir de esta página? Es posible que se pierdan sus cambios.", + "includedItems": "Incluido", "originalPrice": "El precio original era {price}.", "currentPrice": "El precio actual es {price}.", "quantityReadyToShip": "{cantidad, número} listo para enviar", diff --git a/core/messages/es-CO.json b/core/messages/es-CO.json index ecf0f1952e..6a3a871406 100644 --- a/core/messages/es-CO.json +++ b/core/messages/es-CO.json @@ -370,6 +370,7 @@ "cartCombined": "Notamos que tenías artículos guardados en un carrito anterior, así que los hemos agregado a tu carrito actual.", "cartRestored": "Iniciaste un carrito en otro dispositivo y lo hemos restaurado aquí para que puedas continuar desde donde lo dejaste.", "cartUpdateInProgress": "Tiene una actualización de carrito en proceso. ¿Estás seguro de que quieres salir de esta página? Es posible que se pierdan sus cambios.", + "includedItems": "Incluido", "originalPrice": "El precio original era {price}.", "currentPrice": "El precio actual es {price}.", "quantityReadyToShip": "{cantidad, número} listo para enviar", diff --git a/core/messages/es-LA.json b/core/messages/es-LA.json index ecf0f1952e..6a3a871406 100644 --- a/core/messages/es-LA.json +++ b/core/messages/es-LA.json @@ -370,6 +370,7 @@ "cartCombined": "Notamos que tenías artículos guardados en un carrito anterior, así que los hemos agregado a tu carrito actual.", "cartRestored": "Iniciaste un carrito en otro dispositivo y lo hemos restaurado aquí para que puedas continuar desde donde lo dejaste.", "cartUpdateInProgress": "Tiene una actualización de carrito en proceso. ¿Estás seguro de que quieres salir de esta página? Es posible que se pierdan sus cambios.", + "includedItems": "Incluido", "originalPrice": "El precio original era {price}.", "currentPrice": "El precio actual es {price}.", "quantityReadyToShip": "{cantidad, número} listo para enviar", diff --git a/core/messages/es-MX.json b/core/messages/es-MX.json index ecf0f1952e..6a3a871406 100644 --- a/core/messages/es-MX.json +++ b/core/messages/es-MX.json @@ -370,6 +370,7 @@ "cartCombined": "Notamos que tenías artículos guardados en un carrito anterior, así que los hemos agregado a tu carrito actual.", "cartRestored": "Iniciaste un carrito en otro dispositivo y lo hemos restaurado aquí para que puedas continuar desde donde lo dejaste.", "cartUpdateInProgress": "Tiene una actualización de carrito en proceso. ¿Estás seguro de que quieres salir de esta página? Es posible que se pierdan sus cambios.", + "includedItems": "Incluido", "originalPrice": "El precio original era {price}.", "currentPrice": "El precio actual es {price}.", "quantityReadyToShip": "{cantidad, número} listo para enviar", diff --git a/core/messages/es-PE.json b/core/messages/es-PE.json index ecf0f1952e..6a3a871406 100644 --- a/core/messages/es-PE.json +++ b/core/messages/es-PE.json @@ -370,6 +370,7 @@ "cartCombined": "Notamos que tenías artículos guardados en un carrito anterior, así que los hemos agregado a tu carrito actual.", "cartRestored": "Iniciaste un carrito en otro dispositivo y lo hemos restaurado aquí para que puedas continuar desde donde lo dejaste.", "cartUpdateInProgress": "Tiene una actualización de carrito en proceso. ¿Estás seguro de que quieres salir de esta página? Es posible que se pierdan sus cambios.", + "includedItems": "Incluido", "originalPrice": "El precio original era {price}.", "currentPrice": "El precio actual es {price}.", "quantityReadyToShip": "{cantidad, número} listo para enviar", diff --git a/core/messages/es.json b/core/messages/es.json index a717874d58..28aea3d983 100644 --- a/core/messages/es.json +++ b/core/messages/es.json @@ -370,6 +370,7 @@ "cartCombined": "Nos hemos dado cuenta de que tenías artículos guardados en un carrito anterior, así que los hemos añadido a tu carrito actual.", "cartRestored": "Empezaste a llenar un carrito en otro dispositivo y lo hemos restaurado aquí para que puedas seguir donde lo dejaste.", "cartUpdateInProgress": "Tienes una actualización del carrito en curso. ¿Seguro que quieres abandonar esta página? Es posible que se pierdan los cambios.", + "includedItems": "Incluido", "originalPrice": "El precio original era {price}.", "currentPrice": "El precio actual es {price}.", "quantityReadyToShip": "{quantity, number} listo para enviar", diff --git a/core/messages/fr.json b/core/messages/fr.json index a3a6b90f33..629f788972 100644 --- a/core/messages/fr.json +++ b/core/messages/fr.json @@ -370,6 +370,7 @@ "cartCombined": "Nous avons remarqué que votre panier précédent contenait des articles enregistrés. Nous avons donc ajouté ces articles à votre panier actuel.", "cartRestored": "Vous avez débuté vos achats sur un autre appareil. Nous avons restauré votre panier ici pour que vous puissiez reprendre là où vous en étiez.", "cartUpdateInProgress": "Une mise à jour de votre panier est en cours. Voulez-vous vraiment quitter cette page ? Vos modifications pourraient être perdues.", + "includedItems": "Inclus", "originalPrice": "Le prix initial était de {price}.", "currentPrice": "Le prix actuel est de {price}.", "quantityReadyToShip": "{quantity, number} prêts à être expédiés", diff --git a/core/messages/it.json b/core/messages/it.json index ada018f4f8..87159fe513 100644 --- a/core/messages/it.json +++ b/core/messages/it.json @@ -370,6 +370,7 @@ "cartCombined": "Abbiamo notato che avevi salvato degli articoli in un carrello precedente, quindi li abbiamo aggiunti al carrello attuale.", "cartRestored": "Hai avviato un carrello su un altro dispositivo e lo abbiamo ripristinato qui, così puoi riprendere da dove avevi lasciato.", "cartUpdateInProgress": "Hai un aggiornamento del carrello attivo in corso. Uscire dalla pagina? Le modifiche potrebbero andare perse.", + "includedItems": "Incluso", "originalPrice": "Il prezzo originale era {price}.", "currentPrice": "Il prezzo corrente è {price}.", "quantityReadyToShip": "{quantity, number} pronto per la spedizione", diff --git a/core/messages/ja.json b/core/messages/ja.json index 7ae05894f6..d4790b4bc8 100644 --- a/core/messages/ja.json +++ b/core/messages/ja.json @@ -370,6 +370,7 @@ "cartCombined": "以前のカートに商品が保存されていたので、それを現在のカートに追加しました。", "cartRestored": "別のデバイスでカートに商品が追加されていたため、中断されたところからお買い物を再開できるよう、こちらにカートの内容を復元しました。", "cartUpdateInProgress": "カートの更新が進行中です。このページを離れてもよろしいですか?変更内容が失われる可能性があります。", + "includedItems": "含まれる", "originalPrice": "元の価格は{price}でした。", "currentPrice": "現在の価格は{price}です。", "quantityReadyToShip": "{quantity, number} 個、発送準備完了", diff --git a/core/messages/nl.json b/core/messages/nl.json index 254732ff25..d186b999e4 100644 --- a/core/messages/nl.json +++ b/core/messages/nl.json @@ -370,6 +370,7 @@ "cartCombined": "We hebben gezien dat je artikelen in een eerder winkelmandje had opgeslagen, dus we hebben ze voor je aan je huidige winkelmandje toegevoegd.", "cartRestored": "Je bent een winkelmandje begonnen op een ander apparaat en we hebben het hier hersteld, zodat je verder kunt gaan waar je was gebleven.", "cartUpdateInProgress": "Je winkelwagentje wordt bijgewerkt. Weet je zeker dat je deze pagina wilt verlaten? Je wijzigingen kunnen verloren gaan.", + "includedItems": "Inclusief", "originalPrice": "De oorspronkelijke prijs was {price}.", "currentPrice": "De huidige prijs is {price}.", "quantityReadyToShip": "{quantity, number} klaar voor verzending", diff --git a/core/messages/no.json b/core/messages/no.json index 43f80bd0b1..dfc9b1e5e5 100644 --- a/core/messages/no.json +++ b/core/messages/no.json @@ -370,6 +370,7 @@ "cartCombined": "Vi la merke til at du hadde varer lagret i en tidligere handlekurv, så vi har lagt dem til i din nåværende handlekurv for deg.", "cartRestored": "Du startet en handlekurv på en annen enhet, og vi har gjenopprettet den her, slik at du kan fortsette der du slapp.", "cartUpdateInProgress": "Du har en handlekurvoppdatering i gang. Er du sikker på at du vil forlate denne siden? Endringene kan gå tapt.", + "includedItems": "Inkludert", "originalPrice": "Opprinnelig pris var {price}.", "currentPrice": "Nåværende pris er {price}.", "quantityReadyToShip": "{antall, number} klar til sending", diff --git a/core/messages/pl.json b/core/messages/pl.json index d596dcc046..e3fbbc5dc7 100644 --- a/core/messages/pl.json +++ b/core/messages/pl.json @@ -370,6 +370,7 @@ "cartCombined": "Zauważyliśmy, że w poprzednim koszyku były zapisane produkty, więc dodaliśmy je do bieżącego koszyka.", "cartRestored": "Dodano produkty do koszyka na innym urządzeniu. Przywróciliśmy koszyk tutaj, aby umożliwić kontynuowanie zakupów.", "cartUpdateInProgress": "You have a cart update in progress. Are you sure you want to leave this page? Your changes may be lost.", + "includedItems": "W zestawie", "originalPrice": "Original price was {price}.", "currentPrice": "Current price is {price}.", "quantityReadyToShip": "{quantity, number} ready to ship", diff --git a/core/messages/pt-BR.json b/core/messages/pt-BR.json index f174e38126..83cd628546 100644 --- a/core/messages/pt-BR.json +++ b/core/messages/pt-BR.json @@ -370,6 +370,7 @@ "cartCombined": "Percebemos que você tinha itens salvos em um carrinho anterior, então colocamos esses itens no carrinho atual para você.", "cartRestored": "Você iniciou um carrinho em outro dispositivo, e restauramos esse carrinho aqui para que você possa continuar de onde parou.", "cartUpdateInProgress": "You have a cart update in progress. Are you sure you want to leave this page? Your changes may be lost.", + "includedItems": "Incluído", "originalPrice": "Original price was {price}.", "currentPrice": "Current price is {price}.", "quantityReadyToShip": "{quantity, number} ready to ship", diff --git a/core/messages/pt.json b/core/messages/pt.json index f174e38126..83cd628546 100644 --- a/core/messages/pt.json +++ b/core/messages/pt.json @@ -370,6 +370,7 @@ "cartCombined": "Percebemos que você tinha itens salvos em um carrinho anterior, então colocamos esses itens no carrinho atual para você.", "cartRestored": "Você iniciou um carrinho em outro dispositivo, e restauramos esse carrinho aqui para que você possa continuar de onde parou.", "cartUpdateInProgress": "You have a cart update in progress. Are you sure you want to leave this page? Your changes may be lost.", + "includedItems": "Incluído", "originalPrice": "Original price was {price}.", "currentPrice": "Current price is {price}.", "quantityReadyToShip": "{quantity, number} ready to ship", diff --git a/core/messages/sv.json b/core/messages/sv.json index 174d9ec9e9..e4399dc901 100644 --- a/core/messages/sv.json +++ b/core/messages/sv.json @@ -370,6 +370,7 @@ "cartCombined": "Vi märkte att du hade varor sparade i en tidigare kundvagn, så vi har lagt till dem i din nuvarande kundvagn åt dig.", "cartRestored": "Du startade en kundvagn på en annan enhet, och vi har återställt den här så att du kan fortsätta där du slutade.", "cartUpdateInProgress": "Du har en pågående kundvagnsuppdatering. Är du säker på att du vill lämna den här sidan? Dina ändringar kan gå förlorade.", + "includedItems": "Ingår", "originalPrice": "Ursprungligt pris var {price}.", "currentPrice": "Nuvarande pris är {price}.", "quantityReadyToShip": "{quantity, number} klara för leverans", From ef210dde564a1c0ca3dc7822d6e07b34e57cbab1 Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Mon, 2 Nov 2026 15:40:27 +0000 Subject: [PATCH 13/19] LTRAC-1689: feat(cli) - Deploy proxy.ts as-is for Storefront Hosting (#3325) @opennextjs/cloudflare 1.20.15 bundles proxy.ts, so setup no longer renames it to an edge middleware.ts. Bump the adapter pin to 1.20.15, core's Next.js to 16.4.3 (the adapter's floor), and the default Wrangler to 4.156.0. Projects set up by an older CLI keep their generated middleware.ts. When an upgrade brings proxy.ts back beside it, build, setup and upgrade offer to delete middleware.ts, since Next.js fails with both. Upgrade now records the files it removes so they are staged with the merge. The native-hosting workflow runs the CLI built from the same commit instead of the published alpha, which still expects the rename. Refs LTRAC-1689 --- .changeset/next-16-4-3.md | 5 + .changeset/storefront-hosting-native-proxy.md | 7 + .github/workflows/native-hosting.yml | 16 +- core/package.json | 2 +- packages/catalyst/package.json | 2 +- .../catalyst/src/cli/commands/build.spec.ts | 1 + packages/catalyst/src/cli/commands/build.ts | 6 +- .../catalyst/src/cli/commands/upgrade.spec.ts | 31 +- packages/catalyst/src/cli/commands/upgrade.ts | 32 +- .../cli/lib/cloudflare-context-symbol.spec.ts | 2 +- .../src/cli/lib/commerce-hosting.spec.ts | 104 +- .../catalyst/src/cli/lib/commerce-hosting.ts | 50 +- .../src/cli/lib/project-state.spec.ts | 7 +- .../catalyst/src/cli/lib/project-state.ts | 5 +- pnpm-lock.yaml | 1171 +++++++++-------- 15 files changed, 794 insertions(+), 647 deletions(-) create mode 100644 .changeset/next-16-4-3.md create mode 100644 .changeset/storefront-hosting-native-proxy.md diff --git a/.changeset/next-16-4-3.md b/.changeset/next-16-4-3.md new file mode 100644 index 0000000000..f3215c1e13 --- /dev/null +++ b/.changeset/next-16-4-3.md @@ -0,0 +1,5 @@ +--- +'@bigcommerce/catalyst-core': patch +--- + +Upgrade Next.js to 16.4.3, which `@opennextjs/cloudflare` 1.20.15 requires and which moves off the versions affected by the `next/og` vulnerability (CVE-2026-94545). diff --git a/.changeset/storefront-hosting-native-proxy.md b/.changeset/storefront-hosting-native-proxy.md new file mode 100644 index 0000000000..cce1c14733 --- /dev/null +++ b/.changeset/storefront-hosting-native-proxy.md @@ -0,0 +1,7 @@ +--- +'@bigcommerce/catalyst': minor +--- + +Storefront Hosting setup no longer renames `proxy.ts` to `middleware.ts`. `@opennextjs/cloudflare` 1.20.15 bundles `proxy.ts` directly, so setup now pins it (up from 1.20.6) and `catalyst build` defaults to Wrangler 4.156.0. + +Migration: projects set up by an older CLI keep their generated `middleware.ts` and continue to work. If `catalyst upgrade` brings `proxy.ts` back beside it, the CLI offers to delete `middleware.ts`; move any changes you made in it into `proxy.ts` first. `catalyst upgrade` now also stages the files it removes, `middleware.ts` and `instrumentation.ts`. diff --git a/.github/workflows/native-hosting.yml b/.github/workflows/native-hosting.yml index 61038e24f1..1f2f30fc20 100644 --- a/.github/workflows/native-hosting.yml +++ b/.github/workflows/native-hosting.yml @@ -35,17 +35,10 @@ jobs: # Keep the adapter version in sync with OPENNEXT_CLOUDFLARE_VERSION in # packages/catalyst/src/cli/lib/commerce-hosting.ts - - name: Install Catalyst CLI - run: pnpm add @bigcommerce/catalyst@alpha @opennextjs/cloudflare@1.20.6 + - name: Install OpenNext adapter + run: pnpm add @opennextjs/cloudflare@1.20.15 working-directory: core - - name: Convert proxy.ts to middleware.ts - working-directory: core - run: | - mv proxy.ts middleware.ts - sed -i 's/export const proxy/export const middleware/' middleware.ts - sed -i "s/export const config = {/export const config = {\n runtime: 'experimental-edge',/" middleware.ts - - name: Build monorepo packages run: pnpm --filter "./packages/*" build @@ -57,8 +50,9 @@ jobs: BIGCOMMERCE_STOREFRONT_TOKEN: ${{ secrets.NATIVE_HOSTING_BIGCOMMERCE_STOREFRONT_TOKEN }} BIGCOMMERCE_CHANNEL_ID: ${{ vars.NATIVE_HOSTING_BIGCOMMERCE_CHANNEL_ID }} + # The CLI built from this commit, so its project checks match this core. - name: Build - run: pnpm exec catalyst build + run: node ../packages/catalyst/dist/cli.js build working-directory: core env: # CLI env vars @@ -71,7 +65,7 @@ jobs: - name: Deploy run: | - pnpm exec catalyst deploy --prebuilt \ + node ../packages/catalyst/dist/cli.js deploy --prebuilt \ --secret BIGCOMMERCE_STORE_HASH=${{ vars.NATIVE_HOSTING_BIGCOMMERCE_STORE_HASH }} \ --secret BIGCOMMERCE_STOREFRONT_TOKEN=${{ secrets.NATIVE_HOSTING_BIGCOMMERCE_STOREFRONT_TOKEN }} \ --secret BIGCOMMERCE_CHANNEL_ID=${{ vars.NATIVE_HOSTING_BIGCOMMERCE_CHANNEL_ID }} \ diff --git a/core/package.json b/core/package.json index 199334cea7..bd8723ea7c 100644 --- a/core/package.json +++ b/core/package.json @@ -68,7 +68,7 @@ "lodash.debounce": "^4.0.8", "lru-cache": "^11.1.0", "lucide-react": "^0.474.0", - "next": "~16.3.4", + "next": "~16.4.3", "next-auth": "5.0.0-beta.30", "next-intl": "^4.6.1", "nuqs": "^2.4.3", diff --git a/packages/catalyst/package.json b/packages/catalyst/package.json index 047fc51a1d..74cb9954ac 100644 --- a/packages/catalyst/package.json +++ b/packages/catalyst/package.json @@ -67,7 +67,7 @@ "vitest": "^3.2.4" }, "peerDependencies": { - "@opennextjs/cloudflare": "^1.17.3" + "@opennextjs/cloudflare": "^1.20.15" }, "peerDependenciesMeta": { "@opennextjs/cloudflare": { diff --git a/packages/catalyst/src/cli/commands/build.spec.ts b/packages/catalyst/src/cli/commands/build.spec.ts index 1272cf586b..6d2028a359 100644 --- a/packages/catalyst/src/cli/commands/build.spec.ts +++ b/packages/catalyst/src/cli/commands/build.spec.ts @@ -50,6 +50,7 @@ vi.mock('../lib/project-config', () => ({ // command routing, so keep it a no-op regardless of the ambient environment. vi.mock('../lib/commerce-hosting', () => ({ reconcileOpenNextVersion: vi.fn(() => Promise.resolve(false)), + removeLegacyMiddleware: vi.fn(() => Promise.resolve()), })); vi.mock('../lib/install-dependencies', () => ({ diff --git a/packages/catalyst/src/cli/commands/build.ts b/packages/catalyst/src/cli/commands/build.ts index 6bc28214da..2049657850 100644 --- a/packages/catalyst/src/cli/commands/build.ts +++ b/packages/catalyst/src/cli/commands/build.ts @@ -5,7 +5,7 @@ import { join } from 'node:path'; import { valid as validSemver } from 'semver'; import { loadBuildEnv } from '../lib/build-env'; -import { reconcileOpenNextVersion } from '../lib/commerce-hosting'; +import { reconcileOpenNextVersion, removeLegacyMiddleware } from '../lib/commerce-hosting'; import { detectProjectPackageManager } from '../lib/detect-package-manager'; import { getModuleCliPath } from '../lib/get-module-cli-path'; import { installDependencies } from '../lib/install-dependencies'; @@ -16,7 +16,7 @@ import { assertRequiredBuildEnv } from '../lib/required-build-env'; import { envPathOption } from '../lib/shared-options'; import { getWranglerConfig } from '../lib/wrangler-config'; -export const WRANGLER_VERSION = '4.128.0'; +export const WRANGLER_VERSION = '4.156.0'; // npm dist-tags (e.g. latest, beta) aren't valid semver, so they're allowed // through a narrow character allowlist. This also guards the value before @@ -45,6 +45,8 @@ export async function buildCatalystProject( const coreDir = process.cwd(); + await removeLegacyMiddleware(coreDir); + // The build invokes the project's own adapter, so offer to move a stale pin // before compiling against it. Reinstall when it moves. const projectPackageManager = await detectProjectPackageManager(coreDir); diff --git a/packages/catalyst/src/cli/commands/upgrade.spec.ts b/packages/catalyst/src/cli/commands/upgrade.spec.ts index 010f66c78e..e0a8ff7555 100644 --- a/packages/catalyst/src/cli/commands/upgrade.spec.ts +++ b/packages/catalyst/src/cli/commands/upgrade.spec.ts @@ -1114,6 +1114,8 @@ describe('reconcileNativeHosting', () => { expect(await exists(join(dir, 'instrumentation.ts'))).toBe(false); expect(result.conflicted).not.toContain('instrumentation.ts'); + // Recorded so `applyIndexState` stages the deletion. + expect(result.deleted).toEqual(['instrumentation.ts']); expect(await readFile(join(dir, 'package.json'), 'utf-8')).not.toContain('@vercel/otel'); }); @@ -1153,12 +1155,39 @@ describe('reconcileNativeHosting', () => { expect(result.conflicted).not.toContain('instrumentation.ts'); }); + test('removes the legacy middleware.ts when the merge brings proxy.ts back', async () => { + confirmMock.mockResolvedValue(true); + + const dir = await seedTransformedProject(false); + + await write(join(dir, 'proxy.ts'), 'export const proxy = () => {};\n'); + + const result = { + applied: ['middleware.ts'], + added: ['proxy.ts'], + deleted: [], + conflicted: ['middleware.ts'], + }; + + await reconcileNativeHosting(dir, result); + + expect(await exists(join(dir, 'middleware.ts'))).toBe(false); + expect(await exists(join(dir, 'proxy.ts'))).toBe(true); + // Recorded so `applyIndexState` stages the deletion. + expect(result).toEqual({ + applied: [], + added: ['proxy.ts'], + deleted: ['middleware.ts'], + conflicted: [], + }); + }); + test('leaves the project alone when it is not set up for native hosting', async () => { confirmMock.mockResolvedValue(true); const dir = await seedTransformedProject(true); - await write(join(dir, 'proxy.ts'), 'export const proxy = () => {};\n'); + await write(join(dir, 'package.json'), JSON.stringify({ name: 'my-store' })); const result = { applied: [], added: [], deleted: [], conflicted: ['instrumentation.ts'] }; diff --git a/packages/catalyst/src/cli/commands/upgrade.ts b/packages/catalyst/src/cli/commands/upgrade.ts index 5beacc5fa8..294d8692e1 100644 --- a/packages/catalyst/src/cli/commands/upgrade.ts +++ b/packages/catalyst/src/cli/commands/upgrade.ts @@ -19,7 +19,10 @@ import { minVersion, satisfies, lt as semverLt, validRange, valid as validSemver import yoctoSpinner from 'yocto-spinner'; import { z } from 'zod'; -import { cleanupCloudflareIncompatibilities } from '../lib/commerce-hosting'; +import { + cleanupCloudflareIncompatibilities, + removeLegacyMiddleware, +} from '../lib/commerce-hosting'; import { detectLockfileManager, PackageManager } from '../lib/detect-package-manager'; import { consola } from '../lib/logger'; import { getProjectState } from '../lib/project-state'; @@ -1202,6 +1205,15 @@ function printSummary({ } } +// A file the reconcile removed has to be recorded as deleted, or the upgrade +// stages the merge without the removal. +function recordDeletion(result: MergeResult, rel: string) { + result.conflicted = result.conflicted.filter((path) => path !== rel); + result.applied = result.applied.filter((path) => path !== rel); + result.added = result.added.filter((path) => path !== rel); + result.deleted = [...new Set([...result.deleted, rel])]; +} + export async function reconcileNativeHosting( catalystRoot: string, result: MergeResult, @@ -1223,9 +1235,21 @@ export async function reconcileNativeHosting( } if (hadInstrumentation && !(await pathExists(instrumentationPath))) { - result.conflicted = result.conflicted.filter((rel) => rel !== instrumentationRel); - result.applied = result.applied.filter((rel) => rel !== instrumentationRel); - result.added = result.added.filter((rel) => rel !== instrumentationRel); + recordDeletion(result, instrumentationRel); + } + + const middlewareRel = 'middleware.ts'; + const middlewarePath = join(catalystRoot, middlewareRel); + const hadMiddleware = await pathExists(middlewarePath); + + try { + await removeLegacyMiddleware(catalystRoot); + } catch (err) { + consola.warn(err instanceof Error ? err.message : String(err)); + } + + if (hadMiddleware && !(await pathExists(middlewarePath))) { + recordDeletion(result, middlewareRel); } } diff --git a/packages/catalyst/src/cli/lib/cloudflare-context-symbol.spec.ts b/packages/catalyst/src/cli/lib/cloudflare-context-symbol.spec.ts index c5ddea10fa..7eb5b078ea 100644 --- a/packages/catalyst/src/cli/lib/cloudflare-context-symbol.spec.ts +++ b/packages/catalyst/src/cli/lib/cloudflare-context-symbol.spec.ts @@ -59,5 +59,5 @@ test('getCloudflareContext resolves the value synchronously, with no await', () test('the pinned OpenNext version this contract was verified against is unchanged', () => { // A bump here is the trigger to re-verify the symbol key above against the // new version's `dist/api/cloudflare-context.js`. - expect(OPENNEXT_CLOUDFLARE_VERSION).toBe('1.20.6'); + expect(OPENNEXT_CLOUDFLARE_VERSION).toBe('1.20.15'); }); diff --git a/packages/catalyst/src/cli/lib/commerce-hosting.spec.ts b/packages/catalyst/src/cli/lib/commerce-hosting.spec.ts index acff5be3a5..aceb8e69d5 100644 --- a/packages/catalyst/src/cli/lib/commerce-hosting.spec.ts +++ b/packages/catalyst/src/cli/lib/commerce-hosting.spec.ts @@ -11,6 +11,7 @@ import { promptAndCreateCommerceHostingProject, promptForCommerceHostingProject, reconcileOpenNextVersion, + removeLegacyMiddleware, setupCommerceHosting, } from './commerce-hosting'; import { consola } from './logger'; @@ -882,7 +883,7 @@ describe('setupCommerceHosting', () => { await expect(setupCommerceHosting({ projectDir, projectUuid: 'u' })).rejects.toThrow(); }); - describe('proxy.ts → middleware.ts conversion', () => { + describe('proxy.ts', () => { const proxyFixture = [ "import { composeProxies } from './proxies/compose-proxies';", '', @@ -894,38 +895,17 @@ describe('setupCommerceHosting', () => { '', ].join('\n'); - it('renames proxy.ts to middleware.ts, renames the export, and injects the edge runtime', async () => { + it('leaves proxy.ts in place', async () => { writeCorePackageJson({ scripts: { dev: 'next dev' } }); writeCoreProxyFile(proxyFixture); await setupCommerceHosting({ projectDir, projectUuid: 'u' }); - const middlewarePath = join(projectDir, 'middleware.ts'); - const proxyPath = join(projectDir, 'proxy.ts'); - - expect(existsSync(middlewarePath)).toBe(true); - expect(existsSync(proxyPath)).toBe(false); - - const middleware = readFileSync(middlewarePath, 'utf-8'); - - expect(middleware).toContain('export const middleware = composeProxies()'); - expect(middleware).not.toContain('export const proxy'); - expect(middleware).toContain("runtime: 'experimental-edge'"); - }); - - it('preserves the rest of the file contents', async () => { - writeCorePackageJson({ scripts: { dev: 'next dev' } }); - writeCoreProxyFile(proxyFixture); - - await setupCommerceHosting({ projectDir, projectUuid: 'u' }); - - const middleware = readFileSync(join(projectDir, 'middleware.ts'), 'utf-8'); - - expect(middleware).toContain("import { composeProxies } from './proxies/compose-proxies';"); - expect(middleware).toContain("matcher: ['/((?!api).*)']"); + expect(readFileSync(join(projectDir, 'proxy.ts'), 'utf-8')).toBe(proxyFixture); + expect(existsSync(join(projectDir, 'middleware.ts'))).toBe(false); }); - it('is a no-op when proxy.ts does not exist', async () => { + it('does not create middleware.ts when proxy.ts does not exist', async () => { writeCorePackageJson({ scripts: { dev: 'next dev' } }); await expect(setupCommerceHosting({ projectDir, projectUuid: 'u' })).resolves.not.toThrow(); @@ -1070,6 +1050,76 @@ describe('cleanupCloudflareIncompatibilities', () => { }); }); +describe('removeLegacyMiddleware', () => { + let projectDir: string; + let restoreTty: () => void; + + beforeEach(() => { + projectDir = mkdtempSync(join(tmpdir(), 'catalyst-legacy-middleware-test-')); + restoreTty = withInteractiveTty(); + confirmMock.mockResolvedValue(true); + }); + + afterEach(() => { + rmSync(projectDir, { recursive: true, force: true }); + restoreTty(); + }); + + const middlewarePath = () => join(projectDir, 'middleware.ts'); + const proxyPath = () => join(projectDir, 'proxy.ts'); + + function writeBoth() { + writeFileSync(middlewarePath(), 'export const middleware = () => {};\n'); + writeFileSync(proxyPath(), 'export const proxy = () => {};\n'); + } + + it('deletes middleware.ts and keeps proxy.ts when the user accepts', async () => { + writeBoth(); + + await removeLegacyMiddleware(projectDir); + + expect(existsSync(middlewarePath())).toBe(false); + expect(existsSync(proxyPath())).toBe(true); + }); + + it('throws and keeps both files when the user declines', async () => { + writeBoth(); + confirmMock.mockResolvedValueOnce(false); + + await expect(removeLegacyMiddleware(projectDir)).rejects.toThrow( + /proxy\.ts and middleware\.ts/, + ); + + expect(existsSync(middlewarePath())).toBe(true); + expect(existsSync(proxyPath())).toBe(true); + }); + + it('throws without prompting or deleting in a non-interactive environment', async () => { + restoreTty(); + restoreTty = withNonInteractiveTty(); + writeBoth(); + + await expect(removeLegacyMiddleware(projectDir)).rejects.toThrow( + /proxy\.ts and middleware\.ts/, + ); + + expect(confirmMock).not.toHaveBeenCalled(); + expect(existsSync(middlewarePath())).toBe(true); + }); + + it.each([ + ['only proxy.ts', ['proxy.ts']], + ['only middleware.ts', ['middleware.ts']], + ])('does nothing with %s', async (_label, files) => { + files.forEach((file) => writeFileSync(join(projectDir, file), '')); + + await expect(removeLegacyMiddleware(projectDir)).resolves.toBeUndefined(); + + expect(confirmMock).not.toHaveBeenCalled(); + files.forEach((file) => expect(existsSync(join(projectDir, file))).toBe(true)); + }); +}); + describe('reconcileOpenNextVersion', () => { let dir: string; let warnSpy: MockInstance; @@ -1101,7 +1151,7 @@ describe('reconcileOpenNextVersion', () => { }; // A compatible Next version, so the peer gate is not what is under test. - const compatibleNext = { next: '~16.3.4' }; + const compatibleNext = { next: '~16.4.3' }; describe('cases it must stay out of', () => { it('does nothing when the project has no package.json', async () => { diff --git a/packages/catalyst/src/cli/lib/commerce-hosting.ts b/packages/catalyst/src/cli/lib/commerce-hosting.ts index e394fa260d..062b723b82 100644 --- a/packages/catalyst/src/cli/lib/commerce-hosting.ts +++ b/packages/catalyst/src/cli/lib/commerce-hosting.ts @@ -22,11 +22,11 @@ import { sortPackageJsonFields } from './sort-package-json'; // // This is what new projects are pinned to, not a floor existing ones are held // at -- see `reconcileOpenNextVersion`. -export const OPENNEXT_CLOUDFLARE_VERSION = '1.20.6'; +export const OPENNEXT_CLOUDFLARE_VERSION = '1.20.15'; // The `next` peer range OPENNEXT_CLOUDFLARE_VERSION declares. Update both // together, from the new adapter's `peerDependencies.next`. -export const OPENNEXT_REQUIRED_NEXT_RANGE = '>=15.5.24 <16 || >=16.3.3'; +export const OPENNEXT_REQUIRED_NEXT_RANGE = '>=15.5.28 <16 || >=16.4.1'; const corePackageJsonSchema = z.looseObject({ dependencies: z.record(z.string(), z.string()).optional(), @@ -56,20 +56,6 @@ const writeJson = (path: string, value: unknown) => { writeFileSync(path, `${JSON.stringify(value, null, 2)}\n`); }; -const convertProxyToMiddleware = (projectDir: string) => { - const proxyPath = join(projectDir, 'proxy.ts'); - const middlewarePath = join(projectDir, 'middleware.ts'); - - if (!existsSync(proxyPath)) return; - - const contents = readFileSync(proxyPath, 'utf-8') - .replace('export const proxy', 'export const middleware') - .replace('export const config = {', "export const config = {\n runtime: 'experimental-edge',"); - - writeFileSync(middlewarePath, contents); - unlinkSync(proxyPath); -}; - // The default `instrumentation.ts` registers `@vercel/otel`, whose node // build OpenNext bundles into the worker chunk; workerd then throws on cold // start with "Failed to prepare server". A Vercel-deploying user may have @@ -130,6 +116,35 @@ export const cleanupCloudflareIncompatibilities = async (projectDir: string) => } }; +const LEGACY_MIDDLEWARE_ERROR = + 'Found both proxy.ts and middleware.ts, and Next.js fails to build when both exist. ' + + 'Older Catalyst CLIs generated middleware.ts from proxy.ts: move any changes you made in ' + + 'middleware.ts into proxy.ts, then delete middleware.ts.'; + +// Older CLIs renamed `proxy.ts` to `middleware.ts`, and `catalyst upgrade` can +// bring `proxy.ts` back beside it. Asks before deleting the legacy copy, since +// it may hold customizations that belong in proxy.ts. +export const removeLegacyMiddleware = async (projectDir: string) => { + const middlewarePath = join(projectDir, 'middleware.ts'); + + if (!existsSync(middlewarePath) || !existsSync(join(projectDir, 'proxy.ts'))) return; + + if (!process.stdin.isTTY) throw new Error(LEGACY_MIDDLEWARE_ERROR); + + const shouldRemove = await confirm({ + message: + 'Catalyst found both proxy.ts and middleware.ts. middleware.ts was generated by an older ' + + 'Catalyst CLI, and Next.js fails to build when both exist.\n' + + 'Delete middleware.ts and keep proxy.ts? (move any changes you made in middleware.ts into proxy.ts first)', + default: true, + }); + + if (!shouldRemove) throw new Error(LEGACY_MIDDLEWARE_ERROR); + + unlinkSync(middlewarePath); + consola.info('Removed middleware.ts (generated by an older Catalyst CLI).'); +}; + // The adapter pin lives in the project's own package.json, and `deploy` skips // `setupCommerceHosting` once transformed, so a CLI bump never reaches an // existing project by itself. `catalyst upgrade` can't move it either: the pin @@ -237,6 +252,7 @@ export const setupCommerceHosting = async ({ accessToken?: string; }) => { await cleanupCloudflareIncompatibilities(projectDir); + await removeLegacyMiddleware(projectDir); const corePackageJsonPath = join(projectDir, 'package.json'); const pkg = corePackageJsonSchema.parse(JSON.parse(readFileSync(corePackageJsonPath, 'utf-8'))); @@ -269,8 +285,6 @@ export const setupCommerceHosting = async ({ if (accessToken) projectJson.accessToken = accessToken; writeJson(projectJsonPath, projectJson); - - convertProxyToMiddleware(projectDir); }; interface CommerceHostingApiContext { diff --git a/packages/catalyst/src/cli/lib/project-state.spec.ts b/packages/catalyst/src/cli/lib/project-state.spec.ts index e05983da9b..77aaa87e64 100644 --- a/packages/catalyst/src/cli/lib/project-state.spec.ts +++ b/packages/catalyst/src/cli/lib/project-state.spec.ts @@ -99,7 +99,7 @@ describe('getProjectState', () => { expect(getProjectState(tmpDir).hasOpenNextDep).toBe(false); }); - test('isTransformed requires middleware present, proxy absent, and OpenNext dep installed', async () => { + test('isTransformed is true with middleware.ts and the OpenNext dep installed', async () => { await writeFileEnsured(join(tmpDir, 'middleware.ts'), '// middleware'); await writePackageJson(tmpDir, { dependencies: { '@opennextjs/cloudflare': '1.17.3' }, @@ -108,14 +108,13 @@ describe('getProjectState', () => { expect(getProjectState(tmpDir).isTransformed).toBe(true); }); - test('isTransformed is false if proxy.ts still exists', async () => { - await writeFileEnsured(join(tmpDir, 'middleware.ts'), '// middleware'); + test('isTransformed is true with proxy.ts and the OpenNext dep installed', async () => { await writeFileEnsured(join(tmpDir, 'proxy.ts'), '// proxy'); await writePackageJson(tmpDir, { dependencies: { '@opennextjs/cloudflare': '1.17.3' }, }); - expect(getProjectState(tmpDir).isTransformed).toBe(false); + expect(getProjectState(tmpDir).isTransformed).toBe(true); }); test('isTransformed is false if OpenNext dep missing', async () => { diff --git a/packages/catalyst/src/cli/lib/project-state.ts b/packages/catalyst/src/cli/lib/project-state.ts index d4b6f197cb..5a5262e7af 100644 --- a/packages/catalyst/src/cli/lib/project-state.ts +++ b/packages/catalyst/src/cli/lib/project-state.ts @@ -18,8 +18,7 @@ export interface ProjectState { // Derived signals — `isLinked` reflects intent (UUID registered via // `catalyst projects create` or commerce-hosting setup); `isTransformed` - // reflects on-disk readiness (middleware.ts swapped in, OpenNext dep - // installed). A deploy needs both, but `catalyst build` only cares about + // reflects on-disk readiness (OpenNext dep installed). A deploy needs both, but `catalyst build` only cares about // `isTransformed` so it can dispatch to OpenNext vs `next build`. isLinked: boolean; isTransformed: boolean; @@ -52,7 +51,7 @@ export function getProjectState(cwd: string = process.cwd()): ProjectState { : false; const isLinked = Boolean(projectUuid); - const isTransformed = hasMiddleware && !hasProxy && hasOpenNextDep; + const isTransformed = hasOpenNextDep; const isFullySetUp = isLinked && isTransformed; return { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a00832a3e9..85ef0921eb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,7 +46,7 @@ importers: version: link:../packages/client '@c15t/nextjs': specifier: ^1.8.2 - version: 1.8.2(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.208.0(@opentelemetry/api@1.9.0))(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(@upstash/redis@1.35.0)(crossws@0.3.5)(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react-dom@19.1.7(react@19.1.7))(react@19.1.7)(typeorm@0.3.27(reflect-metadata@0.2.2)(ts-node@10.9.2(@swc/core@1.15.18(@swc/helpers@0.5.23))(@types/node@22.15.30)(typescript@5.8.3)))(use-sync-external-store@1.6.0(react@19.1.7))(ws@8.21.0) + version: 1.8.2(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.208.0(@opentelemetry/api@1.9.0))(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(@upstash/redis@1.35.0)(crossws@0.3.5)(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react-dom@19.1.7(react@19.1.7))(react@19.1.7)(typeorm@0.3.27(reflect-metadata@0.2.2)(ts-node@10.9.2(@swc/core@1.15.18(@swc/helpers@0.5.23))(@types/node@22.15.30)(typescript@5.8.3)))(use-sync-external-store@1.6.0(react@19.1.7))(ws@8.21.0) '@conform-to/react': specifier: ^1.6.1 version: 1.6.1(react@19.1.7) @@ -118,7 +118,7 @@ importers: version: 1.35.0 '@vercel/analytics': specifier: ^1.5.0 - version: 1.5.0(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(svelte@5.1.15)(vue@3.5.16(typescript@5.8.3)) + version: 1.5.0(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(svelte@5.1.15)(vue@3.5.16(typescript@5.8.3)) '@vercel/functions': specifier: ^2.2.12 version: 2.2.12(@aws-sdk/credential-provider-web-identity@3.972.59) @@ -127,7 +127,7 @@ importers: version: 2.1.0(@opentelemetry/api-logs@0.208.0)(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.208.0(@opentelemetry/api@1.9.0))(@opentelemetry/resources@2.2.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-logs@0.208.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-metrics@2.0.1(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0)) '@vercel/speed-insights': specifier: ^1.2.0 - version: 1.2.0(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(svelte@5.1.15)(vue@3.5.16(typescript@5.8.3)) + version: 1.2.0(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(svelte@5.1.15)(vue@3.5.16(typescript@5.8.3)) clsx: specifier: ^2.1.1 version: 2.1.1 @@ -177,17 +177,17 @@ importers: specifier: ^0.474.0 version: 0.474.0(react@19.1.7) next: - specifier: ~16.3.4 - version: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + specifier: ~16.4.3 + version: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) next-auth: specifier: 5.0.0-beta.30 - version: 5.0.0-beta.30(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7) + version: 5.0.0-beta.30(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7) next-intl: specifier: ^4.6.1 - version: 4.8.3(@swc/helpers@0.5.23)(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(typescript@5.8.3) + version: 4.8.3(@swc/helpers@0.5.23)(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(typescript@5.8.3) nuqs: specifier: ^2.4.3 - version: 2.4.3(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7) + version: 2.4.3(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7) p-lazy: specifier: ^5.0.0 version: 5.0.0 @@ -317,7 +317,7 @@ importers: version: 5.8.3 vitest: specifier: ^3.2.4 - version: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.16.9)(yaml@2.8.1) + version: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.36.0)(yaml@2.9.1) packages/catalyst: dependencies: @@ -328,8 +328,8 @@ importers: specifier: ^7.5.3 version: 7.5.3(@types/node@22.15.30) '@opennextjs/cloudflare': - specifier: ^1.17.3 - version: 1.20.6(encoding@0.1.13)(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(wrangler@4.128.0) + specifier: ^1.20.15 + version: 1.20.15(encoding@0.1.13)(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(wrangler@4.128.0) '@segment/analytics-node': specifier: ^2.2.1 version: 2.2.1(encoding@0.1.13) @@ -426,13 +426,13 @@ importers: version: 3.6.2 tsup: specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.15.18(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.8.1) + version: 8.5.0(@swc/core@1.15.18(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.9.1) typescript: specifier: ^5.8.3 version: 5.8.3 vitest: specifier: ^3.2.4 - version: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.16.9)(yaml@2.8.1) + version: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.36.0)(yaml@2.9.1) packages/client: dependencies: @@ -463,13 +463,13 @@ importers: version: 3.6.2 tsup: specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.15.18(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.8.1) + version: 8.5.0(@swc/core@1.15.18(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.9.1) typescript: specifier: ^5.8.3 version: 5.8.3 vitest: specifier: ^3.2.4 - version: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.16.9)(yaml@2.8.1) + version: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.36.0)(yaml@2.9.1) packages/create-catalyst: dependencies: @@ -512,7 +512,7 @@ importers: version: 3.6.2 tsup: specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.11.31(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.8.1) + version: 8.5.0(@swc/core@1.11.31(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.9.1) typescript: specifier: ^5.8.3 version: 5.8.3 @@ -575,62 +575,62 @@ packages: '@asamuzakjp/css-color@3.2.0': resolution: {integrity: sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==} - '@ast-grep/napi-darwin-arm64@0.40.5': - resolution: {integrity: sha512-2F072fGN0WTq7KI3okuEnkGJVEHLbi56Bw1H6NAMf7j2mJJeQWsRyGOMcyNnUXZDeNdvoMH0OB2a5wwUegY/nQ==} + '@ast-grep/napi-darwin-arm64@0.45.3': + resolution: {integrity: sha512-rMZJ6frSpR/xSbeV4hiA9WR5hHqk3rVYX8lOqEoUCaUnjEuFXvHdGN4WawJ8pVDq/IqM1UnTtsDSYgUdVmO5DA==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@ast-grep/napi-darwin-x64@0.40.5': - resolution: {integrity: sha512-dJMidHZhhxuLBYNi6/FKI812jQ7wcFPSKkVPwviez2D+KvYagapUMAV/4dJ7FCORfguVk8Y0jpPAlYmWRT5nvA==} + '@ast-grep/napi-darwin-x64@0.45.3': + resolution: {integrity: sha512-tIclZ5pM+YSgk8NNTBoTkaclbS39cU5lbVfSrFWX4LUnxXfUPG+F+ppxyFjKwJTBELsGHEO4LdX3/Lc+FDwPNA==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@ast-grep/napi-linux-arm64-gnu@0.40.5': - resolution: {integrity: sha512-nBRCbyoS87uqkaw4Oyfe5VO+SRm2B+0g0T8ME69Qry9ShMf41a2bTdpcQx9e8scZPogq+CTwDHo3THyBV71l9w==} + '@ast-grep/napi-linux-arm64-gnu@0.45.3': + resolution: {integrity: sha512-Bm8F7/oRHQkDXbjH+gBi9oB5huJ0q12r/AIOMIypf5PWlAVvh206Tsw468phw4Oh6kd4Ad1Z+gflNW1MutgK2g==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@ast-grep/napi-linux-arm64-musl@0.40.5': - resolution: {integrity: sha512-/qKsmds5FMoaEj6FdNzepbmLMtlFuBLdrAn9GIWCqOIcVcYvM1Nka8+mncfeXB/MFZKOrzQsQdPTWqrrQzXLrA==} + '@ast-grep/napi-linux-arm64-musl@0.45.3': + resolution: {integrity: sha512-yr5xcRerV41GeRxmZ8SKbfGeyZRhQePoNNCgTAb4OrWMelWwbMI80aY7/IlF2bo1sN40BSW4hZdGIO/akTd1RQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@ast-grep/napi-linux-x64-gnu@0.40.5': - resolution: {integrity: sha512-DP4oDbq7f/1A2hRTFLhJfDFR6aI5mRWdEfKfHzRItmlKsR9WlcEl1qDJs/zX9R2EEtIDsSKRzuJNfJllY3/W8Q==} + '@ast-grep/napi-linux-x64-gnu@0.45.3': + resolution: {integrity: sha512-lluRK3hxfHMQdFuVID6seAKVx4FH0kEwF6rCh5/I40Sf3EtNR2UCBXAqd6RBA6hqlSckktvBxCfw+h4aescDmg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@ast-grep/napi-linux-x64-musl@0.40.5': - resolution: {integrity: sha512-BRZUvVBPUNpWPo6Ns8chXVzxHPY+k9gpsubGTHy92Q26ecZULd/dTkWWdnvfhRqttsSQ9Pe/XQdi5+hDQ6RYcg==} + '@ast-grep/napi-linux-x64-musl@0.45.3': + resolution: {integrity: sha512-09wJQKq86LqILqQtw0+X09SzhcPwUnMVFKyia7S3XLbLqSeQpAMF55Y+zll53JRQ1dCzFEZJyvTT/7j9vwfE3w==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@ast-grep/napi-win32-arm64-msvc@0.40.5': - resolution: {integrity: sha512-y95zSEwc7vhxmcrcH0GnK4ZHEBQrmrszRBNQovzaciF9GUqEcCACNLoBesn4V47IaOp4fYgD2/EhGRTIBFb2Ug==} + '@ast-grep/napi-win32-arm64-msvc@0.45.3': + resolution: {integrity: sha512-/HiVgw2cdtzXLDLoG4eBBcauekNXewfagy7qiVbjkVu/KcCH8dJ9lpj8DzeWwuBNtZxuD8jpiwP0M1pz3Bc3uw==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@ast-grep/napi-win32-ia32-msvc@0.40.5': - resolution: {integrity: sha512-K/u8De62iUnFCzVUs7FBdTZ2Jrgc5/DLHqjpup66KxZ7GIM9/HGME/O8aSoPkpcAeCD4TiTZ11C1i5p5H98hTg==} + '@ast-grep/napi-win32-ia32-msvc@0.45.3': + resolution: {integrity: sha512-/gwJrJQUw65uNtAFcG2rtSTr117Gqqy3bfjaljCPKsa65dTeRcMMnjKLlZ6V9/g8z+4Xf78kdhp5ECbir4yfSw==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] - '@ast-grep/napi-win32-x64-msvc@0.40.5': - resolution: {integrity: sha512-dqm5zg/o4Nh4VOQPEpMS23ot8HVd22gG0eg01t4CFcZeuzyuSgBlOL3N7xLbz3iH2sVkk7keuBwAzOIpTqziNQ==} + '@ast-grep/napi-win32-x64-msvc@0.45.3': + resolution: {integrity: sha512-CEZAMAsaDoQoVE3MT2c/ry3/ydfyaqlTjxv8DK5PG355SrdAYPgevGC2Me6tz4dhphJin89Y20VsnrS5UrYV5Q==} engines: {node: '>= 10'} cpu: [x64] os: [win32] - '@ast-grep/napi@0.40.5': - resolution: {integrity: sha512-hJA62OeBKUQT68DD2gDyhOqJxZxycqg8wLxbqjgqSzYttCMSDL9tiAQ9abgekBYNHudbJosm9sWOEbmCDfpX2A==} + '@ast-grep/napi@0.45.3': + resolution: {integrity: sha512-bjJsUt0g3UCwbn9bjv7MnoR15rszSm79yPCXn4DWWK0NuYUUqBU/srtNMR4WnpfR7TnfBRdYFoqSNx0pGCNWJg==} engines: {node: '>= 10'} '@auth/core@0.41.0': @@ -1456,15 +1456,21 @@ packages: resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==} engines: {node: '>=10.0.0'} - '@dotenvx/dotenvx@1.31.0': - resolution: {integrity: sha512-GeDxvtjiRuoyWVU9nQneId879zIyNdL05bS7RKiqMkfBSKpHMWHLoRyRqjYWLaXmX/llKO1hTlqHDmatkQAjPA==} + '@dotenvx/dotenvx@2.38.2': + resolution: {integrity: sha512-+tjy8o//H+ZkRfRWLh08UkLHCw/e74uIV27QOZ3RxKwXvGrxjEcQMfUvQJzkvK/qNTk/OsE1MlGiDB6iL+1X0g==} hasBin: true - '@ecies/ciphers@0.2.4': - resolution: {integrity: sha512-t+iX+Wf5nRKyNzk8dviW3Ikb/280+aEJAnw9YXvCp2tYGPSkMki+NRY+8aNLmVFv3eNtMdvViPNOPxS8SZNP+w==} - engines: {bun: '>=1', deno: '>=2', node: '>=16'} - peerDependencies: - '@noble/ciphers': ^1.0.0 + '@dotenvx/primitives@3.3.1': + resolution: {integrity: sha512-ykX29rVnHwwV6m3AMmvR+niFSwhOG2TYttJjURz3n/3iHtpWC8gEptojYY+eHgBAV4fkaGRM1Rf0wgQ6/DeUYQ==} + + '@dotenvx/primitives@4.3.0': + resolution: {integrity: sha512-yTtZaVQt7DYnOaCm9BzhoTytGDAL5j49HCoFd9Vt/UlEFVSbkTEPHd23QmlPARYEqsJSUZEx43Avw9oQrWJINg==} + + '@dotenvx/providers@0.3.13': + resolution: {integrity: sha512-fF39zRYFyukQtjZJ8VyrAl6zsZo7t20ZD55QK+yN7VPS5gmEVHoIHwzNZGQHJDNA5A3evWiGM6547egI/sWahQ==} + + '@dotenvx/tooling@1.0.6': + resolution: {integrity: sha512-d1AhKqlprzjR7+/7YTYbf9lTjeIUxr2WN+gYL5jf9O25wymlVWzuwOujq9IWJOt33sGWcLjr1eswSOmqm4SRMg==} '@emnapi/core@1.3.1': resolution: {integrity: sha512-pVGjBIt1Y6gg3EJN8jTcfpP/+uuRksIo055oE/OBkDNcjZqVbfkWCksG1Jp4yZnj3iKWyWX8fdG/j6UDYPbFog==} @@ -1482,12 +1488,6 @@ packages: resolution: {integrity: sha512-xjZTSFgECpb9Ohuk5yMX5RhUEbfeQcuOp8IF60e+wyzWEF0M5xeSgqsfLtvPEX8BIyOX9saZqzuGPmZ8oWc+5Q==} engines: {node: '>=16'} - '@esbuild/aix-ppc64@0.25.4': - resolution: {integrity: sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - '@esbuild/aix-ppc64@0.25.6': resolution: {integrity: sha512-ShbM/3XxwuxjFiuVBHA+d3j5dyac0aEVVq1oluIDf71hUw0aRF59dV/efUsIwFnR6m8JNM2FjZOzmaZ8yG61kw==} engines: {node: '>=18'} @@ -1500,11 +1500,11 @@ packages: cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.25.4': - resolution: {integrity: sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==} + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} engines: {node: '>=18'} - cpu: [arm64] - os: [android] + cpu: [ppc64] + os: [aix] '@esbuild/android-arm64@0.25.6': resolution: {integrity: sha512-hd5zdUarsK6strW+3Wxi5qWws+rJhCCbMiC9QZyzoxfk5uHRIE8T287giQxzVpEvCwuJ9Qjg6bEjcRJcgfLqoA==} @@ -1518,10 +1518,10 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm@0.25.4': - resolution: {integrity: sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==} + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} engines: {node: '>=18'} - cpu: [arm] + cpu: [arm64] os: [android] '@esbuild/android-arm@0.25.6': @@ -1536,10 +1536,10 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-x64@0.25.4': - resolution: {integrity: sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==} + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} engines: {node: '>=18'} - cpu: [x64] + cpu: [arm] os: [android] '@esbuild/android-x64@0.25.6': @@ -1554,11 +1554,11 @@ packages: cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.25.4': - resolution: {integrity: sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==} + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] + cpu: [x64] + os: [android] '@esbuild/darwin-arm64@0.25.6': resolution: {integrity: sha512-FFCssz3XBavjxcFxKsGy2DYK5VSvJqa6y5HXljKzhRZ87LvEi13brPrf/wdyl/BbpbMKJNOr1Sd0jtW4Ge1pAA==} @@ -1572,10 +1572,10 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.25.4': - resolution: {integrity: sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==} + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} engines: {node: '>=18'} - cpu: [x64] + cpu: [arm64] os: [darwin] '@esbuild/darwin-x64@0.25.6': @@ -1590,11 +1590,11 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.25.4': - resolution: {integrity: sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==} + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] + cpu: [x64] + os: [darwin] '@esbuild/freebsd-arm64@0.25.6': resolution: {integrity: sha512-aoLF2c3OvDn2XDTRvn8hN6DRzVVpDlj2B/F66clWd/FHLiHaG3aVZjxQX2DYphA5y/evbdGvC6Us13tvyt4pWg==} @@ -1608,10 +1608,10 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.25.4': - resolution: {integrity: sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==} + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} engines: {node: '>=18'} - cpu: [x64] + cpu: [arm64] os: [freebsd] '@esbuild/freebsd-x64@0.25.6': @@ -1626,11 +1626,11 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.25.4': - resolution: {integrity: sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==} + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} engines: {node: '>=18'} - cpu: [arm64] - os: [linux] + cpu: [x64] + os: [freebsd] '@esbuild/linux-arm64@0.25.6': resolution: {integrity: sha512-b967hU0gqKd9Drsh/UuAm21Khpoh6mPBSgz8mKRq4P5mVK8bpA+hQzmm/ZwGVULSNBzKdZPQBRT3+WuVavcWsQ==} @@ -1644,10 +1644,10 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.25.4': - resolution: {integrity: sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==} + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} engines: {node: '>=18'} - cpu: [arm] + cpu: [arm64] os: [linux] '@esbuild/linux-arm@0.25.6': @@ -1662,10 +1662,10 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.25.4': - resolution: {integrity: sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==} + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} engines: {node: '>=18'} - cpu: [ia32] + cpu: [arm] os: [linux] '@esbuild/linux-ia32@0.25.6': @@ -1680,10 +1680,10 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.25.4': - resolution: {integrity: sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==} + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} engines: {node: '>=18'} - cpu: [loong64] + cpu: [ia32] os: [linux] '@esbuild/linux-loong64@0.25.6': @@ -1698,10 +1698,10 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.25.4': - resolution: {integrity: sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==} + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} engines: {node: '>=18'} - cpu: [mips64el] + cpu: [loong64] os: [linux] '@esbuild/linux-mips64el@0.25.6': @@ -1716,10 +1716,10 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.25.4': - resolution: {integrity: sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==} + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} engines: {node: '>=18'} - cpu: [ppc64] + cpu: [mips64el] os: [linux] '@esbuild/linux-ppc64@0.25.6': @@ -1734,10 +1734,10 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.25.4': - resolution: {integrity: sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==} + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} engines: {node: '>=18'} - cpu: [riscv64] + cpu: [ppc64] os: [linux] '@esbuild/linux-riscv64@0.25.6': @@ -1752,10 +1752,10 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.25.4': - resolution: {integrity: sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==} + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} engines: {node: '>=18'} - cpu: [s390x] + cpu: [riscv64] os: [linux] '@esbuild/linux-s390x@0.25.6': @@ -1770,10 +1770,10 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.25.4': - resolution: {integrity: sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==} + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} engines: {node: '>=18'} - cpu: [x64] + cpu: [s390x] os: [linux] '@esbuild/linux-x64@0.25.6': @@ -1788,11 +1788,11 @@ packages: cpu: [x64] os: [linux] - '@esbuild/netbsd-arm64@0.25.4': - resolution: {integrity: sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==} + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] + cpu: [x64] + os: [linux] '@esbuild/netbsd-arm64@0.25.6': resolution: {integrity: sha512-IjA+DcwoVpjEvyxZddDqBY+uJ2Snc6duLpjmkXm/v4xuS3H+3FkLZlDm9ZsAbF9rsfP3zeA0/ArNDORZgrxR/Q==} @@ -1806,10 +1806,10 @@ packages: cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-x64@0.25.4': - resolution: {integrity: sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==} + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} engines: {node: '>=18'} - cpu: [x64] + cpu: [arm64] os: [netbsd] '@esbuild/netbsd-x64@0.25.6': @@ -1824,11 +1824,11 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.25.4': - resolution: {integrity: sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==} + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] + cpu: [x64] + os: [netbsd] '@esbuild/openbsd-arm64@0.25.6': resolution: {integrity: sha512-l8ZCvXP0tbTJ3iaqdNf3pjaOSd5ex/e6/omLIQCVBLmHTlfXW3zAxQ4fnDmPLOB1x9xrcSi/xtCWFwCZRIaEwg==} @@ -1842,10 +1842,10 @@ packages: cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-x64@0.25.4': - resolution: {integrity: sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==} + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} engines: {node: '>=18'} - cpu: [x64] + cpu: [arm64] os: [openbsd] '@esbuild/openbsd-x64@0.25.6': @@ -1860,6 +1860,12 @@ packages: cpu: [x64] os: [openbsd] + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + '@esbuild/openharmony-arm64@0.25.6': resolution: {integrity: sha512-+SqBcAWoB1fYKmpWoQP4pGtx+pUUC//RNYhFdbcSA16617cchuryuhOCRpPsjCblKukAckWsV+aQ3UKT/RMPcA==} engines: {node: '>=18'} @@ -1872,11 +1878,11 @@ packages: cpu: [arm64] os: [openharmony] - '@esbuild/sunos-x64@0.25.4': - resolution: {integrity: sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==} + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} engines: {node: '>=18'} - cpu: [x64] - os: [sunos] + cpu: [arm64] + os: [openharmony] '@esbuild/sunos-x64@0.25.6': resolution: {integrity: sha512-dyCGxv1/Br7MiSC42qinGL8KkG4kX0pEsdb0+TKhmJZgCUDBGmyo1/ArCjNGiOLiIAgdbWgmWgib4HoCi5t7kA==} @@ -1890,11 +1896,11 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.25.4': - resolution: {integrity: sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==} + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} engines: {node: '>=18'} - cpu: [arm64] - os: [win32] + cpu: [x64] + os: [sunos] '@esbuild/win32-arm64@0.25.6': resolution: {integrity: sha512-42QOgcZeZOvXfsCBJF5Afw73t4veOId//XD3i+/9gSkhSV6Gk3VPlWncctI+JcOyERv85FUo7RxuxGy+z8A43Q==} @@ -1908,10 +1914,10 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.25.4': - resolution: {integrity: sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==} + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} engines: {node: '>=18'} - cpu: [ia32] + cpu: [arm64] os: [win32] '@esbuild/win32-ia32@0.25.6': @@ -1926,10 +1932,10 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.25.4': - resolution: {integrity: sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==} + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} engines: {node: '>=18'} - cpu: [x64] + cpu: [ia32] os: [win32] '@esbuild/win32-x64@0.25.6': @@ -1944,6 +1950,12 @@ packages: cpu: [x64] os: [win32] + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@eslint-community/eslint-utils@4.5.1': resolution: {integrity: sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2089,8 +2101,8 @@ packages: cpu: [arm64] os: [darwin] - '@img/sharp-darwin-arm64@0.35.4': - resolution: {integrity: sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA==} + '@img/sharp-darwin-arm64@0.35.5': + resolution: {integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [darwin] @@ -2101,8 +2113,8 @@ packages: cpu: [x64] os: [darwin] - '@img/sharp-darwin-x64@0.35.4': - resolution: {integrity: sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw==} + '@img/sharp-darwin-x64@0.35.5': + resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} engines: {node: '>=20.9.0'} cpu: [x64] os: [darwin] @@ -2112,8 +2124,8 @@ packages: engines: {node: '>=20.9.0'} os: [freebsd] - '@img/sharp-freebsd-wasm32@0.35.4': - resolution: {integrity: sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA==} + '@img/sharp-freebsd-wasm32@0.35.5': + resolution: {integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==} engines: {node: '>=20.9.0'} os: [freebsd] @@ -2122,8 +2134,8 @@ packages: cpu: [arm64] os: [darwin] - '@img/sharp-libvips-darwin-arm64@1.3.3': - resolution: {integrity: sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg==} + '@img/sharp-libvips-darwin-arm64@1.3.4': + resolution: {integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==} cpu: [arm64] os: [darwin] @@ -2132,8 +2144,8 @@ packages: cpu: [x64] os: [darwin] - '@img/sharp-libvips-darwin-x64@1.3.3': - resolution: {integrity: sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw==} + '@img/sharp-libvips-darwin-x64@1.3.4': + resolution: {integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==} cpu: [x64] os: [darwin] @@ -2142,8 +2154,8 @@ packages: cpu: [arm64] os: [linux] - '@img/sharp-libvips-linux-arm64@1.3.3': - resolution: {integrity: sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A==} + '@img/sharp-libvips-linux-arm64@1.3.4': + resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==} cpu: [arm64] os: [linux] @@ -2152,8 +2164,8 @@ packages: cpu: [arm] os: [linux] - '@img/sharp-libvips-linux-arm@1.3.3': - resolution: {integrity: sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA==} + '@img/sharp-libvips-linux-arm@1.3.4': + resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==} cpu: [arm] os: [linux] @@ -2162,8 +2174,8 @@ packages: cpu: [ppc64] os: [linux] - '@img/sharp-libvips-linux-ppc64@1.3.3': - resolution: {integrity: sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w==} + '@img/sharp-libvips-linux-ppc64@1.3.4': + resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==} cpu: [ppc64] os: [linux] @@ -2172,8 +2184,8 @@ packages: cpu: [riscv64] os: [linux] - '@img/sharp-libvips-linux-riscv64@1.3.3': - resolution: {integrity: sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ==} + '@img/sharp-libvips-linux-riscv64@1.3.4': + resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==} cpu: [riscv64] os: [linux] @@ -2182,8 +2194,8 @@ packages: cpu: [s390x] os: [linux] - '@img/sharp-libvips-linux-s390x@1.3.3': - resolution: {integrity: sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q==} + '@img/sharp-libvips-linux-s390x@1.3.4': + resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==} cpu: [s390x] os: [linux] @@ -2192,8 +2204,8 @@ packages: cpu: [x64] os: [linux] - '@img/sharp-libvips-linux-x64@1.3.3': - resolution: {integrity: sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA==} + '@img/sharp-libvips-linux-x64@1.3.4': + resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==} cpu: [x64] os: [linux] @@ -2202,8 +2214,8 @@ packages: cpu: [arm64] os: [linux] - '@img/sharp-libvips-linuxmusl-arm64@1.3.3': - resolution: {integrity: sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw==} + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==} cpu: [arm64] os: [linux] @@ -2212,8 +2224,8 @@ packages: cpu: [x64] os: [linux] - '@img/sharp-libvips-linuxmusl-x64@1.3.3': - resolution: {integrity: sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw==} + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==} cpu: [x64] os: [linux] @@ -2223,8 +2235,8 @@ packages: cpu: [arm64] os: [linux] - '@img/sharp-linux-arm64@0.35.4': - resolution: {integrity: sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ==} + '@img/sharp-linux-arm64@0.35.5': + resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] @@ -2235,8 +2247,8 @@ packages: cpu: [arm] os: [linux] - '@img/sharp-linux-arm@0.35.4': - resolution: {integrity: sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A==} + '@img/sharp-linux-arm@0.35.5': + resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==} engines: {node: '>=20.9.0'} cpu: [arm] os: [linux] @@ -2247,8 +2259,8 @@ packages: cpu: [ppc64] os: [linux] - '@img/sharp-linux-ppc64@0.35.4': - resolution: {integrity: sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ==} + '@img/sharp-linux-ppc64@0.35.5': + resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==} engines: {node: '>=20.9.0'} cpu: [ppc64] os: [linux] @@ -2259,8 +2271,8 @@ packages: cpu: [riscv64] os: [linux] - '@img/sharp-linux-riscv64@0.35.4': - resolution: {integrity: sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA==} + '@img/sharp-linux-riscv64@0.35.5': + resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==} engines: {node: '>=20.9.0'} cpu: [riscv64] os: [linux] @@ -2271,8 +2283,8 @@ packages: cpu: [s390x] os: [linux] - '@img/sharp-linux-s390x@0.35.4': - resolution: {integrity: sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ==} + '@img/sharp-linux-s390x@0.35.5': + resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==} engines: {node: '>=20.9.0'} cpu: [s390x] os: [linux] @@ -2283,8 +2295,8 @@ packages: cpu: [x64] os: [linux] - '@img/sharp-linux-x64@0.35.4': - resolution: {integrity: sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA==} + '@img/sharp-linux-x64@0.35.5': + resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==} engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] @@ -2295,8 +2307,8 @@ packages: cpu: [arm64] os: [linux] - '@img/sharp-linuxmusl-arm64@0.35.4': - resolution: {integrity: sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA==} + '@img/sharp-linuxmusl-arm64@0.35.5': + resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] @@ -2307,8 +2319,8 @@ packages: cpu: [x64] os: [linux] - '@img/sharp-linuxmusl-x64@0.35.4': - resolution: {integrity: sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg==} + '@img/sharp-linuxmusl-x64@0.35.5': + resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==} engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] @@ -2317,8 +2329,8 @@ packages: resolution: {integrity: sha512-Mrv4JQNYVQ94xH+jzZ9r+gowleN8mv2FTgKT+PI6bx5C0G8TdNYndu161pg2i7uoBwxy2ImPMHrJOM2LZef7Bw==} engines: {node: '>=20.9.0'} - '@img/sharp-wasm32@0.35.4': - resolution: {integrity: sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==} + '@img/sharp-wasm32@0.35.5': + resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==} engines: {node: '>=20.9.0'} '@img/sharp-webcontainers-wasm32@0.35.2': @@ -2326,8 +2338,8 @@ packages: engines: {node: '>=20.9.0'} cpu: [wasm32] - '@img/sharp-webcontainers-wasm32@0.35.4': - resolution: {integrity: sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA==} + '@img/sharp-webcontainers-wasm32@0.35.5': + resolution: {integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==} engines: {node: '>=20.9.0'} cpu: [wasm32] @@ -2337,8 +2349,8 @@ packages: cpu: [arm64] os: [win32] - '@img/sharp-win32-arm64@0.35.4': - resolution: {integrity: sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw==} + '@img/sharp-win32-arm64@0.35.5': + resolution: {integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [win32] @@ -2349,8 +2361,8 @@ packages: cpu: [ia32] os: [win32] - '@img/sharp-win32-ia32@0.35.4': - resolution: {integrity: sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw==} + '@img/sharp-win32-ia32@0.35.5': + resolution: {integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==} engines: {node: ^20.9.0} cpu: [ia32] os: [win32] @@ -2361,8 +2373,8 @@ packages: cpu: [x64] os: [win32] - '@img/sharp-win32-x64@0.35.4': - resolution: {integrity: sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg==} + '@img/sharp-win32-x64@0.35.5': + resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} engines: {node: '>=20.9.0'} cpu: [x64] os: [win32] @@ -2632,8 +2644,8 @@ packages: '@next/bundle-analyzer@16.1.6': resolution: {integrity: sha512-ee2kagdTaeEWPlotgdTOqFHYcD3e2m2bbE3I9Rq2i6ABYi5OgopmtEUe8NM23viaYxLV2tDH/2nd5+qKoEr6cw==} - '@next/env@16.3.4': - resolution: {integrity: sha512-cjWZnUUa6jZq2kFaNe/ZyJdZonOZ/QoN0Zka2nz/FLOrfx14pQuM9c5RaSVkWMqgdt4ksgPAMWPyHSs/CyV48Q==} + '@next/env@16.4.3': + resolution: {integrity: sha512-a7tz1QCcWWkwC/rPJcPMJk/UNRu9CFhDd3OHYE5hddbJrs8BqRTalxI6GlKCWEGzRLHN+S/B7a4PAHCtm25aBQ==} '@next/eslint-plugin-next@15.3.3': resolution: {integrity: sha512-VKZJEiEdpKkfBmcokGjHu0vGDG+8CehGs90tBEy/IDoDDKGngeyIStt2MmE5FYNyU9BhgR7tybNWTAJY/30u+Q==} @@ -2641,77 +2653,69 @@ packages: '@next/eslint-plugin-next@15.5.10': resolution: {integrity: sha512-fDpxcy6G7Il4lQVVsaJD0fdC2/+SmuBGTF+edRLlsR4ZFOE3W2VyzrrGYdg/pHW8TydeAdSVM+mIzITGtZ3yWA==} - '@next/swc-darwin-arm64@16.3.4': - resolution: {integrity: sha512-iBr3I5LZNk5/bgl5//iTgD2tcym14MX0Xo7fD//u9dYAEgGzza1y9oywluPtf74YnOswVdH1908aK9xVz7zQTw==} + '@next/swc-darwin-arm64@16.4.3': + resolution: {integrity: sha512-4yq5EXBt+VDtAZwTyfijaFp5D2C5oz3Ikw5a2kiX2K9nw72vrZX2q5UuAlkPtUMO1tQz6JTKpaKWjS7OOefTDQ==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@next/swc-darwin-x64@16.3.4': - resolution: {integrity: sha512-2dpiSyl2Jw/NrBPaU2MAKGSa+2MR82pJIn4Sm5Rjr+gxAeuh0z158Su3Z2O8zn7UNNq+ej4bToed6RcRN/Lydg==} + '@next/swc-darwin-x64@16.4.3': + resolution: {integrity: sha512-1Rvkn/LUhnEF8WxnRkOrqGhbwXui1bkWFxONKIbN+r7C+9KHDSZ+iUoj4CzymVMWUyZIyx9szcb9+kbKhD500A==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@next/swc-linux-arm64-gnu@16.3.4': - resolution: {integrity: sha512-+t+U8HZT+fApePCS5h89CSH3datz29MkzyfCn+6fpsZBG/oiEOhINcb9rtkv6sdpToLGFn2e6146NzaKCXkqrA==} + '@next/swc-linux-arm64-gnu@16.4.3': + resolution: {integrity: sha512-dCKpXErGg3abUM6t5JTJV/ottVBTStJB5lRJTbgdUdQaQ+jNHiK56Hsc0YAEg/rinSh42hYG3HWiYmEMdilnxg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-musl@16.3.4': - resolution: {integrity: sha512-mx03GNs1ocQA5JQ4FxDMmIsNkdrZh8cuezKCrId28e5/gIPU/l7Kcy2+vmCCzdjnnmXJy+iOAu+7K0QppO6Urg==} + '@next/swc-linux-arm64-musl@16.4.3': + resolution: {integrity: sha512-WwYbhWkhYBvBtib1K4W0kL8MW2snBD2A5b3SN4vPpqalZbZs5+bQ1yzAdepVoOqrFfEW3dmREy4Zs1MrWcrFbw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-x64-gnu@16.3.4': - resolution: {integrity: sha512-YIhGY6fSMfha52bnVxnzc9zaVBzJg+cqQTOD8tXIBSx4fuv0pVMxQTE0PaS59YhnMOiYiG09IMwxJAf/CFm/Dw==} + '@next/swc-linux-x64-gnu@16.4.3': + resolution: {integrity: sha512-QymWvfUwDEC5/lpJOsxX5VAbyoR2D13+2Jsjz4be7gT4LPqEgdpkeLIR/HFfCLgKzoMhpJbp6I/JnogyNZHcaA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-linux-x64-musl@16.3.4': - resolution: {integrity: sha512-+eaaX6axpDb0yF1GCpiERe6njplvdC+nks/fKfcHu3XPGRrald8P3/X7yv7QLdjA51knnxwl9pxdIJsg+w1L+Q==} + '@next/swc-linux-x64-musl@16.4.3': + resolution: {integrity: sha512-Vmjd9D7DpA4Vv3cUlr82QWgJD/BQZmns801vtC5VWHg6jCIA4a5vMKpQnfrM2pyCrp2eV0ENdUg4PlN3bAc2Yw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-win32-arm64-msvc@16.3.4': - resolution: {integrity: sha512-0jcXW7Xs/uzICrmgV3MhDYDeRy++1CqnpDIerlPIqYO4bhzB4WNbX/aRnQclustsAyTkFKB0z6rbcjmNg5tR8A==} + '@next/swc-win32-arm64-msvc@16.4.3': + resolution: {integrity: sha512-lG1pPdPLk7gTyGb00n5JIMLdBJgjb+UEhSdZvFbhUMg0DyC6z4B7RnpSKF9VCd4imkLObVbXOFA0kFCpw7yFow==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@next/swc-win32-x64-msvc@16.3.4': - resolution: {integrity: sha512-vvBzwu1pYQCp92maZCFCIw/XgOTMR5tur9GjakwIo2cmwRTMKajRZZDS9+e4KsUZWKu1E007WUeAFXRRjZeuzw==} + '@next/swc-win32-x64-msvc@16.4.3': + resolution: {integrity: sha512-NmQC9RkJdnPXRaMxtkCzobB3teVjqF33oSOnwDfi+XYGWWYpt+xlGK3mtktSKLbdjwaWbJu2OkkMiRFGUUncKg==} engines: {node: '>= 10'} cpu: [x64] os: [win32] - '@noble/ciphers@1.3.0': - resolution: {integrity: sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==} - engines: {node: ^14.21.3 || >=16} - - '@noble/curves@1.9.7': - resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==} - engines: {node: ^14.21.3 || >=16} - '@noble/hashes@1.8.0': resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} engines: {node: ^14.21.3 || >=16} - '@node-minify/core@8.0.6': - resolution: {integrity: sha512-/vxN46ieWDLU67CmgbArEvOb41zlYFOkOtr9QW9CnTrBLuTyGgkyNWC2y5+khvRw3Br58p2B5ZVSx/PxCTru6g==} - engines: {node: '>=16.0.0'} + '@node-minify/core@9.0.2': + resolution: {integrity: sha512-FNhv29Wom6wKrrFKaeAfmZqz7TX5A1E6P+bpd0VIc+DYWMLUIhAViS8riaZg3A1oD0s06s+5BG2Fg7RqMKiKHw==} + engines: {node: '>=18.0.0'} - '@node-minify/terser@8.0.6': - resolution: {integrity: sha512-grQ1ipham743ch2c3++C8Isk6toJnxJSyDiwUI/IWUCh4CZFD6aYVw6UAY40IpCnjrq5aXGwiv5OZJn6Pr0hvg==} - engines: {node: '>=16.0.0'} + '@node-minify/terser@9.0.1': + resolution: {integrity: sha512-WF78Ex+/xNZZDYvzwB7+sLUYQbJzyyS36ZjMhVqhORejHOsoOcTjQ9TdOgKZoY7wlfxjnLxeMKkO8R/R1KL9aQ==} + engines: {node: '>=18.0.0'} - '@node-minify/utils@8.0.6': - resolution: {integrity: sha512-csY4qcR7jUwiZmkreNTJhcypQfts2aY2CK+a+rXgXUImZiZiySh0FvwHjRnlqWKvg+y6ae9lHFzDRjBTmqlTIQ==} - engines: {node: '>=16.0.0'} + '@node-minify/utils@9.0.1': + resolution: {integrity: sha512-aC1+mhKTP3IMa2VcuGl3ui92LO/7CPQWldNGzu3BVGKiMNJ70AKJW/R6huuYCSuQyHDGM9oFwiVClsZnFxn67g==} + engines: {node: '>=18.0.0'} '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -2738,19 +2742,23 @@ packages: '@open-draft/until@2.1.0': resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==} - '@opennextjs/aws@4.1.4': - resolution: {integrity: sha512-L5Yle38qg6p1DY3yS8FXO2840pXW5XlAR6XM71TtIYs0Kh7eQE/a+j4T/DR+VgUQSxbAWw3J2Wnar08xPhOS+w==} + '@opennextjs/aws@4.1.14': + resolution: {integrity: sha512-jV+rxEi5dNxnQbKBftWuIppVvemMrbfaUj0tXINJMEzX7crk1pkmsMwudgk2kgyak1T03/GSMSEpE8nzOKrkDA==} hasBin: true peerDependencies: - next: '>=15.5.24 <16 || >=16.3.3' + diff: ^9.0.0 + next: '>=15.5.28 <16 || >=16.4.1' + peerDependenciesMeta: + diff: + optional: true - '@opennextjs/cloudflare@1.20.6': - resolution: {integrity: sha512-Jxa+Uv72uBMp4JHNMDFuZ5C0ypcnQUmpsp0+aNGfSw6ssb2Hqosk2ebadyvYyh7BkDwcxMkHXGdyJen3Sq0UAw==} + '@opennextjs/cloudflare@1.20.15': + resolution: {integrity: sha512-Ft7GdS3oDnZ5cZpAowSqpFsjHuZCZ9zBcTjJwYeJGa7Uq32JG3DOlLXh8GW+gsMVWXTz8YTL20sMxG1u+k4NwQ==} hasBin: true peerDependencies: - next: '>=15.5.24 <16 || >=16.3.3' + next: '>=15.5.28 <16 || >=16.4.1' rclone.js: ^0.6.6 - wrangler: ^4.125.0 + wrangler: ^4.148.0 peerDependenciesMeta: rclone.js: optional: true @@ -4342,8 +4350,8 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - '@tsconfig/node18@1.0.3': - resolution: {integrity: sha512-RbwvSJQsuN9TB04AQbGULYfOGE/RnSFk/FLQ5b0NmDf5Kx2q/lABZbHQPKCO1vZ6Fiwkplu+yb9pGdLy1iGseQ==} + '@tsconfig/node18@18.2.7': + resolution: {integrity: sha512-UyenTORreCUh8MKh2qbLGGHTRrxjBbSwvX0ZoWs6Jx1jrNS62PXEA3+VaLvmb0YDQrgGU3v3h7zB9Xs/BN1ozg==} '@tybys/wasm-util@0.9.0': resolution: {integrity: sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==} @@ -4854,6 +4862,10 @@ packages: resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} engines: {node: '>=12'} + ansi-regex@6.5.0: + resolution: {integrity: sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ==} + engines: {node: '>=12'} + ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -5322,10 +5334,6 @@ packages: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} - commander@11.1.0: - resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} - engines: {node: '>=16'} - commander@14.0.0: resolution: {integrity: sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA==} engines: {node: '>=20'} @@ -5416,6 +5424,10 @@ packages: resolution: {integrity: sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==} engines: {node: '>=18'} + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + copy-anything@3.0.5: resolution: {integrity: sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==} engines: {node: '>=12.13'} @@ -5857,10 +5869,6 @@ packages: eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - eciesjs@0.4.15: - resolution: {integrity: sha512-r6kEJXDKecVOCj2nLMuXK/FCPeurW33+3JRpfXVbjLja3XUYFfD9I/JBreH6sUyzcm3G/YQboBjMla6poKeSdA==} - engines: {bun: '>=1', deno: '>=2', node: '>=16'} - ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} @@ -5990,11 +5998,6 @@ packages: resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==} engines: {node: '>= 0.4'} - esbuild@0.25.4: - resolution: {integrity: sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==} - engines: {node: '>=18'} - hasBin: true - esbuild@0.25.6: resolution: {integrity: sha512-GVuzuUwtdsghE3ocJ9Bs8PNoF13HNQ5TXbEi2AhvVb8xU1Iwt9Fos9FEamfoee+u/TOsn7GUWc04lz46n2bbTg==} engines: {node: '>=18'} @@ -6005,6 +6008,11 @@ packages: engines: {node: '>=18'} hasBin: true + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} + engines: {node: '>=18'} + hasBin: true + escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -6502,6 +6510,10 @@ packages: resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==} engines: {node: '>=18'} + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + get-intrinsic@1.3.0: resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} engines: {node: '>= 0.4'} @@ -6563,25 +6575,25 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} + glob@10.3.3: + resolution: {integrity: sha512-92vPiMb/iqpmEgsOoIDvTjc50wf9CCCvMzsi6W0JLPeUKE8TWP1a73PgqSrqy7iAZxaSD1YdzU7QZR5LF51MJw==} + engines: {node: '>=16 || 14 >=14.17'} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + hasBin: true + glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true - glob@12.0.0: - resolution: {integrity: sha512-5Qcll1z7IKgHr5g485ePDdHcNQY0k2dtv/bjYy0iuyGxQw2qSOiiXUXJ+AYQpg3HNoUMHqAruX478Jeev7UULw==} - engines: {node: 20 || >=22} - hasBin: true + glob@13.0.6: + resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} + engines: {node: 18 || 20 || >=22} glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - glob@9.3.5: - resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} - engines: {node: '>=16 || 14 >=14.17'} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - globals@11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} engines: {node: '>=4'} @@ -7022,10 +7034,6 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - isexe@3.1.1: - resolution: {integrity: sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==} - engines: {node: '>=16'} - isomorphic-fetch@3.0.0: resolution: {integrity: sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==} @@ -7061,13 +7069,13 @@ packages: resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==} engines: {node: '>= 0.4'} + jackspeak@2.3.6: + resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} + engines: {node: '>=14'} + jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - jackspeak@4.1.1: - resolution: {integrity: sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==} - engines: {node: 20 || >=22} - jest-changed-files@29.7.0: resolution: {integrity: sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -7335,8 +7343,8 @@ packages: launch-editor@2.10.0: resolution: {integrity: sha512-D7dBRJo/qcGX9xlvt/6wUYzQxjh5G1RvZPgPv8vi4KRU99DVQL/oW7tnVOCCTm2HGeo3C5HvGE5Yrh6UBoZ0vA==} - legacy-javascript@0.0.1: - resolution: {integrity: sha512-lPyntS4/aS7jpuvOlitZDFifBCb4W8L/3QU0PLbUTUj+zYah8rfVjYic88yG7ZKTxhS5h9iz7duT8oUXKszLhg==} + legacy-javascript@0.0.4: + resolution: {integrity: sha512-UTmeKBVxnfJcpmpOvzzNnLsQT99BXHpPlc/ZKddIRmWmrR0fw6335I3lq4+sJoP60UTbBNaYsGYVPc65YB1x3A==} leven@3.1.0: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} @@ -7645,10 +7653,6 @@ packages: minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - minimatch@8.0.4: - resolution: {integrity: sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==} - engines: {node: '>=16 || 14 >=14.17'} - minimatch@9.0.5: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} @@ -7656,14 +7660,14 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minipass@4.2.8: - resolution: {integrity: sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==} - engines: {node: '>=8'} - minipass@7.1.2: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + minizlib@3.1.0: resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} engines: {node: '>= 18'} @@ -7671,8 +7675,8 @@ packages: mitt@3.0.1: resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} - mkdirp@1.0.4: - resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} + mkdirp@3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} engines: {node: '>=10'} hasBin: true @@ -7774,8 +7778,8 @@ packages: typescript: optional: true - next@16.3.4: - resolution: {integrity: sha512-/Ztf6CeRH+ejEXUrYtqI4gkS66eFIHuSwqi60RgcpWKodxFZx2/dqVCMKBwILfAHXQ+F1b1vAudgj3mnxqtoIA==} + next@16.4.3: + resolution: {integrity: sha512-OqxKTGi9u80FydydsMNYNjnuje9Au+kvHlt2GZ//ftdpDHm1dxKqAaENoOOTX5wKzn+9vaKUNIfZeyZUuLhCnA==} engines: {node: '>=20.9.0'} hasBin: true peerDependencies: @@ -7909,10 +7913,6 @@ packages: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} - object-treeify@1.1.33: - resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==} - engines: {node: '>= 10'} - object.assign@4.1.7: resolution: {integrity: sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==} engines: {node: '>= 0.4'} @@ -8102,9 +8102,9 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} - path-scurry@2.0.0: - resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} - engines: {node: 20 || >=22} + path-scurry@2.0.2: + resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + engines: {node: 18 || 20 || >=22} path-to-regexp@6.3.0: resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} @@ -8895,8 +8895,8 @@ packages: resolution: {integrity: sha512-FVtFjtBCMiJS6yb5CX7Sop45WFMpeGw6oRKuJnXYgf/f1ms/D7LE/ZUSNxnW7rZ/dbslQWYkoqFHGPaDBtaK4w==} engines: {node: '>=20.9.0'} - sharp@0.35.4: - resolution: {integrity: sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==} + sharp@0.35.5: + resolution: {integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==} engines: {node: '>=20.9.0'} peerDependencies: '@types/node': '*' @@ -9113,6 +9113,10 @@ packages: resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} engines: {node: '>=18'} + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + string.prototype.includes@2.0.1: resolution: {integrity: sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==} engines: {node: '>= 0.4'} @@ -9147,6 +9151,10 @@ packages: resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} engines: {node: '>=12'} + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -9277,8 +9285,8 @@ packages: resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==} engines: {node: '>=8'} - terser@5.16.9: - resolution: {integrity: sha512-HPa/FdTB9XGI2H1/keLFZHxl6WNvAI4YalHGtDQTlMnJcoqSab1UwL4l1hGEhs6/GmLHBZIg/YgB++jcbzoOEg==} + terser@5.36.0: + resolution: {integrity: sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==} engines: {node: '>=10'} hasBin: true @@ -9309,8 +9317,8 @@ packages: third-party-web@0.26.6: resolution: {integrity: sha512-GsjP92xycMK8qLTcQCacgzvffYzEqe29wyz3zdKVXlfRD5Kz1NatCTOZEeDaSd6uCZXvGd2CNVtQ89RNIhJWvA==} - third-party-web@0.29.2: - resolution: {integrity: sha512-fegtha91tq2DHphyoiBXVHjVi2YG9zFaRnboT9C28tO1en9Y3wJsfspuy40F+u5wl3hHVbw7cnd1b67kEGHb8g==} + third-party-web@0.30.0: + resolution: {integrity: sha512-p+PfyL5U0ediGzvwPzMSdD9MnC8rHW6nWJJVLIQvqN7RsSqfaZ+7n4c9GILqH36EYR0eXB9CzAeCRnKFr/9uJg==} through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} @@ -9644,6 +9652,10 @@ packages: resolution: {integrity: sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==} engines: {node: '>=18.17'} + undici@6.29.1: + resolution: {integrity: sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==} + engines: {node: '>=18.17'} + undici@7.29.0: resolution: {integrity: sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==} engines: {node: '>=20.18.1'} @@ -9935,11 +9947,6 @@ packages: engines: {node: '>= 8'} hasBin: true - which@4.0.0: - resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==} - engines: {node: ^16.13.0 || >=18.0.0} - hasBin: true - why-is-node-running@2.3.0: resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} @@ -9993,6 +10000,10 @@ packages: resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + write-file-atomic@5.0.1: + resolution: {integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + ws@7.5.10: resolution: {integrity: sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==} engines: {node: '>=8.3.0'} @@ -10056,8 +10067,8 @@ packages: engines: {node: '>= 14'} hasBin: true - yaml@2.8.1: - resolution: {integrity: sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==} + yaml@2.9.1: + resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==} engines: {node: '>= 14.6'} hasBin: true @@ -10073,8 +10084,8 @@ packages: resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} engines: {node: '>=12'} - yargs@18.0.0: - resolution: {integrity: sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==} + yargs@18.2.0: + resolution: {integrity: sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==} engines: {node: ^20.19.0 || ^22.12.0 || >=23} yauzl@2.10.0: @@ -10092,6 +10103,10 @@ packages: resolution: {integrity: sha512-VPX8P/+Z2Fnpx8PC/JELbxp3QRrBxjAekio6yulGtA5gKt9YyRc5ycCb+NHgZCbZ0kx9KxwZp7gC6UlrCcCdSQ==} engines: {node: '>=18.19'} + yocto-spinner@1.2.2: + resolution: {integrity: sha512-DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==} + engines: {node: '>=18.19'} + yoctocolors-cjs@2.1.2: resolution: {integrity: sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==} engines: {node: '>=18'} @@ -10167,44 +10182,44 @@ snapshots: lru-cache: 10.4.3 optional: true - '@ast-grep/napi-darwin-arm64@0.40.5': + '@ast-grep/napi-darwin-arm64@0.45.3': optional: true - '@ast-grep/napi-darwin-x64@0.40.5': + '@ast-grep/napi-darwin-x64@0.45.3': optional: true - '@ast-grep/napi-linux-arm64-gnu@0.40.5': + '@ast-grep/napi-linux-arm64-gnu@0.45.3': optional: true - '@ast-grep/napi-linux-arm64-musl@0.40.5': + '@ast-grep/napi-linux-arm64-musl@0.45.3': optional: true - '@ast-grep/napi-linux-x64-gnu@0.40.5': + '@ast-grep/napi-linux-x64-gnu@0.45.3': optional: true - '@ast-grep/napi-linux-x64-musl@0.40.5': + '@ast-grep/napi-linux-x64-musl@0.45.3': optional: true - '@ast-grep/napi-win32-arm64-msvc@0.40.5': + '@ast-grep/napi-win32-arm64-msvc@0.45.3': optional: true - '@ast-grep/napi-win32-ia32-msvc@0.40.5': + '@ast-grep/napi-win32-ia32-msvc@0.45.3': optional: true - '@ast-grep/napi-win32-x64-msvc@0.40.5': + '@ast-grep/napi-win32-x64-msvc@0.45.3': optional: true - '@ast-grep/napi@0.40.5': + '@ast-grep/napi@0.45.3': optionalDependencies: - '@ast-grep/napi-darwin-arm64': 0.40.5 - '@ast-grep/napi-darwin-x64': 0.40.5 - '@ast-grep/napi-linux-arm64-gnu': 0.40.5 - '@ast-grep/napi-linux-arm64-musl': 0.40.5 - '@ast-grep/napi-linux-x64-gnu': 0.40.5 - '@ast-grep/napi-linux-x64-musl': 0.40.5 - '@ast-grep/napi-win32-arm64-msvc': 0.40.5 - '@ast-grep/napi-win32-ia32-msvc': 0.40.5 - '@ast-grep/napi-win32-x64-msvc': 0.40.5 + '@ast-grep/napi-darwin-arm64': 0.45.3 + '@ast-grep/napi-darwin-x64': 0.45.3 + '@ast-grep/napi-linux-arm64-gnu': 0.45.3 + '@ast-grep/napi-linux-arm64-musl': 0.45.3 + '@ast-grep/napi-linux-x64-gnu': 0.45.3 + '@ast-grep/napi-linux-x64-musl': 0.45.3 + '@ast-grep/napi-win32-arm64-msvc': 0.45.3 + '@ast-grep/napi-win32-ia32-msvc': 0.45.3 + '@ast-grep/napi-win32-x64-msvc': 0.45.3 '@auth/core@0.41.0': dependencies: @@ -11102,11 +11117,11 @@ snapshots: neverthrow: 8.2.0 picocolors: 1.1.1 - '@c15t/nextjs@1.8.2(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.208.0(@opentelemetry/api@1.9.0))(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(@upstash/redis@1.35.0)(crossws@0.3.5)(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react-dom@19.1.7(react@19.1.7))(react@19.1.7)(typeorm@0.3.27(reflect-metadata@0.2.2)(ts-node@10.9.2(@swc/core@1.15.18(@swc/helpers@0.5.23))(@types/node@22.15.30)(typescript@5.8.3)))(use-sync-external-store@1.6.0(react@19.1.7))(ws@8.21.0)': + '@c15t/nextjs@1.8.2(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.208.0(@opentelemetry/api@1.9.0))(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(@upstash/redis@1.35.0)(crossws@0.3.5)(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react-dom@19.1.7(react@19.1.7))(react@19.1.7)(typeorm@0.3.27(reflect-metadata@0.2.2)(ts-node@10.9.2(@swc/core@1.15.18(@swc/helpers@0.5.23))(@types/node@22.15.30)(typescript@5.8.3)))(use-sync-external-store@1.6.0(react@19.1.7))(ws@8.21.0)': dependencies: '@c15t/react': 1.8.2(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.208.0(@opentelemetry/api@1.9.0))(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(@upstash/redis@1.35.0)(crossws@0.3.5)(react-dom@19.1.7(react@19.1.7))(react@19.1.7)(typeorm@0.3.27(reflect-metadata@0.2.2)(ts-node@10.9.2(@swc/core@1.15.18(@swc/helpers@0.5.23))(@types/node@22.15.30)(typescript@5.8.3)))(use-sync-external-store@1.6.0(react@19.1.7))(ws@8.21.0) '@c15t/translations': 1.8.0 - next: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + next: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) react: 19.1.7 react-dom: 19.1.7(react@19.1.7) transitivePeerDependencies: @@ -11679,21 +11694,25 @@ snapshots: '@discoveryjs/json-ext@0.5.7': {} - '@dotenvx/dotenvx@1.31.0': + '@dotenvx/dotenvx@2.38.2': dependencies: - commander: 11.1.0 - dotenv: 16.6.1 - eciesjs: 0.4.15 - execa: 5.1.1 - fdir: 6.4.6(picomatch@4.0.2) - ignore: 5.3.2 - object-treeify: 1.1.33 - picomatch: 4.0.2 - which: 4.0.0 + '@dotenvx/primitives': 3.3.1 + '@dotenvx/providers': 0.3.13 + '@dotenvx/tooling': 1.0.6 + undici: 6.29.1 + write-file-atomic: 5.0.1 + yocto-spinner: 1.2.2 + + '@dotenvx/primitives@3.3.1': {} - '@ecies/ciphers@0.2.4(@noble/ciphers@1.3.0)': + '@dotenvx/primitives@4.3.0': {} + + '@dotenvx/providers@0.3.13': dependencies: - '@noble/ciphers': 1.3.0 + '@dotenvx/primitives': 4.3.0 + '@dotenvx/tooling': 1.0.6 + + '@dotenvx/tooling@1.0.6': {} '@emnapi/core@1.3.1': dependencies: @@ -11722,16 +11741,13 @@ snapshots: esquery: 1.6.0 jsdoc-type-pratt-parser: 4.1.0 - '@esbuild/aix-ppc64@0.25.4': - optional: true - '@esbuild/aix-ppc64@0.25.6': optional: true '@esbuild/aix-ppc64@0.28.1': optional: true - '@esbuild/android-arm64@0.25.4': + '@esbuild/aix-ppc64@0.28.2': optional: true '@esbuild/android-arm64@0.25.6': @@ -11740,7 +11756,7 @@ snapshots: '@esbuild/android-arm64@0.28.1': optional: true - '@esbuild/android-arm@0.25.4': + '@esbuild/android-arm64@0.28.2': optional: true '@esbuild/android-arm@0.25.6': @@ -11749,7 +11765,7 @@ snapshots: '@esbuild/android-arm@0.28.1': optional: true - '@esbuild/android-x64@0.25.4': + '@esbuild/android-arm@0.28.2': optional: true '@esbuild/android-x64@0.25.6': @@ -11758,7 +11774,7 @@ snapshots: '@esbuild/android-x64@0.28.1': optional: true - '@esbuild/darwin-arm64@0.25.4': + '@esbuild/android-x64@0.28.2': optional: true '@esbuild/darwin-arm64@0.25.6': @@ -11767,7 +11783,7 @@ snapshots: '@esbuild/darwin-arm64@0.28.1': optional: true - '@esbuild/darwin-x64@0.25.4': + '@esbuild/darwin-arm64@0.28.2': optional: true '@esbuild/darwin-x64@0.25.6': @@ -11776,7 +11792,7 @@ snapshots: '@esbuild/darwin-x64@0.28.1': optional: true - '@esbuild/freebsd-arm64@0.25.4': + '@esbuild/darwin-x64@0.28.2': optional: true '@esbuild/freebsd-arm64@0.25.6': @@ -11785,7 +11801,7 @@ snapshots: '@esbuild/freebsd-arm64@0.28.1': optional: true - '@esbuild/freebsd-x64@0.25.4': + '@esbuild/freebsd-arm64@0.28.2': optional: true '@esbuild/freebsd-x64@0.25.6': @@ -11794,7 +11810,7 @@ snapshots: '@esbuild/freebsd-x64@0.28.1': optional: true - '@esbuild/linux-arm64@0.25.4': + '@esbuild/freebsd-x64@0.28.2': optional: true '@esbuild/linux-arm64@0.25.6': @@ -11803,7 +11819,7 @@ snapshots: '@esbuild/linux-arm64@0.28.1': optional: true - '@esbuild/linux-arm@0.25.4': + '@esbuild/linux-arm64@0.28.2': optional: true '@esbuild/linux-arm@0.25.6': @@ -11812,7 +11828,7 @@ snapshots: '@esbuild/linux-arm@0.28.1': optional: true - '@esbuild/linux-ia32@0.25.4': + '@esbuild/linux-arm@0.28.2': optional: true '@esbuild/linux-ia32@0.25.6': @@ -11821,7 +11837,7 @@ snapshots: '@esbuild/linux-ia32@0.28.1': optional: true - '@esbuild/linux-loong64@0.25.4': + '@esbuild/linux-ia32@0.28.2': optional: true '@esbuild/linux-loong64@0.25.6': @@ -11830,7 +11846,7 @@ snapshots: '@esbuild/linux-loong64@0.28.1': optional: true - '@esbuild/linux-mips64el@0.25.4': + '@esbuild/linux-loong64@0.28.2': optional: true '@esbuild/linux-mips64el@0.25.6': @@ -11839,7 +11855,7 @@ snapshots: '@esbuild/linux-mips64el@0.28.1': optional: true - '@esbuild/linux-ppc64@0.25.4': + '@esbuild/linux-mips64el@0.28.2': optional: true '@esbuild/linux-ppc64@0.25.6': @@ -11848,7 +11864,7 @@ snapshots: '@esbuild/linux-ppc64@0.28.1': optional: true - '@esbuild/linux-riscv64@0.25.4': + '@esbuild/linux-ppc64@0.28.2': optional: true '@esbuild/linux-riscv64@0.25.6': @@ -11857,7 +11873,7 @@ snapshots: '@esbuild/linux-riscv64@0.28.1': optional: true - '@esbuild/linux-s390x@0.25.4': + '@esbuild/linux-riscv64@0.28.2': optional: true '@esbuild/linux-s390x@0.25.6': @@ -11866,7 +11882,7 @@ snapshots: '@esbuild/linux-s390x@0.28.1': optional: true - '@esbuild/linux-x64@0.25.4': + '@esbuild/linux-s390x@0.28.2': optional: true '@esbuild/linux-x64@0.25.6': @@ -11875,7 +11891,7 @@ snapshots: '@esbuild/linux-x64@0.28.1': optional: true - '@esbuild/netbsd-arm64@0.25.4': + '@esbuild/linux-x64@0.28.2': optional: true '@esbuild/netbsd-arm64@0.25.6': @@ -11884,7 +11900,7 @@ snapshots: '@esbuild/netbsd-arm64@0.28.1': optional: true - '@esbuild/netbsd-x64@0.25.4': + '@esbuild/netbsd-arm64@0.28.2': optional: true '@esbuild/netbsd-x64@0.25.6': @@ -11893,7 +11909,7 @@ snapshots: '@esbuild/netbsd-x64@0.28.1': optional: true - '@esbuild/openbsd-arm64@0.25.4': + '@esbuild/netbsd-x64@0.28.2': optional: true '@esbuild/openbsd-arm64@0.25.6': @@ -11902,7 +11918,7 @@ snapshots: '@esbuild/openbsd-arm64@0.28.1': optional: true - '@esbuild/openbsd-x64@0.25.4': + '@esbuild/openbsd-arm64@0.28.2': optional: true '@esbuild/openbsd-x64@0.25.6': @@ -11911,13 +11927,16 @@ snapshots: '@esbuild/openbsd-x64@0.28.1': optional: true + '@esbuild/openbsd-x64@0.28.2': + optional: true + '@esbuild/openharmony-arm64@0.25.6': optional: true '@esbuild/openharmony-arm64@0.28.1': optional: true - '@esbuild/sunos-x64@0.25.4': + '@esbuild/openharmony-arm64@0.28.2': optional: true '@esbuild/sunos-x64@0.25.6': @@ -11926,7 +11945,7 @@ snapshots: '@esbuild/sunos-x64@0.28.1': optional: true - '@esbuild/win32-arm64@0.25.4': + '@esbuild/sunos-x64@0.28.2': optional: true '@esbuild/win32-arm64@0.25.6': @@ -11935,7 +11954,7 @@ snapshots: '@esbuild/win32-arm64@0.28.1': optional: true - '@esbuild/win32-ia32@0.25.4': + '@esbuild/win32-arm64@0.28.2': optional: true '@esbuild/win32-ia32@0.25.6': @@ -11944,7 +11963,7 @@ snapshots: '@esbuild/win32-ia32@0.28.1': optional: true - '@esbuild/win32-x64@0.25.4': + '@esbuild/win32-ia32@0.28.2': optional: true '@esbuild/win32-x64@0.25.6': @@ -11953,6 +11972,9 @@ snapshots: '@esbuild/win32-x64@0.28.1': optional: true + '@esbuild/win32-x64@0.28.2': + optional: true + '@eslint-community/eslint-utils@4.5.1(eslint@8.57.1)': dependencies: eslint: 8.57.1 @@ -12118,9 +12140,9 @@ snapshots: '@img/sharp-libvips-darwin-arm64': 1.3.1 optional: true - '@img/sharp-darwin-arm64@0.35.4': + '@img/sharp-darwin-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.3.3 + '@img/sharp-libvips-darwin-arm64': 1.3.4 optional: true '@img/sharp-darwin-x64@0.35.2': @@ -12128,9 +12150,9 @@ snapshots: '@img/sharp-libvips-darwin-x64': 1.3.1 optional: true - '@img/sharp-darwin-x64@0.35.4': + '@img/sharp-darwin-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.3.3 + '@img/sharp-libvips-darwin-x64': 1.3.4 optional: true '@img/sharp-freebsd-wasm32@0.35.2': @@ -12138,69 +12160,69 @@ snapshots: '@img/sharp-wasm32': 0.35.2 optional: true - '@img/sharp-freebsd-wasm32@0.35.4': + '@img/sharp-freebsd-wasm32@0.35.5': dependencies: - '@img/sharp-wasm32': 0.35.4 + '@img/sharp-wasm32': 0.35.5 optional: true '@img/sharp-libvips-darwin-arm64@1.3.1': optional: true - '@img/sharp-libvips-darwin-arm64@1.3.3': + '@img/sharp-libvips-darwin-arm64@1.3.4': optional: true '@img/sharp-libvips-darwin-x64@1.3.1': optional: true - '@img/sharp-libvips-darwin-x64@1.3.3': + '@img/sharp-libvips-darwin-x64@1.3.4': optional: true '@img/sharp-libvips-linux-arm64@1.3.1': optional: true - '@img/sharp-libvips-linux-arm64@1.3.3': + '@img/sharp-libvips-linux-arm64@1.3.4': optional: true '@img/sharp-libvips-linux-arm@1.3.1': optional: true - '@img/sharp-libvips-linux-arm@1.3.3': + '@img/sharp-libvips-linux-arm@1.3.4': optional: true '@img/sharp-libvips-linux-ppc64@1.3.1': optional: true - '@img/sharp-libvips-linux-ppc64@1.3.3': + '@img/sharp-libvips-linux-ppc64@1.3.4': optional: true '@img/sharp-libvips-linux-riscv64@1.3.1': optional: true - '@img/sharp-libvips-linux-riscv64@1.3.3': + '@img/sharp-libvips-linux-riscv64@1.3.4': optional: true '@img/sharp-libvips-linux-s390x@1.3.1': optional: true - '@img/sharp-libvips-linux-s390x@1.3.3': + '@img/sharp-libvips-linux-s390x@1.3.4': optional: true '@img/sharp-libvips-linux-x64@1.3.1': optional: true - '@img/sharp-libvips-linux-x64@1.3.3': + '@img/sharp-libvips-linux-x64@1.3.4': optional: true '@img/sharp-libvips-linuxmusl-arm64@1.3.1': optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.3.3': + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': optional: true '@img/sharp-libvips-linuxmusl-x64@1.3.1': optional: true - '@img/sharp-libvips-linuxmusl-x64@1.3.3': + '@img/sharp-libvips-linuxmusl-x64@1.3.4': optional: true '@img/sharp-linux-arm64@0.35.2': @@ -12208,9 +12230,9 @@ snapshots: '@img/sharp-libvips-linux-arm64': 1.3.1 optional: true - '@img/sharp-linux-arm64@0.35.4': + '@img/sharp-linux-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.3.3 + '@img/sharp-libvips-linux-arm64': 1.3.4 optional: true '@img/sharp-linux-arm@0.35.2': @@ -12218,9 +12240,9 @@ snapshots: '@img/sharp-libvips-linux-arm': 1.3.1 optional: true - '@img/sharp-linux-arm@0.35.4': + '@img/sharp-linux-arm@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.3.3 + '@img/sharp-libvips-linux-arm': 1.3.4 optional: true '@img/sharp-linux-ppc64@0.35.2': @@ -12228,9 +12250,9 @@ snapshots: '@img/sharp-libvips-linux-ppc64': 1.3.1 optional: true - '@img/sharp-linux-ppc64@0.35.4': + '@img/sharp-linux-ppc64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.3.3 + '@img/sharp-libvips-linux-ppc64': 1.3.4 optional: true '@img/sharp-linux-riscv64@0.35.2': @@ -12238,9 +12260,9 @@ snapshots: '@img/sharp-libvips-linux-riscv64': 1.3.1 optional: true - '@img/sharp-linux-riscv64@0.35.4': + '@img/sharp-linux-riscv64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.3.3 + '@img/sharp-libvips-linux-riscv64': 1.3.4 optional: true '@img/sharp-linux-s390x@0.35.2': @@ -12248,9 +12270,9 @@ snapshots: '@img/sharp-libvips-linux-s390x': 1.3.1 optional: true - '@img/sharp-linux-s390x@0.35.4': + '@img/sharp-linux-s390x@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.3.3 + '@img/sharp-libvips-linux-s390x': 1.3.4 optional: true '@img/sharp-linux-x64@0.35.2': @@ -12258,9 +12280,9 @@ snapshots: '@img/sharp-libvips-linux-x64': 1.3.1 optional: true - '@img/sharp-linux-x64@0.35.4': + '@img/sharp-linux-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.3.3 + '@img/sharp-libvips-linux-x64': 1.3.4 optional: true '@img/sharp-linuxmusl-arm64@0.35.2': @@ -12268,9 +12290,9 @@ snapshots: '@img/sharp-libvips-linuxmusl-arm64': 1.3.1 optional: true - '@img/sharp-linuxmusl-arm64@0.35.4': + '@img/sharp-linuxmusl-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.3.3 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 optional: true '@img/sharp-linuxmusl-x64@0.35.2': @@ -12278,9 +12300,9 @@ snapshots: '@img/sharp-libvips-linuxmusl-x64': 1.3.1 optional: true - '@img/sharp-linuxmusl-x64@0.35.4': + '@img/sharp-linuxmusl-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.3.3 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 optional: true '@img/sharp-wasm32@0.35.2': @@ -12288,7 +12310,7 @@ snapshots: '@emnapi/runtime': 1.11.3 optional: true - '@img/sharp-wasm32@0.35.4': + '@img/sharp-wasm32@0.35.5': dependencies: '@emnapi/runtime': 1.11.3 optional: true @@ -12298,27 +12320,27 @@ snapshots: '@img/sharp-wasm32': 0.35.2 optional: true - '@img/sharp-webcontainers-wasm32@0.35.4': + '@img/sharp-webcontainers-wasm32@0.35.5': dependencies: - '@img/sharp-wasm32': 0.35.4 + '@img/sharp-wasm32': 0.35.5 optional: true '@img/sharp-win32-arm64@0.35.2': optional: true - '@img/sharp-win32-arm64@0.35.4': + '@img/sharp-win32-arm64@0.35.5': optional: true '@img/sharp-win32-ia32@0.35.2': optional: true - '@img/sharp-win32-ia32@0.35.4': + '@img/sharp-win32-ia32@0.35.5': optional: true '@img/sharp-win32-x64@0.35.2': optional: true - '@img/sharp-win32-x64@0.35.4': + '@img/sharp-win32-x64@0.35.5': optional: true '@inquirer/checkbox@4.1.8(@types/node@22.15.30)': @@ -12759,7 +12781,7 @@ snapshots: - bufferutil - utf-8-validate - '@next/env@16.3.4': {} + '@next/env@16.4.3': {} '@next/eslint-plugin-next@15.3.3': dependencies: @@ -12769,50 +12791,44 @@ snapshots: dependencies: fast-glob: 3.3.1 - '@next/swc-darwin-arm64@16.3.4': + '@next/swc-darwin-arm64@16.4.3': optional: true - '@next/swc-darwin-x64@16.3.4': + '@next/swc-darwin-x64@16.4.3': optional: true - '@next/swc-linux-arm64-gnu@16.3.4': + '@next/swc-linux-arm64-gnu@16.4.3': optional: true - '@next/swc-linux-arm64-musl@16.3.4': + '@next/swc-linux-arm64-musl@16.4.3': optional: true - '@next/swc-linux-x64-gnu@16.3.4': + '@next/swc-linux-x64-gnu@16.4.3': optional: true - '@next/swc-linux-x64-musl@16.3.4': + '@next/swc-linux-x64-musl@16.4.3': optional: true - '@next/swc-win32-arm64-msvc@16.3.4': + '@next/swc-win32-arm64-msvc@16.4.3': optional: true - '@next/swc-win32-x64-msvc@16.3.4': + '@next/swc-win32-x64-msvc@16.4.3': optional: true - '@noble/ciphers@1.3.0': {} - - '@noble/curves@1.9.7': - dependencies: - '@noble/hashes': 1.8.0 - '@noble/hashes@1.8.0': {} - '@node-minify/core@8.0.6': + '@node-minify/core@9.0.2': dependencies: - '@node-minify/utils': 8.0.6 - glob: 9.3.5 - mkdirp: 1.0.4 + '@node-minify/utils': 9.0.1 + glob: 10.3.3 + mkdirp: 3.0.1 - '@node-minify/terser@8.0.6': + '@node-minify/terser@9.0.1': dependencies: - '@node-minify/utils': 8.0.6 - terser: 5.16.9 + '@node-minify/utils': 9.0.1 + terser: 5.36.0 - '@node-minify/utils@8.0.6': + '@node-minify/utils@9.0.1': dependencies: gzip-size: 6.0.0 @@ -12839,44 +12855,45 @@ snapshots: '@open-draft/until@2.1.0': {} - '@opennextjs/aws@4.1.4(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))': + '@opennextjs/aws@4.1.14(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))': dependencies: - '@ast-grep/napi': 0.40.5 + '@ast-grep/napi': 0.45.3 '@aws-sdk/client-cloudfront': 3.984.0 '@aws-sdk/client-dynamodb': 3.984.0 '@aws-sdk/client-lambda': 3.984.0 '@aws-sdk/client-s3': 3.984.0 '@aws-sdk/client-sqs': 3.984.0 - '@node-minify/core': 8.0.6 - '@node-minify/terser': 8.0.6 - '@tsconfig/node18': 1.0.3 + '@node-minify/core': 9.0.2 + '@node-minify/terser': 9.0.1 + '@tsconfig/node18': 18.2.7 aws4fetch: 1.0.20 chalk: 5.6.2 - cookie: 1.0.2 - esbuild: 0.25.4 + cookie: 1.1.1 + esbuild: 0.28.2 express: 5.2.1 - next: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + next: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) path-to-regexp: 6.3.0 urlpattern-polyfill: 10.1.0 - yaml: 2.8.1 + yaml: 2.9.1 transitivePeerDependencies: - supports-color - '@opennextjs/cloudflare@1.20.6(encoding@0.1.13)(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(wrangler@4.128.0)': + '@opennextjs/cloudflare@1.20.15(encoding@0.1.13)(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(wrangler@4.128.0)': dependencies: - '@ast-grep/napi': 0.40.5 - '@dotenvx/dotenvx': 1.31.0 - '@opennextjs/aws': 4.1.4(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7)) + '@ast-grep/napi': 0.45.3 + '@dotenvx/dotenvx': 2.38.2 + '@opennextjs/aws': 4.1.14(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7)) ci-info: 4.4.0 cloudflare: 4.5.0(encoding@0.1.13) comment-json: 4.6.2 enquirer: 2.4.1 - glob: 12.0.0 - next: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + glob: 13.0.6 + next: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) ts-tqdm: 0.8.6 wrangler: 4.128.0 - yargs: 18.0.0 + yargs: 18.2.0 transitivePeerDependencies: + - diff - encoding - supports-color @@ -13366,8 +13383,8 @@ snapshots: '@paulirish/trace_engine@0.0.53': dependencies: - legacy-javascript: 0.0.1 - third-party-web: 0.29.2 + legacy-javascript: 0.0.4 + third-party-web: 0.30.0 '@pkgjs/parseargs@0.11.0': optional: true @@ -14597,7 +14614,7 @@ snapshots: '@tsconfig/node16@1.0.4': optional: true - '@tsconfig/node18@1.0.3': {} + '@tsconfig/node18@18.2.7': {} '@tybys/wasm-util@0.9.0': dependencies: @@ -15039,9 +15056,9 @@ snapshots: dependencies: uncrypto: 0.1.3 - '@vercel/analytics@1.5.0(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(svelte@5.1.15)(vue@3.5.16(typescript@5.8.3))': + '@vercel/analytics@1.5.0(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(svelte@5.1.15)(vue@3.5.16(typescript@5.8.3))': optionalDependencies: - next: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + next: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) react: 19.1.7 svelte: 5.1.15 vue: 3.5.16(typescript@5.8.3) @@ -15067,9 +15084,9 @@ snapshots: '@opentelemetry/sdk-metrics': 2.0.1(@opentelemetry/api@1.9.0) '@opentelemetry/sdk-trace-base': 2.2.0(@opentelemetry/api@1.9.0) - '@vercel/speed-insights@1.2.0(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(svelte@5.1.15)(vue@3.5.16(typescript@5.8.3))': + '@vercel/speed-insights@1.2.0(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(svelte@5.1.15)(vue@3.5.16(typescript@5.8.3))': optionalDependencies: - next: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + next: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) react: 19.1.7 svelte: 5.1.15 vue: 3.5.16(typescript@5.8.3) @@ -15089,7 +15106,7 @@ snapshots: std-env: 3.9.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.16.9)(yaml@2.8.1) + vitest: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.36.0)(yaml@2.9.1) transitivePeerDependencies: - supports-color @@ -15101,14 +15118,14 @@ snapshots: chai: 5.2.0 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(vite@7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.16.9)(yaml@2.8.1))': + '@vitest/mocker@3.2.4(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(vite@7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(yaml@2.9.1))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: msw: 2.9.0(@types/node@22.15.30)(typescript@5.8.3) - vite: 7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.16.9)(yaml@2.8.1) + vite: 7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(yaml@2.9.1) '@vitest/pretty-format@3.2.4': dependencies: @@ -15139,7 +15156,7 @@ snapshots: sirv: 3.0.1 tinyglobby: 0.2.14 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.16.9)(yaml@2.8.1) + vitest: 3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.36.0)(yaml@2.9.1) '@vitest/utils@3.2.4': dependencies: @@ -15271,6 +15288,8 @@ snapshots: ansi-regex@6.1.0: {} + ansi-regex@6.5.0: {} + ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 @@ -15861,8 +15880,6 @@ snapshots: dependencies: delayed-stream: 1.0.0 - commander@11.1.0: {} - commander@14.0.0: {} commander@2.20.3: {} @@ -15945,6 +15962,8 @@ snapshots: cookie@1.0.2: {} + cookie@1.1.1: {} + copy-anything@3.0.5: dependencies: is-what: 4.1.16 @@ -16266,13 +16285,6 @@ snapshots: eastasianwidth@0.2.0: {} - eciesjs@0.4.15: - dependencies: - '@ecies/ciphers': 0.2.4(@noble/ciphers@1.3.0) - '@noble/ciphers': 1.3.0 - '@noble/curves': 1.9.7 - '@noble/hashes': 1.8.0 - ee-first@1.1.1: {} electron-to-chromium@1.5.165: {} @@ -16449,34 +16461,6 @@ snapshots: is-date-object: 1.1.0 is-symbol: 1.1.1 - esbuild@0.25.4: - optionalDependencies: - '@esbuild/aix-ppc64': 0.25.4 - '@esbuild/android-arm': 0.25.4 - '@esbuild/android-arm64': 0.25.4 - '@esbuild/android-x64': 0.25.4 - '@esbuild/darwin-arm64': 0.25.4 - '@esbuild/darwin-x64': 0.25.4 - '@esbuild/freebsd-arm64': 0.25.4 - '@esbuild/freebsd-x64': 0.25.4 - '@esbuild/linux-arm': 0.25.4 - '@esbuild/linux-arm64': 0.25.4 - '@esbuild/linux-ia32': 0.25.4 - '@esbuild/linux-loong64': 0.25.4 - '@esbuild/linux-mips64el': 0.25.4 - '@esbuild/linux-ppc64': 0.25.4 - '@esbuild/linux-riscv64': 0.25.4 - '@esbuild/linux-s390x': 0.25.4 - '@esbuild/linux-x64': 0.25.4 - '@esbuild/netbsd-arm64': 0.25.4 - '@esbuild/netbsd-x64': 0.25.4 - '@esbuild/openbsd-arm64': 0.25.4 - '@esbuild/openbsd-x64': 0.25.4 - '@esbuild/sunos-x64': 0.25.4 - '@esbuild/win32-arm64': 0.25.4 - '@esbuild/win32-ia32': 0.25.4 - '@esbuild/win32-x64': 0.25.4 - esbuild@0.25.6: optionalDependencies: '@esbuild/aix-ppc64': 0.25.6 @@ -16535,6 +16519,35 @@ snapshots: '@esbuild/win32-ia32': 0.28.1 '@esbuild/win32-x64': 0.28.1 + esbuild@0.28.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.28.2 + '@esbuild/android-arm': 0.28.2 + '@esbuild/android-arm64': 0.28.2 + '@esbuild/android-x64': 0.28.2 + '@esbuild/darwin-arm64': 0.28.2 + '@esbuild/darwin-x64': 0.28.2 + '@esbuild/freebsd-arm64': 0.28.2 + '@esbuild/freebsd-x64': 0.28.2 + '@esbuild/linux-arm': 0.28.2 + '@esbuild/linux-arm64': 0.28.2 + '@esbuild/linux-ia32': 0.28.2 + '@esbuild/linux-loong64': 0.28.2 + '@esbuild/linux-mips64el': 0.28.2 + '@esbuild/linux-ppc64': 0.28.2 + '@esbuild/linux-riscv64': 0.28.2 + '@esbuild/linux-s390x': 0.28.2 + '@esbuild/linux-x64': 0.28.2 + '@esbuild/netbsd-arm64': 0.28.2 + '@esbuild/netbsd-x64': 0.28.2 + '@esbuild/openbsd-arm64': 0.28.2 + '@esbuild/openbsd-x64': 0.28.2 + '@esbuild/openharmony-arm64': 0.28.2 + '@esbuild/sunos-x64': 0.28.2 + '@esbuild/win32-arm64': 0.28.2 + '@esbuild/win32-ia32': 0.28.2 + '@esbuild/win32-x64': 0.28.2 + escalade@3.2.0: {} escape-html@1.0.3: {} @@ -16604,7 +16617,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.28.0(eslint@8.57.1)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.9.1(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.28.0(eslint@8.57.1)(typescript@5.8.3))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.28.0(eslint@8.57.1)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.9.1)(eslint@8.57.1): dependencies: debug: 3.2.7 optionalDependencies: @@ -16636,7 +16649,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.28.0(eslint@8.57.1)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.9.1(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.28.0(eslint@8.57.1)(typescript@5.8.3))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.28.0(eslint@8.57.1)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.9.1)(eslint@8.57.1) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 @@ -17187,6 +17200,8 @@ snapshots: get-east-asian-width@1.3.0: {} + get-east-asian-width@1.7.0: {} + get-intrinsic@1.3.0: dependencies: call-bind-apply-helpers: 1.0.2 @@ -17266,6 +17281,14 @@ snapshots: dependencies: is-glob: 4.0.3 + glob@10.3.3: + dependencies: + foreground-child: 3.3.1 + jackspeak: 2.3.6 + minimatch: 9.0.5 + minipass: 7.1.2 + path-scurry: 1.11.1 + glob@10.4.5: dependencies: foreground-child: 3.3.0 @@ -17275,14 +17298,11 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 1.11.1 - glob@12.0.0: + glob@13.0.6: dependencies: - foreground-child: 3.3.1 - jackspeak: 4.1.1 minimatch: 10.2.5 - minipass: 7.1.2 - package-json-from-dist: 1.0.1 - path-scurry: 2.0.0 + minipass: 7.1.3 + path-scurry: 2.0.2 glob@7.2.3: dependencies: @@ -17293,13 +17313,6 @@ snapshots: once: 1.4.0 path-is-absolute: 1.0.1 - glob@9.3.5: - dependencies: - fs.realpath: 1.0.0 - minimatch: 8.0.4 - minipass: 4.2.8 - path-scurry: 1.11.1 - globals@11.12.0: {} globals@13.24.0: @@ -17748,8 +17761,6 @@ snapshots: isexe@2.0.0: {} - isexe@3.1.1: {} - isomorphic-fetch@3.0.0(encoding@0.1.13): dependencies: node-fetch: 2.7.0(encoding@0.1.13) @@ -17815,15 +17826,17 @@ snapshots: has-symbols: 1.1.0 set-function-name: 2.0.2 - jackspeak@3.4.3: + jackspeak@2.3.6: dependencies: '@isaacs/cliui': 8.0.2 optionalDependencies: '@pkgjs/parseargs': 0.11.0 - jackspeak@4.1.1: + jackspeak@3.4.3: dependencies: '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 jest-changed-files@29.7.0: dependencies: @@ -18327,7 +18340,7 @@ snapshots: picocolors: 1.1.1 shell-quote: 1.8.3 - legacy-javascript@0.0.1: {} + legacy-javascript@0.0.4: {} leven@3.1.0: {} @@ -18666,27 +18679,23 @@ snapshots: dependencies: brace-expansion: 1.1.11 - minimatch@8.0.4: - dependencies: - brace-expansion: 2.0.1 - minimatch@9.0.5: dependencies: brace-expansion: 2.0.1 minimist@1.2.8: {} - minipass@4.2.8: {} - minipass@7.1.2: {} + minipass@7.1.3: {} + minizlib@3.1.0: dependencies: minipass: 7.1.2 mitt@3.0.1: {} - mkdirp@1.0.4: {} + mkdirp@3.0.1: {} mlly@1.7.4: dependencies: @@ -18758,22 +18767,22 @@ snapshots: optionalDependencies: '@rollup/rollup-linux-x64-gnu': 4.44.2 - next-auth@5.0.0-beta.30(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7): + next-auth@5.0.0-beta.30(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7): dependencies: '@auth/core': 0.41.0 - next: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + next: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) react: 19.1.7 next-intl-swc-plugin-extractor@4.8.3: {} - next-intl@4.8.3(@swc/helpers@0.5.23)(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(typescript@5.8.3): + next-intl@4.8.3(@swc/helpers@0.5.23)(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7)(typescript@5.8.3): dependencies: '@formatjs/intl-localematcher': 0.8.1 '@parcel/watcher': 2.5.1 '@swc/core': 1.15.18(@swc/helpers@0.5.23) icu-minify: 4.8.3 negotiator: 1.0.0 - next: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + next: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) next-intl-swc-plugin-extractor: 4.8.3 po-parser: 2.1.1 react: 19.1.7 @@ -18783,9 +18792,9 @@ snapshots: transitivePeerDependencies: - '@swc/helpers' - next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7): + next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7): dependencies: - '@next/env': 16.3.4 + '@next/env': 16.4.3 '@swc/helpers': 0.5.23 baseline-browser-mapping: 2.10.7 caniuse-lite: 1.0.30001721 @@ -18794,17 +18803,17 @@ snapshots: react-dom: 19.1.7(react@19.1.7) styled-jsx: 5.1.6(@babel/core@7.27.4)(react@19.1.7) optionalDependencies: - '@next/swc-darwin-arm64': 16.3.4 - '@next/swc-darwin-x64': 16.3.4 - '@next/swc-linux-arm64-gnu': 16.3.4 - '@next/swc-linux-arm64-musl': 16.3.4 - '@next/swc-linux-x64-gnu': 16.3.4 - '@next/swc-linux-x64-musl': 16.3.4 - '@next/swc-win32-arm64-msvc': 16.3.4 - '@next/swc-win32-x64-msvc': 16.3.4 + '@next/swc-darwin-arm64': 16.4.3 + '@next/swc-darwin-x64': 16.4.3 + '@next/swc-linux-arm64-gnu': 16.4.3 + '@next/swc-linux-arm64-musl': 16.4.3 + '@next/swc-linux-x64-gnu': 16.4.3 + '@next/swc-linux-x64-musl': 16.4.3 + '@next/swc-win32-arm64-msvc': 16.4.3 + '@next/swc-win32-x64-msvc': 16.4.3 '@opentelemetry/api': 1.9.0 '@playwright/test': 1.52.0 - sharp: 0.35.4(@types/node@22.15.30) + sharp: 0.35.5(@types/node@22.15.30) transitivePeerDependencies: - '@babel/core' - '@types/node' @@ -18853,12 +18862,12 @@ snapshots: dependencies: boolbase: 1.0.0 - nuqs@2.4.3(next@16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7): + nuqs@2.4.3(next@16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7))(react@19.1.7): dependencies: mitt: 3.0.1 react: 19.1.7 optionalDependencies: - next: 16.3.4(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) + next: 16.4.3(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(@playwright/test@1.52.0)(@types/node@22.15.30)(react-dom@19.1.7(react@19.1.7))(react@19.1.7) nwsapi@2.2.20: optional: true @@ -18892,8 +18901,6 @@ snapshots: object-keys@1.1.1: {} - object-treeify@1.1.33: {} - object.assign@4.1.7: dependencies: call-bind: 1.0.8 @@ -19098,10 +19105,10 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 - path-scurry@2.0.0: + path-scurry@2.0.2: dependencies: lru-cache: 11.1.0 - minipass: 7.1.2 + minipass: 7.1.3 path-to-regexp@6.3.0: {} @@ -19284,13 +19291,13 @@ snapshots: postcss: 8.5.6 ts-node: 10.9.2(@swc/core@1.15.18(@swc/helpers@0.5.23))(@types/node@22.15.30)(typescript@5.8.3) - postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.5.23)(yaml@2.8.1): + postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.5.23)(yaml@2.9.1): dependencies: lilconfig: 3.1.3 optionalDependencies: jiti: 2.4.2 postcss: 8.5.23 - yaml: 2.8.1 + yaml: 2.9.1 postcss-logical@8.1.0(postcss@8.5.6): dependencies: @@ -19989,37 +19996,37 @@ snapshots: '@img/sharp-win32-ia32': 0.35.2 '@img/sharp-win32-x64': 0.35.2 - sharp@0.35.4(@types/node@22.15.30): + sharp@0.35.5(@types/node@22.15.30): dependencies: '@img/colour': 1.1.0 detect-libc: 2.1.2 semver: 7.8.5 optionalDependencies: - '@img/sharp-darwin-arm64': 0.35.4 - '@img/sharp-darwin-x64': 0.35.4 - '@img/sharp-freebsd-wasm32': 0.35.4 - '@img/sharp-libvips-darwin-arm64': 1.3.3 - '@img/sharp-libvips-darwin-x64': 1.3.3 - '@img/sharp-libvips-linux-arm': 1.3.3 - '@img/sharp-libvips-linux-arm64': 1.3.3 - '@img/sharp-libvips-linux-ppc64': 1.3.3 - '@img/sharp-libvips-linux-riscv64': 1.3.3 - '@img/sharp-libvips-linux-s390x': 1.3.3 - '@img/sharp-libvips-linux-x64': 1.3.3 - '@img/sharp-libvips-linuxmusl-arm64': 1.3.3 - '@img/sharp-libvips-linuxmusl-x64': 1.3.3 - '@img/sharp-linux-arm': 0.35.4 - '@img/sharp-linux-arm64': 0.35.4 - '@img/sharp-linux-ppc64': 0.35.4 - '@img/sharp-linux-riscv64': 0.35.4 - '@img/sharp-linux-s390x': 0.35.4 - '@img/sharp-linux-x64': 0.35.4 - '@img/sharp-linuxmusl-arm64': 0.35.4 - '@img/sharp-linuxmusl-x64': 0.35.4 - '@img/sharp-webcontainers-wasm32': 0.35.4 - '@img/sharp-win32-arm64': 0.35.4 - '@img/sharp-win32-ia32': 0.35.4 - '@img/sharp-win32-x64': 0.35.4 + '@img/sharp-darwin-arm64': 0.35.5 + '@img/sharp-darwin-x64': 0.35.5 + '@img/sharp-freebsd-wasm32': 0.35.5 + '@img/sharp-libvips-darwin-arm64': 1.3.4 + '@img/sharp-libvips-darwin-x64': 1.3.4 + '@img/sharp-libvips-linux-arm': 1.3.4 + '@img/sharp-libvips-linux-arm64': 1.3.4 + '@img/sharp-libvips-linux-ppc64': 1.3.4 + '@img/sharp-libvips-linux-riscv64': 1.3.4 + '@img/sharp-libvips-linux-s390x': 1.3.4 + '@img/sharp-libvips-linux-x64': 1.3.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + '@img/sharp-linux-arm': 0.35.5 + '@img/sharp-linux-arm64': 0.35.5 + '@img/sharp-linux-ppc64': 0.35.5 + '@img/sharp-linux-riscv64': 0.35.5 + '@img/sharp-linux-s390x': 0.35.5 + '@img/sharp-linux-x64': 0.35.5 + '@img/sharp-linuxmusl-arm64': 0.35.5 + '@img/sharp-linuxmusl-x64': 0.35.5 + '@img/sharp-webcontainers-wasm32': 0.35.5 + '@img/sharp-win32-arm64': 0.35.5 + '@img/sharp-win32-ia32': 0.35.5 + '@img/sharp-win32-x64': 0.35.5 '@types/node': 22.15.30 optional: true @@ -20238,6 +20245,11 @@ snapshots: get-east-asian-width: 1.3.0 strip-ansi: 7.1.0 + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + string.prototype.includes@2.0.1: dependencies: call-bind: 1.0.8 @@ -20300,6 +20312,10 @@ snapshots: dependencies: ansi-regex: 6.1.0 + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.5.0 + strip-bom@3.0.0: {} strip-bom@4.0.0: {} @@ -20453,7 +20469,7 @@ snapshots: term-size@2.2.1: {} - terser@5.16.9: + terser@5.36.0: dependencies: '@jridgewell/source-map': 0.3.11 acorn: 8.15.0 @@ -20490,7 +20506,7 @@ snapshots: third-party-web@0.26.6: {} - third-party-web@0.29.2: {} + third-party-web@0.30.0: {} through@2.3.8: {} @@ -20636,7 +20652,7 @@ snapshots: tslib@2.8.1: {} - tsup@8.5.0(@swc/core@1.11.31(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.8.1): + tsup@8.5.0(@swc/core@1.11.31(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.9.1): dependencies: bundle-require: 5.1.0(esbuild@0.25.6) cac: 6.7.14 @@ -20647,7 +20663,7 @@ snapshots: fix-dts-default-cjs-exports: 1.0.1 joycon: 3.1.1 picocolors: 1.1.1 - postcss-load-config: 6.0.1(jiti@2.4.2)(postcss@8.5.23)(yaml@2.8.1) + postcss-load-config: 6.0.1(jiti@2.4.2)(postcss@8.5.23)(yaml@2.9.1) resolve-from: 5.0.0 rollup: 4.44.2 source-map: 0.8.0-beta.0 @@ -20665,7 +20681,7 @@ snapshots: - tsx - yaml - tsup@8.5.0(@swc/core@1.15.18(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.8.1): + tsup@8.5.0(@swc/core@1.15.18(@swc/helpers@0.5.23))(jiti@2.4.2)(postcss@8.5.23)(typescript@5.8.3)(yaml@2.9.1): dependencies: bundle-require: 5.1.0(esbuild@0.25.6) cac: 6.7.14 @@ -20676,7 +20692,7 @@ snapshots: fix-dts-default-cjs-exports: 1.0.1 joycon: 3.1.1 picocolors: 1.1.1 - postcss-load-config: 6.0.1(jiti@2.4.2)(postcss@8.5.23)(yaml@2.8.1) + postcss-load-config: 6.0.1(jiti@2.4.2)(postcss@8.5.23)(yaml@2.9.1) resolve-from: 5.0.0 rollup: 4.44.2 source-map: 0.8.0-beta.0 @@ -20852,6 +20868,8 @@ snapshots: undici@6.21.3: {} + undici@6.29.1: {} + undici@7.29.0: {} unenv@2.0.0-rc.24: @@ -21005,13 +21023,13 @@ snapshots: vary@1.1.2: {} - vite-node@3.2.4(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.16.9)(yaml@2.8.1): + vite-node@3.2.4(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(yaml@2.9.1): dependencies: cac: 6.7.14 debug: 4.4.3 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.16.9)(yaml@2.8.1) + vite: 7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(yaml@2.9.1) transitivePeerDependencies: - '@types/node' - jiti @@ -21026,7 +21044,7 @@ snapshots: - tsx - yaml - vite@7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.16.9)(yaml@2.8.1): + vite@7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(yaml@2.9.1): dependencies: esbuild: 0.25.6 fdir: 6.4.6(picomatch@4.0.2) @@ -21039,14 +21057,14 @@ snapshots: fsevents: 2.3.3 jiti: 2.4.2 lightningcss: 1.29.2 - terser: 5.16.9 - yaml: 2.8.1 + terser: 5.36.0 + yaml: 2.9.1 - vitest@3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.16.9)(yaml@2.8.1): + vitest@3.2.4(@types/node@22.15.30)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.29.2)(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(terser@5.36.0)(yaml@2.9.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(vite@7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.16.9)(yaml@2.8.1)) + '@vitest/mocker': 3.2.4(msw@2.9.0(@types/node@22.15.30)(typescript@5.8.3))(vite@7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(yaml@2.9.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -21064,8 +21082,8 @@ snapshots: tinyglobby: 0.2.14 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.16.9)(yaml@2.8.1) - vite-node: 3.2.4(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.16.9)(yaml@2.8.1) + vite: 7.0.3(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(yaml@2.9.1) + vite-node: 3.2.4(@types/node@22.15.30)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(yaml@2.9.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 22.15.30 @@ -21205,10 +21223,6 @@ snapshots: dependencies: isexe: 2.0.0 - which@4.0.0: - dependencies: - isexe: 3.1.1 - why-is-node-running@2.3.0: dependencies: siginfo: 2.0.0 @@ -21280,6 +21294,11 @@ snapshots: imurmurhash: 0.1.4 signal-exit: 3.0.7 + write-file-atomic@5.0.1: + dependencies: + imurmurhash: 0.1.4 + signal-exit: 4.1.0 + ws@7.5.10: {} ws@8.18.2: {} @@ -21302,7 +21321,7 @@ snapshots: yaml@2.6.0: {} - yaml@2.8.1: {} + yaml@2.9.1: {} yargs-parser@21.1.1: {} @@ -21318,12 +21337,12 @@ snapshots: y18n: 5.0.8 yargs-parser: 21.1.1 - yargs@18.0.0: + yargs@18.2.0: dependencies: cliui: 9.0.1 escalade: 3.2.0 get-caller-file: 2.0.5 - string-width: 7.2.0 + string-width: 8.3.0 y18n: 5.0.8 yargs-parser: 22.0.0 @@ -21341,6 +21360,10 @@ snapshots: dependencies: yoctocolors: 2.1.1 + yocto-spinner@1.2.2: + dependencies: + yoctocolors: 2.1.1 + yoctocolors-cjs@2.1.2: {} yoctocolors@2.1.1: {} From 53288177cf771d77b451104dde54c8f14142c851 Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Mon, 2 Nov 2026 15:40:36 +0000 Subject: [PATCH 14/19] LTRAC-2802: fix(cli) - Make --env-path the only env source for build and deploy (#3324) * LTRAC-2802: fix(cli) - Use only the --env-path file for the build and baked env With --env-path, OpenNext still baked the on-disk .env.local/.env into the worker as runtime fallbacks, and next build still read them for keys the file didn't define. A deploy could build with one file and run on another. Swap OpenNext's next-env.mjs for the --env-path file before Wrangler bundles the worker, and stop Next.js reading .env files when --env-path is given. Fixes LTRAC-2802 * LTRAC-2802: fix(cli) - Expand variable references in the --env-path file Next.js no longer reads env files when --env-path is given, so it no longer expands $VAR references in them either. Expand them when loading the file. Refs LTRAC-2802 * LTRAC-2802: fix(cli) - Let --env-path override stored env vars on deploy Values saved with `catalyst env add` are sent as bindings, which override the baked --env-path values at runtime, so a deploy could build with the file and run on the stored values. Send the --env-path file as bindings too, with precedence --secret > --env-path > stored, and log which stored keys it overrides. Refs LTRAC-2802 --- .changeset/cli-env-path-only-source.md | 7 ++ packages/catalyst/package.json | 1 + .../catalyst/src/cli/commands/build.spec.ts | 54 ++++++++++- packages/catalyst/src/cli/commands/build.ts | 27 +++++- .../catalyst/src/cli/commands/deploy.spec.ts | 93 ++++++++++++++++++- packages/catalyst/src/cli/commands/deploy.ts | 55 ++++++++--- .../catalyst/src/cli/lib/build-env.spec.ts | 28 +++++- packages/catalyst/src/cli/lib/build-env.ts | 17 +++- .../catalyst/src/cli/lib/env-config.spec.ts | 29 +++++- packages/catalyst/src/cli/lib/env-config.ts | 21 +++-- pnpm-lock.yaml | 3 + 11 files changed, 304 insertions(+), 31 deletions(-) create mode 100644 .changeset/cli-env-path-only-source.md diff --git a/.changeset/cli-env-path-only-source.md b/.changeset/cli-env-path-only-source.md new file mode 100644 index 0000000000..fac73a32f9 --- /dev/null +++ b/.changeset/cli-env-path-only-source.md @@ -0,0 +1,7 @@ +--- +'@bigcommerce/catalyst': patch +--- + +`catalyst build` and `catalyst deploy --env-path ` now use only that file. A `.env.local` or `.env` on disk is no longer read by the build or baked into the deployed worker as a runtime fallback. + +`catalyst deploy --env-path ` also sends the file's variables to the deployment, overriding values saved with `catalyst env add`. `--secret` still wins over both. Previously, saved values overrode the `--env-path` file at runtime. diff --git a/packages/catalyst/package.json b/packages/catalyst/package.json index 74cb9954ac..cb44155189 100644 --- a/packages/catalyst/package.json +++ b/packages/catalyst/package.json @@ -36,6 +36,7 @@ "consola": "^3.4.2", "cross-spawn": "^7.0.6", "dotenv": "^16.5.0", + "dotenv-expand": "^10.0.0", "execa": "^9.6.0", "fs-extra": "^11.3.0", "lodash.kebabcase": "^4.1.1", diff --git a/packages/catalyst/src/cli/commands/build.spec.ts b/packages/catalyst/src/cli/commands/build.spec.ts index 6d2028a359..bcbca75864 100644 --- a/packages/catalyst/src/cli/commands/build.spec.ts +++ b/packages/catalyst/src/cli/commands/build.spec.ts @@ -1,9 +1,10 @@ import { Command } from 'commander'; import { execa } from 'execa'; -import { copyFile } from 'node:fs/promises'; +import { copyFile, writeFile } from 'node:fs/promises'; import { join } from 'node:path'; import { afterEach, beforeAll, beforeEach, expect, test, vi } from 'vitest'; +import { loadBuildEnv } from '../lib/build-env'; import { reconcileOpenNextVersion } from '../lib/commerce-hosting'; import { installDependencies } from '../lib/install-dependencies'; import { consola } from '../lib/logger'; @@ -239,3 +240,54 @@ test('does not install when the adapter pin is already current', async () => { expect(installDependencies).not.toHaveBeenCalled(); }); + +test('with --env-path, bakes only that file into the worker and stops Next.js reading .env files', async () => { + vi.mocked(getProjectState).mockReturnValue(transformedState); + vi.mocked(loadBuildEnv).mockReturnValueOnce({ BIGCOMMERCE_STORE_HASH: 'staging' }); + + await program.parseAsync(['node', 'catalyst', 'build', '--env-path', '.env.staging']); + + expect(loadBuildEnv).toHaveBeenCalledWith({ envPath: '.env.staging' }); + expect(execa).toHaveBeenCalledWith( + 'pnpm', + expect.arrayContaining(['opennextjs-cloudflare', 'build']), + expect.objectContaining({ env: { __NEXT_PROCESSED_ENV: 'true' } }), + ); + expect(writeFile).toHaveBeenCalledWith( + expect.stringContaining(join('.open-next', 'cloudflare', 'next-env.mjs')), + [ + 'export const production = {"BIGCOMMERCE_STORE_HASH":"staging"};\n', + 'export const development = {"BIGCOMMERCE_STORE_HASH":"staging"};\n', + 'export const test = {"BIGCOMMERCE_STORE_HASH":"staging"};\n', + ].join(''), + ); +}); + +test('without --env-path, leaves the OpenNext env bake and Next.js env loading alone', async () => { + vi.mocked(getProjectState).mockReturnValue(transformedState); + + await program.parseAsync(['node', 'catalyst', 'build']); + + expect(execa).toHaveBeenCalledWith( + 'pnpm', + expect.arrayContaining(['opennextjs-cloudflare', 'build']), + expect.objectContaining({ env: {} }), + ); + expect(writeFile).not.toHaveBeenCalledWith( + expect.stringContaining('next-env.mjs'), + expect.anything(), + ); +}); + +test('with --env-path, stops `next build` reading .env files on an untransformed project', async () => { + vi.mocked(getProjectState).mockReturnValue(untransformedState); + vi.mocked(loadBuildEnv).mockReturnValueOnce({ BIGCOMMERCE_STORE_HASH: 'staging' }); + + await program.parseAsync(['node', 'catalyst', 'build', '--env-path', '.env.staging']); + + expect(execa).toHaveBeenCalledWith( + 'pnpm', + ['exec', 'next', 'build'], + expect.objectContaining({ env: { __NEXT_PROCESSED_ENV: 'true' } }), + ); +}); diff --git a/packages/catalyst/src/cli/commands/build.ts b/packages/catalyst/src/cli/commands/build.ts index 2049657850..f71316d5a3 100644 --- a/packages/catalyst/src/cli/commands/build.ts +++ b/packages/catalyst/src/cli/commands/build.ts @@ -34,9 +34,16 @@ export const parseWranglerVersion = (value: string): string => { return value; }; +// Next.js skips reading `.env*` files from disk when this is set. With +// `--env-path`, the file is already in process.env and should be the only +// source, so a stray `.env.local` can't fill in keys it leaves out. +export const skipNextEnvFiles = (envFileVars?: Record) => + envFileVars ? { __NEXT_PROCESSED_ENV: 'true' } : {}; + export async function buildCatalystProject( projectUuid: string, wranglerVersion: string = WRANGLER_VERSION, + envFileVars?: Record, ): Promise { // Fail fast with an actionable message if the vars the build reads aren't // loaded — otherwise the missing values surface as a raw stack trace deep in @@ -102,9 +109,24 @@ export async function buildCatalystProject( { stdout: ['pipe', 'inherit'], cwd: coreDir, + env: skipNextEnvFiles(envFileVars), }, ); + // OpenNext bakes the on-disk `.env*` files into the worker as runtime + // fallbacks and ignores `--env-path`. Swap in the `--env-path` file before + // Wrangler bundles the worker. + if (envFileVars) { + const vars = JSON.stringify(envFileVars); + + await writeFile( + join(openNextOutDir, 'cloudflare', 'next-env.mjs'), + ['production', 'development', 'test'] + .map((mode) => `export const ${mode} = ${vars};\n`) + .join(''), + ); + } + // Workers Assets serves `/_next/static/*` directly, bypassing the Next.js // server that would normally set the immutable Cache-Control on it. Its // default is `max-age=0, must-revalidate`, so browsers revalidate every @@ -181,7 +203,7 @@ Examples: // The build reads storefront env vars (BIGCOMMERCE_*). Load them from the // env file(s) before building so both the build and any pre-build checks // see them. - loadBuildEnv({ envPath: options.envPath }); + const envFileVars = loadBuildEnv({ envPath: options.envPath }); // Project must be transformed (middleware swapped in, OpenNext dep installed) // before the OpenNext build pipeline can run. If it isn't, fall through to @@ -200,6 +222,7 @@ Examples: await execa('pnpm', ['exec', 'next', 'build'], { stdio: 'inherit', cwd: process.cwd(), + env: skipNextEnvFiles(envFileVars), }); return; @@ -214,5 +237,5 @@ Examples: ); } - await buildCatalystProject(projectUuid, options.wranglerVersion); + await buildCatalystProject(projectUuid, options.wranglerVersion, envFileVars); }); diff --git a/packages/catalyst/src/cli/commands/deploy.spec.ts b/packages/catalyst/src/cli/commands/deploy.spec.ts index 54baa99343..4c56a4d753 100644 --- a/packages/catalyst/src/cli/commands/deploy.spec.ts +++ b/packages/catalyst/src/cli/commands/deploy.spec.ts @@ -496,7 +496,7 @@ test('passes --wrangler-version through to the build', async () => { '--dry-run', ]); - expect(buildCatalystProject).toHaveBeenCalledWith(projectUuid, '4.24.3'); + expect(buildCatalystProject).toHaveBeenCalledWith(projectUuid, '4.24.3', undefined); }); test('builds with the default Wrangler version when --wrangler-version is omitted', async () => { @@ -515,7 +515,39 @@ test('builds with the default Wrangler version when --wrangler-version is omitte '--dry-run', ]); - expect(buildCatalystProject).toHaveBeenCalledWith(projectUuid, undefined); + expect(buildCatalystProject).toHaveBeenCalledWith(projectUuid, undefined, undefined); +}); + +test('passes the --env-path file to the build so only it is baked into the worker', async () => { + const envPath = join(tmpDir, '.env.staging'); + + await writeFile(envPath, 'DEPLOY_ENV_PATH_TEST=staging', 'utf-8'); + + try { + await program.parseAsync([ + 'node', + 'catalyst', + 'deploy', + '--store-hash', + storeHash, + '--access-token', + accessToken, + '--api-host', + apiHost, + '--project-uuid', + projectUuid, + '--env-path', + '.env.staging', + '--dry-run', + ]); + + expect(buildCatalystProject).toHaveBeenCalledWith(projectUuid, undefined, { + DEPLOY_ENV_PATH_TEST: 'staging', + }); + } finally { + delete process.env.DEPLOY_ENV_PATH_TEST; + await rm(envPath); + } }); test('rejects an invalid --wrangler-version value', async () => { @@ -674,6 +706,63 @@ describe('persisted env vars', () => { config.delete('env'); }); + test('--env-path overrides stored env vars, and --secret overrides both', async () => { + const config = getProjectConfig(); + const envPath = join(tmpDir, '.env.staging'); + + config.set('projectUuid', projectUuid); + config.set('storeHash', storeHash); + config.set('accessToken', accessToken); + config.set('env', { STORED_ONLY: 'keep', SHARED: 'stored', FILE_VS_FLAG: 'stored' }); + await writeFile(envPath, 'SHARED=file\nFILE_VS_FLAG=file\nFILE_ONLY=file', 'utf-8'); + + let body: DeploymentBody | undefined; + + server.use( + http.post( + 'https://:apiHost/stores/:storeHash/v3/infrastructure/deployments', + async ({ request }) => { + // eslint-disable-next-line @typescript-eslint/consistent-type-assertions + body = (await request.json()) as DeploymentBody; + + return HttpResponse.json({ data: { deployment_uuid: deploymentUuid } }); + }, + ), + ); + + try { + await program.parseAsync([ + 'node', + 'catalyst', + 'deploy', + '--api-host', + apiHost, + '--prebuilt', + '--env-path', + '.env.staging', + '--secret', + 'FILE_VS_FLAG=flag', + ]); + + expect(body?.environment_variables).toEqual([ + { type: 'secret', key: 'STORED_ONLY', value: 'keep' }, + { type: 'secret', key: 'SHARED', value: 'file' }, + { type: 'secret', key: 'FILE_VS_FLAG', value: 'flag' }, + { type: 'secret', key: 'FILE_ONLY', value: 'file' }, + { type: 'plain_text', key: 'CATALYST_HOSTING', value: 'native' }, + ]); + expect(consola.info).toHaveBeenCalledWith( + '--env-path overrides values saved with `catalyst env add`: SHARED', + ); + } finally { + config.delete('env'); + delete process.env.SHARED; + delete process.env.FILE_VS_FLAG; + delete process.env.FILE_ONLY; + await rm(envPath); + } + }); + test('sends only the CATALYST_HOSTING marker when nothing is stored or passed', async () => { const config = getProjectConfig(); diff --git a/packages/catalyst/src/cli/commands/deploy.ts b/packages/catalyst/src/cli/commands/deploy.ts index fd06ddc3a1..89f122348c 100644 --- a/packages/catalyst/src/cli/commands/deploy.ts +++ b/packages/catalyst/src/cli/commands/deploy.ts @@ -22,10 +22,12 @@ import { deployedChannelId, offerChannelUrlUpdates } from '../lib/deploy-channel import { getDeploymentErrorMessage } from '../lib/deployment-errors'; import { detectProjectPackageManager } from '../lib/detect-package-manager'; import { + type DeploymentSecret, getStoredEnv, mergeDeploymentSecrets, parseEnvAssignment, toDeploymentSecrets, + toEnvFileSecrets, } from '../lib/env-config'; import { httpError } from '../lib/http-errors'; import { installDependencies } from '../lib/install-dependencies'; @@ -348,6 +350,30 @@ export const getDeploymentStatus = async ( return deploymentHostname; }; +// Precedence: `--secret` > `--env-path` file > `catalyst env add`. The +// `--env-path` file is sent as bindings, not just baked into the bundle, +// because bindings override baked values at runtime. +const resolveDeploymentSecrets = ( + storedEnv: Record, + envFileVars: Record | undefined, + flagSecrets: DeploymentSecret[], +): DeploymentSecret[] => { + const envFileSecrets = toEnvFileSecrets(envFileVars ?? {}); + + const overriddenKeys = envFileSecrets + .filter(({ key, value }) => key in storedEnv && storedEnv[key] !== value) + .filter(({ key }) => !flagSecrets.some((secret) => secret.key === key)) + .map(({ key }) => key); + + if (overriddenKeys.length > 0) { + consola.info( + `--env-path overrides values saved with \`catalyst env add\`: ${overriddenKeys.join(', ')}`, + ); + } + + return mergeDeploymentSecrets(toDeploymentSecrets(storedEnv), envFileSecrets, flagSecrets); +}; + export const fetchProject = async ( projectUuid: string, storeHash: string, @@ -386,7 +412,8 @@ export const deploy = new Command('deploy') 'after', ` Environment variables saved with \`catalyst env add\` are sent automatically on every deploy. -Use \`--secret\` to set or override a variable for a single run. +\`--env-path \` overrides them with that file's variables, and \`--secret\` sets or +overrides a single variable for this run (it wins over both). Without \`--update-site-url\` or \`--update-checkout-url\`, an interactive deploy offers to point the channel's site URL at the deployment and to move its checkout onto the same domain. @@ -532,6 +559,8 @@ Example: } } + let envFileVars: Record | undefined; + if (options.prebuilt) { const distDir = join(process.cwd(), '.bigcommerce', 'dist'); @@ -552,15 +581,27 @@ Example: } consola.info('Using existing build output (--prebuilt).'); + + // Nothing is built, but `--env-path` still sets the runtime values below. + if (options.envPath !== undefined) { + envFileVars = loadBuildEnv({ envPath: options.envPath }); + } } else { // The build reads storefront env vars (BIGCOMMERCE_*). Load them from the // env file(s) before building so both the build and any pre-build checks // see them. Skipped for --prebuilt above, which doesn't run the build. - loadBuildEnv({ envPath: options.envPath }); + envFileVars = loadBuildEnv({ envPath: options.envPath }); - await buildCatalystProject(projectUuid, options.wranglerVersion); + await buildCatalystProject(projectUuid, options.wranglerVersion, envFileVars); } + const mergedSecrets = resolveDeploymentSecrets( + getStoredEnv(config), + envFileVars, + parseEnvironmentVariables(options.secret) ?? [], + ); + const environmentVariables = [...mergedSecrets, NATIVE_HOSTING_ENV]; + await generateBundleZip(); if (options.dryRun) { @@ -577,14 +618,6 @@ Example: await uploadBundleZip(uploadSignature.upload_url); - // Merge persisted env vars (`catalyst env add`) with any inline `--secret` - // flags. Inline flags win on conflict, letting users override a stored - // value for a single run. - const flagSecrets = parseEnvironmentVariables(options.secret) ?? []; - const persistedSecrets = toDeploymentSecrets(getStoredEnv(config)); - const mergedSecrets = mergeDeploymentSecrets(persistedSecrets, flagSecrets); - const environmentVariables = [...mergedSecrets, NATIVE_HOSTING_ENV]; - const { deployment_uuid: deploymentUuid } = await createDeployment( projectUuid, uploadSignature.upload_uuid, diff --git a/packages/catalyst/src/cli/lib/build-env.spec.ts b/packages/catalyst/src/cli/lib/build-env.spec.ts index b067a1564d..8297e2c865 100644 --- a/packages/catalyst/src/cli/lib/build-env.spec.ts +++ b/packages/catalyst/src/cli/lib/build-env.spec.ts @@ -19,14 +19,35 @@ describe('loadBuildEnv', () => { process.env.BUILD_ENV_TEST_A = 'from-process'; try { - loadBuildEnv({ envPath: '.env.custom', cwd: tmpDir }); - + expect(loadBuildEnv({ envPath: '.env.custom', cwd: tmpDir })).toEqual({ + BUILD_ENV_TEST_A: 'from-file', + }); expect(process.env.BUILD_ENV_TEST_A).toBe('from-file'); } finally { await cleanup(); } }); + test('expands variable references in an explicit --env-path', async () => { + const [tmpDir, cleanup] = await mkTempDir('build-env-'); + + await writeFile( + join(tmpDir, '.env.custom'), + 'BUILD_ENV_TEST_A=cdn.example.com\nBUILD_ENV_TEST_B=https://$BUILD_ENV_TEST_A', + 'utf-8', + ); + + try { + expect(loadBuildEnv({ envPath: '.env.custom', cwd: tmpDir })).toEqual({ + BUILD_ENV_TEST_A: 'cdn.example.com', + BUILD_ENV_TEST_B: 'https://cdn.example.com', + }); + expect(process.env.BUILD_ENV_TEST_B).toBe('https://cdn.example.com'); + } finally { + await cleanup(); + } + }); + test('throws a UserActionableError when --env-path does not exist', async () => { const [tmpDir, cleanup] = await mkTempDir('build-env-'); @@ -53,8 +74,7 @@ describe('loadBuildEnv', () => { await writeFile(join(tmpDir, '.env.local'), 'BUILD_ENV_TEST_A=from-env-local', 'utf-8'); try { - loadBuildEnv({ cwd: tmpDir }); - + expect(loadBuildEnv({ cwd: tmpDir })).toBeUndefined(); expect(process.env.BUILD_ENV_TEST_A).toBe('from-env-local'); expect(process.env.BUILD_ENV_TEST_B).toBe('only-in-env'); } finally { diff --git a/packages/catalyst/src/cli/lib/build-env.ts b/packages/catalyst/src/cli/lib/build-env.ts index 037e86d2b0..66ecf0667b 100644 --- a/packages/catalyst/src/cli/lib/build-env.ts +++ b/packages/catalyst/src/cli/lib/build-env.ts @@ -1,5 +1,6 @@ import { colorize } from 'consola/utils'; import { config } from 'dotenv'; +import { expand } from 'dotenv-expand'; import { existsSync } from 'node:fs'; import { resolve } from 'node:path'; @@ -27,7 +28,13 @@ interface LoadBuildEnvOptions { // it) can see them. This is intentionally scoped to `build` and `deploy`: no // other command loads env files, so running the CLI can't be surprised by a // stray `.env.local` on disk. -export function loadBuildEnv({ envPath, cwd = process.cwd() }: LoadBuildEnvOptions): void { +// +// Returns the `--env-path` file's variables so the build can use that file +// alone; returns undefined when the conventional files were auto-loaded. +export function loadBuildEnv({ + envPath, + cwd = process.cwd(), +}: LoadBuildEnvOptions): Record | undefined { if (envPath !== undefined) { const envFilePath = resolve(cwd, envPath); const result = config({ path: envFilePath, override: true }); @@ -45,9 +52,13 @@ export function loadBuildEnv({ envPath, cwd = process.cwd() }: LoadBuildEnvOptio throw new UserActionableError(message); } + // Next.js won't read env files (and so won't expand `$VAR` references) when + // `--env-path` is given, so expand them here, matching what it would do. + const { parsed = {} } = expand({ parsed: result.parsed ?? {} }); + consola.log(colorize('cyanBright', `Loaded environment variables from ${envFilePath}\n`)); - return; + return parsed; } // Auto-load the conventional files. `.env.local` is loaded first so it takes @@ -66,4 +77,6 @@ export function loadBuildEnv({ envPath, cwd = process.cwd() }: LoadBuildEnvOptio if (loaded.length > 0) { consola.log(colorize('cyanBright', `Loaded environment variables from ${loaded.join(', ')}\n`)); } + + return undefined; } diff --git a/packages/catalyst/src/cli/lib/env-config.spec.ts b/packages/catalyst/src/cli/lib/env-config.spec.ts index a41680e956..62f59b5c3d 100644 --- a/packages/catalyst/src/cli/lib/env-config.spec.ts +++ b/packages/catalyst/src/cli/lib/env-config.spec.ts @@ -1,6 +1,11 @@ import { describe, expect, test } from 'vitest'; -import { mergeDeploymentSecrets, parseEnvAssignment, toDeploymentSecrets } from './env-config'; +import { + mergeDeploymentSecrets, + parseEnvAssignment, + toDeploymentSecrets, + toEnvFileSecrets, +} from './env-config'; describe('parseEnvAssignment', () => { test('parses a basic KEY=VALUE assignment', () => { @@ -46,7 +51,29 @@ describe('toDeploymentSecrets', () => { }); }); +describe('toEnvFileSecrets', () => { + test('skips empty values and names that are not valid env vars', () => { + expect(toEnvFileSecrets({ FOO: 'bar', EMPTY: '', 'my.key': 'x' })).toEqual([ + { type: 'secret', key: 'FOO', value: 'bar' }, + ]); + }); +}); + describe('mergeDeploymentSecrets', () => { + test('applies layers lowest precedence first, so later layers win', () => { + const merged = mergeDeploymentSecrets( + toDeploymentSecrets({ STORED: 'stored', SHARED: 'stored' }), + toDeploymentSecrets({ FILE: 'file', SHARED: 'file' }), + toDeploymentSecrets({ SHARED: 'flag' }), + ); + + expect(merged).toEqual([ + { type: 'secret', key: 'STORED', value: 'stored' }, + { type: 'secret', key: 'SHARED', value: 'flag' }, + { type: 'secret', key: 'FILE', value: 'file' }, + ]); + }); + test('merges both sets with flag secrets overriding persisted on conflict', () => { const persisted = toDeploymentSecrets({ PERSISTED_ONLY: 'keep', SHARED: 'stored' }); const flagSecrets = toDeploymentSecrets({ SHARED: 'override', FLAG_ONLY: 'flag' }); diff --git a/packages/catalyst/src/cli/lib/env-config.ts b/packages/catalyst/src/cli/lib/env-config.ts index 30e41b21dc..e5919c1390 100644 --- a/packages/catalyst/src/cli/lib/env-config.ts +++ b/packages/catalyst/src/cli/lib/env-config.ts @@ -51,16 +51,21 @@ export const toDeploymentSecrets = (envVars: Record): Deployment return Object.entries(envVars).map(([key, value]) => ({ type: 'secret', key, value })); }; -// Merge persisted secrets with inline `--secret` flag secrets, keyed by name. -// Inline flags win on conflict so users can override a stored value per-run. -export const mergeDeploymentSecrets = ( - persisted: DeploymentSecret[], - flagSecrets: DeploymentSecret[], -): DeploymentSecret[] => { +// Convert an `--env-path` file's vars into deployment secrets. Empty values and +// names that aren't valid env vars are skipped, matching what `--secret` and +// `catalyst env add` accept. +export const toEnvFileSecrets = (envVars: Record): DeploymentSecret[] => { + return toDeploymentSecrets(envVars).filter( + ({ key, value }) => value !== '' && ENV_KEY_PATTERN.test(key), + ); +}; + +// Merge layers of secrets keyed by name, lowest precedence first: a later +// layer wins on conflict (e.g. persisted, then `--env-path`, then `--secret`). +export const mergeDeploymentSecrets = (...layers: DeploymentSecret[][]): DeploymentSecret[] => { const byKey = new Map(); - persisted.forEach((secret) => byKey.set(secret.key, secret)); - flagSecrets.forEach((secret) => byKey.set(secret.key, secret)); + layers.flat().forEach((secret) => byKey.set(secret.key, secret)); return Array.from(byKey.values()); }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 85ef0921eb..5815a076ec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -351,6 +351,9 @@ importers: dotenv: specifier: ^16.5.0 version: 16.5.0 + dotenv-expand: + specifier: ^10.0.0 + version: 10.0.0 execa: specifier: ^9.6.0 version: 9.6.0 From 0fdc26db1b0f4c810b7ece19c876f1e917b522a4 Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Mon, 2 Nov 2026 15:53:48 +0000 Subject: [PATCH 15/19] LTRAC-2818: test(core) - Reload until new blog and compare fixtures show (#3327) The blog tag/post tests and the compare out-of-stock test create data through the REST API and load the page right away. When the storefront hasn't picked it up yet, every retry fails the same way. Reload until it shows, as the product and coupon tests already do. Fixes LTRAC-2818 --- core/tests/ui/e2e/blog.spec.ts | 19 +++++++++++++++---- core/tests/ui/e2e/compare.spec.ts | 11 ++++++++--- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/core/tests/ui/e2e/blog.spec.ts b/core/tests/ui/e2e/blog.spec.ts index df7e6a8fbb..22f990a396 100644 --- a/core/tests/ui/e2e/blog.spec.ts +++ b/core/tests/ui/e2e/blog.spec.ts @@ -25,6 +25,8 @@ test('Blog is accessible and displays posts', async ({ page, blog }) => { }); test('Blog can be filtered by tags', async ({ page, blog }) => { + test.setTimeout(90000); + const t = await getTranslations('Blog'); const { name, path } = await blog.getBlog(); const tag = faker.string.alpha(10); @@ -32,7 +34,12 @@ test('Blog can be filtered by tags', async ({ page, blog }) => { tags: [tag], }); - await page.goto(`${path}?tag=${tag}`); + // A new post can take a few seconds to reach the storefront, so reload until it shows. + await expect(async () => { + await page.goto(`${path}?tag=${tag}`); + await expect(page.getByRole('link', { name: post.title })).toBeVisible(); + }).toPass({ timeout: 60000, intervals: [2000] }); + await expect(page.getByRole('heading', { name })).toBeVisible(); // Streamed content sits in a hidden copy until React reveals it, so match visible text only. @@ -41,13 +48,14 @@ test('Blog can be filtered by tags', async ({ page, blog }) => { await expect(breadcrumbs.getByText(t('home')).filter({ visible: true })).toBeVisible(); await expect(breadcrumbs.getByText(name).filter({ visible: true })).toBeVisible(); await expect(breadcrumbs.getByText(tag).filter({ visible: true })).toBeVisible(); - await expect(page.getByRole('link', { name: post.title })).toBeVisible(); }); test('Blog post page displays content, breadcrumbs, tags, and author info', async ({ page, blog, }) => { + test.setTimeout(90000); + const t = await getTranslations('Blog'); const { name } = await blog.getBlog(); const post = await blog.createPost({ @@ -61,8 +69,11 @@ test('Blog post page displays content, breadcrumbs, tags, and author info', asyn tags: ['Tag 1', 'Tag 2'], }); - await page.goto(post.path); - await expect(page.getByRole('heading', { name: post.title })).toBeVisible(); + // A new post can take a few seconds to reach the storefront, so reload until it shows. + await expect(async () => { + await page.goto(post.path); + await expect(page.getByRole('heading', { name: post.title })).toBeVisible(); + }).toPass({ timeout: 60000, intervals: [2000] }); // Streamed content sits in a hidden copy until React reveals it, so match visible text only. const breadcrumbs = page.getByLabel('breadcrumb'); diff --git a/core/tests/ui/e2e/compare.spec.ts b/core/tests/ui/e2e/compare.spec.ts index 453257d9b0..aca97bb2c8 100644 --- a/core/tests/ui/e2e/compare.spec.ts +++ b/core/tests/ui/e2e/compare.spec.ts @@ -130,6 +130,8 @@ test("Product with variants 'View options' redirect to product page", async ({ p }); test('Disabled add to cart for out of stock products', async ({ page, catalog }) => { + test.setTimeout(90000); + const t = await getTranslations('Compare'); const product = await catalog.createSimpleProduct({ @@ -142,10 +144,13 @@ test('Disabled add to cart for out of stock products', async ({ page, catalog }) inventoryLevel: 0, }); - await page.goto(`/compare/?ids=${product.id},${productWithVariants.id}`); - + // New products can take a few seconds to reach the storefront, so reload until they show. // Simple products should have the add to cart button disabled - await expect(page.getByRole('button', { name: t('addToCart') })).toBeDisabled(); + await expect(async () => { + await page.goto(`/compare/?ids=${product.id},${productWithVariants.id}`); + await expect(page.getByRole('button', { name: t('addToCart') })).toBeDisabled(); + }).toPass({ timeout: 60000, intervals: [2000] }); + // Product with variants should have the view options link even when OOS await expect(page.getByRole('link', { name: t('viewOptions') })).toBeVisible(); }); From 1eb332b856a3c9ac9a8965624f74850735447552 Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Thu, 5 Nov 2026 16:48:30 +0000 Subject: [PATCH 16/19] LTRAC-2683: fix(cli) - Reconnect deployment status stream on disconnect (#3328) * LTRAC-2683: fix(cli) - Reconnect deployment status stream on disconnect The deployment events stream closes after 30s while a deploy can run for minutes, so `catalyst deploy` crashed with `TypeError: terminated`. It now reconnects until the deployment completes, fails, or times out, and no longer reports success when the stream ends before the deployment does. Fixes LTRAC-2683 * LTRAC-2683: fix(cli) - Buffer SSE frames and bound open streams by deadline Parse deployment events only once a full frame arrives, keep a completed status when the connection drops afterwards, and cancel a stream that is still open when the deadline passes. Refs LTRAC-2683 * LTRAC-2683: fix(cli) - Accept CRLF line endings in deployment events Refs LTRAC-2683 --- .changeset/cli-deploy-status-reconnect.md | 5 + .../catalyst/src/cli/commands/deploy.spec.ts | 273 +++++++++++++++++- packages/catalyst/src/cli/commands/deploy.ts | 182 +++++++++--- packages/catalyst/tests/mocks/handlers.ts | 6 +- 4 files changed, 419 insertions(+), 47 deletions(-) create mode 100644 .changeset/cli-deploy-status-reconnect.md diff --git a/.changeset/cli-deploy-status-reconnect.md b/.changeset/cli-deploy-status-reconnect.md new file mode 100644 index 0000000000..c4ebc92906 --- /dev/null +++ b/.changeset/cli-deploy-status-reconnect.md @@ -0,0 +1,5 @@ +--- +'@bigcommerce/catalyst': patch +--- + +`catalyst deploy` no longer crashes with `TypeError: terminated` when the deployment status stream disconnects. It reconnects until the deployment completes or fails, and no longer reports success when the stream closes before the deployment finishes. diff --git a/packages/catalyst/src/cli/commands/deploy.spec.ts b/packages/catalyst/src/cli/commands/deploy.spec.ts index 4c56a4d753..e1a29f8dfc 100644 --- a/packages/catalyst/src/cli/commands/deploy.spec.ts +++ b/packages/catalyst/src/cli/commands/deploy.spec.ts @@ -242,17 +242,17 @@ describe('deployment and event streaming', () => { start(controller) { controller.enqueue( encoder.encode( - `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"processing","progress":75}}`, + `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"processing","progress":75}}\n\n`, ), ); setTimeout(() => { // Incomplete stream data - controller.enqueue(encoder.encode(`data: {"deployment_status":"in_progress",`)); + controller.enqueue(encoder.encode(`data: {"deployment_status":"in_progress",\n\n`)); }, 10); setTimeout(() => { controller.enqueue( encoder.encode( - `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"finalizing","progress":99}}`, + `data: {"deployment_status":"completed","deployment_uuid":"${deploymentUuid}","event":{"step":"finalizing","progress":99}}\n\n`, ), ); controller.close(); @@ -285,6 +285,269 @@ describe('deployment and event streaming', () => { ); }); + const eventStream = (...events: string[]) => + new HttpResponse( + new ReadableStream({ + start(controller) { + events.forEach((event) => + controller.enqueue(new TextEncoder().encode(`data: ${event}\n\n`)), + ); + controller.close(); + }, + }), + { status: 200, headers: { 'Content-Type': 'text/event-stream' } }, + ); + + const eventsUrl = + 'https://:apiHost/stores/:storeHash/v3/infrastructure/deployments/:deploymentUuid/events'; + + test('reconnects when the stream closes or drops before the deployment finishes', async () => { + let connections = 0; + + server.use( + http.get(eventsUrl, () => { + connections += 1; + + if (connections === 1) { + return eventStream( + `{"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"processing","progress":75}}`, + ); + } + + if (connections === 2) { + return HttpResponse.error(); + } + + return eventStream( + `{"deployment_status":"completed","deployment_uuid":"${deploymentUuid}","event":null,"deployment_hostnames":["example.com"]}`, + ); + }), + ); + + const hostname = await getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost, { + reconnectDelayMs: 0, + }); + + expect(connections).toBe(3); + expect(hostname).toBe('example.com'); + expect(textHistory).toEqual([ + 'Fetching...', + 'Processing...', + 'Deployment completed successfully.', + ]); + }); + + test('reconnects when the server terminates the stream mid-read', async () => { + let connections = 0; + + server.use( + http.get(eventsUrl, () => { + connections += 1; + + if (connections === 1) { + return new HttpResponse( + new ReadableStream({ + start(controller) { + controller.error(new TypeError('terminated')); + }, + }), + { status: 200, headers: { 'Content-Type': 'text/event-stream' } }, + ); + } + + return eventStream( + `{"deployment_status":"completed","deployment_uuid":"${deploymentUuid}","event":null}`, + ); + }), + ); + + await getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost, { + reconnectDelayMs: 0, + }); + + expect(connections).toBe(2); + expect(textHistory).toContain('Deployment completed successfully.'); + }); + + test('times out if the deployment never finishes', async () => { + server.use( + http.get(eventsUrl, () => + eventStream( + `{"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"processing","progress":75}}`, + ), + ), + ); + + await expect( + getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost, { + timeoutMs: 0, + reconnectDelayMs: 0, + }), + ).rejects.toThrow('Timed out waiting for the deployment to finish.'); + }); + + test('fails when the deployment status is failed without an error code', async () => { + server.use( + http.get(eventsUrl, () => + eventStream( + `{"deployment_status":"failed","deployment_uuid":"${deploymentUuid}","event":null}`, + ), + ), + ); + + await expect( + getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost), + ).rejects.toThrow('Deployment failed.'); + }); + + test('parses an event split across reads', async () => { + const frame = `data: {"deployment_status":"completed","deployment_uuid":"${deploymentUuid}","event":null,"deployment_hostnames":["example.com"]}\n\n`; + + server.use( + http.get( + eventsUrl, + () => + new HttpResponse( + new ReadableStream({ + start(controller) { + controller.enqueue(new TextEncoder().encode(frame.slice(0, 40))); + setTimeout(() => { + controller.enqueue(new TextEncoder().encode(frame.slice(40))); + controller.close(); + }, 10); + }, + }), + { status: 200, headers: { 'Content-Type': 'text/event-stream' } }, + ), + ), + ); + + const hostname = await getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost, { + reconnectDelayMs: 0, + }); + + expect(hostname).toBe('example.com'); + expect(consola.warn).not.toHaveBeenCalled(); + }); + + test('parses CRLF-delimited events, including a CRLF split across reads', async () => { + const chunks = [ + `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"processing","progress":75}}\r`, + '\n\r\n', + `data: {"deployment_status":"completed","deployment_uuid":"${deploymentUuid}","event":null}\r\n\r\n`, + ]; + + server.use( + http.get( + eventsUrl, + () => + new HttpResponse( + new ReadableStream({ + async start(controller) { + await chunks.reduce( + (previous, chunk) => + previous.then(async () => { + controller.enqueue(new TextEncoder().encode(chunk)); + await new Promise((resolve) => setTimeout(resolve, 5)); + }), + Promise.resolve(), + ); + controller.close(); + }, + }), + { status: 200, headers: { 'Content-Type': 'text/event-stream' } }, + ), + ), + ); + + await getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost, { + reconnectDelayMs: 0, + }); + + expect(textHistory).toEqual([ + 'Fetching...', + 'Processing...', + 'Deployment completed successfully.', + ]); + expect(consola.warn).not.toHaveBeenCalled(); + }); + + test('keeps a completed status when the stream drops afterwards', async () => { + let connections = 0; + + server.use( + http.get(eventsUrl, () => { + connections += 1; + + return new HttpResponse( + new ReadableStream({ + start(controller) { + controller.enqueue( + new TextEncoder().encode( + `data: {"deployment_status":"completed","deployment_uuid":"${deploymentUuid}","event":null}\n\n`, + ), + ); + setTimeout(() => controller.error(new TypeError('terminated')), 10); + }, + }), + { status: 200, headers: { 'Content-Type': 'text/event-stream' } }, + ); + }), + ); + + await getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost, { + reconnectDelayMs: 0, + }); + + expect(connections).toBe(1); + expect(textHistory).toContain('Deployment completed successfully.'); + }); + + test('times out while a stream stays open', async () => { + server.use( + http.get( + eventsUrl, + () => + new HttpResponse( + new ReadableStream({ + start(controller) { + controller.enqueue( + new TextEncoder().encode( + `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"deploying","progress":50}}\n\n`, + ), + ); + }, + }), + { status: 200, headers: { 'Content-Type': 'text/event-stream' } }, + ), + ), + ); + + await expect( + getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost, { + timeoutMs: 50, + reconnectDelayMs: 0, + }), + ).rejects.toThrow('Timed out waiting for the deployment to finish.'); + }); + + test('times out while the stream is still connecting', async () => { + server.use( + http.get(eventsUrl, async () => { + await new Promise((resolve) => setTimeout(resolve, 200)); + + return HttpResponse.text(''); + }), + ); + + await expect( + getDeploymentStatus(deploymentUuid, storeHash, accessToken, apiHost, { + timeoutMs: 20, + reconnectDelayMs: 0, + }), + ).rejects.toThrow('Timed out waiting for the deployment to finish.'); + }); + test('handles deployment errors', async () => { const encoder = new TextEncoder(); @@ -296,13 +559,13 @@ describe('deployment and event streaming', () => { start(controller) { controller.enqueue( encoder.encode( - `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"processing","progress":75}}`, + `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"processing","progress":75}}\n\n`, ), ); setTimeout(() => { controller.enqueue( encoder.encode( - `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"unzipping","progress":99},"error":{"code":30}}`, + `data: {"deployment_status":"in_progress","deployment_uuid":"${deploymentUuid}","event":{"step":"unzipping","progress":99},"error":{"code":30}}\n\n`, ), ); }, 10); diff --git a/packages/catalyst/src/cli/commands/deploy.ts b/packages/catalyst/src/cli/commands/deploy.ts index 89f122348c..0bdd23e73f 100644 --- a/packages/catalyst/src/cli/commands/deploy.ts +++ b/packages/catalyst/src/cli/commands/deploy.ts @@ -257,16 +257,42 @@ export const createDeployment = async ( return data; }; -export const getDeploymentStatus = async ( +// The events stream closes after 30s, and the deploy job can run for 10 minutes. +const DEPLOYMENT_STATUS_TIMEOUT_MS = 15 * 60 * 1000; +const RECONNECT_DELAY_MS = 1000; + +// undici rejects with a TypeError ("terminated", "fetch failed") when the socket drops. +const isNetworkError = (error: unknown) => error instanceof TypeError; + +type DeploymentStatusEvent = z.infer; + +const timeoutError = () => + new Error( + 'Timed out waiting for the deployment to finish. It may still complete in the background.', + ); + +// SSE lines can end in CRLF, LF or CR. A trailing CR may be the first half of a CRLF +// split across reads, so it is left for the next read. +const normalizeLineEndings = (text: string, { keepTrailingCr = false } = {}) => + text.replace(keepTrailingCr ? /\r\n|\r(?!$)/g : /\r\n?/g, '\n'); + +// Joins the `data:` lines of one SSE frame; keep-alive comments have none. +const frameData = (frame: string) => + frame + .split('\n') + .filter((line) => line.startsWith('data:')) + .map((line) => line.slice('data:'.length).trim()) + .join('\n'); + +// Reads one connection of the event stream until the server closes it. +const readDeploymentEvents = async ( deploymentUuid: string, storeHash: string, accessToken: string, apiHost: string, -): Promise => { - consola.info('Fetching deployment status...'); - - const spinner = yoctoSpinner().start('Fetching...'); - + signal: AbortSignal, + onEvent: (data: DeploymentStatusEvent) => void, +) => { const response = await fetch( `https://${apiHost}/stores/${storeHash}/v3/infrastructure/deployments/${deploymentUuid}/events`, { @@ -277,6 +303,7 @@ export const getDeploymentStatus = async ( Connection: 'keep-alive', 'X-Correlation-Id': getTelemetry().correlationId, }, + signal, }, ); @@ -292,51 +319,128 @@ export const getDeploymentStatus = async ( throw new Error('Failed to read event stream.'); } + // Ends a stream that stays open past the deadline. + signal.addEventListener( + 'abort', + () => { + reader.cancel().catch(() => undefined); + }, + { once: true }, + ); + const decoder = new TextDecoder(); - let done = false; - let deploymentHostname: string | undefined; + let buffer = ''; + + const processFrame = (frame: string) => { + const event = frameData(frame); + + if (!event) { + return; + } - while (!done) { - // eslint-disable-next-line no-await-in-loop - const { value, done: streamDone } = await reader.read(); let json: unknown; - if (value) { - const chunk = decoder.decode(value, { stream: true }).trim(); - const split = chunk - .split('\n\n') - .map((s) => s.replace('data:', '').trim()) - .filter(Boolean); - - // eslint-disable-next-line no-loop-func - split.forEach((event) => { - try { - json = JSON.parse(event); - } catch (error) { - consola.warn(`Failed to parse event, dropping from stream. Event: ${event}`, error); - - return; - } + try { + json = JSON.parse(event); + } catch (error) { + consola.warn(`Failed to parse event, dropping from stream. Event: ${event}`, error); - const data = DeploymentStatusSchema.parse(json); + return; + } - if (data.error) { - throw new Error( - `Deployment failed (error code ${data.error.code}): ${getDeploymentErrorMessage(data.error.code)}`, - ); - } + onEvent(DeploymentStatusSchema.parse(json)); + }; - if (data.event && STEPS[data.event.step] !== spinner.text) { - spinner.text = STEPS[data.event.step]; + // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition + while (true) { + // eslint-disable-next-line no-await-in-loop + const { value, done } = await reader.read(); + + if (done) { + processFrame(normalizeLineEndings(buffer + decoder.decode())); + break; + } + + // A frame can span reads, so only complete frames are parsed. + const frames = normalizeLineEndings(buffer + decoder.decode(value, { stream: true }), { + keepTrailingCr: true, + }).split('\n\n'); + + buffer = frames.pop() ?? ''; + frames.forEach(processFrame); + } +}; + +export const getDeploymentStatus = async ( + deploymentUuid: string, + storeHash: string, + accessToken: string, + apiHost: string, + { timeoutMs = DEPLOYMENT_STATUS_TIMEOUT_MS, reconnectDelayMs = RECONNECT_DELAY_MS } = {}, +): Promise => { + consola.info('Fetching deployment status...'); + + const spinner = yoctoSpinner().start('Fetching...'); + const deadline = Date.now() + timeoutMs; + let status: DeploymentStatusEvent['deployment_status'] | undefined; + let deploymentHostname: string | undefined; + + const onEvent = (data: DeploymentStatusEvent) => { + if (data.error) { + throw new Error( + `Deployment failed (error code ${data.error.code}): ${getDeploymentErrorMessage(data.error.code)}`, + ); + } + + if (data.deployment_status === 'failed') { + throw new Error('Deployment failed.'); + } + + if (data.event && STEPS[data.event.step] !== spinner.text) { + spinner.text = STEPS[data.event.step]; + } + + if (data.deployment_hostnames && data.deployment_hostnames.length > 0) { + deploymentHostname = data.deployment_hostnames[0]; + } + + status = data.deployment_status; + }; + + // Each new connection starts with the current state, so reconnecting loses nothing. + // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition + while (true) { + const signal = AbortSignal.timeout(Math.max(deadline - Date.now(), 0)); + + try { + // eslint-disable-next-line no-await-in-loop + await readDeploymentEvents(deploymentUuid, storeHash, accessToken, apiHost, signal, onEvent); + } catch (error) { + if (status !== 'completed') { + if (signal.aborted) { + throw timeoutError(); } - if (data.deployment_hostnames && data.deployment_hostnames.length > 0) { - deploymentHostname = data.deployment_hostnames[0]; + if (!isNetworkError(error)) { + throw error; } - }); + + consola.debug('Deployment event stream disconnected.', error); + } + } + + if (status === 'completed') { + break; } - done = streamDone; + if (Date.now() >= deadline) { + throw timeoutError(); + } + + consola.debug('Reconnecting to the deployment event stream...'); + + // eslint-disable-next-line no-await-in-loop + await new Promise((resolve) => setTimeout(resolve, reconnectDelayMs)); } spinner.success('Deployment completed successfully.'); diff --git a/packages/catalyst/tests/mocks/handlers.ts b/packages/catalyst/tests/mocks/handlers.ts index 5475fac287..6911135c00 100644 --- a/packages/catalyst/tests/mocks/handlers.ts +++ b/packages/catalyst/tests/mocks/handlers.ts @@ -131,14 +131,14 @@ export const handlers = [ controller.enqueue( encoder.encode( // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - `data: {"deployment_status":"in_progress","deployment_uuid":"${params.deploymentUuid}","event":{"step":"processing","progress":75},"deployment_hostnames":[]}`, + `data: {"deployment_status":"in_progress","deployment_uuid":"${params.deploymentUuid}","event":{"step":"processing","progress":75},"deployment_hostnames":[]}\n\n`, ), ); setTimeout(() => { controller.enqueue( encoder.encode( // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - `data: {"deployment_status":"in_progress","deployment_uuid":"${params.deploymentUuid}","event":{"step":"finalizing","progress":99},"deployment_hostnames":[]}`, + `data: {"deployment_status":"in_progress","deployment_uuid":"${params.deploymentUuid}","event":{"step":"finalizing","progress":99},"deployment_hostnames":[]}\n\n`, ), ); }, 10); @@ -146,7 +146,7 @@ export const handlers = [ controller.enqueue( encoder.encode( // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - `data: {"deployment_status":"completed","deployment_uuid":"${params.deploymentUuid}","event":null,"deployment_hostnames":["example.com"]}`, + `data: {"deployment_status":"completed","deployment_uuid":"${params.deploymentUuid}","event":null,"deployment_hostnames":["example.com"]}\n\n`, ), ); controller.close(); From 16d0c07392836cc077ebbb6ef254756b78d3b93f Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Fri, 6 Nov 2026 16:55:47 +0000 Subject: [PATCH 17/19] LTRAC-821: feat(core) - Send OpenTelemetry spans to Workers tracing (#3329) * LTRAC-821: feat(core) - Send OpenTelemetry spans to Workers tracing On Cloudflare Workers, @vercel/otel fails to load, so Catalyst spans are lost. Detect the Workers runtime in instrumentation.ts and register a bridge from @opentelemetry/api to the runtime's native ctx.tracing, so Next.js and custom spans land in Workers traces and its OTLP exports. Refs LTRAC-821 * LTRAC-821: fix - Address review findings on Workers tracing bridge - Tolerate workerd releases whose spans lack spanContext, setStatus, recordException and updateName. - Forward the caller's receiver through context.bind. - Keep a Workers-aware instrumentation.ts during Storefront Hosting setup instead of prompting to delete it. Refs LTRAC-821 --- .../cli-keep-workers-instrumentation.md | 5 + .changeset/workers-native-tracing.md | 7 + core/instrumentation.ts | 20 +- core/lib/otel/cloudflare.spec.ts | 191 ++++++++++++ core/lib/otel/cloudflare.ts | 272 ++++++++++++++++++ .../src/cli/lib/commerce-hosting.spec.ts | 13 + .../catalyst/src/cli/lib/commerce-hosting.ts | 4 + 7 files changed, 509 insertions(+), 3 deletions(-) create mode 100644 .changeset/cli-keep-workers-instrumentation.md create mode 100644 .changeset/workers-native-tracing.md create mode 100644 core/lib/otel/cloudflare.spec.ts create mode 100644 core/lib/otel/cloudflare.ts diff --git a/.changeset/cli-keep-workers-instrumentation.md b/.changeset/cli-keep-workers-instrumentation.md new file mode 100644 index 0000000000..6fa47dc32e --- /dev/null +++ b/.changeset/cli-keep-workers-instrumentation.md @@ -0,0 +1,5 @@ +--- +'@bigcommerce/catalyst': patch +--- + +Keep `instrumentation.ts` and `@vercel/otel` during Storefront Hosting setup when the hook already sends spans to Workers tracing, instead of prompting to remove them. diff --git a/.changeset/workers-native-tracing.md b/.changeset/workers-native-tracing.md new file mode 100644 index 0000000000..89e499c231 --- /dev/null +++ b/.changeset/workers-native-tracing.md @@ -0,0 +1,7 @@ +--- +'@bigcommerce/catalyst-core': minor +--- + +Send OpenTelemetry spans to Cloudflare Workers tracing when running on Workers. `instrumentation.ts` now detects the Workers runtime and registers a bridge that hands spans from Next.js and `~/lib/otel/tracer` to the runtime's native tracing, instead of loading `@vercel/otel`, which fails on Workers. Other runtimes keep using `@vercel/otel`. + +Migration: if you customized `instrumentation.ts`, keep your `registerOTel()` call behind the new Workers check and import `@vercel/otel` lazily, so it never loads on Workers. diff --git a/core/instrumentation.ts b/core/instrumentation.ts index 96cf5d6560..57b8181e52 100644 --- a/core/instrumentation.ts +++ b/core/instrumentation.ts @@ -1,5 +1,3 @@ -import { registerOTel } from '@vercel/otel'; - // eslint-disable-next-line valid-jsdoc /** * Initializes OpenTelemetry instrumentation for the Next.js application. @@ -12,6 +10,7 @@ import { registerOTel } from '@vercel/otel'; * * Configuration: * - Uses @vercel/otel for simplified OpenTelemetry setup + * - On Cloudflare Workers, spans go to Workers tracing instead (see ~/lib/otel/cloudflare) * - Automatically instruments Next.js internals (requests, rendering, fetches) * - Service name is read from OTEL_SERVICE_NAME environment variable * - If OTEL_SERVICE_NAME is not set, defaults to 'next-app' @@ -50,7 +49,22 @@ import { registerOTel } from '@vercel/otel'; * - OPENTELEMETRY.md in this directory * - Official Next.js guide: https://nextjs.org/docs/app/guides/open-telemetry */ -export function register() { +export async function register() { + // On Cloudflare Workers, hand spans to the runtime's native tracing instead. + // `@vercel/otel` must stay out of this branch: its Node build throws when + // workerd evaluates it, so it is only ever imported lazily below. + // `navigator` is undefined on Node 20, despite what the DOM types say. + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (globalThis.navigator?.userAgent === 'Cloudflare-Workers') { + const { registerWorkersTracing } = await import('./lib/otel/cloudflare'); + + registerWorkersTracing(); + + return; + } + + const { registerOTel } = await import('@vercel/otel'); + // Service name is pulled from the OTEL_SERVICE_NAME env var. // If you wish to manually set it, you can remove the env var and set it here: // registerOTel({ serviceName: 'catalyst-storefront' }); diff --git a/core/lib/otel/cloudflare.spec.ts b/core/lib/otel/cloudflare.spec.ts new file mode 100644 index 0000000000..8ee66d607d --- /dev/null +++ b/core/lib/otel/cloudflare.spec.ts @@ -0,0 +1,191 @@ +import { context, SpanStatusCode, trace } from '@opentelemetry/api'; +import { afterAll, afterEach, beforeAll, describe, expect, it } from 'vitest'; + +import { registerWorkersTracing } from './cloudflare'; + +const CLOUDFLARE_CONTEXT_SYMBOL = Symbol.for('__cloudflare-context__'); + +interface RecordedSpan { + name: string; + attributes: Record; + statuses: unknown[]; + exceptions: unknown[]; + ended: boolean; +} + +// Records what the bridge hands the Workers runtime. +function createFakeTracing() { + const spans: RecordedSpan[] = []; + + const startSpan = (name: string) => { + const recorded: RecordedSpan = { + name, + attributes: {}, + statuses: [], + exceptions: [], + ended: false, + }; + + spans.push(recorded); + + const span = { + isTraced: true, + setAttribute(key: string, value: unknown) { + recorded.attributes[key] = value; + + return span; + }, + setAttributes(attributes: Record) { + Object.assign(recorded.attributes, attributes); + + return span; + }, + recordException(exception: unknown) { + recorded.exceptions.push(exception); + }, + setStatus(status: unknown) { + recorded.statuses.push(status); + + return span; + }, + updateName(newName: string) { + recorded.name = newName; + + return span; + }, + spanContext: () => ({ traceId: 'a'.repeat(32), spanId: 'b'.repeat(16), traceFlags: 1 }), + end() { + recorded.ended = true; + }, + }; + + return span; + }; + + return { + spans, + tracing: { + startSpan, + startActiveSpan: (name: string, callback: (span: ReturnType) => T) => + callback(startSpan(name)), + }, + }; +} + +function setCloudflareContext(value: unknown) { + Reflect.set(globalThis, CLOUDFLARE_CONTEXT_SYMBOL, value); +} + +beforeAll(() => { + registerWorkersTracing(); +}); + +afterAll(() => { + trace.disable(); + context.disable(); +}); + +afterEach(() => { + Reflect.deleteProperty(globalThis, CLOUDFLARE_CONTEXT_SYMBOL); +}); + +describe('registerWorkersTracing', () => { + it('records active spans on ctx.tracing and exposes them as the OTel active span', () => { + const { spans, tracing } = createFakeTracing(); + + setCloudflareContext({ ctx: { tracing } }); + + const tracer = trace.getTracer('test'); + + const traceId = tracer.startActiveSpan( + 'render', + { attributes: { 'next.route': '/[locale]', tags: ['a', 'b'] } }, + (span) => { + const active = trace.getActiveSpan(); + + span.setStatus({ code: SpanStatusCode.ERROR, message: 'boom' }); + span.recordException(new Error('boom')); + span.end(); + + return active?.spanContext().traceId; + }, + ); + + expect(traceId).toBe('a'.repeat(32)); + expect(spans).toEqual([ + { + name: 'render', + attributes: { 'next.route': '/[locale]', tags: '["a","b"]' }, + statuses: [{ code: 'error', message: 'boom' }], + exceptions: [expect.objectContaining({ name: 'Error', message: 'boom' })], + ended: true, + }, + ]); + }); + + it('records non-active spans with startSpan', () => { + const { spans, tracing } = createFakeTracing(); + + setCloudflareContext({ ctx: { tracing } }); + + const span = trace + .getTracer('test') + .startSpan('fetch', { attributes: { 'http.method': 'GET' } }); + + span.setAttribute('http.status_code', 200); + span.end(); + + expect(spans).toEqual([ + expect.objectContaining({ + name: 'fetch', + attributes: { 'http.method': 'GET', 'http.status_code': 200 }, + ended: true, + }), + ]); + }); + + it('tolerates runtimes whose spans lack the optional methods', () => { + const recorded = { ended: false }; + const span = { + isTraced: true, + setAttribute: () => span, + setAttributes: () => span, + end: () => { + recorded.ended = true; + }, + }; + + setCloudflareContext({ + ctx: { tracing: { startSpan: () => span, startActiveSpan: () => undefined } }, + }); + + const adapted = trace.getTracer('test').startSpan('fetch'); + + adapted.setStatus({ code: SpanStatusCode.ERROR }); + adapted.recordException(new Error('boom')); + adapted.updateName('renamed'); + adapted.end(); + + expect(adapted.spanContext().traceId).toBe('00000000000000000000000000000000'); + expect(recorded.ended).toBe(true); + }); + + it('keeps the receiver of context-bound callbacks', () => { + const bound = context.bind(context.active(), function name(this: { name: string }) { + return this.name; + }); + + expect(bound.call({ name: 'request' })).toBe('request'); + }); + + it('runs the callback with a non-recording span outside a Workers request', () => { + const result = trace.getTracer('test').startActiveSpan('render', (span) => { + expect(span.isRecording()).toBe(false); + span.end(); + + return 'rendered'; + }); + + expect(result).toBe('rendered'); + }); +}); diff --git a/core/lib/otel/cloudflare.ts b/core/lib/otel/cloudflare.ts new file mode 100644 index 0000000000..2b5d029aaf --- /dev/null +++ b/core/lib/otel/cloudflare.ts @@ -0,0 +1,272 @@ +// Adapters for the OTel API's span, tracer, provider and context-manager interfaces. +/* eslint-disable max-classes-per-file */ +import { + type Attributes, + type AttributeValue, + context, + type Context, + type ContextManager, + type Exception, + INVALID_SPAN_CONTEXT, + ROOT_CONTEXT, + type Span, + type SpanContext, + type SpanOptions, + type SpanStatus, + SpanStatusCode, + trace, + type Tracer, + type TracerProvider, +} from '@opentelemetry/api'; +import { AsyncLocalStorage } from 'node:async_hooks'; + +// Bridges `@opentelemetry/api` onto the Workers runtime's native tracing +// (`ctx.tracing`), so spans from Next.js and `~/lib/otel/tracer` land in +// Workers traces and whatever OTLP destination the Worker exports to. There is +// no SDK, exporter or flush here: the runtime records and ships the spans. +// +// https://developers.cloudflare.com/workers/observability/traces/custom-spans/ + +type PrimitiveAttribute = string | number | boolean; + +// Older workerd releases ship spans without the optional methods. +interface WorkersSpan { + readonly isTraced: boolean; + setAttribute(key: string, value: PrimitiveAttribute): this; + setAttributes(attributes: Record): this; + recordException?(exception: string | { name?: string; message?: string; stack?: string }): void; + setStatus?(status: { code: 'unset' | 'ok' | 'error'; message?: string }): this; + updateName?(name: string): this; + spanContext?(): { traceId: string; spanId: string; traceFlags: number }; + end(): void; +} + +interface WorkersTracing { + startActiveSpan(name: string, callback: (span: WorkersSpan) => T): T; + startSpan(name: string): WorkersSpan; +} + +// Same key `~/lib/kv/adapters/cloudflare-kv` reads; see the drift warning there. +const CLOUDFLARE_CONTEXT_SYMBOL = Symbol.for('__cloudflare-context__'); + +// Resolved per span rather than once at register() time: the context global +// only holds the request's `ctx` while OpenNext is handling a request. +function getWorkersTracing(): WorkersTracing | undefined { + const cloudflareContext: unknown = Reflect.get(globalThis, CLOUDFLARE_CONTEXT_SYMBOL); + + if (typeof cloudflareContext !== 'object' || cloudflareContext === null) return undefined; + + const ctx: unknown = Reflect.get(cloudflareContext, 'ctx'); + + if (typeof ctx !== 'object' || ctx === null) return undefined; + + const tracing: unknown = Reflect.get(ctx, 'tracing'); + + if ( + typeof tracing === 'object' && + tracing !== null && + typeof Reflect.get(tracing, 'startActiveSpan') === 'function' && + typeof Reflect.get(tracing, 'startSpan') === 'function' + ) { + // eslint-disable-next-line @typescript-eslint/consistent-type-assertions + return tracing as WorkersTracing; + } + + return undefined; +} + +// Workers attributes are primitives only; OTel also allows homogeneous arrays. +function toPrimitive(value: AttributeValue | undefined): PrimitiveAttribute | undefined { + if (value === undefined) return undefined; + + if (Array.isArray(value)) return JSON.stringify(value); + + // eslint-disable-next-line @typescript-eslint/consistent-type-assertions + return value as PrimitiveAttribute; +} + +const STATUS_CODES = { + [SpanStatusCode.UNSET]: 'unset', + [SpanStatusCode.OK]: 'ok', + [SpanStatusCode.ERROR]: 'error', +} as const; + +class WorkersSpanAdapter implements Span { + constructor(private readonly span: WorkersSpan) {} + + spanContext(): SpanContext { + return this.span.spanContext?.() ?? INVALID_SPAN_CONTEXT; + } + + setAttribute(key: string, value: AttributeValue): this { + const primitive = toPrimitive(value); + + if (primitive !== undefined) this.span.setAttribute(key, primitive); + + return this; + } + + setAttributes(attributes: Attributes): this { + this.span.setAttributes( + Object.fromEntries( + Object.entries(attributes).map(([key, value]) => [key, toPrimitive(value)]), + ), + ); + + return this; + } + + // The Workers span API has no events or links. + addEvent(): this { + return this; + } + + addLink(): this { + return this; + } + + addLinks(): this { + return this; + } + + setStatus({ code, message }: SpanStatus): this { + this.span.setStatus?.({ code: STATUS_CODES[code], message }); + + return this; + } + + updateName(name: string): this { + this.span.updateName?.(name); + + return this; + } + + end(): void { + this.span.end(); + } + + isRecording(): boolean { + return this.span.isTraced; + } + + recordException(exception: Exception): void { + this.span.recordException?.( + typeof exception === 'string' + ? exception + : { name: exception.name, message: exception.message, stack: exception.stack }, + ); + } +} + +const nonRecordingSpan = () => trace.wrapSpanContext(INVALID_SPAN_CONTEXT); + +function adapt(span: WorkersSpan, options?: SpanOptions): Span { + const adapted = new WorkersSpanAdapter(span); + + if (options?.attributes) adapted.setAttributes(options.attributes); + + return adapted; +} + +function normalizeStartActiveSpanArgs( + args: [F] | [SpanOptions, F] | [SpanOptions, Context, F], +): [SpanOptions | undefined, Context, F] { + if (args.length === 1) return [undefined, context.active(), args[0]]; + + if (args.length === 2) return [args[0], context.active(), args[1]]; + + return args; +} + +// Parenting comes from the runtime's own async context, not the OTel `Context` +// argument: the Workers API has no way to pass an explicit parent. +class WorkersTracer implements Tracer { + startSpan(name: string, options?: SpanOptions): Span { + const tracing = getWorkersTracing(); + + return tracing ? adapt(tracing.startSpan(name), options) : nonRecordingSpan(); + } + + startActiveSpan unknown>(name: string, fn: F): ReturnType; + startActiveSpan unknown>( + name: string, + options: SpanOptions, + fn: F, + ): ReturnType; + startActiveSpan unknown>( + name: string, + options: SpanOptions, + parentContext: Context, + fn: F, + ): ReturnType; + startActiveSpan unknown>( + name: string, + ...args: [F] | [SpanOptions, F] | [SpanOptions, Context, F] + ): ReturnType { + const [options, parentContext, fn] = normalizeStartActiveSpanArgs(args); + const tracing = getWorkersTracing(); + + const run = (span: Span) => + // eslint-disable-next-line @typescript-eslint/consistent-type-assertions + context.with(trace.setSpan(parentContext, span), () => fn(span)) as ReturnType; + + if (!tracing) return run(nonRecordingSpan()); + + return tracing.startActiveSpan(name, (span) => run(adapt(span, options))); + } +} + +class WorkersTracerProvider implements TracerProvider { + private readonly tracer = new WorkersTracer(); + + getTracer(): Tracer { + return this.tracer; + } +} + +// `context.with()` / `context.active()` are no-ops without a context manager, +// and Next.js's tracer relies on them to find the active span. +class AsyncLocalStorageContextManager implements ContextManager { + private readonly storage = new AsyncLocalStorage(); + + active(): Context { + return this.storage.getStore() ?? ROOT_CONTEXT; + } + + with ReturnType>( + ctx: Context, + fn: F, + thisArg?: ThisParameterType, + ...args: A + ): ReturnType { + return this.storage.run(ctx, () => fn.apply(thisArg, args)); + } + + bind(ctx: Context, target: T): T { + if (typeof target !== 'function') return target; + + const run = this.with.bind(this); + + // A plain function, so callers' `this` (e.g. Next.js's `.apply`) reaches `target`. + // eslint-disable-next-line @typescript-eslint/consistent-type-assertions + return function bound(this: unknown, ...args: unknown[]) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-return + return run(ctx, () => Reflect.apply(target, this, args)); + } as T; + } + + enable(): this { + return this; + } + + disable(): this { + this.storage.disable(); + + return this; + } +} + +export function registerWorkersTracing() { + context.setGlobalContextManager(new AsyncLocalStorageContextManager()); + trace.setGlobalTracerProvider(new WorkersTracerProvider()); +} diff --git a/packages/catalyst/src/cli/lib/commerce-hosting.spec.ts b/packages/catalyst/src/cli/lib/commerce-hosting.spec.ts index aceb8e69d5..cb2bb03f60 100644 --- a/packages/catalyst/src/cli/lib/commerce-hosting.spec.ts +++ b/packages/catalyst/src/cli/lib/commerce-hosting.spec.ts @@ -1032,6 +1032,19 @@ describe('cleanupCloudflareIncompatibilities', () => { expect(readCorePackageJson().dependencies).toHaveProperty('@vercel/otel', '^2.1.0'); }); + it('keeps a Workers-aware instrumentation.ts and @vercel/otel without prompting', async () => { + writeCorePackageJson({ dependencies: { next: '^15.0.0', '@vercel/otel': '^2.1.0' } }); + writeCoreInstrumentationFile( + "const { registerWorkersTracing } = await import('./lib/otel/cloudflare');\n", + ); + + await cleanupCloudflareIncompatibilities(projectDir); + + expect(confirmMock).not.toHaveBeenCalled(); + expect(existsSync(join(projectDir, 'instrumentation.ts'))).toBe(true); + expect(readCorePackageJson().dependencies).toHaveProperty('@vercel/otel', '^2.1.0'); + }); + it('is a silent no-op when instrumentation.ts does not exist', async () => { writeCorePackageJson({ dependencies: { next: '^15.0.0', '@vercel/otel': '^2.1.0' } }); diff --git a/packages/catalyst/src/cli/lib/commerce-hosting.ts b/packages/catalyst/src/cli/lib/commerce-hosting.ts index 062b723b82..bf9663da62 100644 --- a/packages/catalyst/src/cli/lib/commerce-hosting.ts +++ b/packages/catalyst/src/cli/lib/commerce-hosting.ts @@ -70,6 +70,10 @@ export const cleanupCloudflareIncompatibilities = async (projectDir: string) => if (!existsSync(instrumentationPath)) return; + // Newer Catalyst hooks branch to Workers tracing and only import + // `@vercel/otel` lazily off Workers, so they are safe to keep. + if (readFileSync(instrumentationPath, 'utf-8').includes('registerWorkersTracing')) return; + if (!process.stdin.isTTY) { consola.warn( 'instrumentation.ts is present and may be incompatible with the Cloudflare Workers ' + From 45627f2180a1055ce2e8a4c30bea8dcd6f7d0e99 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 6 Nov 2026 17:37:39 +0000 Subject: [PATCH 18/19] Version Packages (`canary`) (#3316) * Version Packages (`canary`) * chore: trigger CI --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jorge Moya --- .changeset/analytics-lazy-initialize.md | 5 ---- .../back-684-cart-backorder-column-width.md | 5 ---- .changeset/cart-pick-list-items.md | 7 ----- .changeset/category-facet-subcategories.md | 5 ---- .changeset/cli-deploy-status-reconnect.md | 5 ---- .changeset/cli-env-path-only-source.md | 7 ----- .../cli-keep-workers-instrumentation.md | 5 ---- .changeset/empty-filters-column.md | 5 ---- .changeset/next-16-4-3.md | 5 ---- .changeset/preserve-checkout-url.md | 5 ---- .changeset/rethrow-auth-redirect.md | 5 ---- .changeset/storefront-hosting-native-proxy.md | 7 ----- .changeset/translations-patch-218678fb.md | 5 ---- .changeset/verify-catalyst-skill.md | 5 ---- .changeset/workers-native-tracing.md | 7 ----- core/CHANGELOG.md | 30 +++++++++++++++++++ core/package.json | 6 ++-- packages/catalyst/CHANGELOG.md | 20 +++++++++++++ packages/catalyst/package.json | 2 +- packages/create-catalyst/CHANGELOG.md | 7 +++++ packages/create-catalyst/package.json | 2 +- 21 files changed, 62 insertions(+), 88 deletions(-) delete mode 100644 .changeset/analytics-lazy-initialize.md delete mode 100644 .changeset/back-684-cart-backorder-column-width.md delete mode 100644 .changeset/cart-pick-list-items.md delete mode 100644 .changeset/category-facet-subcategories.md delete mode 100644 .changeset/cli-deploy-status-reconnect.md delete mode 100644 .changeset/cli-env-path-only-source.md delete mode 100644 .changeset/cli-keep-workers-instrumentation.md delete mode 100644 .changeset/empty-filters-column.md delete mode 100644 .changeset/next-16-4-3.md delete mode 100644 .changeset/preserve-checkout-url.md delete mode 100644 .changeset/rethrow-auth-redirect.md delete mode 100644 .changeset/storefront-hosting-native-proxy.md delete mode 100644 .changeset/translations-patch-218678fb.md delete mode 100644 .changeset/verify-catalyst-skill.md delete mode 100644 .changeset/workers-native-tracing.md diff --git a/.changeset/analytics-lazy-initialize.md b/.changeset/analytics-lazy-initialize.md deleted file mode 100644 index 59baa3c180..0000000000 --- a/.changeset/analytics-lazy-initialize.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bigcommerce/catalyst-core': patch ---- - -Initialize analytics providers before the first event. Events like `productViewed` fire from child effects that run before `AnalyticsProvider` calls `initialize()`, so the Google Analytics provider called `gtag` before it was defined. diff --git a/.changeset/back-684-cart-backorder-column-width.md b/.changeset/back-684-cart-backorder-column-width.md deleted file mode 100644 index 11ae2ec06f..0000000000 --- a/.changeset/back-684-cart-backorder-column-width.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bigcommerce/catalyst-core": patch ---- - -Keep the cart quantity column at a fixed width so long backorder/inventory messages wrap to the next line instead of stretching the column. diff --git a/.changeset/cart-pick-list-items.md b/.changeset/cart-pick-list-items.md deleted file mode 100644 index bc69ebe3ba..0000000000 --- a/.changeset/cart-pick-list-items.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@bigcommerce/catalyst-core': minor ---- - -Show the products a pick list option adds to the cart under their parent line item, instead of hiding them. Each one keeps its pick list option's label and shows its own selected options, and its quantity only when it differs from the parent's. The parent's price already includes them, so they have no price of their own. - -Migration: `CartLineItem` gains an optional `includedItems` array and the `Cart` section an optional `includedItemsLabel` prop. Add the `Cart.includedItems` message if you maintain your own translations. diff --git a/.changeset/category-facet-subcategories.md b/.changeset/category-facet-subcategories.md deleted file mode 100644 index 6b45d63d2e..0000000000 --- a/.changeset/category-facet-subcategories.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bigcommerce/catalyst-core": patch ---- - -Include sub-categories when filtering by the Category facet on brand and search pages. Selecting a parent category previously returned no products when they were assigned only to its sub-categories, even though the facet's counts included them. diff --git a/.changeset/cli-deploy-status-reconnect.md b/.changeset/cli-deploy-status-reconnect.md deleted file mode 100644 index c4ebc92906..0000000000 --- a/.changeset/cli-deploy-status-reconnect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bigcommerce/catalyst': patch ---- - -`catalyst deploy` no longer crashes with `TypeError: terminated` when the deployment status stream disconnects. It reconnects until the deployment completes or fails, and no longer reports success when the stream closes before the deployment finishes. diff --git a/.changeset/cli-env-path-only-source.md b/.changeset/cli-env-path-only-source.md deleted file mode 100644 index fac73a32f9..0000000000 --- a/.changeset/cli-env-path-only-source.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@bigcommerce/catalyst': patch ---- - -`catalyst build` and `catalyst deploy --env-path ` now use only that file. A `.env.local` or `.env` on disk is no longer read by the build or baked into the deployed worker as a runtime fallback. - -`catalyst deploy --env-path ` also sends the file's variables to the deployment, overriding values saved with `catalyst env add`. `--secret` still wins over both. Previously, saved values overrode the `--env-path` file at runtime. diff --git a/.changeset/cli-keep-workers-instrumentation.md b/.changeset/cli-keep-workers-instrumentation.md deleted file mode 100644 index 6fa47dc32e..0000000000 --- a/.changeset/cli-keep-workers-instrumentation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bigcommerce/catalyst': patch ---- - -Keep `instrumentation.ts` and `@vercel/otel` during Storefront Hosting setup when the hook already sends spans to Workers tracing, instead of prompting to remove them. diff --git a/.changeset/empty-filters-column.md b/.changeset/empty-filters-column.md deleted file mode 100644 index f4f755f672..0000000000 --- a/.changeset/empty-filters-column.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bigcommerce/catalyst-core': patch ---- - -Hide the desktop filters column on product list pages when there are no filters, so products use the full width instead of leaving an empty column. diff --git a/.changeset/next-16-4-3.md b/.changeset/next-16-4-3.md deleted file mode 100644 index f3215c1e13..0000000000 --- a/.changeset/next-16-4-3.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bigcommerce/catalyst-core': patch ---- - -Upgrade Next.js to 16.4.3, which `@opennextjs/cloudflare` 1.20.15 requires and which moves off the versions affected by the `next/og` vulnerability (CVE-2026-94545). diff --git a/.changeset/preserve-checkout-url.md b/.changeset/preserve-checkout-url.md deleted file mode 100644 index 0da97bac8e..0000000000 --- a/.changeset/preserve-checkout-url.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bigcommerce/catalyst': patch ---- - -`catalyst channels update` now keeps a channel's custom checkout URL when the new storefront URL shares its main domain, instead of letting it fall back to the default channel's domain. diff --git a/.changeset/rethrow-auth-redirect.md b/.changeset/rethrow-auth-redirect.md deleted file mode 100644 index b315547b26..0000000000 --- a/.changeset/rethrow-auth-redirect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bigcommerce/catalyst-core': patch ---- - -Rethrow Next.js redirects from server action `catch` blocks. When a session is invalidated, the GraphQL client redirects to sign out, but actions such as add to cart caught that redirect and showed it as a form error instead. diff --git a/.changeset/storefront-hosting-native-proxy.md b/.changeset/storefront-hosting-native-proxy.md deleted file mode 100644 index cce1c14733..0000000000 --- a/.changeset/storefront-hosting-native-proxy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@bigcommerce/catalyst': minor ---- - -Storefront Hosting setup no longer renames `proxy.ts` to `middleware.ts`. `@opennextjs/cloudflare` 1.20.15 bundles `proxy.ts` directly, so setup now pins it (up from 1.20.6) and `catalyst build` defaults to Wrangler 4.156.0. - -Migration: projects set up by an older CLI keep their generated `middleware.ts` and continue to work. If `catalyst upgrade` brings `proxy.ts` back beside it, the CLI offers to delete `middleware.ts`; move any changes you made in it into `proxy.ts` first. `catalyst upgrade` now also stages the files it removes, `middleware.ts` and `instrumentation.ts`. diff --git a/.changeset/translations-patch-218678fb.md b/.changeset/translations-patch-218678fb.md deleted file mode 100644 index ad17b2636a..0000000000 --- a/.changeset/translations-patch-218678fb.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bigcommerce/catalyst-core": patch ---- - -Update translations. diff --git a/.changeset/verify-catalyst-skill.md b/.changeset/verify-catalyst-skill.md deleted file mode 100644 index 6400f2b504..0000000000 --- a/.changeset/verify-catalyst-skill.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bigcommerce/catalyst-core": patch ---- - -Add the `verify-catalyst` agent skill (`.agents/skills/verify-catalyst`), which drives the storefront in a real browser to prove UI changes and attaches screenshot, video, and trace evidence to pull requests. It works in the monorepo and in projects created with `create catalyst`, on macOS, Linux, and Windows. diff --git a/.changeset/workers-native-tracing.md b/.changeset/workers-native-tracing.md deleted file mode 100644 index 89e499c231..0000000000 --- a/.changeset/workers-native-tracing.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@bigcommerce/catalyst-core': minor ---- - -Send OpenTelemetry spans to Cloudflare Workers tracing when running on Workers. `instrumentation.ts` now detects the Workers runtime and registers a bridge that hands spans from Next.js and `~/lib/otel/tracer` to the runtime's native tracing, instead of loading `@vercel/otel`, which fails on Workers. Other runtimes keep using `@vercel/otel`. - -Migration: if you customized `instrumentation.ts`, keep your `registerOTel()` call behind the new Workers check and import `@vercel/otel` lazily, so it never loads on Workers. diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index b612885c4b..9afacb45cb 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## 1.14.0 + +### Minor Changes + +- [#3323](https://github.com/bigcommerce/catalyst/pull/3323) [`58fbb6e`](https://github.com/bigcommerce/catalyst/commit/58fbb6ecaafe36bf3510f49943e48ad6b822a120) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Show the products a pick list option adds to the cart under their parent line item, instead of hiding them. Each one keeps its pick list option's label and shows its own selected options, and its quantity only when it differs from the parent's. The parent's price already includes them, so they have no price of their own. + + Migration: `CartLineItem` gains an optional `includedItems` array and the `Cart` section an optional `includedItemsLabel` prop. Add the `Cart.includedItems` message if you maintain your own translations. + +- [#3329](https://github.com/bigcommerce/catalyst/pull/3329) [`16d0c07`](https://github.com/bigcommerce/catalyst/commit/16d0c07392836cc077ebbb6ef254756b78d3b93f) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Send OpenTelemetry spans to Cloudflare Workers tracing when running on Workers. `instrumentation.ts` now detects the Workers runtime and registers a bridge that hands spans from Next.js and `~/lib/otel/tracer` to the runtime's native tracing, instead of loading `@vercel/otel`, which fails on Workers. Other runtimes keep using `@vercel/otel`. + + Migration: if you customized `instrumentation.ts`, keep your `registerOTel()` call behind the new Workers check and import `@vercel/otel` lazily, so it never loads on Workers. + +### Patch Changes + +- [#3319](https://github.com/bigcommerce/catalyst/pull/3319) [`f44387e`](https://github.com/bigcommerce/catalyst/commit/f44387e86f3d45e70671783934d08d157d1b4b57) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Initialize analytics providers before the first event. Events like `productViewed` fire from child effects that run before `AnalyticsProvider` calls `initialize()`, so the Google Analytics provider called `gtag` before it was defined. + +- [#3060](https://github.com/bigcommerce/catalyst/pull/3060) [`4793d51`](https://github.com/bigcommerce/catalyst/commit/4793d5136218b4ac37fed16ef37003c7469c3357) Thanks [@apostoliukG](https://github.com/apostoliukG)! - Keep the cart quantity column at a fixed width so long backorder/inventory messages wrap to the next line instead of stretching the column. + +- [#3317](https://github.com/bigcommerce/catalyst/pull/3317) [`a988a9c`](https://github.com/bigcommerce/catalyst/commit/a988a9c8fac5f00d450ff380b66b8c187ccd105d) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Include sub-categories when filtering by the Category facet on brand and search pages. Selecting a parent category previously returned no products when they were assigned only to its sub-categories, even though the facet's counts included them. + +- [#3318](https://github.com/bigcommerce/catalyst/pull/3318) [`e90ea0c`](https://github.com/bigcommerce/catalyst/commit/e90ea0c26a8aec8288d68294c49a90c6bb72e8df) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Hide the desktop filters column on product list pages when there are no filters, so products use the full width instead of leaving an empty column. + +- [#3325](https://github.com/bigcommerce/catalyst/pull/3325) [`ef210dd`](https://github.com/bigcommerce/catalyst/commit/ef210dde564a1c0ca3dc7822d6e07b34e57cbab1) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Upgrade Next.js to 16.4.3, which `@opennextjs/cloudflare` 1.20.15 requires and which moves off the versions affected by the `next/og` vulnerability (CVE-2026-94545). + +- [#3320](https://github.com/bigcommerce/catalyst/pull/3320) [`a00008e`](https://github.com/bigcommerce/catalyst/commit/a00008e6029d144dcdb01639060424e37060288c) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Rethrow Next.js redirects from server action `catch` blocks. When a session is invalidated, the GraphQL client redirects to sign out, but actions such as add to cart caught that redirect and showed it as a form error instead. + +- [#3326](https://github.com/bigcommerce/catalyst/pull/3326) [`d0ee559`](https://github.com/bigcommerce/catalyst/commit/d0ee559913e644624c1f78a82f92292b585d8d90) Thanks [@bc-svc-local](https://github.com/bc-svc-local)! - Update translations. + +- [#3296](https://github.com/bigcommerce/catalyst/pull/3296) [`b1a6cd8`](https://github.com/bigcommerce/catalyst/commit/b1a6cd8bdba92733cc542941c18f96f1393cb425) Thanks [@bookernath](https://github.com/bookernath)! - Add the `verify-catalyst` agent skill (`.agents/skills/verify-catalyst`), which drives the storefront in a real browser to prove UI changes and attaches screenshot, video, and trace evidence to pull requests. It works in the monorepo and in projects created with `create catalyst`, on macOS, Linux, and Windows. + ## 1.13.1 ### Patch Changes diff --git a/core/package.json b/core/package.json index bd8723ea7c..87c66bacad 100644 --- a/core/package.json +++ b/core/package.json @@ -1,10 +1,10 @@ { "name": "@bigcommerce/catalyst-core", "description": "BigCommerce Catalyst is a Next.js starter kit for building headless BigCommerce storefronts.", - "version": "1.13.1", + "version": "1.14.0", "catalyst": { - "version": "1.13.1", - "ref": "@bigcommerce/catalyst-core@1.13.1" + "version": "1.14.0", + "ref": "@bigcommerce/catalyst-core@1.14.0" }, "private": true, "engines": { diff --git a/packages/catalyst/CHANGELOG.md b/packages/catalyst/CHANGELOG.md index a93010b156..bd11860fc3 100644 --- a/packages/catalyst/CHANGELOG.md +++ b/packages/catalyst/CHANGELOG.md @@ -1,5 +1,25 @@ # @bigcommerce/catalyst +## 1.6.0 + +### Minor Changes + +- [#3325](https://github.com/bigcommerce/catalyst/pull/3325) [`ef210dd`](https://github.com/bigcommerce/catalyst/commit/ef210dde564a1c0ca3dc7822d6e07b34e57cbab1) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Storefront Hosting setup no longer renames `proxy.ts` to `middleware.ts`. `@opennextjs/cloudflare` 1.20.15 bundles `proxy.ts` directly, so setup now pins it (up from 1.20.6) and `catalyst build` defaults to Wrangler 4.156.0. + + Migration: projects set up by an older CLI keep their generated `middleware.ts` and continue to work. If `catalyst upgrade` brings `proxy.ts` back beside it, the CLI offers to delete `middleware.ts`; move any changes you made in it into `proxy.ts` first. `catalyst upgrade` now also stages the files it removes, `middleware.ts` and `instrumentation.ts`. + +### Patch Changes + +- [#3328](https://github.com/bigcommerce/catalyst/pull/3328) [`1eb332b`](https://github.com/bigcommerce/catalyst/commit/1eb332b856a3c9ac9a8965624f74850735447552) Thanks [@jorgemoya](https://github.com/jorgemoya)! - `catalyst deploy` no longer crashes with `TypeError: terminated` when the deployment status stream disconnects. It reconnects until the deployment completes or fails, and no longer reports success when the stream closes before the deployment finishes. + +- [#3324](https://github.com/bigcommerce/catalyst/pull/3324) [`5328817`](https://github.com/bigcommerce/catalyst/commit/53288177cf771d77b451104dde54c8f14142c851) Thanks [@jorgemoya](https://github.com/jorgemoya)! - `catalyst build` and `catalyst deploy --env-path ` now use only that file. A `.env.local` or `.env` on disk is no longer read by the build or baked into the deployed worker as a runtime fallback. + + `catalyst deploy --env-path ` also sends the file's variables to the deployment, overriding values saved with `catalyst env add`. `--secret` still wins over both. Previously, saved values overrode the `--env-path` file at runtime. + +- [#3329](https://github.com/bigcommerce/catalyst/pull/3329) [`16d0c07`](https://github.com/bigcommerce/catalyst/commit/16d0c07392836cc077ebbb6ef254756b78d3b93f) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Keep `instrumentation.ts` and `@vercel/otel` during Storefront Hosting setup when the hook already sends spans to Workers tracing, instead of prompting to remove them. + +- [#3322](https://github.com/bigcommerce/catalyst/pull/3322) [`3e5e3d5`](https://github.com/bigcommerce/catalyst/commit/3e5e3d50924ca2e8255fb3ade60ed7268221dcf8) Thanks [@jorgemoya](https://github.com/jorgemoya)! - `catalyst channels update` now keeps a channel's custom checkout URL when the new storefront URL shares its main domain, instead of letting it fall back to the default channel's domain. + ## 1.5.0 ### Minor Changes diff --git a/packages/catalyst/package.json b/packages/catalyst/package.json index cb44155189..32972f5278 100644 --- a/packages/catalyst/package.json +++ b/packages/catalyst/package.json @@ -1,6 +1,6 @@ { "name": "@bigcommerce/catalyst", - "version": "1.5.0", + "version": "1.6.0", "type": "module", "repository": { "type": "git", diff --git a/packages/create-catalyst/CHANGELOG.md b/packages/create-catalyst/CHANGELOG.md index 376b4a04b9..6d667ca8bf 100644 --- a/packages/create-catalyst/CHANGELOG.md +++ b/packages/create-catalyst/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.0.9 + +### Patch Changes + +- Updated dependencies [[`1eb332b`](https://github.com/bigcommerce/catalyst/commit/1eb332b856a3c9ac9a8965624f74850735447552), [`5328817`](https://github.com/bigcommerce/catalyst/commit/53288177cf771d77b451104dde54c8f14142c851), [`16d0c07`](https://github.com/bigcommerce/catalyst/commit/16d0c07392836cc077ebbb6ef254756b78d3b93f), [`3e5e3d5`](https://github.com/bigcommerce/catalyst/commit/3e5e3d50924ca2e8255fb3ade60ed7268221dcf8), [`ef210dd`](https://github.com/bigcommerce/catalyst/commit/ef210dde564a1c0ca3dc7822d6e07b34e57cbab1)]: + - @bigcommerce/catalyst@1.6.0 + ## 2.0.8 ### Patch Changes diff --git a/packages/create-catalyst/package.json b/packages/create-catalyst/package.json index 49b484f0b7..7619c98ccc 100644 --- a/packages/create-catalyst/package.json +++ b/packages/create-catalyst/package.json @@ -1,6 +1,6 @@ { "name": "@bigcommerce/create-catalyst", - "version": "2.0.8", + "version": "2.0.9", "repository": { "type": "git", "url": "https://github.com/bigcommerce/catalyst", From f85777b06a95de022eb5f03ced3a78a93bcdceaa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2026 10:54:33 -0600 Subject: [PATCH 19/19] Version Packages (`integrations/makeswift`) (#3314) * Version Packages (`integrations/makeswift`) * chore: trigger CI --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jorge Moya --- .changeset/stable-carousel-product-ids.md | 5 ----- .changeset/sync-canary-1-14-0.md | 5 ----- core/CHANGELOG.md | 10 ++++++++++ core/package.json | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 .changeset/stable-carousel-product-ids.md delete mode 100644 .changeset/sync-canary-1-14-0.md diff --git a/.changeset/stable-carousel-product-ids.md b/.changeset/stable-carousel-product-ids.md deleted file mode 100644 index 3d20f77856..0000000000 --- a/.changeset/stable-carousel-product-ids.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bigcommerce/catalyst-makeswift': patch ---- - -Sort the `ProductsCarousel` additional product IDs in the request URL so the same products always hit the same cache entry, regardless of their order in the editor. diff --git a/.changeset/sync-canary-1-14-0.md b/.changeset/sync-canary-1-14-0.md deleted file mode 100644 index b5c794ae3b..0000000000 --- a/.changeset/sync-canary-1-14-0.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bigcommerce/catalyst-makeswift": minor ---- - -Pulls in changes from the `@bigcommerce/catalyst-core@1.14.0` release. For more information about what was included in the `@bigcommerce/catalyst-core@1.14.0` release, see the [changelog entry](https://github.com/bigcommerce/catalyst/blob/45627f2180a1055ce2e8a4c30bea8dcd6f7d0e99/core/CHANGELOG.md#1140). diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 1757cf0e3d..c5469cd51a 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 1.14.0 + +### Minor Changes + +- Pulls in changes from the `@bigcommerce/catalyst-core@1.14.0` release. For more information about what was included in the `@bigcommerce/catalyst-core@1.14.0` release, see the [changelog entry](https://github.com/bigcommerce/catalyst/blob/45627f2180a1055ce2e8a4c30bea8dcd6f7d0e99/core/CHANGELOG.md#1140). + +### Patch Changes + +- [#3313](https://github.com/bigcommerce/catalyst/pull/3313) [`e969404`](https://github.com/bigcommerce/catalyst/commit/e969404e85034e32618a4c7fd242b4b4197352e7) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Sort the `ProductsCarousel` additional product IDs in the request URL so the same products always hit the same cache entry, regardless of their order in the editor. + ## 1.13.1 ### Patch Changes diff --git a/core/package.json b/core/package.json index 959b4e6a9b..ffa9321f09 100644 --- a/core/package.json +++ b/core/package.json @@ -1,10 +1,10 @@ { "name": "@bigcommerce/catalyst-makeswift", "description": "BigCommerce Catalyst is a Next.js starter kit for building headless BigCommerce storefronts.", - "version": "1.13.1", + "version": "1.14.0", "catalyst": { - "version": "1.13.1", - "ref": "@bigcommerce/catalyst-makeswift@1.13.1" + "version": "1.14.0", + "ref": "@bigcommerce/catalyst-makeswift@1.14.0" }, "private": true, "engines": {