@faststore/core 4.1.0-dev.0 → 4.1.0-dev.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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.0.1-dev.2 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.1.0-dev.1 generate /home/runner/work/faststore/faststore/packages/core
3
3
  > pnpm run gen-types && pnpm run cache-graphql
4
4
 
5
5
 
6
- > @faststore/core@4.0.1-dev.2 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.1.0-dev.1 gen-types /home/runner/work/faststore/faststore/packages/core
7
7
  > node ../cli/bin/run generate-types .
8
8
 
9
9
  [STARTED] Parse Configuration
@@ -19,7 +19,7 @@
19
19
  [COMPLETED] Generate to /home/runner/work/faststore/faststore/packages/core/@generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.0.1-dev.2 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.1.0-dev.1 cache-graphql /home/runner/work/faststore/faststore/packages/core
23
23
  > node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json
24
24
 
25
25
  [Info] - Config file location: /home/runner/work/faststore/faststore/packages/core/discovery.config.default.js
@@ -1,18 +1,18 @@
1
1
 
2
- > @faststore/core@4.0.1-dev.2 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.1.0-dev.1 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.7 /home/runner/work/faststore/faststore/packages/core
7
7
 
8
- ✓  node  test/utils/match-url.test.ts (10 tests) 31ms
9
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 82ms
10
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 27ms
8
+ ✓  node  test/utils/match-url.test.ts (10 tests) 42ms
9
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 72ms
10
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 28ms
11
11
  stderr | test/sdk/localization/store-url.browser.test.ts
12
12
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
13
13
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:119:27)
14
14
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
15
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:342:23)
15
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:353:23)
16
16
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
17
17
 
18
18
  stderr | test/sdk/localization/store-url.browser.test.ts
@@ -20,29 +20,29 @@
20
20
  at getSettings (/home/runner/work/faststore/faststore/packages/core/src/sdk/localization/useLocalizationConfig.tsx:126:45)
21
21
  at validateSession (/home/runner/work/faststore/faststore/packages/core/src/sdk/session/index.ts:144:22)
22
22
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
23
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:342:23)
23
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:353:23)
24
24
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
25
25
 
26
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 20ms
27
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 35ms
28
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 26ms
29
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 120ms
30
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 13ms
31
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 110ms
32
- ✓  node  test/server/cms/global.test.ts (3 tests) 14ms
33
- ✓  node  test/server/content/service.test.ts (5 tests) 13ms
26
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 12ms
27
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 46ms
28
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 13ms
29
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 203ms
30
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 23ms
31
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 146ms
32
+ ✓  node  test/server/cms/global.test.ts (3 tests) 20ms
33
+ ✓  node  test/server/content/service.test.ts (5 tests) 30ms
34
34
  ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 18ms
35
- ✓  node  test/sdk/localization/store-url.test.ts (1 test) 18ms
36
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 12ms
35
+ ✓  node  test/sdk/localization/store-url.test.ts (1 test) 16ms
36
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 15ms
37
37
  ✓  node  test/pages/api/preview.test.ts (2 tests) 29ms
38
- ✓  node  test/server/cms/index.test.ts (2 tests) 17ms
39
- ✓  node  test/server/index.test.ts (7 tests) 1380ms
40
- ✓ should return a valid merged GraphQL schema  351ms
41
- ✓ should exist with its plugins  521ms
42
- ✓ should handle options and execute  469ms
38
+ ✓  node  test/server/cms/index.test.ts (2 tests) 5ms
39
+ ✓  node  test/server/index.test.ts (7 tests) 1913ms
40
+ ✓ should return a valid merged GraphQL schema  716ms
41
+ ✓ should exist with its plugins  530ms
42
+ ✓ should handle options and execute  645ms
43
43
 
44
44
   Test Files  17 passed (17)
45
45
   Tests  203 passed (203)
