@replohq/sdk 1.13.5 → 1.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cart/cart-loader.d.ts +3 -4
- package/cart/cart-loader.js +1 -8
- package/lib/buildMetadata.js +3 -3
- package/package.json +4 -4
package/cart/cart-loader.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { StorefrontCountryCode } from "../loaders/markets";
|
|
2
2
|
/**
|
|
3
|
-
* Server component that
|
|
4
|
-
*
|
|
5
|
-
* cart loading to avoid cookie issues during development.
|
|
3
|
+
* Server component that provides the cart context to child components. The
|
|
4
|
+
* provider loads any persisted cart in the browser after hydration.
|
|
6
5
|
*
|
|
7
6
|
* @param children - Child components that will have access to the cart
|
|
8
|
-
* @returns A CartProvider component wrapping the children
|
|
7
|
+
* @returns A CartProvider component wrapping the children
|
|
9
8
|
*/
|
|
10
9
|
export declare function CartLoader({ children, country, shouldReconcileSuppliedCart, }: React.PropsWithChildren<{
|
|
11
10
|
country?: StorefrontCountryCode;
|
package/cart/cart-loader.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { unstable_rethrow } from "next/navigation";
|
|
3
|
-
import { getCartAction } from "./cart-actions";
|
|
4
2
|
import { CartProvider } from "./cart-provider";
|
|
5
3
|
import { SuppliedCartReconciliationBoundary } from "./supplied-cart-reconciliation";
|
|
6
4
|
async function CartLoader({
|
|
@@ -8,12 +6,7 @@ async function CartLoader({
|
|
|
8
6
|
country,
|
|
9
7
|
shouldReconcileSuppliedCart
|
|
10
8
|
}) {
|
|
11
|
-
|
|
12
|
-
unstable_rethrow(error);
|
|
13
|
-
console.warn("[Replo] Failed to load cart:", error);
|
|
14
|
-
return null;
|
|
15
|
-
});
|
|
16
|
-
return /* @__PURE__ */ jsx(SuppliedCartReconciliationBoundary, { enabled: shouldReconcileSuppliedCart, children: /* @__PURE__ */ jsx(CartProvider, { cart, country, children }) });
|
|
9
|
+
return /* @__PURE__ */ jsx(SuppliedCartReconciliationBoundary, { enabled: shouldReconcileSuppliedCart, children: /* @__PURE__ */ jsx(CartProvider, { cart: null, country, children }) });
|
|
17
10
|
}
|
|
18
11
|
export {
|
|
19
12
|
CartLoader
|
package/lib/buildMetadata.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const BUILD_METADATA = {
|
|
2
2
|
"packageName": "@replohq/sdk",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.6",
|
|
4
4
|
"branch": "HEAD",
|
|
5
|
-
"commit": "
|
|
6
|
-
"builtAt": "2026-09-
|
|
5
|
+
"commit": "26bb95e185c8dfd266d3635694fc84df57c83869",
|
|
6
|
+
"builtAt": "2026-09-25T18:56:30.188Z"
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replohq/sdk",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.6",
|
|
4
4
|
"reploBuild": {
|
|
5
5
|
"packageName": "@replohq/sdk",
|
|
6
|
-
"version": "1.13.
|
|
6
|
+
"version": "1.13.6",
|
|
7
7
|
"branch": "HEAD",
|
|
8
|
-
"commit": "
|
|
9
|
-
"builtAt": "2026-09-
|
|
8
|
+
"commit": "26bb95e185c8dfd266d3635694fc84df57c83869",
|
|
9
|
+
"builtAt": "2026-09-25T18:56:30.188Z"
|
|
10
10
|
},
|
|
11
11
|
"description": "Replo SDK — cart, analytics, and data loaders for agent-built Next.js sites.",
|
|
12
12
|
"license": "SEE LICENSE IN LICENSE",
|