Visual Development for React, Vue, Svelte, Qwik, and more
MIT License
Bot releases are visible (Hide)
Published by samijaber 2 months ago
bc1d409: Breaking Change ๐งจ: userAttributes
now is parsed as an object - JSON.stringify(userAttributes)
which preserves strings. Users no longer need to manually stringify anything unless they have explicitly included it in custom targeting attributes.
For example,
userAttributes: {
stringWithStrs: ["a", "c"];
}
used to work as well as this,
userAttributes: {
stringWithStrs: ["'a'", "'c'"];
}
but now its not needed to manually stringify strings. This change was needed to preserve data types and strings so previously when we passed,
userAttributes: {
stringWithNums: ["1", "2"];
}
they were actual string numbers but we failed to parse it because we were not preserving the strings and users had to perform manual stringification hacks like "'1'"
to achieve correct result. With this change stringified numbers/bools etc will work out of the box as expected showing less room for randomness.
next: { revalidate: 1 }
in SDKs fetchPublished by samijaber 2 months ago
JSON.stringify(userAttributes)
change to standardize parsing logic and preserve strings. This is a breaking change as it doesn't require manual stringification of userAttributes
values. Ensure that attributes are not manually stringified before passing them to avoid potential issues.next: { revalidate: 1 }
in SDKs fetchPublished by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
Published by samijaber 2 months ago
v2.2.5
change to userAttributes
parsing logic, as it caused breaking changes in certain cases.Published by samijaber 3 months ago
trackBy
in angularPublished by samijaber 3 months ago
srcset
for SVG imagesmodels
Published by samijaber 3 months ago
srcset
for SVG imagesmodels