46
-  Start at  17:05:10
47
-  Duration  13.05s (transform 5.17s, setup 0ms, collect 15.92s, tests 1.97s, environment 7.50s, prepare 664ms)
46
+  Start at  19:06:33
47
+  Duration  13.85s (transform 4.78s, setup 0ms, collect 15.19s, tests 2.63s, environment 9.08s, prepare 799ms)
48
48
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.1.0-dev.2](https://github.com/vtex/faststore/compare/v4.1.0-dev.1...v4.1.0-dev.2) (2026-05-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ - allow_all_components for CMS ([#3312](https://github.com/vtex/faststore/issues/3312)) ([eadeaa3](https://github.com/vtex/faststore/commit/eadeaa36782b40be0fe7fb16604f7a5bc3da2b79))
11
+
12
+ # [4.1.0-dev.1](https://github.com/vtex/faststore/compare/v4.1.0-dev.0...v4.1.0-dev.1) (2026-05-11)
13
+
14
+ **Note:** Version bump only for package @faststore/core
15
+
6
16
  # [4.1.0-dev.0](https://github.com/vtex/faststore/compare/v4.0.1-dev.2...v4.1.0-dev.0) (2026-05-11)
7
17
 
8
18
  ### Features
@@ -6,65 +6,7 @@
6
6
  "title": "Global Footer Sections",
7
7
  "properties": {
8
8
  "sections": {
9
- "type": "array",
10
- "items": {
11
- "anyOf": [
12
- {
13
- "$ref": "#/components/Search"
14
- },
15
- {
16
- "$ref": "#/components/Navbar"
17
- },
18
- {
19
- "$ref": "#/components/Alert"
20
- },
21
- {
22
- "$ref": "#/components/Footer"
23
- },
24
- {
25
- "$ref": "#/components/BannerText"
26
- },
27
- {
28
- "$ref": "#/components/Hero"
29
- },
30
- {
31
- "$ref": "#/components/Incentives"
32
- },
33
- {
34
- "$ref": "#/components/ProductShelf"
35
- },
36
- {
37
- "$ref": "#/components/ProductTiles"
38
- },
39
- {
40
- "$ref": "#/components/Newsletter"
41
- },
42
- {
43
- "$ref": "#/components/Children"
44
- },
45
- {
46
- "$ref": "#/components/BannerNewsletter"
47
- },
48
- {
49
- "$ref": "#/components/CartSidebar"
50
- },
51
- {
52
- "$ref": "#/components/RegionBar"
53
- },
54
- {
55
- "$ref": "#/components/RegionModal"
56
- },
57
- {
58
- "$ref": "#/components/RegionPopover"
59
- },
60
- {
61
- "$ref": "#/components/EmptyState"
62
- },
63
- {
64
- "$ref": "#/components/ShoppingAssistant"
65
- }
66
- ]
67
- }
9
+ "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
68
10
  }
69
11
  },
70
12
  "readOnly": false,
@@ -6,65 +6,7 @@
6
6
  "title": "Global Header Sections",
7
7
  "properties": {
8
8
  "sections": {
9
- "type": "array",
10
- "items": {
11
- "anyOf": [
12
- {
13
- "$ref": "#/components/Search"
14
- },
15
- {
16
- "$ref": "#/components/Navbar"
17
- },
18
- {
19
- "$ref": "#/components/Alert"
20
- },
21
- {
22
- "$ref": "#/components/Footer"
23
- },
24
- {
25
- "$ref": "#/components/BannerText"
26
- },
27
- {
28
- "$ref": "#/components/Hero"
29
- },
30
- {
31
- "$ref": "#/components/Incentives"
32
- },
33
- {
34
- "$ref": "#/components/ProductShelf"
35
- },
36
- {
37
- "$ref": "#/components/ProductTiles"
38
- },
39
- {
40
- "$ref": "#/components/Newsletter"
41
- },
42
- {
43
- "$ref": "#/components/Children"
44
- },
45
- {
46
- "$ref": "#/components/BannerNewsletter"
47
- },
48
- {
49
- "$ref": "#/components/CartSidebar"
50
- },
51
- {
52
- "$ref": "#/components/RegionBar"
53
- },
54
- {
55
- "$ref": "#/components/RegionModal"
56
- },
57
- {
58
- "$ref": "#/components/RegionPopover"
59
- },
60
- {
61
- "$ref": "#/components/EmptyState"
62
- },
63
- {
64
- "$ref": "#/components/ShoppingAssistant"
65
- }
66
- ]
67
- }
9
+ "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
68
10
  }
69
11
  },
70
12
  "readOnly": false,
@@ -360,65 +360,7 @@
360
360
  "$componentTitle": "Loading"
361
361
  },
