@replohq/sdk 1.11.0 → 1.11.1

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.
@@ -8,7 +8,7 @@ export declare function AnalyticsProvider({ children, checkoutProvider, }: React
8
8
  * Returns the AnalyticsSink from the nearest AnalyticsProvider.
9
9
  * Throws if used outside of an AnalyticsProvider.
10
10
  */
11
- export declare function useAnalytics(): AnalyticsSink | null;
11
+ export declare function useAnalytics(): AnalyticsSink;
12
12
  /**
13
13
  * Returns the AnalyticsSink if an AnalyticsProvider is present, or null otherwise.
14
14
  * Does not throw -- safe to use in components that may render with or without analytics.
@@ -9,7 +9,7 @@ function useCollectionViewedAnalytics({
9
9
  const analytics = useAnalytics();
10
10
  const lastTrackedRef = useRef(null);
11
11
  useEffect(() => {
12
- if (!analytics || !collection || !products) {
12
+ if (!collection || !products) {
13
13
  return;
14
14
  }
15
15
  if (lastTrackedRef.current === collection.id) {
@@ -8,7 +8,7 @@ function useProductViewedAnalytics({
8
8
  const analytics = useAnalytics();
9
9
  const lastTrackedRef = useRef(null);
10
10
  useEffect(() => {
11
- if (analytics && product && selectedVariant) {
11
+ if (product && selectedVariant) {
12
12
  const trackingKey = `${product.id}-${selectedVariant.id}`;
13
13
  if (lastTrackedRef.current !== trackingKey) {
14
14
  lastTrackedRef.current = trackingKey;
@@ -1,7 +1,7 @@
1
1
  export const BUILD_METADATA = {
2
2
  "packageName": "@replohq/sdk",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "branch": "HEAD",
5
- "commit": "228f4382ccb4fe484d0d2cd40b0d065ac6441fe2",
6
- "builtAt": "2026-09-20T22:06:30.997Z"
5
+ "commit": "2fa39d32578073f6dfa2ad2d093a726cdedeb108",
6
+ "builtAt": "2026-09-21T18:23:00.156Z"
7
7
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@replohq/sdk",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "reploBuild": {
5
5
  "packageName": "@replohq/sdk",
6
- "version": "1.11.0",
6
+ "version": "1.11.1",
7
7
  "branch": "HEAD",
8
- "commit": "228f4382ccb4fe484d0d2cd40b0d065ac6441fe2",
9
- "builtAt": "2026-09-20T22:06:30.997Z"
8
+ "commit": "2fa39d32578073f6dfa2ad2d093a726cdedeb108",
9
+ "builtAt": "2026-09-21T18:23:00.156Z"
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",