@builder.io/sdk 2.1.1 → 2.1.2

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,71 +1,77 @@
1
- ### 2.1.0
1
+ # @builder.io/sdk
2
+
3
+ ## 2.1.1
4
+
5
+ - Accept `authToken` option in `getAll` to fetch private models.
6
+
7
+ ## 2.1.0
2
8
 
3
9
  - Setting `noTraverse` option's default to `true` when fetching multiple content entries.
4
10
 
5
- ### 2.0.8
11
+ ## 2.0.8
6
12
 
7
13
  - Fix: remove `setImmediate` usage to fix issue with next.js edge runtime.
8
14
 
9
- ### 2.0.7
15
+ ## 2.0.7
10
16
 
11
17
  - Fix: remove dev dependency from `dependencies` (`nx` and `nx-cloud`)
12
18
 
13
- ### 2.0.6
19
+ ## 2.0.6
14
20
 
15
21
  - Allow `builder.get` to be awaited: https://github.com/BuilderIO/builder/pull/2512
16
22
 
17
- ### 2.0.5
23
+ ## 2.0.5
18
24
 
19
25
  - Add `setServerContext` to allow user to set the execution context of custom code bindings on the server.
20
26
 
21
- ### 2.0.4
27
+ ## 2.0.4
22
28
 
23
29
  - change the way we import ApiVersion type
24
30
 
25
- ### 2.0.3
31
+ ## 2.0.3
26
32
 
27
33
  - Feature: Add support for `enrich` API flag.
28
34
  - Mark `includeRefs` as deprecated.
29
35
 
30
- ### 2.0.0
36
+ ## 2.0.0
31
37
 
32
38
  - `apiVersion` property now defaults to `v3`.
33
39
 
34
- ### 1.3.0
40
+ ## 1.3.0
35
41
 
36
42
  - `apiVersion` property now defaults to `v1`.
37
43
 
38
- ### 1.2.0
44
+ ## 1.2.0
39
45
 
40
46
  - `apiVersion` property now defaults to `v3`.
41
47
 
42
- ### 1.1.35
48
+ ## 1.1.35
43
49
 
44
50
  - Add new `apiVersion` property to toggle between Builder API versions. Defaults to `v1`. Possible values: `v1` and `v3`.
45
51
 
46
- ### 1.1.34
52
+ ## 1.1.34
47
53
 
48
54
  - Use correct types for enum, fixes remix type checks.
49
55
  - Use fetch fallback safely, fixes issues on Salesforce managed runtime.
50
56
 
51
- ### 1.1.33
57
+ ## 1.1.33
52
58
 
53
59
  - Use correct types for `responsiveStyles`, fixes remix type checks.
54
60
 
55
- ### 1.1.30
61
+ ## 1.1.30
56
62
 
57
63
  - Add support for threhold and repeat inputs on `ScrollInvView` animations.
58
64
 
59
- ### 1.1.29
65
+ ## 1.1.29
60
66
 
61
67
  - added types for `override` option
62
68
 
63
- ### 1.1.27
69
+ ## 1.1.27
64
70
 
65
71
  - improved logging during JSON.parse errors
66
72
  - deprecation notice on `Builder.VERSION`
67
73
  - stop tracking impressions for content with no id
68
74
 
69
- ### 1.1.26
75
+ ## 1.1.26
70
76
 
71
77
  - fix: respect `builder.canTrack` for not setting the session cookie https://github.com/BuilderIO/builder/pull/900
@@ -152,7 +152,7 @@
152
152
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
153
153
  }
154
154
 
155
- var version = "2.1.1-0";
155
+ var version = "2.1.1";
156
156
 
157
157
  var Subscription = /** @class */ (function () {
158
158
  function Subscription(listeners, listener) {
@@ -1149,7 +1149,7 @@
1149
1149
  expiresString +
1150
1150
  '; path=/' +
1151
1151
  "; domain=".concat(getTopLevelDomain(location.hostname)) +
1152
- (secure ? ';secure ; SameSite=None' : '');
1152
+ (secure ? '; secure; SameSite=None' : '');
1153
1153
  }
1154
1154
  catch (err) {
1155
1155
  console.warn('Could not set cookie', err);
@@ -2401,6 +2401,12 @@
2401
2401
  if ('noTraverse' in queue[0]) {
2402
2402
  queryParams.noTraverse = queue[0].noTraverse;
2403
2403
  }
2404
+ if ('includeUnpublished' in queue[0]) {
2405
+ queryParams.includeUnpublished = queue[0].includeUnpublished;
2406
+ }
2407
+ if (queue[0].sort) {
2408
+ queryParams.sort = queue[0].sort;
2409
+ }
2404
2410
  var pageQueryParams = typeof location !== 'undefined'
2405
2411
  ? QueryString.parseDeep(location.search.substr(1))
2406
2412
  : {}; // TODO: WHAT about SSR (this.request) ?