362
362
  "sections": {
363
- "type": "array",
364
- "items": {
365
- "anyOf": [
366
- {
367
- "$ref": "#/components/Search"
368
- },
369
- {
370
- "$ref": "#/components/Navbar"
371
- },
372
- {
373
- "$ref": "#/components/Alert"
374
- },
375
- {
376
- "$ref": "#/components/Footer"
377
- },
378
- {
379
- "$ref": "#/components/BannerText"
380
- },
381
- {
382
- "$ref": "#/components/Hero"
383
- },
384
- {
385
- "$ref": "#/components/Incentives"
386
- },
387
- {
388
- "$ref": "#/components/ProductShelf"
389
- },
390
- {
391
- "$ref": "#/components/ProductTiles"
392
- },
393
- {
394
- "$ref": "#/components/Newsletter"
395
- },
396
- {
397
- "$ref": "#/components/Children"
398
- },
399
- {
400
- "$ref": "#/components/BannerNewsletter"
401
- },
402
- {
403
- "$ref": "#/components/CartSidebar"
404
- },
405
- {
406
- "$ref": "#/components/RegionBar"
407
- },
408
- {
409
- "$ref": "#/components/RegionModal"
410
- },
411
- {
412
- "$ref": "#/components/RegionPopover"
413
- },
414
- {
415
- "$ref": "#/components/EmptyState"
416
- },
417
- {
418
- "$ref": "#/components/ShoppingAssistant"
419
- }
420
- ]
421
- }
363
+ "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
422
364
  }
423
365
  },
424
366
  "readOnly": false,
@@ -152,65 +152,7 @@
152
152
  "$componentTitle": "SEO"
153
153
  },
154
154
  "sections": {
155
- "type": "array",
156
- "items": {
157
- "anyOf": [
158
- {
159
- "$ref": "#/components/Search"
160
- },
161
- {
162
- "$ref": "#/components/Navbar"
163
- },
164
- {
165
- "$ref": "#/components/Alert"
166
- },
167
- {
168
- "$ref": "#/components/Footer"
169
- },
170
- {
171
- "$ref": "#/components/BannerText"
172
- },
173
- {
174
- "$ref": "#/components/Hero"
175
- },
176
- {
177
- "$ref": "#/components/Incentives"
178
- },
179
- {
180
- "$ref": "#/components/ProductShelf"
181
- },
182
- {
183
- "$ref": "#/components/ProductTiles"
184
- },
185
- {
186
- "$ref": "#/components/Newsletter"
187
- },
188
- {
189
- "$ref": "#/components/Children"
190
- },
191
- {
192
- "$ref": "#/components/BannerNewsletter"
193
- },
194
- {
195
- "$ref": "#/components/CartSidebar"
196
- },
197
- {
198
- "$ref": "#/components/RegionBar"
199
- },
200
- {
201
- "$ref": "#/components/RegionModal"
202
- },
203
- {
204
- "$ref": "#/components/RegionPopover"
205
- },
206
- {
207
- "$ref": "#/components/EmptyState"
208
- },
209
- {
210
- "$ref": "#/components/ShoppingAssistant"
211
- }
212
- ]
213
- }
155
+ "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
214
156
  }
215
157
  },
216
158
  "readOnly": false,
@@ -51,68 +51,7 @@
51
51
  "$componentTitle": "SEO"
52
52
  },
53
53
  "sections": {
54
- "type": "array",
55
- "items": {
56
- "anyOf": [
57
- {
58
- "$ref": "#/components/Search"
59
- },
60
- {
61
- "$ref": "#/components/Navbar"
62
- },
63
- {
64
- "$ref": "#/components/Alert"
65
- },
66
- {
67
- "$ref": "#/components/Footer"
68
- },
69
- {
70
- "$ref": "#/components/BannerText"
71
- },
72
- {
73
- "$ref": "#/components/Hero"
74
- },
75
- {
76
- "$ref": "#/components/Incentives"
77
- },
78
- {
79
- "$ref": "#/components/ProductShelf"
80
- },
81
- {
82
- "$ref": "#/components/CrossSellingShelf"
83
- },
84
- {
85
- "$ref": "#/components/ProductTiles"
86
- },
87
- {
88
- "$ref": "#/components/Newsletter"
89
- },
90
- {
91
- "$ref": "#/components/Children"
92
- },
93
- {
94
- "$ref": "#/components/BannerNewsletter"
95
- },
96
- {
97
- "$ref": "#/components/CartSidebar"
98
- },
99
- {
100
- "$ref": "#/components/RegionBar"
101
- },
102
- {
103
- "$ref": "#/components/RegionModal"
104
- },
105
- {
106
- "$ref": "#/components/RegionPopover"
107
- },
108
- {
109
- "$ref": "#/components/EmptyState"
110
- },
111
- {
112
- "$ref": "#/components/ShoppingAssistant"
113
- }
114
- ]
115
- }
54
+ "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
116
55
  }
