Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Remove `@spree/next` package (#13855)
Damian Legawiec258d85195920
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdindex 26c813475e..f15cf0bbf3 100644--- a/.github/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -211,7 +211,6 @@ pnpm dev| Package | Path | Description ||---|---|---|| `@spree/sdk` | `packages/sdk` | TypeScript SDK for the Spree Storefront API |-| `@spree/next` | `packages/next` | Next.js integration (server actions, caching, cookie-based auth) |### Common commands@@ -331,7 +330,7 @@ To help us review your PR quickly:- **Describe your changes.** Explain what you changed and why. Include screenshots for UI changes.- **Add tests.** All new features and bug fixes should include appropriate test coverage.- **Update documentation.** If your change affects user-facing behavior, update the relevant docs.-- **Include a changeset** (TypeScript packages only). Run `pnpm changeset` if your change affects `@spree/sdk` or `@spree/next`.+- **Include a changeset** (TypeScript packages only). Run `pnpm changeset` if your change affects `@spree/sdk`.- **Ensure CI passes.** PRs with failing CI will not be reviewed.## Reporting Bugsdiff --git a/.github/workflows/packages.yml b/.github/workflows/packages.ymlindex c3dfa3af53..29b1043f4a 100644--- a/.github/workflows/packages.yml+++ b/.github/workflows/packages.yml@@ -129,50 +129,6 @@ jobs:if: steps.check.outputs.published == 'false'run: pnpm turbo build --filter=@spree/sdk && npm publish --provenance --access public- release-next:- name: "Next - Release"- needs: [check, release-sdk]- if: github.ref == 'refs/heads/main' && github.event_name == 'push'- runs-on: ubuntu-latest- permissions:- contents: write- pull-requests: write- id-token: write- defaults:- run:- working-directory: packages/next- steps:- - uses: actions/checkout@v4-- - uses: pnpm/action-setup@v4-- - uses: actions/setup-node@v4- with:- node-version: 20- cache: pnpm- registry-url: https://registry.npmjs.org-- - run: pnpm install --frozen-lockfile- working-directory: .-- - name: Upgrade npm for Trusted Publishing support- run: npm install -g npm@latest- working-directory: .-- - name: Check if version is published- id: check- run: |- PACKAGE_VERSION=$(node -p "require('./package.json').version")- if npm view @spree/next@$PACKAGE_VERSION version 2>/dev/null; then- echo "published=true" >> $GITHUB_OUTPUT- else- echo "published=false" >> $GITHUB_OUTPUT- fi-- - name: Build and Publish- if: steps.check.outputs.published == 'false'- run: pnpm turbo build --filter=@spree/next && npm publish --provenance --access public-release-cli:name: "CLI - Release"needs: checkdiff --git a/CLAUDE.md b/CLAUDE.mdindex 3486896c53..0c0d58aa3e 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -50,7 +50,6 @@ Completed plans:| `packages/sdk` | `@spree/sdk` — TypeScript Store API client || `packages/admin-sdk` | `@spree/admin-sdk` — TypeScript Admin API client (private) || `packages/sdk-core` | `@spree/sdk-core` — shared HTTP/retry/error layer (private) |-| `packages/next` | `@spree/next` — Next.js server actions, data helpers, middleware || `packages/cli` | `@spree/cli` — Docker-based project management CLI || `packages/create-spree-app` | `create-spree-app` — project scaffolding || `server/` | Rails app cloned from `spree/spree-starter` (.gitignored, run `pnpm server:setup`) |@@ -344,34 +343,6 @@ Same patterns as `@spree/sdk` but for the Admin API. Supports both secret key (sPrivate package providing `createRequestFn()`, `SpreeError`, retry logic, and Ransack param transformation. Used internally by both SDKs.-### @spree/next — Next.js Integration--Server actions, data helpers, cookie-based auth, and middleware for Next.js 15+ / React 19+.--**Structure:**-- `src/config.ts` — `initSpreeNext()`, `getClient()` singleton (auto-inits from `SPREE_API_URL` + `SPREE_PUBLISHABLE_KEY` env vars)-- `src/actions/` — `"use server"` mutations: cart, auth, addresses, orders, payments, locale-- `src/data/` — pure async read functions: products, categories, countries, currencies, locales, markets-- `src/cookies.ts` — HTTPOnly cookie management (cart token, JWT, locale)-- `src/auth-helpers.ts` — `withAuthRefresh()` for automatic 401 → token refresh → retry-- `src/middleware.ts` — `createSpreeMiddleware()` for route-based locale/country detection--**Patterns:**-- Data functions (`src/data/`) are pure reads — apps wrap with React 19 `"use cache"` as needed-- Server actions (`src/actions/`) handle mutations + automatic auth refresh-- Cookie auth: separate tokens for cart (guest) and JWT (customer)--**Testing:** Vitest. Tests in `tests/`.--```bash-cd packages/next-pnpm build # tsup (ESM only, 3 build configs)-pnpm test-pnpm typecheck-```--**Peer deps:** `@spree/sdk >= 0.10.1`, `next >= 15.0.0`, `react >= 19.0.0`-### Type Generation PipelineWhen changing Alba serializers, run the full pipeline:@@ -440,5 +411,4 @@ Re-run `parallel_setup` after schema changes.```bashcd packages/sdk && pnpm test # SDK tests (uses MSW for HTTP mocking)-cd packages/next && pnpm test # Next.js helper tests```diff --git a/docs/developer/contributing/developing-spree.mdx b/docs/developer/contributing/developing-spree.mdxindex a74e64db7e..506c512e7f 100644--- a/docs/developer/contributing/developing-spree.mdx+++ b/docs/developer/contributing/developing-spree.mdx@@ -183,7 +183,6 @@ pnpm dev| Package | Path | Description ||---|---|---|| `@spree/sdk` | `packages/sdk` | TypeScript SDK for the Spree Storefront API |-| `@spree/next` | `packages/next` | Next.js integration (server actions, caching, cookie-based auth) |### Common commands@@ -317,7 +316,7 @@ To help us review your PR quickly:- **Describe your changes.** Explain what you changed and why. Include screenshots for UI changes.- **Add tests.** All new features and bug fixes should include appropriate test coverage.- **Update documentation.** If your change affects user-facing behavior, update the relevant docs.-- **Include a changeset** (TypeScript packages only). Run `pnpm changeset` if your change affects `@spree/sdk` or `@spree/next`.+- **Include a changeset** (TypeScript packages only). Run `pnpm changeset` if your change affects `@spree/sdk`.- **Ensure CI passes.** PRs with failing CI will not be reviewed.## Reporting Bugsdiff --git a/docs/developer/core-concepts/architecture.mdx b/docs/developer/core-concepts/architecture.mdxindex df0b047be1..62d5f784ea 100644--- a/docs/developer/core-concepts/architecture.mdx+++ b/docs/developer/core-concepts/architecture.mdx@@ -168,7 +168,6 @@ Spree is distributed as a set of packages:| Package | Purpose ||---------|---------|| [`@spree/sdk`](/developer/sdk/quickstart) | TypeScript SDK for Store API and Admin API |-| [`@spree/next`](/developer/storefront/nextjs/spree-next-package) | Next.js integration — server actions, caching, cookie-based auth |<Info>For headless commerce, you only need the `spree` package. Build your customer-facing frontend with any technology (Next.js, Nuxt, mobile apps) using the Store API and SDK.diff --git a/docs/developer/core-concepts/webhooks.mdx b/docs/developer/core-concepts/webhooks.mdxindex eb8b5aef12..8720145a98 100644--- a/docs/developer/core-concepts/webhooks.mdx+++ b/docs/developer/core-concepts/webhooks.mdx@@ -165,27 +165,9 @@ Each webhook request includes these headers:To ensure webhooks are genuinely from your Spree store, verify the signature.-#### Next.js (recommended)+#### Next.js-Use `@spree/next/webhooks` for a ready-made Route Handler:--```typescript-// src/app/api/webhooks/spree/route.ts-import { createWebhookHandler } from '@spree/next/webhooks'--export const POST = createWebhookHandler({- secret: process.env.SPREE_WEBHOOK_SECRET!,- handlers: {- 'order.completed': async (event) => {- // event.data is the order payload (same shape as Store API)- await sendOrderConfirmationEmail(event.data)- },- 'order.canceled': async (event) => {- await sendCancellationEmail(event.data)- },- },-})-```+The [Spree Storefront](https://github.com/spree/storefront) includes a ready-made webhook route handler with signature verification and event routing. See the [storefront email docs](/developer/storefront/nextjs/customization#transactional-emails) for details.#### Any JavaScript/TypeScript frameworkdiff --git a/docs/developer/customization/metadata.mdx b/docs/developer/customization/metadata.mdxindex fae40c24d1..f42ddf3151 100644--- a/docs/developer/customization/metadata.mdx+++ b/docs/developer/customization/metadata.mdx@@ -38,8 +38,6 @@ const cart = await client.carts.create({metadata: { source: 'mobile_app', campaign: 'summer_sale' }})-// @spree/next-const cart = await getOrCreateCart({ source: 'mobile_app' })```### Adding itemsdiff --git a/docs/developer/deployment/emails.mdx b/docs/developer/deployment/emails.mdxindex 556daa558c..ec3dd1884d 100644--- a/docs/developer/deployment/emails.mdx+++ b/docs/developer/deployment/emails.mdx@@ -35,7 +35,7 @@ RESEND_API_KEY=re_your_resend_api_keyEMAIL_FROM=Your Store <[email protected]>```-3. **The storefront handles everything else** — signature verification, event routing, email rendering, and delivery are built into `@spree/next/webhooks`. See the [Next.js storefront email docs](/developer/storefront/nextjs/customization#transactional-emails) for template customization.+3. **The storefront handles everything else** — signature verification, event routing, email rendering, and delivery are built in. See the [Next.js storefront email docs](/developer/storefront/nextjs/customization#transactional-emails) for template customization.### Supported Eventsdiff --git a/docs/developer/storefront/nextjs/architecture.mdx b/docs/developer/storefront/nextjs/architecture.mdxindex 9ef81ccac4..f85393f307 100644--- a/docs/developer/storefront/nextjs/architecture.mdx+++ b/docs/developer/storefront/nextjs/architecture.mdx@@ -9,10 +9,10 @@ The storefront follows a **server-first architecture** where all API calls are m```Browser → Server Action → @spree/sdk → Spree API- (with httpOnly cookies via @spree/next helpers)+ (with httpOnly cookies via src/lib/spree helpers)```-- **Server Actions** (`src/lib/data/`) — call `@spree/sdk` directly with auth/cookie helpers from `@spree/next`+- **Server Actions** (`src/lib/data/`) — call `@spree/sdk` directly with auth/cookie helpers from `src/lib/spree`- **httpOnly Cookies** — auth tokens, cart tokens, and locale are stored securely- **No Client-Side API Calls** — the Spree API key stays on the server- **Auto-Localization** — locale and country are read from cookies via `getLocaleOptions()`@@ -85,13 +85,13 @@ src/1. User submits login form2. Server action calls `@spree/sdk` to authenticate-3. JWT token is stored in an httpOnly cookie via `@spree/next` cookie helpers+3. JWT token is stored in an httpOnly cookie via `src/lib/spree` cookie helpers4. Subsequent requests use `withAuthRefresh()` which reads the token from cookies automatically5. Token is never accessible to client-side JavaScript```typescript// src/lib/data/customer.ts-import { getClient, withAuthRefresh, setAccessToken, setRefreshToken } from '@spree/next'+import { getClient, withAuthRefresh, setAccessToken, setRefreshToken } from '@/lib/spree'export async function login(email: string, password: string) {const result = await getClient().auth.login({ email, password })@@ -117,11 +117,11 @@ The storefront supports multiple countries and currencies via URL segments:/uk/en/products # UK store, English```-A middleware (`src/proxy.ts`) uses `createSpreeMiddleware` from `@spree/next` to detect the visitor's country and locale, then redirects to the correct URL prefix. The `CountrySwitcher` component lets users change regions manually.+A middleware (`src/proxy.ts`) uses `createSpreeMiddleware` from `src/lib/spree` to detect the visitor's country and locale, then redirects to the correct URL prefix. The `CountrySwitcher` component lets users change regions manually.## Server Actions-All data fetching is done through server actions in `src/lib/data/`. These call `@spree/sdk` directly, using `@spree/next` helpers for auth and locale:+All data fetching is done through server actions in `src/lib/data/`. These call `@spree/sdk` directly, using `src/lib/spree` helpers for auth and locale:```typescript// Products — use getLocaleOptions() for locale-aware readsdiff --git a/docs/developer/storefront/nextjs/customization.mdx b/docs/developer/storefront/nextjs/customization.mdxindex 5ca203f90f..27bbf9ef00 100644--- a/docs/developer/storefront/nextjs/customization.mdx+++ b/docs/developer/storefront/nextjs/customization.mdx@@ -111,7 +111,7 @@ To customize API behavior, modify the server actions in `src/lib/data/`. Each fi| `gift-cards.ts` | Gift card management || `utils.ts` | Shared helpers (error handling, fallbacks) |-These server actions call `@spree/sdk` directly, using `@spree/next` helpers for auth cookies and locale resolution. You can add custom logic, caching strategies, or additional transformations as needed.+These server actions call `@spree/sdk` directly, using helpers in `src/lib/spree/` for auth cookies and locale resolution. You can add custom logic, caching strategies, or additional transformations as needed.## Adding New Pages@@ -163,10 +163,10 @@ Opens the react-email dev server with mock data for all templates at `http://loc### Webhook Handler-The webhook route (`src/app/api/webhooks/spree/route.ts`) uses `createWebhookHandler` from `@spree/next/webhooks`:+The webhook route (`src/app/api/webhooks/spree/route.ts`) uses `createWebhookHandler` from `src/lib/spree/webhooks`:```typescript-import { createWebhookHandler } from '@spree/next/webhooks'+import { createWebhookHandler } from '@/lib/spree/webhooks'export const POST = createWebhookHandler({secret: process.env.SPREE_WEBHOOK_SECRET!,@@ -198,4 +198,4 @@ For full setup details, see [Sending out Emails](/developer/deployment/emails).## Building a Custom Storefront-If you prefer to build from scratch instead of forking the starter, you can use the `@spree/next` and `@spree/sdk` packages directly in any Next.js application. See the [@spree/next Package](/developer/storefront/nextjs/spree-next-package) documentation for the complete API reference.+If you prefer to build from scratch instead of forking the starter, you can use the `@spree/sdk` package directly in any Next.js application. The storefront's `src/lib/spree/` directory contains reusable helpers for cookie-based auth, locale resolution, middleware, and webhook verification that you can copy into your own project.diff --git a/docs/developer/storefront/nextjs/quickstart.mdx b/docs/developer/storefront/nextjs/quickstart.mdxindex 8a921cc235..8545816710 100644--- a/docs/developer/storefront/nextjs/quickstart.mdx+++ b/docs/developer/storefront/nextjs/quickstart.mdx@@ -12,7 +12,6 @@ The [Spree Storefront](https://github.com/spree/storefront) is a production-read- **Tailwind CSS 4** - Utility-first styling- **TypeScript 5** - Full type safety- **[@spree/sdk](https://github.com/spree/spree/tree/main/packages/sdk)** - Official Spree Commerce SDK-- **[@spree/next](https://github.com/spree/spree/tree/main/packages/next)** - Cookie-based auth, middleware, and webhook helpers- **Sentry** - Error tracking and performance monitoring## Featuresdiff --git a/docs/developer/storefront/nextjs/spree-next-package.mdx b/docs/developer/storefront/nextjs/spree-next-package.mdxdeleted file mode 100644index b6975000cc..0000000000--- a/docs/developer/storefront/nextjs/spree-next-package.mdx+++ /dev/null@@ -1,247 +0,0 @@-----title: "@spree/next Package"-description: Next.js integration library — cookie-based auth, middleware, and webhook helpers------The `@spree/next` package provides the server-side plumbing for building a Next.js storefront with `@spree/sdk`: JWT token lifecycle, httpOnly cookie management, locale/country middleware, and webhook verification.--Your storefront calls `@spree/sdk` directly for all API operations. `@spree/next` handles the Next.js-specific concerns — cookies, auth refresh, and middleware — so you don't have to.--## Installation--```bash-npm install @spree/next @spree/sdk-```--## Configuration--### Auto-initialization--Set environment variables and the client initializes automatically:--```env-SPREE_API_URL=https://api.mystore.com-SPREE_PUBLISHABLE_KEY=spree_pk_xxx--# Required for webhook-based emails (see Webhooks section below)-SPREE_WEBHOOK_SECRET=your_webhook_endpoint_secret_key-```--### Explicit initialization--```typescript-// lib/storefront.ts-import { initSpreeNext } from '@spree/next';--initSpreeNext({- baseUrl: process.env.SPREE_API_URL!,- publishableKey: process.env.SPREE_PUBLISHABLE_KEY!,- cartCookieName: '_spree_cart_token', // default- accessTokenCookieName: '_spree_jwt', // default- defaultLocale: 'en',- defaultCurrency: 'USD',- defaultCountry: 'US',-});-```--## Architecture--`@spree/next` provides four things:--1. **`getClient()`** — singleton `@spree/sdk` Client instance (auto-inits from env vars)-2. **Auth helpers** — `withAuthRefresh()` for JWT lifecycle, cookie read/write for tokens-3. **Locale resolution** — `getLocaleOptions()` reads country/locale from cookies-4. **Framework helpers** — `createSpreeMiddleware()` for URL routing, `createWebhookHandler()` for webhooks--Your storefront's server actions call `@spree/sdk` directly, using these helpers for auth and cookies:--```-Server Action → getClient().products.list(params, localeOptions)-Server Action → withAuthRefresh(fn) → getClient().customer.get(options)-Server Action → getCartOptions() → getClient().carts.items.create(...)-```--## Auth Helpers--### `withAuthRefresh(fn)`--Wraps an authenticated SDK call with automatic token management:--1. Reads JWT from cookie-2. Proactively refreshes if expiring within 5 minutes-3. Executes your function with `{ token }` options-4. On 401: refreshes token and retries once-5. On refresh failure: clears cookies and throws--```typescript-'use server';--import { getClient, withAuthRefresh } from '@spree/next';--export async function getCustomer() {- return withAuthRefresh(async (options) => {- return getClient().customer.get(options);- });-}--export async function listAddresses() {- return withAuthRefresh(async (options) => {- return getClient().customer.addresses.list(undefined, options);- });-}-```--### `getAuthOptions()`--Lower-level helper that returns `{ token }` or `{}` with proactive refresh. Use when you need the token but want to handle errors yourself.--## Cookie Management--All cookie helpers are async (they use Next.js `cookies()` API):--```typescript-import {- // Cart- getCartToken, getCartId, setCartCookies, clearCartCookies,- getCartOptions, // { spreeToken, token } for cart SDK calls- requireCartId, // throws if no cart-- // Auth- getAccessToken, setAccessToken, clearAccessToken,- getRefreshToken, setRefreshToken, clearRefreshToken,-} from '@spree/next';-```--### Cart operations pattern--```typescript-'use server';--import { getClient, getCartOptions, requireCartId } from '@spree/next';--export async function updateCartItem(lineItemId: string, quantity: number) {- const options = await getCartOptions();- const cartId = await requireCartId();- return getClient().carts.items.update(cartId, lineItemId, { quantity }, options);-}-```--### Auth operations pattern--```typescript-'use server';--import { getClient, setAccessToken, setRefreshToken, getCartToken, getCartId } from '@spree/next';--export async function login(email: string, password: string) {- const result = await getClient().auth.login({ email, password });- await setAccessToken(result.token);- await setRefreshToken(result.refresh_token);-- // Associate guest cart if one exists- const cartToken = await getCartToken();- const cartId = await getCartId();- if (cartToken && cartId) {- await getClient().carts.associate(cartId, {- token: result.token,- spreeToken: cartToken,- }).catch(() => {}); // non-fatal- }-- return { success: true, user: result.user };-}-```--## Locale Resolution--`getLocaleOptions()` reads country and locale from cookies (set by middleware or explicitly). All data-fetching server actions should use this:--```typescript-'use server';--import { getClient, getLocaleOptions } from '@spree/next';--export async function getProducts(params?: { limit?: number }) {- const options = await getLocaleOptions();- return getClient().products.list(params, options);-}--export async function getCategory(idOrPermalink: string) {- const options = await getLocaleOptions();- return getClient().categories.get(idOrPermalink, undefined, options);-}-```--## Middleware--Handles URL-based country/locale routing. Detects country from cookies, geo headers (Vercel/Cloudflare), or defaults, then redirects to `/{country}/{locale}/...`:--```typescript-// middleware.ts-import { createSpreeMiddleware } from '@spree/next/middleware';--export default createSpreeMiddleware({- defaultCountry: 'us',- defaultLocale: 'en',-});--export const config = {- matcher: ['/((?!_next/static|_next/image|favicon.ico|.*\\..*$).*)'],-};-```--## Webhooks--Handle Spree webhook events in your Next.js app with `@spree/next/webhooks`:--```typescript-// src/app/api/webhooks/spree/route.ts-import { createWebhookHandler } from '@spree/next/webhooks'--export const POST = createWebhookHandler({- secret: process.env.SPREE_WEBHOOK_SECRET!,- handlers: {- 'order.completed': async (event) => {- await sendOrderConfirmationEmail(event.data)- },- 'order.canceled': async (event) => {- await sendCancellationEmail(event.data)- },- 'order.shipped': async (event) => {- await sendShippingNotification(event.data)- },- 'customer.password_reset_requested': async (event) => {- await sendPasswordResetEmail(event.data)- },- },-})-```--The handler verifies HMAC-SHA256 signatures, rejects replayed requests, routes events to your handlers, and returns 200 immediately (handlers run async).--### Local development--Webhooks require a publicly accessible URL. Use [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/) for local development:--```bash-brew install cloudflared-cloudflared tunnel --url http://localhost:3001-```--Then create a webhook endpoint in **Spree Admin → Settings → Developers → Webhooks** pointing to your tunnel URL + `/api/webhooks/spree`.--For more details, see [Webhooks](/developer/core-concepts/webhooks).--## TypeScript--Import types directly from `@spree/sdk`:--```typescript-import type {- Product, Order, Cart, LineItem, Variant,- Category, Country, Currency, Address, Customer,- CreditCard, GiftCard, Fulfillment, DeliveryRate,- Payment, PaymentSession, PaginatedResponse,- AddressParams, SpreeError,-} from '@spree/sdk';-```diff --git a/docs/docs.json b/docs/docs.jsonindex 03d56ce69c..85cb03f663 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -202,7 +202,6 @@"pages": ["developer/storefront/nextjs/quickstart","developer/storefront/nextjs/architecture",- "developer/storefront/nextjs/spree-next-package","developer/storefront/nextjs/customization","developer/storefront/nextjs/deployment"]diff --git a/packages/next/.changeset/config.json b/packages/next/.changeset/config.jsondeleted file mode 100644index 95ea990266..0000000000--- a/packages/next/.changeset/config.json+++ /dev/null@@ -1,14 +0,0 @@-{- "$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",- "changelog": [- "@changesets/changelog-github",- { "repo": "spree/spree" }- ],- "commit": false,- "fixed": [],- "linked": [],- "access": "public",- "baseBranch": "main",- "updateInternalDependencies": "patch",- "ignore": []-}diff --git a/packages/next/.gitignore b/packages/next/.gitignoredeleted file mode 100644index f4e2c6d6b8..0000000000--- a/packages/next/.gitignore+++ /dev/null@@ -1,3 +0,0 @@-node_modules/-dist/-*.tsbuildinfodiff --git a/packages/next/CHANGELOG.md b/packages/next/CHANGELOG.mddeleted file mode 100644index 588bca4e58..0000000000--- a/packages/next/CHANGELOG.md+++ /dev/null@@ -1,440 +0,0 @@-# @spree/next--## 0.19.0--### Minor Changes--- **Breaking:** Remove all server actions (`actions/*`) and data functions (`data/*`) from the package. The package now exports only the server-side plumbing: `getClient()`, `withAuthRefresh()`, cookie helpers, `getLocaleOptions()`, `createSpreeMiddleware()`, and `createWebhookHandler()`.-- Storefronts should call `@spree/sdk` directly in their own server actions, using the auth and cookie helpers from `@spree/next`. This eliminates a double-wrapping abstraction layer and gives storefronts full control over caching, error handling, and cache invalidation.-- New public exports:-- - `withAuthRefresh`, `getAuthOptions` — JWT lifecycle with proactive refresh- - `getCartToken`, `getCartId`, `setCartCookies`, `clearCartCookies` — cart cookie management- - `getAccessToken`, `setAccessToken`, `clearAccessToken` — JWT cookie management- - `getRefreshToken`, `setRefreshToken`, `clearRefreshToken` — refresh token cookie management- - `getCartOptions`, `requireCartId` — combined cart + auth options for SDK calls- - `getLocaleOptions` — reads country/locale from cookies-- Removed exports: `listProducts`, `getProduct`, `getProductFilters`, `listCategories`, `getCategory`, `listCategoryProducts`, `listCountries`, `getCountry`, `listCurrencies`, `listLocales`, `listMarkets`, `getMarket`, `resolveMarket`, `listMarketCountries`, `getMarketCountry`, `listPolicies`, `getPolicy`, `getCart`, `getOrCreateCart`, `addItem`, `updateItem`, `removeItem`, `clearCart`, `associateCart`, `updateCart`, `selectDeliveryRate`, `applyDiscountCode`, `removeDiscountCode`, `applyGiftCard`, `removeGiftCard`, `complete`, `login`, `register`, `logout`, `getCustomer`, `updateCustomer`, `requestPasswordReset`, `resetPassword`, `listAddresses`, `getAddress`, `createAddress`, `updateAddress`, `deleteAddress`, `listOrders`, `getOrder`, `setLocale`, `listCreditCards`, `deleteCreditCard`, `listGiftCards`, `getGiftCard`, `listStoreCredits`, `createPayment`, `createPaymentSession`, `getPaymentSession`, `updatePaymentSession`, `completePaymentSession`, `createPaymentSetupSession`, `getPaymentSetupSession`, `completePaymentSetupSession`, and all re-exported SDK types.--## 0.18.0--### Breaking Changes--- **`listCategoryProducts()` now uses `in_category` scope** — calls `/products?q[in_category]=...` instead of the removed `/categories/{id}/products` endpoint. Category filtering now correctly includes products in descendant categories.--Requires `@spree/sdk >= 0.18.0`.--## 0.17.0--### New Features--- **Webhook Route Handler** — new `@spree/next/webhooks` subpath export with `createWebhookHandler()` factory. Creates a Next.js Route Handler that verifies HMAC-SHA256 signatures, parses events, and dispatches to user-defined handlers. Returns 200 immediately and processes handlers async.--Requires `@spree/sdk >= 0.16.0`.--## 0.16.0--### Breaking Changes--- **Renamed `applyCoupon` / `removeCoupon`** to `applyDiscountCode` / `removeDiscountCode`--### New Features--- **`applyGiftCard(code)`** — apply gift card to cart-- **`removeGiftCard(giftCardId)`** — remove gift card by prefixed ID-- **Cart warnings** — `cart.warnings` array flags items removed due to stock changes-- **Store policies** — `listPolicies()` and `getPolicy(slug)` data functions for return policy, privacy policy, terms of service, etc.--### Types--- `Cart` type now includes `warnings` array-- New re-exported types: `CartWarning`, `Policy`--Requires `@spree/sdk >= 0.16.0`.--## 0.15.0--### Minor Changes--**Breaking:** Removed `getFulfillments()` server action — fulfillments are included in the cart response. Use `cart.fulfillments` instead.--**New:** Added `listStoreCredits()` server action and `StoreCredit` type re-export.--Requires `@spree/sdk` >= 0.15.0.--## 0.14.1--### Patch Changes--- Updated peer dependency to `@spree/sdk >= 0.14.2`--## 0.14.0--### Minor Changes--- Update for Store API naming standardization. Re-exports `Discount` type (replaces `CartPromotion`/`OrderPromotion`). All address, cart, and order types now use standardized field names. Requires `@spree/sdk >= 0.14.0`.--## 0.13.1--### Patch Changes--- Updated to use `search` instead of `multi_search` parameter, matching the renamed Store API param. No breaking change — `multi_search` still works via backward compatibility.--## 0.13.0--### Minor Changes--- ### Breaking: Shipping → Delivery/Fulfillment naming-- Renamed server actions to match SDK 0.12.0 naming:-- - `getShipments()` → `getFulfillments()`- - `selectShippingRate(shipmentId, rateId)` → `selectDeliveryRate(fulfillmentId, rateId)`-- ### Updated type re-exports-- - `Shipment` → `Fulfillment`- - `ShippingRate` → `DeliveryRate`--- ### Refresh token support-- - New `_spree_refresh_token` cookie — stored alongside JWT on login/register/password reset- - `withAuthRefresh()` now uses refresh tokens for 401 recovery instead of re-sending the expired JWT- - Proactive token refresh triggers at 5 minutes before expiry (was 1 hour)- - `logout()` now revokes the refresh token server-side before clearing cookies- - `login()`, `register()`, `resetPassword()` automatically save the refresh token cookie--### Patch Changes--- Allow `getCart()` to accept an optional `explicitCartId` parameter. When provided, fetches that specific cart directly by ID instead of reading from cookies. Needed for the confirm-payment flow where the cart ID is known from the URL but cookies may have been cleared.--## 0.12.0--### Minor Changes--- ### Breaking: Shipping → Delivery/Fulfillment naming-- Renamed server actions to match SDK 0.12.0 naming:-- - `getShipments()` → `getFulfillments()`- - `selectShippingRate(shipmentId, rateId)` → `selectDeliveryRate(fulfillmentId, rateId)`-- ### Updated type re-exports-- - `Shipment` → `Fulfillment`- - `ShippingRate` → `DeliveryRate`--## 0.11.0--### Minor Changes--- **Breaking:** Rename `images` to `media` — aligns with Spree 5.4 Store API media system- - `expand: ['images']` → `expand: ['media']`- - `Image` type re-export replaced by `Media`--## 0.10.5--### Patch Changes--- Add optional `redirectUrl` parameter to `requestPasswordReset` server action for password reset flow with custom redirect URL support.--## 0.10.4--### Patch Changes--- Allow `getCart()` to accept an optional `explicitCartId` parameter. When provided, fetches that specific cart directly by ID instead of reading from cookies. Needed for the confirm-payment flow where the cart ID is known from the URL but cookies may have been cleared.--## 0.10.3--### Patch Changes--- Allow `complete()` to accept an explicit `cartId` parameter. When provided, bypasses the cart cookie lookup — needed for the order-placed page where cart cookies may have been cleared after checkout.--## 0.10.2--### Patch Changes--- Fix `logout()` to clear cart cookies alongside JWT. Previously, logging out only cleared the access token, leaving cart token and cart ID cookies intact — allowing the next guest session to see and interact with the previous user's cart.-- Fix `requireCartId()` to resolve cart via JWT for authenticated users who don't have the cart ID cookie yet.-- Unified `setCartToken`/`setCartId` into `setCartCookies()` and `clearCartToken`/`clearCartId` into `clearCartCookies()` since they are always managed as a pair.--## 0.10.1--### Patch Changes--- Fix `getOrder` to work for guest users by passing `spreeToken` alongside JWT. Previously, `getOrder` used `withAuthRefresh` which required JWT authentication, causing the order-placed page to fail for guest checkouts.--## 0.10.0--### Minor Changes--- Unified cart and checkout server actions under single `cart.ts` module-- **Breaking changes:**-- - `getCheckout()` removed — use `getCart()` instead- - `updateCheckout(params)` renamed to `updateCart(params)`- - `checkout.ts` action file deleted — all exports now come from `cart.ts`- - `UpdateCheckoutParams` type removed — use `UpdateCartParams` instead-- **Other changes:**-- - All cart and checkout server actions now use explicit cart IDs via the `carts` namespace- - Added cart ID cookie storage (`getCartId`, `setCartId`, `clearCartId`)- - Cart ID is now persisted alongside the cart token for REST endpoint routing- - Deduplicated `requireCartId` helper (was copied in 3 files)--### Patch Changes--- Updated dependencies:- - @spree/[email protected]--## 0.9.0--### Minor Changes--- **Breaking:** Cart responses no longer include `state`, `checkout_steps`, or `state_lock_version`. Use `current_step`, `completed_steps`, and `requirements` instead.-- **Breaking:** `line_items` renamed to `items` in both `Cart` and `Order` responses.-- **Breaking:** `order_promotions` renamed to `promotions` in both `Cart` and `Order` responses.--### Patch Changes--- Updated dependencies:- - @spree/[email protected]--## 0.8.2--### Patch Changes--- Added `createPayment` server action for non-session payment methods (e.g. Check, Cash on Delivery, Bank Transfer). Exported `CreatePaymentParams` type.--- Updated dependencies:- - @spree/[email protected]--## 0.8.1--### Patch Changes--- Renamed Taxons/Taxonomies to Categories. `listTaxons`/`getTaxon`/`listTaxonProducts` replaced with `listCategories`/`getCategory`/`listCategoryProducts`. `listTaxonomies`/`getTaxonomy` removed. Re-exported `Category` type replaces `Taxon`/`Taxonomy`.--## 0.8.0--### Minor Changes--- **Breaking:** `register()` now calls `customers.create()` (was `auth.register()`), matching the backend API restructure from `POST /auth/register` to `POST /customers`. The `register()` function signature and parameters are unchanged — this is transparent to consumers of `@spree/next`.--### Patch Changes--- Updated dependencies:- - @spree/[email protected]--## 0.7.2--### Patch Changes--- Changed `register()` to accept a single params object instead of positional arguments, matching industry standard patterns. Added `phone`, `accepts_email_marketing`, and `metadata` fields to both `register()` and `updateCustomer()`.--- Added `current_password`, `password`, and `password_confirmation` fields to `updateCustomer()` to support email and password changes that require current password verification.--## 0.7.1--### Patch Changes--- Updated dependencies:- - @spree/[email protected]--## 0.7.0--### Minor Changes--- Update to use flattened `@spree/sdk` client API — `createClient()` replaces `createSpreeClient()`, `client.products.list()` replaces `client.store.products.list()`. All re-exported types use unprefixed names (`Product` instead of `StoreProduct`).--### Patch Changes--- Updated dependencies:- - @spree/[email protected]--## 0.6.9--### Patch Changes--- Updated `getOrCreateCart()` to accept full `CreateCartParams` (including `line_items`) instead of just `metadata`. Re-export `CreateCartParams` and `LineItemInput` types from `@spree/sdk`.--## 0.6.8--### Patch Changes--- Bump to match `@spree/[email protected]`--## 0.6.7--### Patch Changes--- Standardize `expand` parameter to accept only `string[]`--## 0.6.6--### Patch Changes--- Rename `per_page` pagination parameter to `limit`-- Rename `includes` query parameter to `expand`--## 0.6.4--### Patch Changes--- Rename `updateAddresses` to `updateOrder` and widen params to full `UpdateOrderParams`-- - **Breaking:** `updateAddresses(orderId, params)` renamed to `updateOrder(orderId, params)` — accepts all `UpdateOrderParams` fields (currency, locale, metadata, addresses, etc.)- - Export `UpdateOrderParams` type--## 0.6.3--### Patch Changes--- Add Markets data functions and update country types-- - Add `listMarkets()`, `getMarket(id)`, `resolveMarket(country)`, `listMarketCountries(marketId)`, `getMarketCountry(marketId, iso)` data functions- - Export `StoreMarket` type- - **Breaking:** `StoreCountry` no longer includes `currency`, `default_locale`, `supported_locales` — use the markets API or `?include=market` on countries--- Updated dependencies:- - @spree/[email protected]--## 0.6.2--### Patch Changes--- Added `quick_checkout` attribute support for Address via updated SDK dependency--- Bump SDK dependency for `state_lock_version` response type support.--## 0.6.1--### Patch Changes--- Added automatic localization. Data functions now auto-read locale and country from cookies when no explicit options are provided. New exports: `setLocale` server action for country/language switchers, `createSpreeMiddleware` (from `@spree/next/middleware`) for URL-based routing with geo-detection. Added `country` to `SpreeNextOptions` and `countryCookieName`, `localeCookieName`, `defaultCountry` to `SpreeNextConfig`.--- Updated data function params to use typed flat query params (`ProductListParams`, `TaxonListParams`, `OrderListParams`) instead of `Record<string, unknown>`.--- Removed Posts and PostCategory references. Posts feature has been extracted to the `spree_posts` extension.--## 0.6.0--### Minor Changes--- Add `metadata` support to cart actions-- - `getOrCreateCart()` now accepts optional `metadata` parameter for setting metadata on new carts- - `addItem()` now accepts optional `metadata` parameter: `addItem(variantId, quantity, metadata)`- - **Breaking:** `updateItem()` signature changed from `(lineItemId, quantity)` to `(lineItemId, { quantity?, metadata? })` — pass an object with `quantity` and/or `metadata` keys- - Updated `@spree/sdk` peer dependency--### Patch Changes--- Update `StoreStore` type — fields removed upstream in `@spree/sdk` (`default_currency`, `default_locale`, `default`, `supported_currencies`, `supported_locales`, `default_country_iso`) are no longer part of the store response. Use dedicated `listCurrencies`, `listLocales`, and `listCountries` functions instead.--- Updated dependencies:- - @spree/[email protected]--## 0.5.0--### Minor Changes--- Replace market data functions with flat countries, currencies, and locales-- - Remove `listMarkets`, `getMarket`, `resolveMarket`, `listMarketCountries`, `getMarketCountry`- - Add `listCountries`, `getCountry` — countries with currency and locale from markets- - Add `listCurrencies` — supported currencies- - Add `listLocales` — supported locales- - Export `StoreCurrency` and `StoreLocale` types, remove `StoreMarket`--- Updated dependencies:- - @spree/[email protected]--## 0.4.0--### Minor Changes--- **Breaking:** Replace country functions with market functions to match @spree/sdk 0.4.0 Markets API- - `listCountries()` / `getCountry()` removed- - New `listMarkets()` — list all markets with nested countries (for country/currency switcher)- - New `getMarket(id)` — get a single market- - New `resolveMarket(countryIso)` — resolve country to market- - New `listMarketCountries(marketId)` — list countries in a market (for checkout address forms)- - New `getMarketCountry(marketId, iso)` — get a country with states (for address validation)-- Re-export `StoreMarket` type from `@spree/sdk`-- Bump `@spree/sdk` peer dependency to `>=0.4.0`--## 0.3.1--### Patch Changes--- Re-export `StoreDigitalLink` type from `@spree/sdk` — digital links now include a `download_url` field for direct file downloads without API key authentication-- Bump `@spree/sdk` dependency for `StoreDigitalLink.download_url` field--## 0.3.0--### Minor Changes--- **Breaking:** Update to match @spree/sdk 0.3.0 Store API restructure- - `listOrders()` now calls `GET /customer/orders` (was `GET /orders`) — requires authenticated customer- - `getOrCreateCart()` now creates carts via `POST /cart` (was `POST /orders`)-- Bump `@spree/sdk` peer dependency to `>=0.3.0`--## 0.2.4--### Patch Changes--- Bump @spree/sdk dependency for StoreLineItem currency field--- Update type references from StoreUser to StoreCustomer following @spree/sdk rename--## 0.2.3--### Patch Changes--- Update `StoreCreditCard` type with `gateway_payment_profile_id` field (from @spree/sdk 0.2.3)-- `getCart()` now clears stale cart token when the backend returns 404 (e.g., after order completion), preventing the storefront from showing a completed order in the cart--## 0.2.2--### Patch Changes--- All cart/checkout mutations (`addItem`, `updateItem`, `removeItem`, `selectShippingRate`) now return the updated `StoreOrder` with recalculated totals, eliminating the need for follow-up fetches-- `StoreOrder` now always includes all associations (line items, shipments, payments, addresses) — no need to pass `includes` param--## 0.2.1--### Patch Changes--- Add Payment Sessions server actions: `createPaymentSession`, `getPaymentSession`, `updatePaymentSession`, and `completePaymentSession`. Re-export `StorePaymentSession` and related param types from `@spree/sdk`.--## 0.2.0--### Minor Changes--- Restructure to match @spree/sdk dual API namespace changes-- Add payment sessions support (`createPaymentSession`, `completePaymentSession`)-- Add checkout `complete()` action--## 0.1.2--### Patch Changes--- Update type references from StoreUser to StoreCustomer following @spree/sdk rename--## 0.1.1--### Patch Changes--- Add changelog and changeset support for automated npm releases--## 0.1.0--### Minor Changes--- First public release with Next.js server actions, caching, and cookie-based auth for Spree Commercediff --git a/packages/next/LICENSE b/packages/next/LICENSEdeleted file mode 100644index fbaaca776c..0000000000--- a/packages/next/LICENSE+++ /dev/null@@ -1,21 +0,0 @@-MIT License--Copyright (c) 2026 Vendo Connect Inc., Vendo Sp. z o.o.--Permission is hereby granted, free of charge, to any person obtaining a copy-of this software and associated documentation files (the "Software"), to deal-in the Software without restriction, including without limitation the rights-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell-copies of the Software, and to permit persons to whom the Software is-furnished to do so, subject to the following conditions:--The above copyright notice and this permission notice shall be included in all-copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE-SOFTWARE.diff --git a/packages/next/README.md b/packages/next/README.mddeleted file mode 100644index ff50401f72..0000000000--- a/packages/next/README.md+++ /dev/null@@ -1,217 +0,0 @@-# @spree/next--Next.js integration for Spree Commerce — cookie-based auth, middleware, and webhook helpers.--Provides the server-side plumbing for building a Next.js storefront with `@spree/sdk`: JWT token lifecycle (proactive refresh, 401 retry), httpOnly cookie management, locale/country detection middleware, and webhook signature verification.--## Installation--```bash-npm install @spree/next @spree/sdk-# or-pnpm add @spree/next @spree/sdk-```--## Quick Start--### 1. Set environment variables--```env-SPREE_API_URL=https://api.mystore.com-SPREE_PUBLISHABLE_KEY=your-publishable-api-key-```--The client auto-initializes from these env vars. Alternatively, initialize explicitly:--```typescript-import { initSpreeNext } from '@spree/next';--initSpreeNext({- baseUrl: process.env.SPREE_API_URL!,- publishableKey: process.env.SPREE_PUBLISHABLE_KEY!,-});-```--### 2. Call the SDK directly in your server actions--`@spree/next` provides `getClient()` (the SDK singleton), auth helpers, and cookie management. You write server actions that call the SDK directly:--```typescript-'use server';--import { getClient, getLocaleOptions } from '@spree/next';--export async function getProducts(params?: { limit?: number }) {- const options = await getLocaleOptions(); // reads country/locale from cookies- return getClient().products.list(params, options);-}-```--### 3. Use auth helpers for authenticated endpoints--```typescript-'use server';--import { getClient, withAuthRefresh } from '@spree/next';--export async function getAddresses() {- return withAuthRefresh(async (options) => {- return getClient().customer.addresses.list(undefined, options);- });-}-```--`withAuthRefresh` reads the JWT from cookies, proactively refreshes if near expiry, and retries once on 401.--### 4. Use cookie helpers for cart operations--```typescript-'use server';--import { getClient, getCartOptions, requireCartId } from '@spree/next';--export async function addToCart(variantId: string, quantity: number) {- const options = await getCartOptions(); // { spreeToken, token } from cookies- const cartId = await requireCartId();- return getClient().carts.items.create(cartId, { variant_id: variantId, quantity }, options);-}-```--## API Reference--### Configuration--```typescript-import { initSpreeNext, getClient, getConfig } from '@spree/next';--// Initialize (or let it auto-init from env vars)-initSpreeNext({- baseUrl: 'https://api.mystore.com',- publishableKey: 'pk_xxx',- cartCookieName: '_spree_cart_token', // default- accessTokenCookieName: '_spree_jwt', // default- defaultLocale: 'en',- defaultCurrency: 'USD',- defaultCountry: 'US',-});--// Get the @spree/sdk Client instance-const client = getClient();-```--### Auth Helpers--```typescript-import { withAuthRefresh, getAuthOptions } from '@spree/next';--// Wrap any authenticated SDK call — handles proactive refresh + 401 retry-const customer = await withAuthRefresh(async (options) => {- return getClient().customer.get(options);-});--// Or get auth options manually-const options = await getAuthOptions(); // { token: 'jwt...' } or {}-```--### Cookie Management--```typescript-import {- // Cart cookies- getCartToken, // guest cart order token- getCartId, // cart prefixed ID- setCartCookies, // set both cart ID + token- clearCartCookies, // clear cart cookies- getCartOptions, // { spreeToken, token } for SDK calls- requireCartId, // throws if no cart found-- // Auth cookies- getAccessToken, // JWT access token- setAccessToken,- clearAccessToken,- getRefreshToken, // refresh token- setRefreshToken,- clearRefreshToken,-} from '@spree/next';-```--### Locale Resolution--```typescript-import { getLocaleOptions } from '@spree/next';--// Reads country/locale from cookies, falls back to config defaults-const options = await getLocaleOptions();-// { locale: 'en', country: 'us' }-```--### Middleware--Handles URL-based country/locale routing with automatic detection:--```typescript-// middleware.ts-import { createSpreeMiddleware } from '@spree/next/middleware';--export default createSpreeMiddleware({- defaultCountry: 'us',- defaultLocale: 'en',-});--export const config = {- matcher: ['/((?!_next/static|_next/image|favicon.ico|.*\\..*$).*)'],-};-```--Detection order: cookie → geo headers (Vercel/Cloudflare) → default.--### Webhooks--Handle Spree webhook events with signature verification:--```typescript-// src/app/api/webhooks/spree/route.ts-import { createWebhookHandler } from '@spree/next/webhooks';--export const POST = createWebhookHandler({- secret: process.env.SPREE_WEBHOOK_SECRET!,- handlers: {- 'order.completed': async (event) => {- await sendOrderConfirmationEmail(event.data);- },- 'order.canceled': async (event) => {- await sendCancellationEmail(event.data);- },- },-});-```--Features:-- HMAC-SHA256 signature verification (via `@spree/sdk/webhooks`)-- Replay protection (rejects timestamps older than 5 minutes)-- Event routing to your handlers by event name-- Supports `waitUntil` for Vercel/Cloudflare serverless execution-- Unhandled events return 200 with `{ handled: false }` (no retries)--## TypeScript--Import types directly from `@spree/sdk`:--```typescript-import type { Product, Cart, Order, Address, Customer, SpreeError } from '@spree/sdk';-```--## Development--```bash-cd packages/next-pnpm install-pnpm dev # Build in watch mode-pnpm typecheck # Type-check-pnpm test # Run tests-pnpm build # Production build-```--## License--MITdiff --git a/packages/next/package-lock.json b/packages/next/package-lock.jsondeleted file mode 100644index e8e03d373b..0000000000--- a/packages/next/package-lock.json+++ /dev/null@@ -1,2924 +0,0 @@-{- "name": "@spree/next",- "version": "0.1.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "@spree/next",- "version": "0.1.0",- "license": "MIT",- "devDependencies": {- "@spree/sdk": "file:../sdk",- "@types/node": "^20.0.0",- "@types/react": "^19.0.0",- "next": "^15.3.3",- "react": "^19.0.0",- "tsup": "^8.0.0",- "typescript": "^5.3.0",- "vitest": "^4.0.18"- },- "peerDependencies": {- "@spree/sdk": ">=0.1.0",- "next": ">=15.0.0",- "react": ">=19.0.0"- }- },- "../sdk": {- "name": "@spree/sdk",- "version": "0.1.4",- "dev": true,- "license": "MIT",- "devDependencies": {- "@changesets/changelog-github": "^0.5.2",- "@changesets/cli": "^2.29.8",- "@types/node": "^20.0.0",- "@vitest/coverage-v8": "^4.0.18",- "msw": "^2.12.9",- "tsup": "^8.0.0",- "tsx": "^4.0.0",- "typescript": "^5.3.0",- "vitest": "^4.0.18",- "zod": "^4.3.6"- },- "engines": {- "node": ">=18.0.0"- },- "peerDependencies": {- "typescript": ">=4.7.0",- "zod": ">=3.0.0"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- },- "zod": {- "optional": true- }- }- },- "node_modules/@emnapi/runtime": {- "version": "1.8.1",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.8.1.tgz",- "integrity": "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@esbuild/aix-ppc64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz",- "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "aix"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-arm": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz",- "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-arm64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz",- "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-x64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz",- "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/darwin-arm64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz",- "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/darwin-x64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz",- "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/freebsd-arm64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz",- "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/freebsd-x64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz",- "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-arm": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz",- "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-arm64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz",- "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-ia32": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz",- "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-loong64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz",- "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-mips64el": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz",- "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-ppc64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz",- "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-riscv64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz",- "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-s390x": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz",- "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-x64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz",- "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/netbsd-arm64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz",- "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/netbsd-x64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz",- "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openbsd-arm64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz",- "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openbsd-x64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz",- "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openharmony-arm64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz",- "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/sunos-x64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz",- "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-arm64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz",- "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-ia32": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz",- "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-x64": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz",- "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@img/colour": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.0.0.tgz",- "integrity": "sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=18"- }- },- "node_modules/@img/sharp-darwin-arm64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",- "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-darwin-arm64": "1.2.4"- }- },- "node_modules/@img/sharp-darwin-x64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",- "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-darwin-x64": "1.2.4"- }- },- "node_modules/@img/sharp-libvips-darwin-arm64": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",- "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "darwin"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-darwin-x64": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",- "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "darwin"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-arm": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",- "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",- "cpu": [- "arm"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-arm64": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",- "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-ppc64": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",- "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-riscv64": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",- "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-s390x": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",- "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linux-x64": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",- "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linuxmusl-arm64": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",- "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-libvips-linuxmusl-x64": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",- "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "LGPL-3.0-or-later",- "optional": true,- "os": [- "linux"- ],- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-linux-arm": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",- "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-arm": "1.2.4"- }- },- "node_modules/@img/sharp-linux-arm64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",- "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-arm64": "1.2.4"- }- },- "node_modules/@img/sharp-linux-ppc64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",- "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-ppc64": "1.2.4"- }- },- "node_modules/@img/sharp-linux-riscv64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",- "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-riscv64": "1.2.4"- }- },- "node_modules/@img/sharp-linux-s390x": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",- "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-s390x": "1.2.4"- }- },- "node_modules/@img/sharp-linux-x64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",- "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linux-x64": "1.2.4"- }- },- "node_modules/@img/sharp-linuxmusl-arm64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",- "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"- }- },- "node_modules/@img/sharp-linuxmusl-x64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",- "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-libvips-linuxmusl-x64": "1.2.4"- }- },- "node_modules/@img/sharp-wasm32": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",- "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",- "cpu": [- "wasm32"- ],- "dev": true,- "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",- "optional": true,- "dependencies": {- "@emnapi/runtime": "^1.7.0"- },- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-win32-arm64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",- "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 AND LGPL-3.0-or-later",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-win32-ia32": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",- "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "Apache-2.0 AND LGPL-3.0-or-later",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@img/sharp-win32-x64": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",- "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 AND LGPL-3.0-or-later",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- }- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.13",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",- "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.5",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",- "dev": true,- "license": "MIT"- },- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.31",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"- }- },- "node_modules/@next/env": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.12.tgz",- "integrity": "sha512-pUvdJN1on574wQHjaBfNGDt9Mz5utDSZFsIIQkMzPgNS8ZvT4H2mwOrOIClwsQOb6EGx5M76/CZr6G8i6pSpLg==",- "dev": true,- "license": "MIT"- },- "node_modules/@next/swc-darwin-arm64": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.12.tgz",- "integrity": "sha512-RnRjBtH8S8eXCpUNkQ+543DUc7ys8y15VxmFU9HRqlo9BG3CcBUiwNtF8SNoi2xvGCVJq1vl2yYq+3oISBS0Zg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@next/swc-darwin-x64": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.5.12.tgz",- "integrity": "sha512-nqa9/7iQlboF1EFtNhWxQA0rQstmYRSBGxSM6g3GxvxHxcoeqVXfGNr9stJOme674m2V7r4E3+jEhhGvSQhJRA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@next/swc-linux-arm64-gnu": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.5.12.tgz",- "integrity": "sha512-dCzAjqhDHwmoB2M4eYfVKqXs99QdQxNQVpftvP1eGVppamXh/OkDAwV737Zr0KPXEqRUMN4uCjh6mjO+XtF3Mw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@next/swc-linux-arm64-musl": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.5.12.tgz",- "integrity": "sha512-+fpGWvQiITgf7PUtbWY1H7qUSnBZsPPLyyq03QuAKpVoTy/QUx1JptEDTQMVvQhvizCEuNLEeghrQUyXQOekuw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@next/swc-linux-x64-gnu": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.5.12.tgz",- "integrity": "sha512-jSLvgdRRL/hrFAPqEjJf1fFguC719kmcptjNVDJl26BnJIpjL3KH5h6mzR4mAweociLQaqvt4UyzfbFjgAdDcw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@next/swc-linux-x64-musl": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.5.12.tgz",- "integrity": "sha512-/uaF0WfmYqQgLfPmN6BvULwxY0dufI2mlN2JbOKqqceZh1G4hjREyi7pg03zjfyS6eqNemHAZPSoP84x17vo6w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@next/swc-win32-arm64-msvc": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.5.12.tgz",- "integrity": "sha512-xhsL1OvQSfGmlL5RbOmU+FV120urrgFpYLq+6U8C6KIym32gZT6XF/SDE92jKzzlPWskkbjOKCpqk5m4i8PEfg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@next/swc-win32-x64-msvc": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.5.12.tgz",- "integrity": "sha512-Z1Dh6lhFkxvBDH1FoW6OU/L6prYwPSlwjLiZkExIAh8fbP6iI/M7iGTQAJPYJ9YFlWobCZ1PHbchFhFYb2ADkw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.57.1.tgz",- "integrity": "sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-android-arm64": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.57.1.tgz",- "integrity": "sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.57.1.tgz",- "integrity": "sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-darwin-x64": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.57.1.tgz",- "integrity": "sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.57.1.tgz",- "integrity": "sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.57.1.tgz",- "integrity": "sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.57.1.tgz",- "integrity": "sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.57.1.tgz",- "integrity": "sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.57.1.tgz",- "integrity": "sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.57.1.tgz",- "integrity": "sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.57.1.tgz",- "integrity": "sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-musl": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.57.1.tgz",- "integrity": "sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-gnu": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.57.1.tgz",- "integrity": "sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-musl": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.57.1.tgz",- "integrity": "sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.57.1.tgz",- "integrity": "sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.57.1.tgz",- "integrity": "sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.57.1.tgz",- "integrity": "sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.57.1.tgz",- "integrity": "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.57.1.tgz",- "integrity": "sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-openbsd-x64": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.57.1.tgz",- "integrity": "sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ]- },- "node_modules/@rollup/rollup-openharmony-arm64": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.57.1.tgz",- "integrity": "sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ]- },- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.57.1.tgz",- "integrity": "sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.57.1.tgz",- "integrity": "sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-gnu": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.57.1.tgz",- "integrity": "sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.57.1.tgz",- "integrity": "sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@spree/sdk": {- "resolved": "../sdk",- "link": true- },- "node_modules/@standard-schema/spec": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",- "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",- "dev": true,- "license": "MIT"- },- "node_modules/@swc/helpers": {- "version": "0.5.15",- "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz",- "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "tslib": "^2.8.0"- }- },- "node_modules/@types/chai": {- "version": "5.2.3",- "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",- "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/deep-eql": "*",- "assertion-error": "^2.0.1"- }- },- "node_modules/@types/deep-eql": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",- "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/estree": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",- "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/node": {- "version": "20.19.33",- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.33.tgz",- "integrity": "sha512-Rs1bVAIdBs5gbTIKza/tgpMuG1k3U/UMJLWecIMxNdJFDMzcM5LOiLVRYh3PilWEYDIeUDv7bpiHPLPsbydGcw==",- "dev": true,- "license": "MIT",- "dependencies": {- "undici-types": "~6.21.0"- }- },- "node_modules/@types/react": {- "version": "19.2.13",- "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.13.tgz",- "integrity": "sha512-KkiJeU6VbYbUOp5ITMIc7kBfqlYkKA5KhEHVrGMmUUMt7NeaZg65ojdPk+FtNrBAOXNVM5QM72jnADjM+XVRAQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "csstype": "^3.2.2"- }- },- "node_modules/@vitest/expect": {- "version": "4.0.18",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.0.18.tgz",- "integrity": "sha512-8sCWUyckXXYvx4opfzVY03EOiYVxyNrHS5QxX3DAIi5dpJAAkyJezHCP77VMX4HKA2LDT/Jpfo8i2r5BE3GnQQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@standard-schema/spec": "^1.0.0",- "@types/chai": "^5.2.2",- "@vitest/spy": "4.0.18",- "@vitest/utils": "4.0.18",- "chai": "^6.2.1",- "tinyrainbow": "^3.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/mocker": {- "version": "4.0.18",- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.0.18.tgz",- "integrity": "sha512-HhVd0MDnzzsgevnOWCBj5Otnzobjy5wLBe4EdeeFGv8luMsGcYqDuFRMcttKWZA5vVO8RFjexVovXvAM4JoJDQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/spy": "4.0.18",- "estree-walker": "^3.0.3",- "magic-string": "^0.30.21"- },- "funding": {- "url": "https://opencollective.com/vitest"- },- "peerDependencies": {- "msw": "^2.4.9",- "vite": "^6.0.0 || ^7.0.0-0"- },- "peerDependenciesMeta": {- "msw": {- "optional": true- },- "vite": {- "optional": true- }- }- },- "node_modules/@vitest/pretty-format": {- "version": "4.0.18",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.0.18.tgz",- "integrity": "sha512-P24GK3GulZWC5tz87ux0m8OADrQIUVDPIjjj65vBXYG17ZeU3qD7r+MNZ1RNv4l8CGU2vtTRqixrOi9fYk/yKw==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyrainbow": "^3.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/runner": {- "version": "4.0.18",- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.0.18.tgz",- "integrity": "sha512-rpk9y12PGa22Jg6g5M3UVVnTS7+zycIGk9ZNGN+m6tZHKQb7jrP7/77WfZy13Y/EUDd52NDsLRQhYKtv7XfPQw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/utils": "4.0.18",- "pathe": "^2.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/snapshot": {- "version": "4.0.18",- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.0.18.tgz",- "integrity": "sha512-PCiV0rcl7jKQjbgYqjtakly6T1uwv/5BQ9SwBLekVg/EaYeQFPiXcgrC2Y7vDMA8dM1SUEAEV82kgSQIlXNMvA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/pretty-format": "4.0.18",- "magic-string": "^0.30.21",- "pathe": "^2.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/spy": {- "version": "4.0.18",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.0.18.tgz",- "integrity": "sha512-cbQt3PTSD7P2OARdVW3qWER5EGq7PHlvE+QfzSC0lbwO+xnt7+XH06ZzFjFRgzUX//JmpxrCu92VdwvEPlWSNw==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/utils": {- "version": "4.0.18",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.0.18.tgz",- "integrity": "sha512-msMRKLMVLWygpK3u2Hybgi4MNjcYJvwTb0Ru09+fOyCXIgT5raYP041DRRdiJiI3k/2U6SEbAETB3YtBrUkCFA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/pretty-format": "4.0.18",- "tinyrainbow": "^3.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/acorn": {- "version": "8.15.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",- "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",- "dev": true,- "license": "MIT",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/any-promise": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",- "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",- "dev": true,- "license": "MIT"- },- "node_modules/assertion-error": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",- "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- }- },- "node_modules/bundle-require": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/bundle-require/-/bundle-require-5.1.0.tgz",- "integrity": "sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==",- "dev": true,- "license": "MIT",- "dependencies": {- "load-tsconfig": "^0.2.3"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "peerDependencies": {- "esbuild": ">=0.18"- }- },- "node_modules/cac": {- "version": "6.7.14",- "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",- "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/caniuse-lite": {- "version": "1.0.30001769",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz",- "integrity": "sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "CC-BY-4.0"- },- "node_modules/chai": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",- "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/chokidar": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",- "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",- "dev": true,- "license": "MIT",- "dependencies": {- "readdirp": "^4.0.1"- },- "engines": {- "node": ">= 14.16.0"- },- "funding": {- "url": "https://paulmillr.com/funding/"- }- },- "node_modules/client-only": {- "version": "0.0.1",- "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",- "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",- "dev": true,- "license": "MIT"- },- "node_modules/commander": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",- "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/confbox": {- "version": "0.1.8",- "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",- "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",- "dev": true,- "license": "MIT"- },- "node_modules/consola": {- "version": "3.4.2",- "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz",- "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^14.18.0 || >=16.10.0"- }- },- "node_modules/csstype": {- "version": "3.2.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",- "dev": true,- "license": "MIT"- },- "node_modules/debug": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/detect-libc": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",- "dev": true,- "license": "Apache-2.0",- "optional": true,- "engines": {- "node": ">=8"- }- },- "node_modules/es-module-lexer": {- "version": "1.7.0",- "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",- "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",- "dev": true,- "license": "MIT"- },- "node_modules/esbuild": {- "version": "0.27.3",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz",- "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=18"- },- "optionalDependencies": {- "@esbuild/aix-ppc64": "0.27.3",- "@esbuild/android-arm": "0.27.3",- "@esbuild/android-arm64": "0.27.3",- "@esbuild/android-x64": "0.27.3",- "@esbuild/darwin-arm64": "0.27.3",- "@esbuild/darwin-x64": "0.27.3",- "@esbuild/freebsd-arm64": "0.27.3",- "@esbuild/freebsd-x64": "0.27.3",- "@esbuild/linux-arm": "0.27.3",- "@esbuild/linux-arm64": "0.27.3",- "@esbuild/linux-ia32": "0.27.3",- "@esbuild/linux-loong64": "0.27.3",- "@esbuild/linux-mips64el": "0.27.3",- "@esbuild/linux-ppc64": "0.27.3",- "@esbuild/linux-riscv64": "0.27.3",- "@esbuild/linux-s390x": "0.27.3",- "@esbuild/linux-x64": "0.27.3",- "@esbuild/netbsd-arm64": "0.27.3",- "@esbuild/netbsd-x64": "0.27.3",- "@esbuild/openbsd-arm64": "0.27.3",- "@esbuild/openbsd-x64": "0.27.3",- "@esbuild/openharmony-arm64": "0.27.3",- "@esbuild/sunos-x64": "0.27.3",- "@esbuild/win32-arm64": "0.27.3",- "@esbuild/win32-ia32": "0.27.3",- "@esbuild/win32-x64": "0.27.3"- }- },- "node_modules/estree-walker": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",- "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0"- }- },- "node_modules/expect-type": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",- "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=12.0.0"- }- },- "node_modules/fdir": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",- "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12.0.0"- },- "peerDependencies": {- "picomatch": "^3 || ^4"- },- "peerDependenciesMeta": {- "picomatch": {- "optional": true- }- }- },- "node_modules/fix-dts-default-cjs-exports": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/fix-dts-default-cjs-exports/-/fix-dts-default-cjs-exports-1.0.1.tgz",- "integrity": "sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==",- "dev": true,- "license": "MIT",- "dependencies": {- "magic-string": "^0.30.17",- "mlly": "^1.7.4",- "rollup": "^4.34.8"- }- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"- }- },- "node_modules/joycon": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz",- "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- }- },- "node_modules/lilconfig": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",- "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/antonk52"- }- },- "node_modules/lines-and-columns": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",- "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",- "dev": true,- "license": "MIT"- },- "node_modules/load-tsconfig": {- "version": "0.2.5",- "resolved": "https://registry.npmjs.org/load-tsconfig/-/load-tsconfig-0.2.5.tgz",- "integrity": "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- }- },- "node_modules/magic-string": {- "version": "0.30.21",- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",- "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.5"- }- },- "node_modules/mlly": {- "version": "1.8.0",- "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz",- "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "acorn": "^8.15.0",- "pathe": "^2.0.3",- "pkg-types": "^1.3.1",- "ufo": "^1.6.1"- }- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "dev": true,- "license": "MIT"- },- "node_modules/mz": {- "version": "2.7.0",- "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",- "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "any-promise": "^1.0.0",- "object-assign": "^4.0.1",- "thenify-all": "^1.0.0"- }- },- "node_modules/nanoid": {- "version": "3.3.11",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "bin": {- "nanoid": "bin/nanoid.cjs"- },- "engines": {- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"- }- },- "node_modules/next": {- "version": "15.5.12",- "resolved": "https://registry.npmjs.org/next/-/next-15.5.12.tgz",- "integrity": "sha512-Fi/wQ4Etlrn60rz78bebG1i1SR20QxvV8tVp6iJspjLUSHcZoeUXCt+vmWoEcza85ElZzExK/jJ/F6SvtGktjA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@next/env": "15.5.12",- "@swc/helpers": "0.5.15",- "caniuse-lite": "^1.0.30001579",- "postcss": "8.4.31",- "styled-jsx": "5.1.6"- },- "bin": {- "next": "dist/bin/next"- },- "engines": {- "node": "^18.18.0 || ^19.8.0 || >= 20.0.0"- },- "optionalDependencies": {- "@next/swc-darwin-arm64": "15.5.12",- "@next/swc-darwin-x64": "15.5.12",- "@next/swc-linux-arm64-gnu": "15.5.12",- "@next/swc-linux-arm64-musl": "15.5.12",- "@next/swc-linux-x64-gnu": "15.5.12",- "@next/swc-linux-x64-musl": "15.5.12",- "@next/swc-win32-arm64-msvc": "15.5.12",- "@next/swc-win32-x64-msvc": "15.5.12",- "sharp": "^0.34.3"- },- "peerDependencies": {- "@opentelemetry/api": "^1.1.0",- "@playwright/test": "^1.51.1",- "babel-plugin-react-compiler": "*",- "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",- "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",- "sass": "^1.3.0"- },- "peerDependenciesMeta": {- "@opentelemetry/api": {- "optional": true- },- "@playwright/test": {- "optional": true- },- "babel-plugin-react-compiler": {- "optional": true- },- "sass": {- "optional": true- }- }- },- "node_modules/object-assign": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/obug": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz",- "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==",- "dev": true,- "funding": [- "https://github.com/sponsors/sxzz",- "https://opencollective.com/debug"- ],- "license": "MIT"- },- "node_modules/pathe": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",- "dev": true,- "license": "MIT"- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "dev": true,- "license": "ISC"- },- "node_modules/picomatch": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",- "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/pirates": {- "version": "4.0.7",- "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",- "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/pkg-types": {- "version": "1.3.1",- "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",- "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "confbox": "^0.1.8",- "mlly": "^1.7.4",- "pathe": "^2.0.1"- }- },- "node_modules/postcss": {- "version": "8.4.31",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",- "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "nanoid": "^3.3.6",- "picocolors": "^1.0.0",- "source-map-js": "^1.0.2"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },- "node_modules/postcss-load-config": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",- "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "lilconfig": "^3.1.1"- },- "engines": {- "node": ">= 18"- },- "peerDependencies": {- "jiti": ">=1.21.0",- "postcss": ">=8.0.9",- "tsx": "^4.8.1",- "yaml": "^2.4.2"- },- "peerDependenciesMeta": {- "jiti": {- "optional": true- },- "postcss": {- "optional": true- },- "tsx": {- "optional": true- },- "yaml": {- "optional": true- }- }- },- "node_modules/react": {- "version": "19.2.4",- "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",- "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/react-dom": {- "version": "19.2.4",- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",- "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "scheduler": "^0.27.0"- },- "peerDependencies": {- "react": "^19.2.4"- }- },- "node_modules/readdirp": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",- "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 14.18.0"- },- "funding": {- "type": "individual",- "url": "https://paulmillr.com/funding/"- }- },- "node_modules/resolve-from": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",- "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/rollup": {- "version": "4.57.1",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.57.1.tgz",- "integrity": "sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "1.0.8"- },- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=18.0.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.57.1",- "@rollup/rollup-android-arm64": "4.57.1",- "@rollup/rollup-darwin-arm64": "4.57.1",- "@rollup/rollup-darwin-x64": "4.57.1",- "@rollup/rollup-freebsd-arm64": "4.57.1",- "@rollup/rollup-freebsd-x64": "4.57.1",- "@rollup/rollup-linux-arm-gnueabihf": "4.57.1",- "@rollup/rollup-linux-arm-musleabihf": "4.57.1",- "@rollup/rollup-linux-arm64-gnu": "4.57.1",- "@rollup/rollup-linux-arm64-musl": "4.57.1",- "@rollup/rollup-linux-loong64-gnu": "4.57.1",- "@rollup/rollup-linux-loong64-musl": "4.57.1",- "@rollup/rollup-linux-ppc64-gnu": "4.57.1",- "@rollup/rollup-linux-ppc64-musl": "4.57.1",- "@rollup/rollup-linux-riscv64-gnu": "4.57.1",- "@rollup/rollup-linux-riscv64-musl": "4.57.1",- "@rollup/rollup-linux-s390x-gnu": "4.57.1",- "@rollup/rollup-linux-x64-gnu": "4.57.1",- "@rollup/rollup-linux-x64-musl": "4.57.1",- "@rollup/rollup-openbsd-x64": "4.57.1",- "@rollup/rollup-openharmony-arm64": "4.57.1",- "@rollup/rollup-win32-arm64-msvc": "4.57.1",- "@rollup/rollup-win32-ia32-msvc": "4.57.1",- "@rollup/rollup-win32-x64-gnu": "4.57.1",- "@rollup/rollup-win32-x64-msvc": "4.57.1",- "fsevents": "~2.3.2"- }- },- "node_modules/scheduler": {- "version": "0.27.0",- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",- "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",- "dev": true,- "license": "MIT",- "peer": true- },- "node_modules/semver": {- "version": "7.7.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",- "dev": true,- "license": "ISC",- "optional": true,- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/sharp": {- "version": "0.34.5",- "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",- "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",- "dev": true,- "hasInstallScript": true,- "license": "Apache-2.0",- "optional": true,- "dependencies": {- "@img/colour": "^1.0.0",- "detect-libc": "^2.1.2",- "semver": "^7.7.3"- },- "engines": {- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"- },- "funding": {- "url": "https://opencollective.com/libvips"- },- "optionalDependencies": {- "@img/sharp-darwin-arm64": "0.34.5",- "@img/sharp-darwin-x64": "0.34.5",- "@img/sharp-libvips-darwin-arm64": "1.2.4",- "@img/sharp-libvips-darwin-x64": "1.2.4",- "@img/sharp-libvips-linux-arm": "1.2.4",- "@img/sharp-libvips-linux-arm64": "1.2.4",- "@img/sharp-libvips-linux-ppc64": "1.2.4",- "@img/sharp-libvips-linux-riscv64": "1.2.4",- "@img/sharp-libvips-linux-s390x": "1.2.4",- "@img/sharp-libvips-linux-x64": "1.2.4",- "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",- "@img/sharp-libvips-linuxmusl-x64": "1.2.4",- "@img/sharp-linux-arm": "0.34.5",- "@img/sharp-linux-arm64": "0.34.5",- "@img/sharp-linux-ppc64": "0.34.5",- "@img/sharp-linux-riscv64": "0.34.5",- "@img/sharp-linux-s390x": "0.34.5",- "@img/sharp-linux-x64": "0.34.5",- "@img/sharp-linuxmusl-arm64": "0.34.5",- "@img/sharp-linuxmusl-x64": "0.34.5",- "@img/sharp-wasm32": "0.34.5",- "@img/sharp-win32-arm64": "0.34.5",- "@img/sharp-win32-ia32": "0.34.5",- "@img/sharp-win32-x64": "0.34.5"- }- },- "node_modules/siginfo": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",- "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",- "dev": true,- "license": "ISC"- },- "node_modules/source-map": {- "version": "0.7.6",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",- "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">= 12"- }- },- "node_modules/source-map-js": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/stackback": {- "version": "0.0.2",- "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",- "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",- "dev": true,- "license": "MIT"- },- "node_modules/std-env": {- "version": "3.10.0",- "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",- "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",- "dev": true,- "license": "MIT"- },- "node_modules/styled-jsx": {- "version": "5.1.6",- "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz",- "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==",- "dev": true,- "license": "MIT",- "dependencies": {- "client-only": "0.0.1"- },- "engines": {- "node": ">= 12.0.0"- },- "peerDependencies": {- "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0"- },- "peerDependenciesMeta": {- "@babel/core": {- "optional": true- },- "babel-plugin-macros": {- "optional": true- }- }- },- "node_modules/sucrase": {- "version": "3.35.1",- "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",- "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.2",- "commander": "^4.0.0",- "lines-and-columns": "^1.1.6",- "mz": "^2.7.0",- "pirates": "^4.0.1",- "tinyglobby": "^0.2.11",- "ts-interface-checker": "^0.1.9"- },- "bin": {- "sucrase": "bin/sucrase",- "sucrase-node": "bin/sucrase-node"- },- "engines": {- "node": ">=16 || 14 >=14.17"- }- },- "node_modules/thenify": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",- "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",- "dev": true,- "license": "MIT",- "dependencies": {- "any-promise": "^1.0.0"- }- },- "node_modules/thenify-all": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",- "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",- "dev": true,- "license": "MIT",- "dependencies": {- "thenify": ">= 3.1.0 < 4"- },- "engines": {- "node": ">=0.8"- }- },- "node_modules/tinybench": {- "version": "2.9.0",- "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",- "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",- "dev": true,- "license": "MIT"- },- "node_modules/tinyexec": {- "version": "0.3.2",- "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",- "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",- "dev": true,- "license": "MIT"- },- "node_modules/tinyglobby": {- "version": "0.2.15",- "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",- "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "fdir": "^6.5.0",- "picomatch": "^4.0.3"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "url": "https://github.com/sponsors/SuperchupuDev"- }- },- "node_modules/tinyrainbow": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.0.3.tgz",- "integrity": "sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/tree-kill": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",- "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",- "dev": true,- "license": "MIT",- "bin": {- "tree-kill": "cli.js"- }- },- "node_modules/ts-interface-checker": {- "version": "0.1.13",- "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",- "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",- "dev": true,- "license": "Apache-2.0"- },- "node_modules/tslib": {- "version": "2.8.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",- "dev": true,- "license": "0BSD"- },- "node_modules/tsup": {- "version": "8.5.1",- "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.5.1.tgz",- "integrity": "sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==",- "dev": true,- "license": "MIT",- "dependencies": {- "bundle-require": "^5.1.0",- "cac": "^6.7.14",- "chokidar": "^4.0.3",- "consola": "^3.4.0",- "debug": "^4.4.0",- "esbuild": "^0.27.0",- "fix-dts-default-cjs-exports": "^1.0.0",- "joycon": "^3.1.1",- "picocolors": "^1.1.1",- "postcss-load-config": "^6.0.1",- "resolve-from": "^5.0.0",- "rollup": "^4.34.8",- "source-map": "^0.7.6",- "sucrase": "^3.35.0",- "tinyexec": "^0.3.2",- "tinyglobby": "^0.2.11",- "tree-kill": "^1.2.2"- },- "bin": {- "tsup": "dist/cli-default.js",- "tsup-node": "dist/cli-node.js"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@microsoft/api-extractor": "^7.36.0",- "@swc/core": "^1",- "postcss": "^8.4.12",- "typescript": ">=4.5.0"- },- "peerDependenciesMeta": {- "@microsoft/api-extractor": {- "optional": true- },- "@swc/core": {- "optional": true- },- "postcss": {- "optional": true- },- "typescript": {- "optional": true- }- }- },- "node_modules/typescript": {- "version": "5.9.3",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",- "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=14.17"- }- },- "node_modules/ufo": {- "version": "1.6.3",- "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.3.tgz",- "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==",- "dev": true,- "license": "MIT"- },- "node_modules/undici-types": {- "version": "6.21.0",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",- "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",- "dev": true,- "license": "MIT"- },- "node_modules/vite": {- "version": "7.3.1",- "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz",- "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==",- "dev": true,- "license": "MIT",- "dependencies": {- "esbuild": "^0.27.0",- "fdir": "^6.5.0",- "picomatch": "^4.0.3",- "postcss": "^8.5.6",- "rollup": "^4.43.0",- "tinyglobby": "^0.2.15"- },- "bin": {- "vite": "bin/vite.js"- },- "engines": {- "node": "^20.19.0 || >=22.12.0"- },- "funding": {- "url": "https://github.com/vitejs/vite?sponsor=1"- },- "optionalDependencies": {- "fsevents": "~2.3.3"- },- "peerDependencies": {- "@types/node": "^20.19.0 || >=22.12.0",- "jiti": ">=1.21.0",- "less": "^4.0.0",- "lightningcss": "^1.21.0",- "sass": "^1.70.0",- "sass-embedded": "^1.70.0",- "stylus": ">=0.54.8",- "sugarss": "^5.0.0",- "terser": "^5.16.0",- "tsx": "^4.8.1",- "yaml": "^2.4.2"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "jiti": {- "optional": true- },- "less": {- "optional": true- },- "lightningcss": {- "optional": true- },- "sass": {- "optional": true- },- "sass-embedded": {- "optional": true- },- "stylus": {- "optional": true- },- "sugarss": {- "optional": true- },- "terser": {- "optional": true- },- "tsx": {- "optional": true- },- "yaml": {- "optional": true- }- }- },- "node_modules/vite/node_modules/postcss": {- "version": "8.5.6",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",- "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "nanoid": "^3.3.11",- "picocolors": "^1.1.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },- "node_modules/vitest": {- "version": "4.0.18",- "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.0.18.tgz",- "integrity": "sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/expect": "4.0.18",- "@vitest/mocker": "4.0.18",- "@vitest/pretty-format": "4.0.18",- "@vitest/runner": "4.0.18",- "@vitest/snapshot": "4.0.18",- "@vitest/spy": "4.0.18",- "@vitest/utils": "4.0.18",- "es-module-lexer": "^1.7.0",- "expect-type": "^1.2.2",- "magic-string": "^0.30.21",- "obug": "^2.1.1",- "pathe": "^2.0.3",- "picomatch": "^4.0.3",- "std-env": "^3.10.0",- "tinybench": "^2.9.0",- "tinyexec": "^1.0.2",- "tinyglobby": "^0.2.15",- "tinyrainbow": "^3.0.3",- "vite": "^6.0.0 || ^7.0.0",- "why-is-node-running": "^2.3.0"- },- "bin": {- "vitest": "vitest.mjs"- },- "engines": {- "node": "^20.0.0 || ^22.0.0 || >=24.0.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- },- "peerDependencies": {- "@edge-runtime/vm": "*",- "@opentelemetry/api": "^1.9.0",- "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",- "@vitest/browser-playwright": "4.0.18",- "@vitest/browser-preview": "4.0.18",- "@vitest/browser-webdriverio": "4.0.18",- "@vitest/ui": "4.0.18",- "happy-dom": "*",- "jsdom": "*"- },- "peerDependenciesMeta": {- "@edge-runtime/vm": {- "optional": true- },- "@opentelemetry/api": {- "optional": true- },- "@types/node": {- "optional": true- },- "@vitest/browser-playwright": {- "optional": true- },- "@vitest/browser-preview": {- "optional": true- },- "@vitest/browser-webdriverio": {- "optional": true- },- "@vitest/ui": {- "optional": true- },- "happy-dom": {- "optional": true- },- "jsdom": {- "optional": true- }- }- },- "node_modules/vitest/node_modules/tinyexec": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.2.tgz",- "integrity": "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/why-is-node-running": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",- "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",- "dev": true,- "license": "MIT",- "dependencies": {- "siginfo": "^2.0.0",- "stackback": "0.0.2"- },- "bin": {- "why-is-node-running": "cli.js"- },- "engines": {- "node": ">=8"- }- }- }-}diff --git a/packages/next/package.json b/packages/next/package.jsondeleted file mode 100644index 7683241d0e..0000000000--- a/packages/next/package.json+++ /dev/null@@ -1,88 +0,0 @@-{- "name": "@spree/next",- "version": "0.19.0",- "description": "Next.js integration for Spree Commerce — cookie-based auth, middleware, and webhook helpers",- "type": "module",- "main": "./dist/index.js",- "types": "./dist/index.d.ts",- "exports": {- ".": {- "import": {- "types": "./dist/index.d.ts",- "default": "./dist/index.js"- },- "require": {- "types": "./dist/index.d.ts",- "default": "./dist/index.js"- },- "default": "./dist/index.js"- },- "./middleware": {- "import": {- "types": "./dist/middleware.d.ts",- "default": "./dist/middleware.js"- },- "default": "./dist/middleware.js"- },- "./webhooks": {- "import": {- "types": "./dist/webhooks.d.ts",- "default": "./dist/webhooks.js"- },- "default": "./dist/webhooks.js"- }- },- "files": [- "dist",- "README.md"- ],- "scripts": {- "build": "rm -rf dist && tsup",- "dev": "tsup --watch",- "typecheck": "tsc --noEmit",- "test": "vitest run",- "test:watch": "vitest",- "clean": "rm -rf dist",- "prepublishOnly": "npm run build",- "changeset": "changeset",- "version": "changeset version",- "release": "npm run build && changeset publish"- },- "keywords": [- "spree",- "commerce",- "ecommerce",- "nextjs",- "server-actions",- "typescript",- "headless"- ],- "author": "Vendo Connect Inc.",- "license": "MIT",- "repository": {- "type": "git",- "url": "https://github.com/spree/spree.git",- "directory": "packages/next"- },- "homepage": "https://spreecommerce.org",- "bugs": {- "url": "https://github.com/spree/spree/issues"- },- "peerDependencies": {- "@spree/sdk": ">=0.19.0",- "next": ">=16.0.0",- "react": ">=19.0.0"- },- "devDependencies": {- "@changesets/changelog-github": "^0.6.0",- "@changesets/cli": "^2.30.0",- "@spree/sdk": "workspace:*",- "@types/node": "^25.5.0",- "@types/react": "^19.2.14",- "next": "^16.2.1",- "react": "^19.0.0",- "tsup": "^8.0.0",- "typescript": "^6.0.2",- "vitest": "^4.1.2"- }-}diff --git a/packages/next/src/auth-helpers.ts b/packages/next/src/auth-helpers.tsdeleted file mode 100644index 0691a0fdc5..0000000000--- a/packages/next/src/auth-helpers.ts+++ /dev/null@@ -1,88 +0,0 @@-import { SpreeError } from '@spree/sdk';-import type { RequestOptions } from '@spree/sdk';-import { getClient } from './config';-import { getAccessToken, setAccessToken, clearAccessToken, getRefreshToken, setRefreshToken, clearRefreshToken } from './cookies';--/**- * Get auth request options from the current JWT token.- * Proactively refreshes the token using the refresh token if the JWT is close to expiry.- */-export async function getAuthOptions(): Promise<RequestOptions> {- const token = await getAccessToken();- if (!token) {- return {};- }-- // Check if token is close to expiry by decoding JWT payload- try {- const payload = JSON.parse(atob(token.split('.')[1]));- const exp = payload.exp;- const now = Math.floor(Date.now() / 1000);-- // Refresh if token expires in less than 5 minutes- if (exp && exp - now < 300) {- const newToken = await tryRefresh();- if (newToken) {- return { token: newToken };- }- }- } catch {- // Can't decode JWT — use it as-is, the server will reject if invalid- }-- return { token };-}--/**- * Execute an authenticated request with automatic token refresh on 401.- * @param fn - Function that takes RequestOptions and returns a promise- * @returns The result of the function- * @throws SpreeError if auth fails after refresh attempt- */-export async function withAuthRefresh<T>(- fn: (options: RequestOptions) => Promise<T>-): Promise<T> {- const options = await getAuthOptions();-- if (!options.token) {- throw new Error('Not authenticated');- }-- try {- return await fn(options);- } catch (error: unknown) {- // If 401, try refreshing the token using the refresh token- if (error instanceof SpreeError && error.status === 401) {- const newToken = await tryRefresh();- if (newToken) {- return await fn({ token: newToken });- }- // Refresh failed — clear all auth cookies and rethrow- await clearAccessToken();- await clearRefreshToken();- throw error;- }- throw error;- }-}--/**- * Try to refresh the access token using the stored refresh token.- * Returns the new access token on success, null on failure.- */-async function tryRefresh(): Promise<string | null> {- const refreshToken = await getRefreshToken();- if (!refreshToken) return null;-- try {- const refreshed = await getClient().auth.refresh({ refresh_token: refreshToken });- await setAccessToken(refreshed.token);- await setRefreshToken(refreshed.refresh_token);- return refreshed.token;- } catch {- // Refresh token is invalid/expired — clear it- await clearRefreshToken();- await clearAccessToken();- return null;- }-}diff --git a/packages/next/src/config.ts b/packages/next/src/config.tsdeleted file mode 100644index 83805cc852..0000000000--- a/packages/next/src/config.ts+++ /dev/null@@ -1,57 +0,0 @@-import { createClient, type Client } from '@spree/sdk';-import type { SpreeNextConfig } from './types';--let _client: Client | null = null;-let _config: SpreeNextConfig | null = null;--/**- * Initialize the Spree Next.js integration.- * Call this once in your app (e.g., in `lib/storefront.ts`).- * If not called, the client will auto-initialize from SPREE_API_URL and SPREE_PUBLISHABLE_KEY env vars.- */-export function initSpreeNext(config: SpreeNextConfig): void {- _config = config;- _client = createClient({- baseUrl: config.baseUrl,- publishableKey: config.publishableKey,- });-}--/**- * Get the Client instance. Auto-initializes from env vars if needed.- * @internal- */-export function getClient(): Client {- if (!_client) {- const baseUrl = process.env.SPREE_API_URL;- const publishableKey = process.env.SPREE_PUBLISHABLE_KEY;- if (baseUrl && publishableKey) {- initSpreeNext({ baseUrl, publishableKey });- } else {- throw new Error(- '@spree/next is not configured. Either call initSpreeNext() or set SPREE_API_URL and SPREE_PUBLISHABLE_KEY environment variables.'- );- }- }- return _client!;-}--/**- * Get the current config. Auto-initializes from env vars if needed.- * @internal- */-export function getConfig(): SpreeNextConfig {- if (!_config) {- getClient(); // triggers auto-init- }- return _config!;-}--/**- * Reset the client (useful for testing).- * @internal- */-export function resetClient(): void {- _client = null;- _config = null;-}diff --git a/packages/next/src/cookies.ts b/packages/next/src/cookies.tsdeleted file mode 100644index bf88bb299e..0000000000--- a/packages/next/src/cookies.ts+++ /dev/null@@ -1,152 +0,0 @@-import { cookies } from 'next/headers';-import { getConfig } from './config';--const DEFAULT_CART_COOKIE = '_spree_cart_token';-const DEFAULT_ACCESS_TOKEN_COOKIE = '_spree_jwt';-const DEFAULT_REFRESH_TOKEN_COOKIE = '_spree_refresh_token';-const CART_TOKEN_MAX_AGE = 60 * 60 * 24 * 30; // 30 days-const ACCESS_TOKEN_MAX_AGE = 60 * 60 * 24 * 7; // 7 days-const REFRESH_TOKEN_MAX_AGE = 60 * 60 * 24 * 30; // 30 days--function getCartCookieName(): string {- try {- return getConfig().cartCookieName ?? DEFAULT_CART_COOKIE;- } catch {- return DEFAULT_CART_COOKIE;- }-}--function getCartIdCookieName(): string {- return `${getCartCookieName()}_id`;-}--function getAccessTokenCookieName(): string {- try {- return getConfig().accessTokenCookieName ?? DEFAULT_ACCESS_TOKEN_COOKIE;- } catch {- return DEFAULT_ACCESS_TOKEN_COOKIE;- }-}--// --- Cart Cookies (token + ID always managed together) -----export async function getCartToken(): Promise<string | undefined> {- const cookieStore = await cookies();- return cookieStore.get(getCartCookieName())?.value;-}--export async function getCartId(): Promise<string | undefined> {- const cookieStore = await cookies();- return cookieStore.get(getCartIdCookieName())?.value;-}--export async function setCartCookies(id: string, token?: string): Promise<void> {- const cookieStore = await cookies();- const opts = {- httpOnly: true,- secure: process.env.NODE_ENV === 'production',- sameSite: 'lax' as const,- path: '/',- maxAge: CART_TOKEN_MAX_AGE,- };-- cookieStore.set(getCartIdCookieName(), id, opts);- if (token) {- cookieStore.set(getCartCookieName(), token, opts);- }-}--export async function clearCartCookies(): Promise<void> {- const cookieStore = await cookies();- const opts = { maxAge: -1, path: '/' };- cookieStore.set(getCartCookieName(), '', opts);- cookieStore.set(getCartIdCookieName(), '', opts);-}--// --- Access Token (JWT) -----export async function getAccessToken(): Promise<string | undefined> {- const cookieStore = await cookies();- return cookieStore.get(getAccessTokenCookieName())?.value;-}--export async function setAccessToken(token: string): Promise<void> {- const cookieStore = await cookies();- cookieStore.set(getAccessTokenCookieName(), token, {- httpOnly: true,- secure: process.env.NODE_ENV === 'production',- sameSite: 'lax',- path: '/',- maxAge: ACCESS_TOKEN_MAX_AGE,- });-}--export async function clearAccessToken(): Promise<void> {- const cookieStore = await cookies();- cookieStore.set(getAccessTokenCookieName(), '', {- maxAge: -1,- path: '/',- });-}--// --- Refresh Token -----function getRefreshTokenCookieName(): string {- return DEFAULT_REFRESH_TOKEN_COOKIE;-}--export async function getRefreshToken(): Promise<string | undefined> {- const cookieStore = await cookies();- return cookieStore.get(getRefreshTokenCookieName())?.value;-}--export async function setRefreshToken(token: string): Promise<void> {- const cookieStore = await cookies();- cookieStore.set(getRefreshTokenCookieName(), token, {- httpOnly: true,- secure: process.env.NODE_ENV === 'production',- sameSite: 'lax',- path: '/',- maxAge: REFRESH_TOKEN_MAX_AGE,- });-}--export async function clearRefreshToken(): Promise<void> {- const cookieStore = await cookies();- cookieStore.set(getRefreshTokenCookieName(), '', {- maxAge: -1,- path: '/',- });-}--// --- Cart Options (combined cart + access tokens for cart/checkout/payment actions) -----export async function getCartOptions(): Promise<{- spreeToken: string | undefined;- token: string | undefined;-}> {- const spreeToken = await getCartToken();- const token = await getAccessToken();- return { spreeToken, token };-}--// --- Cart ID (required) -----export async function requireCartId(): Promise<string> {- const cartId = await getCartId();- if (cartId) return cartId;-- // Authenticated user without cart ID cookie — resolve via carts.list()- const token = await getAccessToken();- if (token) {- const { getClient } = await import('./config');- const response = await getClient().carts.list({ token });- if (response.data.length > 0) {- const cart = response.data[0];- await setCartCookies(cart.id, cart.token);- return cart.id;- }- }-- throw new Error('No cart found');-}diff --git a/packages/next/src/index.ts b/packages/next/src/index.tsdeleted file mode 100644index 0d4542cb05..0000000000--- a/packages/next/src/index.ts+++ /dev/null@@ -1,25 +0,0 @@-// Configuration-export { initSpreeNext, getClient, getConfig } from './config';-export type { SpreeNextConfig, SpreeNextOptions } from './types';--// Auth helpers (token refresh, cookie-based auth)-export { withAuthRefresh, getAuthOptions } from './auth-helpers';--// Cookie management-export {- getCartToken,- getCartId,- setCartCookies,- clearCartCookies,- getAccessToken,- setAccessToken,- clearAccessToken,- getRefreshToken,- setRefreshToken,- clearRefreshToken,- getCartOptions,- requireCartId,-} from './cookies';--// Locale resolution (reads country/locale from cookies)-export { getLocaleOptions } from './locale';diff --git a/packages/next/src/locale.ts b/packages/next/src/locale.tsdeleted file mode 100644index 3466796c4b..0000000000--- a/packages/next/src/locale.ts+++ /dev/null@@ -1,28 +0,0 @@-import { cookies } from 'next/headers';-import { getConfig } from './config';--const DEFAULT_COUNTRY_COOKIE = 'spree_country';-const DEFAULT_LOCALE_COOKIE = 'spree_locale';--/**- * Read locale/currency/country from cookies (set by middleware).- * Falls back to config defaults.- * @internal- */-export async function getLocaleOptions(): Promise<{- locale?: string;- currency?: string;- country?: string;-}> {- const config = getConfig();- const cookieStore = await cookies();-- const country = cookieStore.get(config.countryCookieName ?? DEFAULT_COUNTRY_COOKIE)?.value;- const locale = cookieStore.get(config.localeCookieName ?? DEFAULT_LOCALE_COOKIE)?.value;-- return {- locale: locale || config.defaultLocale,- country: country || config.defaultCountry,- // No currency — backend resolves from country via X-Spree-Country header- };-}diff --git a/packages/next/src/middleware.ts b/packages/next/src/middleware.tsdeleted file mode 100644index 366de2e0be..0000000000--- a/packages/next/src/middleware.ts+++ /dev/null@@ -1,65 +0,0 @@-import { NextResponse, type NextRequest } from 'next/server';--export interface SpreeMiddlewareConfig {- /** Default country ISO code (default: 'us') */- defaultCountry?: string;- /** Default locale code (default: 'en') */- defaultLocale?: string;- /** Routes to skip — prefixes matched with startsWith (default: ['/_next', '/api', '/favicon.ico']) */- staticRoutes?: string[];-}--/**- * Creates a Next.js middleware that handles:- * - Redirecting bare paths to /{country}/{locale}/...- * - Detecting country from cookies → geo headers → default- * - Detecting locale from cookies → accept-language → default- *- * Usage in your middleware.ts:- * ```typescript- * import { createSpreeMiddleware } from '@spree/next/middleware';- * export default createSpreeMiddleware({ defaultCountry: 'us', defaultLocale: 'en' });- * export const config = { matcher: ['/((?!_next/static|_next/image|favicon.ico|.*\\..*$).*)'] };- * ```- */-export function createSpreeMiddleware(config: SpreeMiddlewareConfig = {}) {- const defaultCountry = config.defaultCountry ?? 'us';- const defaultLocale = config.defaultLocale ?? 'en';- const staticRoutes = config.staticRoutes ?? ['/_next', '/api', '/favicon.ico'];-- return function middleware(request: NextRequest) {- const { pathname } = request.nextUrl;-- // Skip static routes- if (staticRoutes.some((route) => pathname.startsWith(route))) {- return NextResponse.next();- }-- // Skip if pathname contains a file extension (static assets)- if (/\.\w+$/.test(pathname)) {- return NextResponse.next();- }-- // Already has /{country}/{locale} prefix- if (/^\/[a-z]{2}\/[a-z]{2}(\/|$)/i.test(pathname)) {- return NextResponse.next();- }-- // Detect country: cookie → geo headers → default- const country =- request.cookies.get('spree_country')?.value ??- request.headers.get('x-vercel-ip-country')?.toLowerCase() ??- request.headers.get('cf-ipcountry')?.toLowerCase() ??- defaultCountry;-- // Detect locale: cookie → accept-language → default- const locale =- request.cookies.get('spree_locale')?.value ??- request.headers.get('accept-language')?.split(',')[0]?.split('-')[0]?.toLowerCase() ??- defaultLocale;-- const url = request.nextUrl.clone();- url.pathname = `/${country}/${locale}${pathname === '/' ? '' : pathname}`;- return NextResponse.redirect(url);- };-}diff --git a/packages/next/src/types.ts b/packages/next/src/types.tsdeleted file mode 100644index 0e6ec02387..0000000000--- a/packages/next/src/types.ts+++ /dev/null@@ -1,29 +0,0 @@-export interface SpreeNextConfig {- /** Base URL of the Spree API (e.g., 'https://api.mystore.com') */- baseUrl: string;- /** Publishable API key for Store API access */- publishableKey: string;- /** Cookie name for the cart order token (default: '_spree_cart_token') */- cartCookieName?: string;- /** Cookie name for the JWT access token (default: '_spree_jwt') */- accessTokenCookieName?: string;- /** Cookie name for country (default: 'spree_country') */- countryCookieName?: string;- /** Cookie name for locale (default: 'spree_locale') */- localeCookieName?: string;- /** Default locale for API requests */- defaultLocale?: string;- /** Default currency for API requests */- defaultCurrency?: string;- /** Default country ISO code for market resolution */- defaultCountry?: string;-}--export interface SpreeNextOptions {- /** Locale for translated content (e.g., 'en', 'fr') */- locale?: string;- /** Currency for prices (e.g., 'USD', 'EUR') */- currency?: string;- /** Country ISO code for market resolution (e.g., 'US', 'DE') */- country?: string;-}diff --git a/packages/next/src/webhooks.ts b/packages/next/src/webhooks.tsdeleted file mode 100644index 38ecdc832c..0000000000--- a/packages/next/src/webhooks.ts+++ /dev/null@@ -1,125 +0,0 @@-import { NextResponse } from 'next/server'-import { verifyWebhookSignature } from '@spree/sdk/webhooks'-import type { WebhookEvent } from '@spree/sdk/webhooks'--export type { WebhookEvent }--export type WebhookHandler<T = any> = (event: WebhookEvent<T>) => Promise<void>--export interface CreateWebhookHandlerOptions {- /**- * The webhook endpoint secret key (from Spree Admin → Webhooks).- * Usually: `process.env.SPREE_WEBHOOK_SECRET`- */- secret: string-- /**- * Map of event names to handler functions.- * Unhandled events return 200 with `{ handled: false }` so Spree doesn't retry.- *- * @example- * {- * 'order.completed': handleOrderCompleted,- * 'order.canceled': handleOrderCanceled,- * }- */- handlers: Record<string, WebhookHandler>-- /**- * Max age of the webhook timestamp in seconds before rejecting (replay protection).- * @default 300 (5 minutes)- */- toleranceSeconds?: number-- /**- * Optional `waitUntil` function for extending serverless execution context.- * On Vercel/Cloudflare, pass `waitUntil` from the request context to ensure- * handlers complete even after the response is sent.- *- * If not provided, handlers are awaited before returning the response.- *- * @example- * ```ts- * // Vercel with waitUntil- * import { waitUntil } from '@vercel/functions'- *- * export const POST = createWebhookHandler({- * secret: process.env.SPREE_WEBHOOK_SECRET!,- * waitUntil,- * handlers: { ... },- * })- * ```- */- waitUntil?: (promise: Promise<unknown>) => void-}--/**- * Creates a Next.js Route Handler for Spree webhooks.- *- * Handles signature verification, event parsing, and dispatching to your handlers.- *- * @example- * ```ts- * // src/app/api/webhooks/spree/route.ts- * import { createWebhookHandler } from '@spree/next/webhooks'- *- * export const POST = createWebhookHandler({- * secret: process.env.SPREE_WEBHOOK_SECRET!,- * handlers: {- * 'order.completed': async (event) => { ... },- * 'order.canceled': async (event) => { ... },- * },- * })- * ```- */-export function createWebhookHandler(options: CreateWebhookHandlerOptions) {- const { secret, handlers, toleranceSeconds, waitUntil } = options-- return async function POST(request: Request) {- if (!secret) {- console.error('[spree-webhook] Secret is not configured')- return NextResponse.json({ error: 'Webhook secret not configured' }, { status: 500 })- }-- const body = await request.text()- const signature = request.headers.get('x-spree-webhook-signature')- const timestamp = request.headers.get('x-spree-webhook-timestamp')- const eventName = request.headers.get('x-spree-webhook-event')-- if (!signature || !timestamp) {- return NextResponse.json({ error: 'Missing signature headers' }, { status: 401 })- }-- if (!verifyWebhookSignature(body, signature, timestamp, secret, toleranceSeconds)) {- return NextResponse.json({ error: 'Invalid signature' }, { status: 401 })- }-- let event: WebhookEvent- try {- event = JSON.parse(body)- } catch {- return NextResponse.json({ error: 'Invalid JSON' }, { status: 400 })- }-- const name = eventName || event.name- const handler = handlers[name]-- if (!handler) {- return NextResponse.json({ received: true, handled: false })- }-- const work = handler(event).catch((error) => {- console.error(`[spree-webhook] Error handling ${name}:`, error)- })-- if (waitUntil) {- // Serverless: schedule background work and return immediately- waitUntil(work)- } else {- // Default: await the handler before responding- await work- }-- return NextResponse.json({ received: true, handled: true })- }-}diff --git a/packages/next/tests/auth-helpers.test.ts b/packages/next/tests/auth-helpers.test.tsdeleted file mode 100644index 5692645ff0..0000000000--- a/packages/next/tests/auth-helpers.test.ts+++ /dev/null@@ -1,192 +0,0 @@-import { describe, it, expect, beforeEach, vi } from 'vitest';-import { mockCookieStore } from './setup';-import { initSpreeNext, resetClient } from '../src/config';--const mockClient = {- auth: {- refresh: vi.fn(),- logout: vi.fn(),- },-};--vi.mock('@spree/sdk', () => {- class SpreeError extends Error {- public readonly status: number;- constructor(response: { error: { message: string } }, status: number) {- super(response.error.message);- this.status = status;- }- }- return {- createClient: vi.fn(() => mockClient),- SpreeError,- };-});--import { getAuthOptions, withAuthRefresh } from '../src/auth-helpers';-import { SpreeError } from '@spree/sdk';--// Helper: create a JWT with a specific expiration time-function makeJwt(expInSeconds: number): string {- const payload = { exp: expInSeconds };- return `header.${btoa(JSON.stringify(payload))}.signature`;-}--// Helper: mock cookies to return different values for different cookie names-function mockCookies(values: Record<string, string | undefined>) {- mockCookieStore.get.mockImplementation((name: string) => {- const value = values[name];- return value ? { value } : undefined;- });-}--describe('auth-helpers', () => {- beforeEach(() => {- vi.clearAllMocks();- resetClient();- initSpreeNext({ baseUrl: 'https://api.test.com', publishableKey: 'pk_test' });- });-- describe('getAuthOptions', () => {- it('returns empty object when no token', async () => {- mockCookies({});- const options = await getAuthOptions();- expect(options).toEqual({});- });-- it('returns token without refresh when far from expiry', async () => {- const futureExp = Math.floor(Date.now() / 1000) + 86400; // 24h from now- const jwt = makeJwt(futureExp);- mockCookies({ '_spree_jwt': jwt });-- const options = await getAuthOptions();- expect(options).toEqual({ token: jwt });- expect(mockClient.auth.refresh).not.toHaveBeenCalled();- });-- it('refreshes token using refresh_token when near expiry', async () => {- const nearExp = Math.floor(Date.now() / 1000) + 120; // 2min from now (< 5min threshold)- const jwt = makeJwt(nearExp);- const newJwt = 'refreshed_token';- mockCookies({ '_spree_jwt': jwt, '_spree_refresh_token': 'rt_old' });- mockClient.auth.refresh.mockResolvedValue({ token: newJwt, refresh_token: 'rt_new' });-- const options = await getAuthOptions();- expect(options).toEqual({ token: newJwt });- expect(mockClient.auth.refresh).toHaveBeenCalledWith({ refresh_token: 'rt_old' });- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_jwt',- newJwt,- expect.any(Object)- );- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_refresh_token',- 'rt_new',- expect.any(Object)- );- });-- it('uses original token when no refresh token available near expiry', async () => {- const nearExp = Math.floor(Date.now() / 1000) + 120;- const jwt = makeJwt(nearExp);- mockCookies({ '_spree_jwt': jwt }); // no refresh token cookie-- const options = await getAuthOptions();- expect(options).toEqual({ token: jwt });- });-- it('uses original token when refresh fails near expiry', async () => {- const nearExp = Math.floor(Date.now() / 1000) + 120;- const jwt = makeJwt(nearExp);- mockCookies({ '_spree_jwt': jwt, '_spree_refresh_token': 'rt_old' });- mockClient.auth.refresh.mockRejectedValue(new Error('Refresh failed'));-- const options = await getAuthOptions();- expect(options).toEqual({ token: jwt });- });-- it('uses token as-is when JWT cannot be decoded', async () => {- const malformedJwt = 'not-a-valid-jwt';- mockCookies({ '_spree_jwt': malformedJwt });-- const options = await getAuthOptions();- expect(options).toEqual({ token: malformedJwt });- expect(mockClient.auth.refresh).not.toHaveBeenCalled();- });- });-- describe('withAuthRefresh', () => {- it('throws when not authenticated', async () => {- mockCookies({});- const fn = vi.fn();-- await expect(withAuthRefresh(fn)).rejects.toThrow('Not authenticated');- expect(fn).not.toHaveBeenCalled();- });-- it('calls fn with auth options and returns result', async () => {- const futureExp = Math.floor(Date.now() / 1000) + 86400;- const jwt = makeJwt(futureExp);- mockCookies({ '_spree_jwt': jwt });- const fn = vi.fn().mockResolvedValue({ data: 'result' });-- const result = await withAuthRefresh(fn);- expect(result).toEqual({ data: 'result' });- expect(fn).toHaveBeenCalledWith(expect.objectContaining({ token: jwt }));- });-- it('retries with refreshed token on 401', async () => {- const futureExp = Math.floor(Date.now() / 1000) + 86400;- const jwt = makeJwt(futureExp);- const newJwt = 'refreshed_token';- mockCookies({ '_spree_jwt': jwt, '_spree_refresh_token': 'rt_old' });-- const error401 = new SpreeError({ error: { message: 'Unauthorized' } } as any, 401);- const fn = vi.fn()- .mockRejectedValueOnce(error401)- .mockResolvedValueOnce({ data: 'retried' });- mockClient.auth.refresh.mockResolvedValue({ token: newJwt, refresh_token: 'rt_new' });-- const result = await withAuthRefresh(fn);- expect(result).toEqual({ data: 'retried' });- expect(fn).toHaveBeenCalledTimes(2);- expect(fn).toHaveBeenLastCalledWith({ token: newJwt });- expect(mockClient.auth.refresh).toHaveBeenCalledWith({ refresh_token: 'rt_old' });- });-- it('clears tokens and rethrows when refresh fails on 401', async () => {- const futureExp = Math.floor(Date.now() / 1000) + 86400;- const jwt = makeJwt(futureExp);- mockCookies({ '_spree_jwt': jwt, '_spree_refresh_token': 'rt_old' });-- const error401 = new SpreeError({ error: { message: 'Unauthorized' } } as any, 401);- const fn = vi.fn().mockRejectedValue(error401);- mockClient.auth.refresh.mockRejectedValue(new Error('Refresh failed'));-- await expect(withAuthRefresh(fn)).rejects.toThrow('Unauthorized');- // Both tokens should be cleared- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_jwt',- '',- expect.objectContaining({ maxAge: -1 })- );- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_refresh_token',- '',- expect.objectContaining({ maxAge: -1 })- );- });-- it('rethrows non-401 errors without refresh', async () => {- const futureExp = Math.floor(Date.now() / 1000) + 86400;- const jwt = makeJwt(futureExp);- mockCookies({ '_spree_jwt': jwt });-- const error500 = new Error('Server error');- const fn = vi.fn().mockRejectedValue(error500);-- await expect(withAuthRefresh(fn)).rejects.toThrow('Server error');- expect(mockClient.auth.refresh).not.toHaveBeenCalled();- });- });-});diff --git a/packages/next/tests/config.test.ts b/packages/next/tests/config.test.tsdeleted file mode 100644index 8f93b34b7f..0000000000--- a/packages/next/tests/config.test.ts+++ /dev/null@@ -1,27 +0,0 @@-import { describe, it, expect, beforeEach } from 'vitest';-import { initSpreeNext, getClient, resetClient } from '../src/config';--describe('config', () => {- beforeEach(() => {- resetClient();- delete process.env.SPREE_API_URL;- delete process.env.SPREE_PUBLISHABLE_KEY;- });-- it('initializes from explicit config', () => {- initSpreeNext({ baseUrl: 'https://api.test.com', publishableKey: 'pk_test' });- const client = getClient();- expect(client).toBeDefined();- });-- it('auto-initializes from env vars', () => {- process.env.SPREE_API_URL = 'https://api.env.com';- process.env.SPREE_PUBLISHABLE_KEY = 'pk_env';- const client = getClient();- expect(client).toBeDefined();- });-- it('throws when no config and no env vars', () => {- expect(() => getClient()).toThrow('@spree/next is not configured');- });-});diff --git a/packages/next/tests/cookies.test.ts b/packages/next/tests/cookies.test.tsdeleted file mode 100644index b420fca9d8..0000000000--- a/packages/next/tests/cookies.test.ts+++ /dev/null@@ -1,119 +0,0 @@-import { describe, it, expect, beforeEach, vi } from 'vitest';-import { mockCookieStore } from './setup';-import {- getCartToken,- getCartId,- setCartCookies,- clearCartCookies,- getAccessToken,- setAccessToken,- clearAccessToken,-} from '../src/cookies';--describe('cookies', () => {- beforeEach(() => {- vi.clearAllMocks();- });-- describe('cart cookies', () => {- it('reads cart token from cookies', async () => {- mockCookieStore.get.mockReturnValue({ value: 'cart_abc123' });- const token = await getCartToken();- expect(token).toBe('cart_abc123');- expect(mockCookieStore.get).toHaveBeenCalledWith('_spree_cart_token');- });-- it('reads cart ID from cookies', async () => {- mockCookieStore.get.mockReturnValue({ value: 'or_xyz' });- const id = await getCartId();- expect(id).toBe('or_xyz');- expect(mockCookieStore.get).toHaveBeenCalledWith('_spree_cart_token_id');- });-- it('returns undefined when no cart token', async () => {- mockCookieStore.get.mockReturnValue(undefined);- const token = await getCartToken();- expect(token).toBeUndefined();- });-- it('sets both cart ID and token cookies', async () => {- await setCartCookies('or_123', 'cart_token_abc');- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_cart_token_id',- 'or_123',- expect.objectContaining({- httpOnly: true,- sameSite: 'lax',- path: '/',- maxAge: 60 * 60 * 24 * 30,- })- );- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_cart_token',- 'cart_token_abc',- expect.objectContaining({- httpOnly: true,- sameSite: 'lax',- path: '/',- maxAge: 60 * 60 * 24 * 30,- })- );- });-- it('sets only cart ID when token is undefined', async () => {- await setCartCookies('or_123');- expect(mockCookieStore.set).toHaveBeenCalledTimes(1);- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_cart_token_id',- 'or_123',- expect.objectContaining({ httpOnly: true })- );- });-- it('clears both cart cookies', async () => {- await clearCartCookies();- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_cart_token',- '',- expect.objectContaining({ maxAge: -1 })- );- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_cart_token_id',- '',- expect.objectContaining({ maxAge: -1 })- );- });- });-- describe('access token', () => {- it('reads access token from cookies', async () => {- mockCookieStore.get.mockReturnValue({ value: 'jwt_token_xyz' });- const token = await getAccessToken();- expect(token).toBe('jwt_token_xyz');- expect(mockCookieStore.get).toHaveBeenCalledWith('_spree_jwt');- });-- it('sets access token with httpOnly cookie', async () => {- await setAccessToken('jwt_new');- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_jwt',- 'jwt_new',- expect.objectContaining({- httpOnly: true,- sameSite: 'lax',- path: '/',- maxAge: 60 * 60 * 24 * 7,- })- );- });-- it('clears access token', async () => {- await clearAccessToken();- expect(mockCookieStore.set).toHaveBeenCalledWith(- '_spree_jwt',- '',- expect.objectContaining({ maxAge: -1 })- );- });- });-});diff --git a/packages/next/tests/setup.ts b/packages/next/tests/setup.tsdeleted file mode 100644index 43874cc8e0..0000000000--- a/packages/next/tests/setup.ts+++ /dev/null@@ -1,22 +0,0 @@-import { vi } from 'vitest';--// Mock next/headers-const mockCookieStore = {- get: vi.fn(),- set: vi.fn(),- delete: vi.fn(),-};--vi.mock('next/headers', () => ({- cookies: vi.fn(() => Promise.resolve(mockCookieStore)),-}));--// Mock next/cache-vi.mock('next/cache', () => ({- cacheTag: vi.fn(),- cacheLife: vi.fn(),- revalidateTag: vi.fn(),- updateTag: vi.fn(),-}));--export { mockCookieStore };diff --git a/packages/next/tests/webhooks.test.ts b/packages/next/tests/webhooks.test.tsdeleted file mode 100644index 2d1eef3d14..0000000000--- a/packages/next/tests/webhooks.test.ts+++ /dev/null@@ -1,247 +0,0 @@-import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'-import { createHmac } from 'node:crypto'-import { createWebhookHandler } from '../src/webhooks'--function sign(payload: string, secret: string, timestamp: number): string {- return createHmac('sha256', secret)- .update(`${timestamp}.${payload}`)- .digest('hex')-}--function buildRequest(body: string, headers: Record<string, string> = {}): Request {- return new Request('http://localhost/api/webhooks/spree', {- method: 'POST',- body,- headers: {- 'content-type': 'application/json',- ...headers,- },- })-}--const SECRET = 'test_webhook_secret_key'--function signedRequest(payload: object, timestamp?: number) {- const ts = timestamp ?? Math.floor(Date.now() / 1000)- const body = JSON.stringify(payload)- const signature = sign(body, SECRET, ts)-- return buildRequest(body, {- 'x-spree-webhook-signature': signature,- 'x-spree-webhook-timestamp': String(ts),- 'x-spree-webhook-event': (payload as any).name || '',- })-}--describe('createWebhookHandler', () => {- beforeEach(() => {- vi.useFakeTimers()- vi.setSystemTime(new Date('2026-01-15T12:00:00Z'))- })-- afterEach(() => {- vi.useRealTimers()- })-- const orderPayload = {- id: 'evt_123',- name: 'order.completed',- created_at: '2026-01-15T12:00:00Z',- data: { number: 'R123', email: '[email protected]' },- metadata: { spree_version: '5.4.0' },- }-- it('dispatches to the correct handler and returns 200', async () => {- const handler = vi.fn().mockResolvedValue(undefined)- const POST = createWebhookHandler({- secret: SECRET,- handlers: { 'order.completed': handler },- })-- const response = await POST(signedRequest(orderPayload))- const json = await response.json()-- expect(response.status).toBe(200)- expect(json).toEqual({ received: true, handled: true })- expect(handler).toHaveBeenCalledWith(orderPayload)- })-- it('returns 200 with handled: false for unhandled events', async () => {- const POST = createWebhookHandler({- secret: SECRET,- handlers: {},- })-- const response = await POST(signedRequest(orderPayload))- const json = await response.json()-- expect(response.status).toBe(200)- expect(json).toEqual({ received: true, handled: false })- })-- it('returns 401 when signature is missing', async () => {- const POST = createWebhookHandler({- secret: SECRET,- handlers: { 'order.completed': vi.fn() },- })-- const request = buildRequest(JSON.stringify(orderPayload))- const response = await POST(request)-- expect(response.status).toBe(401)- })-- it('returns 401 when signature is invalid', async () => {- const POST = createWebhookHandler({- secret: SECRET,- handlers: { 'order.completed': vi.fn() },- })-- const ts = Math.floor(Date.now() / 1000)- const request = buildRequest(JSON.stringify(orderPayload), {- 'x-spree-webhook-signature': 'invalid',- 'x-spree-webhook-timestamp': String(ts),- })- const response = await POST(request)-- expect(response.status).toBe(401)- })-- it('returns 400 for invalid JSON', async () => {- const POST = createWebhookHandler({- secret: SECRET,- handlers: { 'order.completed': vi.fn() },- })-- const body = 'not-json'- const ts = Math.floor(Date.now() / 1000)- const signature = sign(body, SECRET, ts)-- const request = buildRequest(body, {- 'x-spree-webhook-signature': signature,- 'x-spree-webhook-timestamp': String(ts),- })- const response = await POST(request)-- expect(response.status).toBe(400)- })-- it('returns 500 when secret is empty', async () => {- const POST = createWebhookHandler({- secret: '',- handlers: { 'order.completed': vi.fn() },- })-- const response = await POST(signedRequest(orderPayload))-- expect(response.status).toBe(500)- })-- it('awaits handler when no waitUntil is provided', async () => {- const order: string[] = []- const handler = vi.fn(async () => {- order.push('handler')- })-- const POST = createWebhookHandler({- secret: SECRET,- handlers: { 'order.completed': handler },- })-- await POST(signedRequest(orderPayload))- order.push('after-response')-- expect(order).toEqual(['handler', 'after-response'])- })-- it('uses waitUntil when provided and returns before handler completes', async () => {- let scheduledPromise: Promise<unknown> | null = null- const waitUntil = vi.fn((p: Promise<unknown>) => { scheduledPromise = p })-- const handler = vi.fn(async () => {- // simulate slow work- })-- const POST = createWebhookHandler({- secret: SECRET,- handlers: { 'order.completed': handler },- waitUntil,- })-- const response = await POST(signedRequest(orderPayload))-- expect(response.status).toBe(200)- expect(waitUntil).toHaveBeenCalledOnce()- expect(scheduledPromise).toBeInstanceOf(Promise)-- // Resolve the background work- await scheduledPromise- expect(handler).toHaveBeenCalledWith(orderPayload)- })-- it('uses event name from header over payload', async () => {- const completedHandler = vi.fn().mockResolvedValue(undefined)- const canceledHandler = vi.fn().mockResolvedValue(undefined)-- const POST = createWebhookHandler({- secret: SECRET,- handlers: {- 'order.completed': completedHandler,- 'order.canceled': canceledHandler,- },- })-- // Payload says completed, but header overrides to canceled- const ts = Math.floor(Date.now() / 1000)- const body = JSON.stringify(orderPayload)- const signature = sign(body, SECRET, ts)-- const request = buildRequest(body, {- 'x-spree-webhook-signature': signature,- 'x-spree-webhook-timestamp': String(ts),- 'x-spree-webhook-event': 'order.canceled',- })-- await POST(request)-- expect(canceledHandler).toHaveBeenCalled()- expect(completedHandler).not.toHaveBeenCalled()- })-- it('logs handler errors without failing the response', async () => {- const consoleSpy = vi.spyOn(console, 'error').mockImplementation(() => {})- const handler = vi.fn().mockRejectedValue(new Error('email send failed'))-- const POST = createWebhookHandler({- secret: SECRET,- handlers: { 'order.completed': handler },- })-- const response = await POST(signedRequest(orderPayload))-- expect(response.status).toBe(200)- expect(consoleSpy).toHaveBeenCalledWith(- expect.stringContaining('order.completed'),- expect.any(Error),- )-- consoleSpy.mockRestore()- })-- it('respects custom tolerance', async () => {- const handler = vi.fn().mockResolvedValue(undefined)-- const POST = createWebhookHandler({- secret: SECRET,- handlers: { 'order.completed': handler },- toleranceSeconds: 10,- })-- // Timestamp is 30 seconds old — outside 10s tolerance- const oldTs = Math.floor(Date.now() / 1000) - 30- const response = await POST(signedRequest(orderPayload, oldTs))-- expect(response.status).toBe(401)- expect(handler).not.toHaveBeenCalled()- })-})diff --git a/packages/next/tsconfig.json b/packages/next/tsconfig.jsondeleted file mode 100644index a0e8cc61ca..0000000000--- a/packages/next/tsconfig.json+++ /dev/null@@ -1,26 +0,0 @@-{- "compilerOptions": {- "target": "ES2022",- "module": "ESNext",- "moduleResolution": "bundler",- "lib": ["ES2022"],- "types": ["node"],- "ignoreDeprecations": "6.0",- "strict": true,- "esModuleInterop": true,- "skipLibCheck": true,- "forceConsistentCasingInFileNames": true,- "declaration": true,- "declarationMap": true,- "sourceMap": true,- "outDir": "./dist",- "rootDir": "./src",- "noUnusedLocals": true,- "noUnusedParameters": true,- "noImplicitReturns": true,- "noFallthroughCasesInSwitch": true,- "jsx": "react-jsx"- },- "include": ["src"],- "exclude": ["node_modules", "dist", "tests"]-}diff --git a/packages/next/tsup.config.ts b/packages/next/tsup.config.tsdeleted file mode 100644index c5b1d57669..0000000000--- a/packages/next/tsup.config.ts+++ /dev/null@@ -1,43 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig([- // Core modules — config, types, auth helpers, cookies, locale- {- entry: {- index: 'src/index.ts',- config: 'src/config.ts',- types: 'src/types.ts',- locale: 'src/locale.ts',- 'auth-helpers': 'src/auth-helpers.ts',- cookies: 'src/cookies.ts',- },- format: ['esm'],- dts: true,- splitting: false,- sourcemap: true,- treeshake: true,- external: ['next', 'next/cache', 'next/headers', '@spree/sdk', 'react'],- },- // Middleware — separate entry (Edge runtime, no next/headers)- {- entry: {- middleware: 'src/middleware.ts',- },- format: ['esm'],- dts: true,- splitting: false,- sourcemap: true,- external: ['next', 'next/server', '@spree/sdk'],- },- // Webhooks — separate entry (uses next/server + @spree/sdk/webhooks)- {- entry: {- webhooks: 'src/webhooks.ts',- },- format: ['esm'],- dts: true,- splitting: false,- sourcemap: true,- external: ['next', 'next/server', '@spree/sdk', '@spree/sdk/webhooks'],- },-]);diff --git a/packages/next/vitest.config.ts b/packages/next/vitest.config.tsdeleted file mode 100644index bb6c7c414f..0000000000--- a/packages/next/vitest.config.ts+++ /dev/null@@ -1,9 +0,0 @@-import { defineConfig } from 'vitest/config';--export default defineConfig({- test: {- environment: 'node',- setupFiles: ['./tests/setup.ts'],- include: ['tests/**/*.test.ts'],- },-});diff --git a/packages/sdk/README.md b/packages/sdk/README.mdindex e0a76fb57a..58307e9090 100644--- a/packages/sdk/README.md+++ b/packages/sdk/README.md@@ -787,7 +787,7 @@ function handleOrderCompleted(event: OrderEvent) {Webhook payloads use the same V3 serializers as the REST API, so all SDK types (`Order`, `Cart`, `Payment`, `Fulfillment`, etc.) work directly as the `data` field type.-For **Next.js** projects, use `@spree/next/webhooks` for a ready-made Route Handler — see [`@spree/next` README](../next/README.md#webhooks).+For **Next.js** projects, the [Spree Storefront](https://github.com/spree/storefront) includes a ready-made webhook route handler with signature verification and event routing.## Development