@faststore/core 4.3.0-dev.2 → 4.3.0-dev.4

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.3.0-dev.1 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.3.0-dev.3 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.3.0-dev.1 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.3.0-dev.3 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.3.0-dev.1 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.3.0-dev.3 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,11 +1,12 @@
1
1
 
2
- > @faststore/core@4.3.0-dev.1 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.3.0-dev.3 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
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 39ms
8
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 37ms
9
+ ✓  browser  test/sdk/session/installLocaleCorrector.browser.test.ts (7 tests) 57ms
9
10
  stderr | test/sdk/localization/store-url.browser.test.ts
10
11
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
11
12
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:119:27)
@@ -13,12 +14,11 @@
13
14
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:353:23)
14
15
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
15
16
 
16
- ✓  browser  test/sdk/session/installLocaleCorrector.browser.test.ts (7 tests) 41ms
17
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 93ms
18
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 14ms
19
- ✓  node  test/utils/match-url.test.ts (10 tests) 41ms
20
- ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 16ms
21
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 26ms
17
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 126ms
18
+ ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 12ms
19
+ ✓  node  test/utils/match-url.test.ts (10 tests) 29ms
20
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 20ms
21
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 22ms
22
22
  stderr | test/components/search/SearchInputComponent.test.tsx
23
23
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
24
24
 
@@ -82,13 +82,13 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
82
82
  at Suspense
83
83
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
84
84
 
