@builder.io/sdk 2.2.9 → 3.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.
- package/CHANGELOG.md +10 -0
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.js +3 -3
- package/dist/src/builder.class.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @builder.io/sdk
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- bc1d409: Fix: Reintroduced `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.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 1586519: Fix: remove `next: { revalidate: 1 }` in SDKs fetch
|
|
12
|
+
|
|
3
13
|
## 2.2.9
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.browser.js
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
var version = "
|
|
155
|
+
var version = "3.0.0";
|
|
156
156
|
|
|
157
157
|
var Subscription = /** @class */ (function () {
|
|
158
158
|
function Subscription(listeners, listener) {
|
|
@@ -2341,7 +2341,7 @@
|
|
|
2341
2341
|
// even though we only use `fetch()` now, we prefer to keep the old behavior and use the `fetch` that comes from
|
|
2342
2342
|
// the core SDK for consistency
|
|
2343
2343
|
Builder.prototype.requestUrl = function (url, options) {
|
|
2344
|
-
return getFetch()(url,
|
|
2344
|
+
return getFetch()(url, options).then(function (res) { return res.json(); });
|
|
2345
2345
|
};
|
|
2346
2346
|
Object.defineProperty(Builder.prototype, "host", {
|
|
2347
2347
|
get: function () {
|
|
@@ -2437,7 +2437,7 @@
|
|
|
2437
2437
|
}
|
|
2438
2438
|
// TODO: merge in the attribute from query string ones
|
|
2439
2439
|
// TODO: make this an option per component/request
|
|
2440
|
-
queryParams.userAttributes = userAttributes;
|
|
2440
|
+
queryParams.userAttributes = JSON.stringify(userAttributes);
|
|
2441
2441
|
if (!usePastQueue && !useQueue) {
|
|
2442
2442
|
this.priorContentQueue = queue;
|
|
2443
2443
|
this.getContentQueue = null;
|
|
@@ -2515,7 +2515,7 @@
|
|
|
2515
2515
|
}
|
|
2516
2516
|
var queryStr = QueryString.stringifyDeep(queryParams);
|
|
2517
2517
|
var format = queryParams.format;
|
|
2518
|
-
var requestOptions = { headers: {}
|
|
2518
|
+
var requestOptions = { headers: {} };
|
|
2519
2519
|
if (this.authToken) {
|
|
2520
2520
|
requestOptions.headers = __assign(__assign({}, requestOptions.headers), { Authorization: "Bearer ".concat(this.authToken) });
|
|
2521
2521
|
}
|