@lime-bundles/react 3.0.0 → 4.0.0

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.
@@ -321,17 +321,7 @@ return <span>{formatCountdown(msLeft)}</span>;
321
321
  ```tsx
322
322
  import { getABTestAssignment, applyABVariantB } from "@lime-bundles/react";
323
323
 
324
- // appUrl is your Lime Bundles app URL (same value your theme app block uses).
325
- // shopDomain is the merchant's *.myshopify.com domain.
326
- const appUrl = process.env.NEXT_PUBLIC_LIME_BUNDLES_APP_URL!;
327
- const shopDomain = process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN!;
328
-
329
- const assignment = await getABTestAssignment(
330
- appUrl,
331
- shopDomain,
332
- bundle.abTestId!,
333
- bundle.id,
334
- );
324
+ const assignment = await getABTestAssignment(bundle.abTestId!, bundle.id);
335
325
  const bundleForRender = assignment?.variant === "B" ? applyABVariantB(bundle) : bundle;
336
326
  ```
337
327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lime-bundles/react",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "React components and hooks for the Lime Bundles Shopify app. Use on Hydrogen, Next.js, Vite, or any React-based headless storefront.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -52,7 +52,7 @@
52
52
  "react-dom": ">=18.0.0"
53
53
  },
54
54
  "dependencies": {
55
- "@lime-bundles/core": "^3.0.0"
55
+ "@lime-bundles/core": "^4.0.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@shopify/hydrogen-react": "^2026.4.1",