117
56
  },
118
57
  "readOnly": false,
@@ -45,74 +45,7 @@
45
45
  "$componentTitle": "SEO"
46
46
  },
47
47
  "sections": {
48
- "type": "array",
49
- "items": {
50
- "anyOf": [
51
- {
52
- "$ref": "#/components/Search"
53
- },
54
- {
55
- "$ref": "#/components/Navbar"
56
- },
57
- {
58
- "$ref": "#/components/Alert"
59
- },
60
- {
61
- "$ref": "#/components/Footer"
62
- },
63
- {
64
- "$ref": "#/components/BannerText"
65
- },
66
- {
67
- "$ref": "#/components/Hero"
68
- },
69
- {
70
- "$ref": "#/components/Incentives"
71
- },
72
- {
73
- "$ref": "#/components/ProductShelf"
74
- },
75
- {
76
- "$ref": "#/components/CrossSellingShelf"
77
- },
78
- {
79
- "$ref": "#/components/ProductTiles"
80
- },
81
- {
82
- "$ref": "#/components/Newsletter"
83
- },
84
- {
85
- "$ref": "#/components/Children"
86
- },
87
- {
88
- "$ref": "#/components/BannerNewsletter"
89
- },
90
- {
91
- "$ref": "#/components/Breadcrumb"
92
- },
93
- {
94
- "$ref": "#/components/ProductDetails"
95
- },
96
- {
97
- "$ref": "#/components/CartSidebar"
98
- },
99
- {
100
- "$ref": "#/components/RegionBar"
101
- },
102
- {
103
- "$ref": "#/components/RegionModal"
104
- },
105
- {
106
- "$ref": "#/components/RegionPopover"
107
- },
108
- {
109
- "$ref": "#/components/EmptyState"
110
- },
111
- {
112
- "$ref": "#/components/ShoppingAssistant"
113
- }
114
- ]
115
- }
48
+ "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
116
49
  }
117
50
  },
118
51
  "readOnly": false,
@@ -71,74 +71,7 @@
71
71
  "$componentTitle": "Product Gallery"
72
72
  },
73
73
  "sections": {
74
- "type": "array",
75
- "items": {
76
- "anyOf": [
77
- {
78
- "$ref": "#/components/Search"
79
- },
80
- {
81
- "$ref": "#/components/Navbar"
82
- },
83
- {
84
- "$ref": "#/components/Alert"
85
- },
86
- {
87
- "$ref": "#/components/Footer"
88
- },
89
- {
90
- "$ref": "#/components/BannerText"
91
- },
92
- {
93
- "$ref": "#/components/Hero"
94
- },
95
- {
96
- "$ref": "#/components/Incentives"
97
- },
98
- {
99
- "$ref": "#/components/ProductShelf"
100
- },
101
- {
102
- "$ref": "#/components/ProductTiles"
103
- },
104
- {
105
- "$ref": "#/components/Newsletter"
106
- },
107
- {
108
- "$ref": "#/components/Children"
109
- },
110
- {
111
- "$ref": "#/components/BannerNewsletter"
112
- },
113
- {
114
- "$ref": "#/components/Breadcrumb"
115
- },
116
- {
117
- "$ref": "#/components/ProductGallery"
118
- },
119
- {
120
- "$ref": "#/components/CartSidebar"
121
- },
122
- {
123
- "$ref": "#/components/RegionBar"
124
- },
125
- {
126
- "$ref": "#/components/RegionModal"
127
- },
128
- {
129
- "$ref": "#/components/RegionPopover"
130
- },
131
- {
132
- "$ref": "#/components/EmptyState"
133
- },
134
- {
135
- "$ref": "#/components/ScrollToTopButton"
136
- },
137
- {
138
- "$ref": "#/components/ShoppingAssistant"
139
- }
140
- ]
141
- }
74
+ "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
142
75
  }
143
76
  },
144
77
  "readOnly": false,