85
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 165ms
86
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 27ms
87
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 196ms
88
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 34ms
89
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 24ms
90
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 63ms
91
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 214ms
85
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 224ms
86
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 22ms
87
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 148ms
88
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 79ms
89
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 30ms
90
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 135ms
91
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 115ms
92
92
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
93
93
  Graphql execution returned with error: [
94
94
  {
@@ -135,26 +135,27 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
135
135
  { message: 'bad', status: 400, type: 'BadRequestError' }
136
136
  ]
137
137
 
138
- ✓  node  test/pages/api/graphql.test.ts (10 tests) 85ms
139
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 223ms
140
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 106ms
141
- ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 72ms
142
- ✓  node  test/server/content/service.test.ts (5 tests) 4ms
138
+ ✓  node  test/pages/api/graphql.test.ts (10 tests) 92ms
139
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 131ms
140
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 116ms
141
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 53ms
143
142
  ✓  node  test/server/cms/global.test.ts (3 tests) 6ms
144
- ✓  node  test/server/index.test.ts (7 tests) 797ms
145
- ✓ should return a valid merged GraphQL schema  336ms
146
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 8ms
147
- ✓  node  test/sdk/localization/store-url.test.ts (1 test) 4ms
148
- ✓  node  test/pages/api/preview.test.ts (2 tests) 11ms
143
+ ✓  node  test/server/content/service.test.ts (5 tests) 5ms
144
+ ✓  node  test/sdk/localization/store-url.test.ts (1 test) 3ms
145
+ ✓  node  test/server/index.test.ts (7 tests) 1014ms
146
+ ✓ should exist with its plugins  305ms
147
+ ✓ should handle options and execute  441ms
148
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 7ms
149
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 31ms
150
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 6ms
151
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 7ms
149
152
  ✓  node  test/components/search/SearchInput.test.ts (6 tests) 8ms
150
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 34ms
151
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 4ms
152
- ✓  node  test/utils/isLocalHost.test.ts (7 tests) 6ms
153
153
  ✓  node  test/server/cms/index.test.ts (2 tests) 5ms
154
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 27ms
154
+ ✓  node  test/utils/isLocalHost.test.ts (7 tests) 4ms
155
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 26ms
155
156
 
156
157
   Test Files  30 passed (30)
157
158
   Tests  287 passed (287)
158
-  Start at  14:28:34
159
-  Duration  22.44s (transform 5.65s, setup 0ms, collect 21.17s, tests 2.39s, environment 27.63s, prepare 896ms)
159
+  Start at  14:18:47
160
+  Duration  22.31s (transform 5.56s, setup 0ms, collect 20.75s, tests 2.57s, environment 27.68s, prepare 901ms)
160
161
 
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.3.0-dev.4](https://github.com/vtex/faststore/compare/v4.3.0-dev.3...v4.3.0-dev.4) (2026-06-15)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
10
+ # [4.3.0-dev.3](https://github.com/vtex/faststore/compare/v4.3.0-dev.2...v4.3.0-dev.3) (2026-06-15)
11
+
12
+ ### Features
13
+
14
+ - adding sitemap to cms LP content-type ([#3386](https://github.com/vtex/faststore/issues/3386)) ([7e81ae2](https://github.com/vtex/faststore/commit/7e81ae208003ece9e19d50ab24489f9c27773929))
15
+
6
16
  # [4.3.0-dev.2](https://github.com/vtex/faststore/compare/v4.3.0-dev.1...v4.3.0-dev.2) (2026-06-10)
7
17
 
8
18
  ### Features
@@ -12,6 +12,12 @@
12
12
  },
13
13
  "$componentTitle": "slug"
14
14
  },
15
+ "siteMap": {
16
+ "title": "Public",
17
+ "description": "When enabled, this page's URL is added to sitemap.xml so search engines can discover and index it. Disable to keep the page out of the sitemap (e.g. for private, temporary, or campaign-only landing pages).",
18
+ "default": true,
19
+ "type": "boolean"
20
+ },
15
21
  "seo": {
16
22
  "title": "SEO",
17
23
  "description": "Search Engine Optimization options",
@@ -1,6 +1,123 @@
1
1
  {
2
2
  "title": "FastStore Schema",
3
3
  "description": "Collection of default schemas for FastStore.",
4
+ "$defs": {
5
+ "base-component": {
6
+ "$singleton": false,
7
+ "$abstract": false,
8
+ "properties": {},
9
+ "definitions": {},
10
+ "$recursiveAnchor": false,
11
+ "uniqueItems": false,
12
+ "required": [],
13
+ "type": "object",
14
+ "deprecated": false,
15
+ "readOnly": false,
16
+ "writeOnly": false
17
+ },
18
+ "base-page-template": {
19
+ "$singleton": false,
20
+ "$abstract": false,
21
+ "properties": {
22
+ "sections": {
23
+ "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS",
24
+ "$singleton": false,
25
+ "$abstract": false,
26
+ "definitions": {},
27
+ "$recursiveAnchor": false,
28
+ "uniqueItems": false,
29
+ "required": [],
30
+ "deprecated": false,
31
+ "readOnly": false,
32
+ "writeOnly": false
33
+ }
34
+ },
35
+ "definitions": {},
36
+ "$recursiveAnchor": false,
37
+ "uniqueItems": false,
38
+ "required": [],
39
+ "type": "object",
40
+ "deprecated": false,
41
+ "readOnly": false,
42
+ "writeOnly": false
43
+ },
44
+ "$ALLOW_ALL_COMPONENTS": {
45
+ "type": "array",
46
+ "items": {
47
+ "anyOf": [
48
+ {
49
+ "$ref": "#/components/Alert"
50
+ },
51
+ {
52
+ "$ref": "#/components/BannerNewsletter"
53
+ },
54
+ {
55
+ "$ref": "#/components/BannerText"
56
+ },
57
+ {
58
+ "$ref": "#/components/Breadcrumb"
59
+ },
60
+ {
61
+ "$ref": "#/components/CartSidebar"
62
+ },
63
+ {
64
+ "$ref": "#/components/Children"
65
+ },
66
+ {
67
+ "$ref": "#/components/CrossSellingShelf"
68
+ },
69
+ {
70
+ "$ref": "#/components/EmptyState"
71
+ },
72
+ {
73
+ "$ref": "#/components/Footer"
74
+ },
75
+ {
76
+ "$ref": "#/components/Hero"
77
+ },
78
+ {
79
+ "$ref": "#/components/Incentives"
80
+ },
81
+ {
82
+ "$ref": "#/components/Navbar"
83
+ },
84
+ {
85
+ "$ref": "#/components/Newsletter"
86
+ },
87
+ {
88
+ "$ref": "#/components/ProductDetails"
89
+ },
90
+ {
91
+ "$ref": "#/components/ProductGallery"
92
+ },
93
+ {
94
+ "$ref": "#/components/ProductShelf"
95
+ },
96
+ {
97
+ "$ref": "#/components/ProductTiles"
98
+ },
99
+ {
100
+ "$ref": "#/components/RegionBar"
101
+ },
102
+ {
103
+ "$ref": "#/components/RegionModal"
104
+ },
105
+ {
106
+ "$ref": "#/components/RegionPopover"
107
+ },
108
+ {
109
+ "$ref": "#/components/ScrollToTopButton"
110
+ },
111
+ {
112
+ "$ref": "#/components/Search"
113
+ },
114
+ {
115
+ "$ref": "#/components/ShoppingAssistant"
116
+ }
117
+ ]
118
+ }
119
+ }
120
+ },
4
121
  "content-types": {
5
122
  "404": {
6
123
  "$extends": ["#/components/base-page-template"],
@@ -611,6 +728,12 @@
611
728
  },
612
729
  "$componentTitle": "slug"
613
730
  },
731
+ "siteMap": {
732
+ "title": "Public",
733
+ "description": "When enabled, this page's URL is added to sitemap.xml so search engines can discover and index it. Disable to keep the page out of the sitemap (e.g. for private, temporary, or campaign-only landing pages).",
734
+ "default": true,
735
+ "type": "boolean"
736
+ },
614
737
  "seo": {
615
738
  "title": "SEO",
616
739
  "description": "Search Engine Optimization options",
@@ -4303,96 +4426,5 @@
4303
4426
  "deprecated": false,
4304
4427
  "$abstract": false
4305
4428
  }
4306
- },
4307
- "$defs": {
4308
- "base-component": {
4309
- "type": "object",
4310
- "required": [],
4311
- "properties": {}
4312
- },
4313
- "base-page-template": {
4314
- "type": "object",
4315
- "properties": {
4316
- "sections": {
4317
- "$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
4318
- }
4319
- }
4320
- },
4321
- "$ALLOW_ALL_COMPONENTS": {
4322
- "type": "array",
4323
- "items": {
4324
- "anyOf": [
4325
- {
4326
- "$ref": "#/components/Alert"
4327
- },
4328
- {
4329
- "$ref": "#/components/BannerNewsletter"
4330
- },
4331
- {
4332
- "$ref": "#/components/BannerText"
4333
- },
4334
- {
4335
- "$ref": "#/components/Breadcrumb"
4336
- },
4337
- {
4338
- "$ref": "#/components/CartSidebar"
4339
- },
4340
- {
4341
- "$ref": "#/components/Children"
4342
- },
4343
- {
4344
- "$ref": "#/components/CrossSellingShelf"
4345
- },
4346
- {
4347
- "$ref": "#/components/EmptyState"
4348
- },
4349
- {
4350
- "$ref": "#/components/Footer"
4351
- },
4352
- {
4353
- "$ref": "#/components/Hero"
4354
- },
4355
- {
4356
- "$ref": "#/components/Incentives"
4357
- },
4358
- {
4359
- "$ref": "#/components/Navbar"
4360
- },
4361
- {
4362
- "$ref": "#/components/Newsletter"
4363
- },
4364
- {
4365
- "$ref": "#/components/ProductDetails"
4366
- },
4367
- {
4368
- "$ref": "#/components/ProductGallery"
4369
- },
4370
- {
4371
- "$ref": "#/components/ProductShelf"
4372
- },
4373
- {
4374
- "$ref": "#/components/ProductTiles"
4375
- },
4376
- {
4377
- "$ref": "#/components/RegionBar"
4378
- },
4379
- {
4380
- "$ref": "#/components/RegionModal"
4381
- },
4382
- {
4383
- "$ref": "#/components/RegionPopover"
4384
- },
4385
- {
4386
- "$ref": "#/components/ScrollToTopButton"
4387
- },
4388
- {
4389
- "$ref": "#/components/Search"
4390
- },
4391
- {
4392
- "$ref": "#/components/ShoppingAssistant"
4393
- }
4394
- ]
4395
- }
4396
- }
4397
4429
  }
4398
4430
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "4.3.0-dev.2",
3
+ "version": "4.3.0-dev.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -70,11 +70,11 @@
70
70
  "style-loader": "^3.3.1",
71
71
  "swr": "^2.2.5",
72
72
  "use-sync-external-store": "^1.6.0",
73
- "@faststore/api": "4.3.0-dev.2",
74
- "@faststore/diagnostics": "4.3.0-dev.2",
75
- "@faststore/lighthouse": "4.3.0-dev.2",
76
- "@faststore/ui": "4.3.0-dev.2",
77
- "@faststore/sdk": "4.3.0-dev.2"
73
+ "@faststore/diagnostics": "4.3.0-dev.4",
74
+ "@faststore/api": "4.3.0-dev.4",
75
+ "@faststore/lighthouse": "4.3.0-dev.4",
76
+ "@faststore/sdk": "4.3.0-dev.4",
77
+ "@faststore/ui": "4.3.0-dev.4"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@cypress/code-coverage": "^3.12.1",