@builder.io/sdk-solid 0.4.2 → 0.4.3

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/CHANGELOG.md CHANGED
@@ -1,10 +1,12 @@
1
+ ### 0.4.3
2
+ - Fix: SSR A/B test environment check (`isHydrationTarget`) now accurately checks current environment.
3
+
1
4
  ### 0.4.2
2
5
 
3
6
  - No external changes.
4
7
 
5
8
  ### 0.4.1
6
9
 
7
-
8
10
  - Fix: bring back `getBuilderSearchParams` export that was accidentally removed.
9
11
 
10
12
  ### 0.4.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./solid-index.jsx",
@@ -1,3 +1,4 @@
1
+ import { TARGET } from "../../constants/target";
1
2
  import { isBrowser } from "../../functions/is-browser";
2
3
  const getVariants = (content) => Object.values((content == null ? void 0 : content.variations) || {});
3
4
  const checkShouldRunVariants = ({
@@ -112,7 +113,8 @@ function bldrCntntScrpt(variantContentId, defaultContentId, isHydrationTarget2)
112
113
  }
113
114
  return;
114
115
  }
115
- const isHydrationTarget = (target) => target === "react" || target === "reactNative" || target === "vue3" || target === "vue2";
116
+ const getIsHydrationTarget = (target) => target === "react" || target === "reactNative" || target === "vue3" || target === "vue2";
117
+ const isHydrationTarget = getIsHydrationTarget(TARGET);
116
118
  const AB_TEST_FN_NAME = "bldrAbTest";
117
119
  const CONTENT_FN_NAME = "bldrCntntScrpt";
118
120
  const getVariantsScriptString = (variants, contentId) => {
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.4.2"
1
+ export const SDK_VERSION = "0.4.3"