Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Bump the typescript-packages group with 3 updates (#13844)

dependabot[bot]816b403ff22e
diff --git a/packages/admin-sdk/package.json b/packages/admin-sdk/package.json
index 88797d2e9a..b2fe911c04 100644
--- a/packages/admin-sdk/package.json
+++ b/packages/admin-sdk/package.json
@@ -72,12 +72,12 @@
"@changesets/changelog-github": "^0.6.0",
"@changesets/cli": "^2.30.0",
"@types/node": "^25.5.0",
- "@vitest/coverage-v8": "^4.1.1",
+ "@vitest/coverage-v8": "^4.1.2",
"msw": "^2.12.14",
"tsup": "^8.0.0",
"tsx": "^4.0.0",
"typescript": "^6.0.2",
- "vitest": "^4.1.1"
+ "vitest": "^4.1.2"
},
"peerDependencies": {
"typescript": ">=4.7.0"
diff --git a/packages/cli/package.json b/packages/cli/package.json
index d106516e3b..b18b4d931e 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -53,7 +53,7 @@
"@types/node": "^25.5.0",
"tsup": "^8.0.0",
"typescript": "^6.0.2",
- "vitest": "^4.1.1"
+ "vitest": "^4.1.2"
},
"engines": {
"node": ">=20"
diff --git a/packages/create-spree-app/package.json b/packages/create-spree-app/package.json
index a91e32f8f2..15dead77f8 100644
--- a/packages/create-spree-app/package.json
+++ b/packages/create-spree-app/package.json
@@ -55,7 +55,7 @@
"@types/node": "^25.5.0",
"tsup": "^8.0.0",
"typescript": "^6.0.2",
- "vitest": "^4.1.1"
+ "vitest": "^4.1.2"
},
"engines": {
"node": ">=20"
diff --git a/packages/docs/package.json b/packages/docs/package.json
index 1be48d387b..d9bc17d870 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -24,7 +24,7 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "vitest": "^4.1.1"
+ "vitest": "^4.1.2"
},
"engines": {
"node": ">=18.0.0"
diff --git a/packages/next/package.json b/packages/next/package.json
index 5585119d4f..43c275594b 100644
--- a/packages/next/package.json
+++ b/packages/next/package.json
@@ -70,7 +70,7 @@
},
"peerDependencies": {
"@spree/sdk": ">=0.18.0",
- "next": ">=15.0.0",
+ "next": ">=16.0.0",
"react": ">=19.0.0"
},
"devDependencies": {
@@ -79,10 +79,10 @@
"@spree/sdk": "workspace:*",
"@types/node": "^25.5.0",
"@types/react": "^19.2.14",
- "next": "^15.5.14",
+ "next": "^16.2.1",
"react": "^19.0.0",
"tsup": "^8.0.0",
"typescript": "^6.0.2",
- "vitest": "^4.1.1"
+ "vitest": "^4.1.2"
}
}
diff --git a/packages/next/src/actions/addresses.ts b/packages/next/src/actions/addresses.ts
index c1a1faca49..f0878f5d0e 100644
--- a/packages/next/src/actions/addresses.ts
+++ b/packages/next/src/actions/addresses.ts
@@ -1,6 +1,6 @@
'use server';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
import type { Address, AddressParams } from '@spree/sdk';
import { withAuthRefresh } from '../auth-helpers';
import { getClient } from '../config';
@@ -30,7 +30,7 @@ export async function createAddress(params: AddressParams): Promise<Address> {
const result = await withAuthRefresh(async (options) => {
return getClient().customer.addresses.create(params, options);
});
- revalidateTag('addresses');
+ updateTag('addresses');
return result;
}
@@ -44,7 +44,7 @@ export async function updateAddress(
const result = await withAuthRefresh(async (options) => {
return getClient().customer.addresses.update(id, params, options);
});
- revalidateTag('addresses');
+ updateTag('addresses');
return result;
}
@@ -55,5 +55,5 @@ export async function deleteAddress(id: string): Promise<void> {
await withAuthRefresh(async (options) => {
return getClient().customer.addresses.delete(id, options);
});
- revalidateTag('addresses');
+ updateTag('addresses');
}
diff --git a/packages/next/src/actions/auth.ts b/packages/next/src/actions/auth.ts
index 969f65589b..3154fce132 100644
--- a/packages/next/src/actions/auth.ts
+++ b/packages/next/src/actions/auth.ts
@@ -1,6 +1,6 @@
'use server';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
import type { Customer } from '@spree/sdk';
import { getClient } from '../config';
import { setAccessToken, clearAccessToken, getAccessToken, setRefreshToken, getRefreshToken, clearRefreshToken, getCartToken, getCartId, clearCartCookies } from '../cookies';
@@ -33,8 +33,8 @@ export async function login(
}
}
- revalidateTag('customer');
- revalidateTag('cart');
+ updateTag('customer');
+ updateTag('cart');
return { success: true, user: result.user };
} catch (error) {
return {
@@ -79,8 +79,8 @@ export async function register(
}
}
- revalidateTag('customer');
- revalidateTag('cart');
+ updateTag('customer');
+ updateTag('cart');
return { success: true, user: result.user };
} catch (error) {
return {
@@ -109,10 +109,10 @@ export async function logout(): Promise<void> {
await clearAccessToken();
await clearRefreshToken();
await clearCartCookies();
- revalidateTag('customer');
- revalidateTag('cart');
- revalidateTag('addresses');
- revalidateTag('credit-cards');
+ updateTag('customer');
+ updateTag('cart');
+ updateTag('addresses');
+ updateTag('credit-cards');
}
/**
@@ -167,8 +167,8 @@ export async function resetPassword(
});
await setAccessToken(result.token);
await setRefreshToken(result.refresh_token);
- revalidateTag('customer');
- revalidateTag('cart');
+ updateTag('customer');
+ updateTag('cart');
return { success: true };
} catch (error) {
return {
@@ -198,6 +198,6 @@ export async function updateCustomer(
const result = await withAuthRefresh(async (options) => {
return getClient().customer.update(data, options);
});
- revalidateTag('customer');
+ updateTag('customer');
return result;
}
diff --git a/packages/next/src/actions/cart.ts b/packages/next/src/actions/cart.ts
index 7ce17dd05e..8e5dbd618e 100644
--- a/packages/next/src/actions/cart.ts
+++ b/packages/next/src/actions/cart.ts
@@ -1,6 +1,6 @@
'use server';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
import type { Cart, Order, CreateCartParams, UpdateCartParams } from '@spree/sdk';
import { getClient } from '../config';
import {
@@ -62,7 +62,7 @@ export async function getOrCreateCart(
await setCartCookies(cart.id, cart.token);
- revalidateTag('cart');
+ updateTag('cart');
return cart;
}
@@ -85,7 +85,7 @@ export async function addItem(
{ spreeToken, token }
);
- revalidateTag('cart');
+ updateTag('cart');
return updatedCart;
}
@@ -107,7 +107,7 @@ export async function updateItem(
options
);
- revalidateTag('cart');
+ updateTag('cart');
return cart;
}
@@ -121,7 +121,7 @@ export async function removeItem(lineItemId: string): Promise<Cart> {
const cart = await getClient().carts.items.delete(cartId, lineItemId, options);
- revalidateTag('cart');
+ updateTag('cart');
return cart;
}
@@ -130,7 +130,7 @@ export async function removeItem(lineItemId: string): Promise<Cart> {
*/
export async function clearCart(): Promise<void> {
await clearCartCookies();
- revalidateTag('cart');
+ updateTag('cart');
}
/**
@@ -145,12 +145,12 @@ export async function associateCart(): Promise<Cart | null> {
try {
const result = await getClient().carts.associate(cartId, { spreeToken, token });
- revalidateTag('cart');
+ updateTag('cart');
return result;
} catch {
// Cart might already belong to another user — clear it
await clearCartCookies();
- revalidateTag('cart');
+ updateTag('cart');
return null;
}
}
@@ -164,7 +164,7 @@ export async function updateCart(
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.update(cartId, params, options);
- revalidateTag('checkout');
+ updateTag('checkout');
return result;
}
@@ -184,7 +184,7 @@ export async function selectDeliveryRate(
{ selected_delivery_rate_id: deliveryRateId },
options
);
- revalidateTag('checkout');
+ updateTag('checkout');
return result;
}
@@ -197,8 +197,8 @@ export async function applyDiscountCode(
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.discountCodes.apply(cartId, code, options);
- revalidateTag('checkout');
- revalidateTag('cart');
+ updateTag('checkout');
+ updateTag('cart');
return result;
}
@@ -211,8 +211,8 @@ export async function removeDiscountCode(
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.discountCodes.remove(cartId, code, options);
- revalidateTag('checkout');
- revalidateTag('cart');
+ updateTag('checkout');
+ updateTag('cart');
return result;
}
@@ -227,8 +227,8 @@ export async function applyGiftCard(
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.giftCards.apply(cartId, code, options);
- revalidateTag('checkout');
- revalidateTag('cart');
+ updateTag('checkout');
+ updateTag('cart');
return result;
}
@@ -240,8 +240,8 @@ export async function removeGiftCard(giftCardId: string): Promise<Cart> {
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.giftCards.remove(cartId, giftCardId, options);
- revalidateTag('checkout');
- revalidateTag('cart');
+ updateTag('checkout');
+ updateTag('cart');
return result;
}
@@ -253,7 +253,7 @@ export async function complete(explicitCartId?: string): Promise<Order> {
const options = await getCartOptions();
const cartId = explicitCartId ?? await requireCartId();
const result = await getClient().carts.complete(cartId, options);
- revalidateTag('checkout');
- revalidateTag('cart');
+ updateTag('checkout');
+ updateTag('cart');
return result;
}
diff --git a/packages/next/src/actions/credit-cards.ts b/packages/next/src/actions/credit-cards.ts
index b0803f9137..cffaf1f6b7 100644
--- a/packages/next/src/actions/credit-cards.ts
+++ b/packages/next/src/actions/credit-cards.ts
@@ -1,6 +1,6 @@
'use server';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
import type { CreditCard } from '@spree/sdk';
import { withAuthRefresh } from '../auth-helpers';
import { getClient } from '../config';
@@ -21,5 +21,5 @@ export async function deleteCreditCard(id: string): Promise<void> {
await withAuthRefresh(async (options) => {
return getClient().customer.creditCards.delete(id, options);
});
- revalidateTag('credit-cards');
+ updateTag('credit-cards');
}
diff --git a/packages/next/src/actions/payment-sessions.ts b/packages/next/src/actions/payment-sessions.ts
index 1a7ea931bf..455b6349ad 100644
--- a/packages/next/src/actions/payment-sessions.ts
+++ b/packages/next/src/actions/payment-sessions.ts
@@ -1,6 +1,6 @@
'use server';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
import type {
PaymentSession,
CreatePaymentSessionParams,
@@ -20,7 +20,7 @@ export async function createPaymentSession(
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.paymentSessions.create(cartId, params, options);
- revalidateTag('checkout');
+ updateTag('checkout');
return result;
}
@@ -46,7 +46,7 @@ export async function updatePaymentSession(
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.paymentSessions.update(cartId, sessionId, params, options);
- revalidateTag('checkout');
+ updateTag('checkout');
return result;
}
@@ -61,6 +61,6 @@ export async function completePaymentSession(
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.paymentSessions.complete(cartId, sessionId, params, options);
- revalidateTag('checkout');
+ updateTag('checkout');
return result;
}
diff --git a/packages/next/src/actions/payments.ts b/packages/next/src/actions/payments.ts
index beb12e5f4f..e3c5b871be 100644
--- a/packages/next/src/actions/payments.ts
+++ b/packages/next/src/actions/payments.ts
@@ -1,6 +1,6 @@
'use server';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
import type { Payment, CreatePaymentParams } from '@spree/sdk';
import { getClient } from '../config';
import { getCartOptions, requireCartId } from '../cookies';
@@ -15,6 +15,6 @@ export async function createPayment(
const options = await getCartOptions();
const cartId = await requireCartId();
const result = await getClient().carts.payments.create(cartId, params, options);
- revalidateTag('checkout');
+ updateTag('checkout');
return result;
}
diff --git a/packages/next/tests/actions/addresses.test.ts b/packages/next/tests/actions/addresses.test.ts
index 5272e63f0f..ec3447e913 100644
--- a/packages/next/tests/actions/addresses.test.ts
+++ b/packages/next/tests/actions/addresses.test.ts
@@ -35,7 +35,7 @@ import {
updateAddress,
deleteAddress,
} from '../../src/actions/addresses';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
// Create a JWT that expires far in the future (no proactive refresh)
function makeFutureJwt(): string {
@@ -99,7 +99,7 @@ describe('address actions', () => {
params,
expect.objectContaining({ token: expect.any(String) })
);
- expect(revalidateTag).toHaveBeenCalledWith('addresses');
+ expect(updateTag).toHaveBeenCalledWith('addresses');
});
});
@@ -116,7 +116,7 @@ describe('address actions', () => {
params,
expect.objectContaining({ token: expect.any(String) })
);
- expect(revalidateTag).toHaveBeenCalledWith('addresses');
+ expect(updateTag).toHaveBeenCalledWith('addresses');
});
});
@@ -129,7 +129,7 @@ describe('address actions', () => {
'1',
expect.objectContaining({ token: expect.any(String) })
);
- expect(revalidateTag).toHaveBeenCalledWith('addresses');
+ expect(updateTag).toHaveBeenCalledWith('addresses');
});
});
diff --git a/packages/next/tests/actions/auth.test.ts b/packages/next/tests/actions/auth.test.ts
index ac319e6189..8679d5aae5 100644
--- a/packages/next/tests/actions/auth.test.ts
+++ b/packages/next/tests/actions/auth.test.ts
@@ -33,7 +33,7 @@ vi.mock('@spree/sdk', () => ({
}));
import { login, register, logout, getCustomer, updateCustomer } from '../../src/actions/auth';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
function mockCookies(values: Record<string, string | undefined>) {
mockCookieStore.get.mockImplementation((name: string) => {
@@ -66,7 +66,7 @@ describe('auth actions', () => {
'jwt_new',
expect.any(Object)
);
- expect(revalidateTag).toHaveBeenCalledWith('customer');
+ expect(updateTag).toHaveBeenCalledWith('customer');
});
it('associates guest cart after login', async () => {
@@ -111,10 +111,10 @@ describe('auth actions', () => {
expect(mockCookieStore.set).toHaveBeenCalledWith(
'_spree_cart_token_id', '', expect.objectContaining({ maxAge: -1 })
);
- expect(revalidateTag).toHaveBeenCalledWith('customer');
- expect(revalidateTag).toHaveBeenCalledWith('cart');
- expect(revalidateTag).toHaveBeenCalledWith('addresses');
- expect(revalidateTag).toHaveBeenCalledWith('credit-cards');
+ expect(updateTag).toHaveBeenCalledWith('customer');
+ expect(updateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('addresses');
+ expect(updateTag).toHaveBeenCalledWith('credit-cards');
});
});
@@ -155,8 +155,8 @@ describe('auth actions', () => {
'jwt_new',
expect.any(Object)
);
- expect(revalidateTag).toHaveBeenCalledWith('customer');
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('customer');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
it('associates guest cart after registration', async () => {
@@ -227,7 +227,7 @@ describe('auth actions', () => {
},
expect.any(Object)
);
- expect(revalidateTag).toHaveBeenCalledWith('customer');
+ expect(updateTag).toHaveBeenCalledWith('customer');
});
});
diff --git a/packages/next/tests/actions/cart.test.ts b/packages/next/tests/actions/cart.test.ts
index a55f6b4b1b..a7cd429495 100644
--- a/packages/next/tests/actions/cart.test.ts
+++ b/packages/next/tests/actions/cart.test.ts
@@ -38,7 +38,7 @@ import {
getCart, getOrCreateCart, addItem, updateItem, removeItem, clearCart, associateCart,
updateCart, selectDeliveryRate, applyDiscountCode, removeDiscountCode, applyGiftCard, removeGiftCard, complete,
} from '../../src/actions/cart';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
// Cookie names used by the actions:
// _spree_cart_token → getCartToken()
@@ -147,7 +147,7 @@ describe('cart actions', () => {
{ variant_id: 'v1', quantity: 2, metadata: undefined },
expect.objectContaining({ spreeToken: 'cart_token' })
);
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
@@ -168,7 +168,7 @@ describe('cart actions', () => {
{ quantity: 3 },
expect.objectContaining({ spreeToken: 'cart_token' })
);
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
@@ -188,7 +188,7 @@ describe('cart actions', () => {
'li_1',
expect.objectContaining({ spreeToken: 'cart_token' })
);
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
@@ -205,7 +205,7 @@ describe('cart actions', () => {
'',
expect.objectContaining({ maxAge: -1 })
);
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
@@ -252,7 +252,7 @@ describe('cart actions', () => {
params,
{ spreeToken: 'order_token', token: 'jwt_token' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
});
});
@@ -274,7 +274,7 @@ describe('cart actions', () => {
{ selected_delivery_rate_id: 'dr_1' },
{ spreeToken: 'order_token', token: 'jwt_token' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
});
});
@@ -295,8 +295,8 @@ describe('cart actions', () => {
'SAVE10',
{ spreeToken: 'order_token', token: 'jwt_token' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
@@ -317,8 +317,8 @@ describe('cart actions', () => {
'SAVE10',
{ spreeToken: 'order_token', token: 'jwt_token' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
@@ -339,8 +339,8 @@ describe('cart actions', () => {
'GC-ABCD-1234',
{ spreeToken: 'order_token', token: 'jwt_token' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
@@ -361,8 +361,8 @@ describe('cart actions', () => {
'gc_abc123',
{ spreeToken: 'order_token', token: 'jwt_token' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
@@ -382,8 +382,8 @@ describe('cart actions', () => {
'cart_1',
{ spreeToken: 'order_token', token: 'jwt_token' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
- expect(revalidateTag).toHaveBeenCalledWith('cart');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('cart');
});
});
});
diff --git a/packages/next/tests/actions/credit-cards.test.ts b/packages/next/tests/actions/credit-cards.test.ts
index 9c99fe6b28..2a2d5f26d0 100644
--- a/packages/next/tests/actions/credit-cards.test.ts
+++ b/packages/next/tests/actions/credit-cards.test.ts
@@ -26,7 +26,7 @@ vi.mock('@spree/sdk', () => ({
}));
import { listCreditCards, deleteCreditCard } from '../../src/actions/credit-cards';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
// Create a JWT that expires far in the future
function makeFutureJwt(): string {
@@ -65,7 +65,7 @@ describe('credit card actions', () => {
'1',
expect.objectContaining({ token: expect.any(String) })
);
- expect(revalidateTag).toHaveBeenCalledWith('credit-cards');
+ expect(updateTag).toHaveBeenCalledWith('credit-cards');
});
});
diff --git a/packages/next/tests/actions/payment-sessions.test.ts b/packages/next/tests/actions/payment-sessions.test.ts
index efceb07817..04bad65400 100644
--- a/packages/next/tests/actions/payment-sessions.test.ts
+++ b/packages/next/tests/actions/payment-sessions.test.ts
@@ -23,7 +23,7 @@ import {
updatePaymentSession,
completePaymentSession,
} from '../../src/actions/payment-sessions';
-import { revalidateTag } from 'next/cache';
+import { updateTag } from 'next/cache';
function mockCookies(values: Record<string, string | undefined>) {
mockCookieStore.get.mockImplementation((name: string) => {
@@ -56,7 +56,7 @@ describe('payment session actions', () => {
{ payment_method_id: 'pm_1' },
{ spreeToken: 'order_token_123', token: 'jwt_token_abc' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
});
});
@@ -88,7 +88,7 @@ describe('payment session actions', () => {
{ amount: '50.00' },
{ spreeToken: 'order_token_123', token: 'jwt_token_abc' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
});
});
@@ -105,7 +105,7 @@ describe('payment session actions', () => {
{ session_result: 'success' },
{ spreeToken: 'order_token_123', token: 'jwt_token_abc' }
);
- expect(revalidateTag).toHaveBeenCalledWith('checkout');
+ expect(updateTag).toHaveBeenCalledWith('checkout');
});
it('completes without params', async () => {
diff --git a/packages/next/tests/setup.ts b/packages/next/tests/setup.ts
index cae1a8d54b..43874cc8e0 100644
--- a/packages/next/tests/setup.ts
+++ b/packages/next/tests/setup.ts
@@ -16,6 +16,7 @@ vi.mock('next/cache', () => ({
cacheTag: vi.fn(),
cacheLife: vi.fn(),
revalidateTag: vi.fn(),
+ updateTag: vi.fn(),
}));
export { mockCookieStore };
diff --git a/packages/sdk/package.json b/packages/sdk/package.json
index 6934679a1d..605d20e6c9 100644
--- a/packages/sdk/package.json
+++ b/packages/sdk/package.json
@@ -93,12 +93,12 @@
"@changesets/changelog-github": "^0.6.0",
"@changesets/cli": "^2.30.0",
"@types/node": "^25.5.0",
- "@vitest/coverage-v8": "^4.1.1",
+ "@vitest/coverage-v8": "^4.1.2",
"msw": "^2.12.14",
"tsup": "^8.0.0",
"tsx": "^4.0.0",
"typescript": "^6.0.2",
- "vitest": "^4.1.1",
+ "vitest": "^4.1.2",
"zod": "^4.3.6"
},
"peerDependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 18754a54f3..f969584204 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -28,8 +28,8 @@ importers:
specifier: ^25.5.0
version: 25.5.0
'@vitest/coverage-v8':
- specifier: ^4.1.1
+ specifier: ^4.1.2
msw:
specifier: ^2.12.14
version: 2.12.14(@types/[email protected])([email protected])
@@ -43,8 +43,8 @@ importers:
specifier: ^6.0.2
version: 6.0.2
vitest:
- specifier: ^4.1.1
+ specifier: ^4.1.2
packages/cli:
dependencies:
@@ -80,8 +80,8 @@ importers:
specifier: ^6.0.2
version: 6.0.2
vitest:
- specifier: ^4.1.1
+ specifier: ^4.1.2
packages/create-spree-app:
dependencies:
@@ -117,14 +117,14 @@ importers:
specifier: ^6.0.2
version: 6.0.2
vitest:
- specifier: ^4.1.1
+ specifier: ^4.1.2
packages/docs:
devDependencies:
vitest:
- specifier: ^4.1.1
+ specifier: ^4.1.2
packages/next:
devDependencies:
@@ -144,8 +144,8 @@ importers:
specifier: ^19.2.14
version: 19.2.14
next:
- specifier: ^15.5.14
+ specifier: ^16.2.1
react:
specifier: ^19.0.0
version: 19.2.4
@@ -156,8 +156,8 @@ importers:
specifier: ^6.0.2
version: 6.0.2
vitest:
- specifier: ^4.1.1
+ specifier: ^4.1.2
packages/sdk:
devDependencies:
@@ -174,8 +174,8 @@ importers:
specifier: ^25.5.0
version: 25.5.0
'@vitest/coverage-v8':
- specifier: ^4.1.1
+ specifier: ^4.1.2
msw:
specifier: ^2.12.14
version: 2.12.14(@types/[email protected])([email protected])
@@ -189,8 +189,8 @@ importers:
specifier: ^6.0.2
version: 6.0.2
vitest:
- specifier: ^4.1.1
+ specifier: ^4.1.2
zod:
specifier: ^4.3.6
version: 4.3.6
@@ -817,53 +817,53 @@ packages:
resolution: {integrity: sha512-cXu86tF4VQVfwz8W1SPbhoRyHJkti6mjH/XJIxp40jhO4j2k1m4KYrEykxqWPkFF3vrK4rgQppBh//AwyGSXPA==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-aXeirLYuASxEgi4X4WhfXsShCFxWDfNn/8ZeC5YXAS2BB4A8FJi1kwwGL6nvMVboE7fZCzmJPNdMvVHc8JpaiA==}
+ resolution: {integrity: sha512-n8P/HCkIWW+gVal2Z8XqXJ6aB3J0tuM29OcHpCsobWlChH/SITBs1DFBk/HajgrwDkqqBXPbuUuzgDvUekREPg==}
- resolution: {integrity: sha512-Y9K6SPzobnZvrRDPO2s0grgzC+Egf0CqfbdvYmQVaztV890zicw8Z8+4Vqw8oPck8r1TjUHxVh8299Cg4TrxXg==}
+ resolution: {integrity: sha512-BwZ8w8YTaSEr2HIuXLMLxIdElNMPvY9fLqb20LX9A9OMGtJilhHLbCL3ggyd0TwjmMcTxi0XXt+ur1vWUoxj2Q==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
- resolution: {integrity: sha512-aNnkSMjSFRTOmkd7qoNI2/rETQm/vKD6c/Ac9BZGa9CtoOzy3c2njgz7LvebQJ8iPxdeTuGnAjagyis8a9ifBw==}
+ resolution: {integrity: sha512-/vrcE6iQSJq3uL3VGVHiXeaKbn8Es10DGTGRJnRZlkNQQk3kaNtAJg8Y6xuAlrx/6INKVjkfi5rY0iEXorZ6uA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
- resolution: {integrity: sha512-tjlpia+yStPRS//6sdmlVwuO1Rioern4u2onafa5n+h2hCS9MAvMXqpVbSrjgiEOoCs0nJy7oPOmWgtRRNSM5Q==}
+ resolution: {integrity: sha512-uLn+0BK+C31LTVbQ/QU+UaVrV0rRSJQ8RfniQAHPghDdgE+SlroYqcmFnO5iNjNfVWCyKZHYrs3Nl0mUzWxbBw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-8B8cngBaLadl5lbDRdxGCP1Lef8ipD6KlxS3v0ElDAGil6lafrAM3B258p1KJOglInCVFUjk751IXMr2ixeQOQ==}
+ resolution: {integrity: sha512-ssKq6iMRnHdnycGp9hCuGnXJZ0YPr4/wNwrfE5DbmvEcgl9+yv97/Kq3TPVDfYome1SW5geciLB9aiEqKXQjlQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-bAS6tIAg8u4Gn3Nz7fCPpSoKAexEt2d5vn1mzokcqdqyov6ZJ6gu6GdF9l8ORFrBuRHgv3go/RfzYz5BkZ6YSQ==}
+ resolution: {integrity: sha512-HQm7SrHRELJ30T1TSmT706IWovFFSRGxfgUkyWJZF/RKBMdbdRWJuFrcpDdE5vy9UXjFOx6L3mRdqH04Mmx0hg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-mMxv/FcrT7Gfaq4tsR22l17oKWXZmH/lVqcvjX0kfp5I0lKodHYLICKPoX1KRnnE+ci6oIUdriUhuA3rBCDiSw==}
+ resolution: {integrity: sha512-aV2iUaC/5HGEpbBkE+4B8aHIudoOy5DYekAKOMSHoIYQ66y/wIVeaRx8MS2ZMdxe/HIXlMho4ubdZs/J8441Tg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-OTmiBlYThppnvnsqx0rBqjDRemlmIeZ8/o4zI7veaXoeO1PVHoyj2lfTfXTiiGjCyRDhA10y4h6ZvZvBiynr2g==}
+ resolution: {integrity: sha512-IXdNgiDHaSk0ZUJ+xp0OQTdTgnpx1RCfRTalhn3cjOP+IddTMINwA7DXZrwTmGDO8SUr5q2hdP/du4DcrB1GxA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
- resolution: {integrity: sha512-+W7eFf3RS7m4G6tppVTOSyP9Y6FsJXfOuKzav1qKniiFm3KFByQfPEcouHdjlZmysl4zJGuGLQ/M9XyVeyeNEg==}
+ resolution: {integrity: sha512-qvU+3a39Hay+ieIztkGSbF7+mccbbg1Tk25hc4JDylf8IHjYmY/Zm64Qq1602yPyQqvie+vf5T/uPwNxDNIoeg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@@ -1203,20 +1203,20 @@ packages:
resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-nZ4RWwGCoGOQRMmU/Q9wlUY540RVRxJZ9lxFsFfy0QV7Zmo5VVBhB6Sl9Xa0KIp2iIs3zWfPlo9LcY1iqbpzCw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-sPK//PHO+kAkScb8XITeB1bf7fsk85Km7+rt4eeuRR3VS1/crD47cmV5wicisJmjNdfeokTZwjMk4Mj2d58Mgg==}
peerDependencies:
- '@vitest/browser': 4.1.1
- vitest: 4.1.1
+ '@vitest/browser': 4.1.2
+ vitest: 4.1.2
peerDependenciesMeta:
'@vitest/browser':
optional: true
- '@vitest/[email protected]':
- resolution: {integrity: sha512-xAV0fqBTk44Rn6SjJReEQkHP3RrqbJo6JQ4zZ7/uVOiJZRarBtblzrOfFIZeYUrukp2YD6snZG6IBqhOoHTm+A==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-gbu+7B0YgUJ2nkdsRJrFFW6X7NTP44WlhiclHniUhxADQJH5Szt9mZ9hWnJPJ8YwOK5zUOSSlSvyzRf0u1DSBQ==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-h3BOylsfsCLPeceuCPAAJ+BvNwSENgJa4hXoXu4im0bs9Lyp4URc4JYK4pWLZ4pG/UQn7AT92K6IByi6rE6g3A==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-Ize4iQtEALHDttPRCmN+FKqOl2vxTiNUhzobQFFt/BM1lRUTG7zRCLOykG/6Vo4E4hnUdfVLo5/eqKPukcWW7Q==}
peerDependencies:
msw: ^2.4.9
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
@@ -1226,20 +1226,20 @@ packages:
vite:
optional: true
- '@vitest/[email protected]':
- resolution: {integrity: sha512-GM+TEQN5WhOygr1lp7skeVjdLPqqWMHsfzXrcHAqZJi/lIVh63H0kaRCY8MDhNWikx19zBUK8ceaLB7X5AH9NQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-dwQga8aejqeuB+TvXCMzSQemvV9hNEtDDpgUKDzOmNQayl2OG241PSWeJwKRH3CiC+sESrmoFd49rfnq7T4RnA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-f7+FPy75vN91QGWsITueq0gedwUZy1fLtHOCMeQpjs8jTekAHeKP80zfDEnhrleviLHzVSDXIWuCIOFn3D3f8A==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-Gr+FQan34CdiYAwpGJmQG8PgkyFVmARK8/xSijia3eTFgVfpcpztWLuP6FttGNfPLJhaZVP/euvujeNYar36OQ==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-kMVSgcegWV2FibXEx9p9WIKgje58lcTbXgnJixfcg15iK8nzCXhmalL0ZLtTWLW9PH1+1NEDShiFFedB3tEgWg==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-g7yfUmxYS4mNxk31qbOYsSt2F4m1E02LFqO53Xpzg3zKMhLAPZAjjfyl9e6z7HrW6LvUdTwAQR3HHfLjpko16A==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-6Ti/KT5OVaiupdIZEuZN7l3CZcR0cxnxt70Z0//3CtwgObwA6jZhmVBA3yrXSVN3gmwjgd7oDNLlsXz526gpRA==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-DU4fBnbVCJGNBwVA6xSToNXrkZNSiw59H8tcuUspVMsBDBST4nfvsPsEHDHGtWRRnqBERBQu7TrTKskmjqTXKA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-cNxAlaB3sHoCdL6pj6yyUXv9Gry1NHNg0kFTXdvSIZXLHsqKH7chiWOkwJ5s5+d/oMwcoG9T0bKU38JZWKusrQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-xw2/TiX82lQHA06cgbqRKFb5lCAy3axQ4H4SoUFhUsg+wztiet+co86IAMDtF6Vm1hc7J6j09oh/rgDn+JdKIQ==}
resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}
@@ -1278,6 +1278,11 @@ packages:
resolution: {integrity: sha512-1fSfIwuDICFA4LKkCzRPO7F0hzFf0B7+Xqrl27ynQaa+Rh0e1Es0v6kWHPott3lU10AyAr7oKHa65OppjLn3Rg==}
+ resolution: {integrity: sha512-DAKrHphkJyiGuau/cFieRYhcTFeK/lBuD++C7cZ6KZHbMhBrisoi+EvhQ5RZrIfV5qwsW8kgQ07JIC+MDJRAhg==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==}
engines: {node: '>=4'}
@@ -1671,9 +1676,9 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
- resolution: {integrity: sha512-M6S+4JyRjmKic2Ssm7jHUPkE6YUJ6lv4507jprsSZLulubz0ihO2E+S4zmQK3JZ2ov81JrugukKU4Tz0ivgqqQ==}
- engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
+ resolution: {integrity: sha512-VaChzNL7o9rbfdt60HUj8tev4m6d7iC1igAy157526+cJlXOQu5LzsBXNT+xaJnTP/k+utSX5vMv7m0G+zKH+Q==}
+ engines: {node: '>=20.9.0'}
hasBin: true
peerDependencies:
'@opentelemetry/api': ^1.1.0
@@ -2138,18 +2143,18 @@ packages:
yaml:
optional: true
- resolution: {integrity: sha512-yF+o4POL41rpAzj5KVILUxm1GCjKnELvaqmU9TLLUbMfDzuN0UpUR9uaDs+mCtjPe+uYPksXDRLQGGPvj1cTmA==}
+ resolution: {integrity: sha512-xjR1dMTVHlFLh98JE3i/f/WePqJsah4A0FK9cc8Ehp9Udk0AZk6ccpIZhh1qJ/yxVWRZ+Q54ocnD8TXmkhspGg==}
engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
'@opentelemetry/api': ^1.9.0
'@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
- '@vitest/browser-playwright': 4.1.1
- '@vitest/browser-preview': 4.1.1
- '@vitest/browser-webdriverio': 4.1.1
- '@vitest/ui': 4.1.1
+ '@vitest/browser-playwright': 4.1.2
+ '@vitest/browser-preview': 4.1.2
+ '@vitest/browser-webdriverio': 4.1.2
+ '@vitest/ui': 4.1.2
happy-dom: '*'
jsdom: '*'
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
@@ -2738,30 +2743,30 @@ snapshots:
outvariant: 1.4.3
strict-event-emitter: 0.5.1
- '@next/[email protected]': {}
+ '@next/[email protected]': {}
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
'@nodelib/[email protected]':
@@ -2984,10 +2989,10 @@ snapshots:
'@types/[email protected]': {}
dependencies:
'@bcoe/v8-coverage': 1.0.2
- '@vitest/utils': 4.1.1
+ '@vitest/utils': 4.1.2
ast-v8-to-istanbul: 1.0.0
istanbul-lib-coverage: 3.2.2
istanbul-lib-report: 3.0.1
@@ -2996,47 +3001,47 @@ snapshots:
obug: 2.1.1
std-env: 4.0.0
tinyrainbow: 3.1.0
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
'@standard-schema/spec': 1.1.0
'@types/chai': 5.2.3
- '@vitest/spy': 4.1.1
- '@vitest/utils': 4.1.1
+ '@vitest/spy': 4.1.2
+ '@vitest/utils': 4.1.2
chai: 6.2.2
tinyrainbow: 3.1.0
dependencies:
- '@vitest/spy': 4.1.1
+ '@vitest/spy': 4.1.2
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
msw: 2.12.14(@types/[email protected])([email protected])
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
tinyrainbow: 3.1.0
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/utils': 4.1.1
+ '@vitest/utils': 4.1.2
pathe: 2.0.3
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/pretty-format': 4.1.1
- '@vitest/utils': 4.1.1
+ '@vitest/pretty-format': 4.1.2
+ '@vitest/utils': 4.1.2
magic-string: 0.30.21
pathe: 2.0.3
- '@vitest/[email protected]': {}
+ '@vitest/[email protected]': {}
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/pretty-format': 4.1.1
+ '@vitest/pretty-format': 4.1.2
convert-source-map: 2.0.0
tinyrainbow: 3.1.0
@@ -3068,6 +3073,8 @@ snapshots:
estree-walker: 3.0.3
js-tokens: 10.0.0
+
dependencies:
is-windows: 1.0.2
@@ -3475,24 +3482,25 @@ snapshots:
dependencies:
- '@next/env': 15.5.14
+ '@next/env': 16.2.1
'@swc/helpers': 0.5.15
+ baseline-browser-mapping: 2.10.11
caniuse-lite: 1.0.30001781
postcss: 8.4.31
react: 19.2.4
react-dom: 19.2.4([email protected])
styled-jsx: 5.1.6([email protected])
optionalDependencies:
- '@next/swc-darwin-arm64': 15.5.14
- '@next/swc-darwin-x64': 15.5.14
- '@next/swc-linux-arm64-gnu': 15.5.14
- '@next/swc-linux-arm64-musl': 15.5.14
- '@next/swc-linux-x64-gnu': 15.5.14
- '@next/swc-linux-x64-musl': 15.5.14
- '@next/swc-win32-arm64-msvc': 15.5.14
- '@next/swc-win32-x64-msvc': 15.5.14
+ '@next/swc-darwin-arm64': 16.2.1
+ '@next/swc-darwin-x64': 16.2.1
+ '@next/swc-linux-arm64-gnu': 16.2.1
+ '@next/swc-linux-arm64-musl': 16.2.1
+ '@next/swc-linux-x64-gnu': 16.2.1
+ '@next/swc-linux-x64-musl': 16.2.1
+ '@next/swc-win32-arm64-msvc': 16.2.1
+ '@next/swc-win32-x64-msvc': 16.2.1
sharp: 0.34.5
transitivePeerDependencies:
- '@babel/core'
@@ -3912,15 +3920,15 @@ snapshots:
fsevents: 2.3.3
tsx: 4.21.0
dependencies:
- '@vitest/expect': 4.1.1
- '@vitest/pretty-format': 4.1.1
- '@vitest/runner': 4.1.1
- '@vitest/snapshot': 4.1.1
- '@vitest/spy': 4.1.1
- '@vitest/utils': 4.1.1
+ '@vitest/expect': 4.1.2
+ '@vitest/pretty-format': 4.1.2
+ '@vitest/runner': 4.1.2
+ '@vitest/snapshot': 4.1.2
+ '@vitest/spy': 4.1.2
+ '@vitest/utils': 4.1.2
es-module-lexer: 2.0.0
expect-type: 1.3.0
magic-string: 0.30.21