@faststore/core 4.8.1-dev.3 → 4.9.0-dev.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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.8.1-dev.2 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.8.1-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.8.1-dev.2 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.8.1-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 @generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.8.1-dev.2 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.8.1-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,5 +1,5 @@
1
1
 
2
- > @faststore/core@4.8.1-dev.2 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.8.1-dev.3 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
@@ -7,24 +7,26 @@
7
7
 
8
8
  Not implemented: navigation to another Document
9
9
  Not implemented: navigation to another Document
10
+ ✓  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 1250ms
10
11
  Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
11
12
  npx update-browserslist-db@latest
12
13
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
13
- ✓  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 1217ms
14
- ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 3095ms
15
- ✓ opens the reject confirmation modal with the default English copy  1205ms
16
- ✓ opens the reject confirmation modal with CMS-provided labels  491ms
17
- ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 3349ms
18
- ✓ shows the tab bar and renders Personal cards by default  1414ms
19
- ✓ paginates when there are more than 25 cards  549ms
20
- ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (14 tests) 2091ms
21
- ✓ shows an error state when the list fails to load  716ms
22
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 481ms
23
- ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1375ms
24
- ✓ renders the menu view with contract details and manage footer  958ms
25
- ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 140ms
26
- ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 87ms
27
- ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 9ms
14
+ ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 3054ms
15
+ ✓ shows the tab bar and renders Personal cards by default  1245ms
16
+ ✓ paginates when there are more than 25 cards  516ms
17
+ ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 3270ms
18
+ ✓ opens the reject confirmation modal with the default English copy  1288ms
19
+ ✓ opens the reject confirmation modal with CMS-provided labels  510ms
20
+ ✓ shows the default English toast when a policy is rejected  315ms
21
+ ✓ shows the CMS-provided error toast when rejecting a policy fails  319ms
22
+ ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (14 tests) 2478ms
23
+ ✓ shows an error state when the list fails to load  777ms
24
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 279ms
25
+ ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 83ms
26
+ ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1453ms
27
+ ✓ renders the menu view with contract details and manage footer  780ms
28
+ ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 164ms
29
+ ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 10ms
28
30
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
29
31
  Error in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=3c71b0d3fc2bade14df68abfa271858beb361b12
30
32
   at node:internal/deps/undici/undici:16416:13
@@ -34,7 +36,7 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
34
36
  at request (/home/runner/work/faststore/faststore/packages/core/src/sdk/graphql/request.ts:154:5)
35
37
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:122:46)
36
38
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:14)
37
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:17) {
39
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:17) {
38
40
  [cause]: TypeError: Invalid URL
39
41
   at new URL (node:internal/url:828:25)
40
42
  at new URL$1 (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@20.19.13_jiti@2.6.1_jsdom@27.4.0_sas_13be941c57d55f08f06eeaf1c180ddfe/node_modules/vitest/dist/chunks/index.CyBMJtT7.js:556:9)
@@ -54,10 +56,11 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
54
56
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
55
57
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
56
58
 
57
- ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 142ms
58
- ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 108ms
59
- ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 112ms
60
- ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 131ms
59
+ ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 122ms
60
+ ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 73ms
61
+ ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 127ms
62
+ ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 115ms
63
+ ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 44ms
61
64
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
62
65
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
63
66
 
@@ -191,6 +194,7 @@ act(() => {
191
194
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
192
195
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
193
196
 
197
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 6ms
194
198
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > shows service unavailable when the response is not a login payload
195
199
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
196
200
 
@@ -287,89 +291,86 @@ act(() => {
287
291
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
288
292
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
289
293
 
290
- ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 681ms
291
- ✓ renders the password protection form  310ms
292
- ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 54ms
293
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 9ms
294
- ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 39ms
295
- ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 400ms
294
+ ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 592ms
295
+ ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 50ms
296
296
  stderr | test/components/cms/RenderSections.browser.test.tsx
297
297
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
298
298
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
299
299
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
300
300
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
301
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
301
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
302
302
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
303
303
 
304
- ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 59ms
305
- ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 49ms
304
+ ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 401ms
305
+ ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 60ms
306
+ ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 31ms
306
307
  stderr | test/sdk/localization/store-url.browser.test.ts
307
308
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
308
309
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
309
310
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
310
311
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
311
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
312
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
312
313
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
313
314
 
314
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 7ms
315
- ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 341ms
316
- ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 38ms
317
- ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 36ms
315
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 4ms
316
+ ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 379ms
317
+ ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 26ms
318
+ ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 41ms
318
319
  ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 134ms
319
- ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 16ms
320
- ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 97ms
321
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 71ms
320
+ ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 56ms
321
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 66ms
322
+ ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 15ms
322
323
  stderr | test/components/account/doLogout.browser.test.ts
323
324
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
324
325
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
325
326
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
326
327
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
327
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
328
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
328
329
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
329
330
 
330
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 23ms
331
+ ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 35ms
331
332
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
332
333
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
333
334
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
334
335
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
335
336
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
336
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
337
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
337
338
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
338
339
 
339
- ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 40ms
340
- ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 29ms
341
- ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 122ms
342
- ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 94ms
343
- ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 132ms
344
- ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 91ms
345
- ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 27ms
346
- ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 344ms
347
- ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 32ms
348
- ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 100ms
349
- ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (2 tests) 250ms
350
- ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 5ms
351
- ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 4ms
352
- ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 138ms
353
- ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 47ms
354
- ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 49ms
355
- ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 40ms
340
+ ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 19ms
341
+ ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 50ms
342
+ ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 130ms
343
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 129ms
344
+ ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 127ms
345
+ ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 102ms
346
+ ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 302ms
347
+ ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 22ms
348
+ ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 113ms
349
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 97ms
350
+ ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (2 tests) 268ms
351
+ ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 3ms
352
+ ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 116ms
353
+ ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 3ms
354
+ ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 57ms
355
+ ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 33ms
356
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 46ms
356
357
  ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 28ms
358
+ ✓  node  test/server/password-protection-service.test.ts (22 tests) 25ms
357
359
  stderr | test/sdk/account/refreshToken.browser.test.ts
358
360
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
359
361
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
360
362
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
361
363
  at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
362
- at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
364
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
363
365
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
364
366
 
365
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 38ms
366
- ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 4ms
367
- ✓  node  test/pages/api/switch-contract.test.ts (25 tests) 109ms
368
- ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 274ms
369
- ✓  node  test/utils/match-url.test.ts (10 tests) 10ms
370
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 13ms
371
- ✓  node  test/pages/api/unlock.test.ts (15 tests) 174ms
372
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 8ms
367
+ ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 6ms
368
+ ✓  node  test/pages/api/switch-contract.test.ts (25 tests) 75ms
369
+ ✓  node  test/utils/match-url.test.ts (10 tests) 8ms
370
+ ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 213ms
371
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 15ms
372
+ ✓  node  test/pages/api/unlock.test.ts (15 tests) 162ms
373
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 10ms
373
374
  stderr | test/components/search/SearchInputComponent.test.tsx
374
375
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
375
376
 
@@ -433,9 +434,9 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
433
434
  at Suspense
434
435
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
435
436
 
436
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 86ms
437
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 53ms
438
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 14ms
437
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 75ms
438
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 58ms
439
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 16ms
439
440
  stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > redirects to /pvt/account/403 when the query fails with 401/403
440
441
  { extensions: { status: 401 } }
441
442
 
@@ -494,7 +495,7 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
494
495
 
495
496
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps BadRequestError thrown by execute to its status
496
497
  Something unexpected occurred querying Graphql endpoint:
497
- E [FastStoreError]: malformed
498
+ k [FastStoreError]: malformed
498
499
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:201:31
499
500
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:207:39
500
501
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1024:60
@@ -552,78 +553,78 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
552
553
  at trace (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@20.19.13_jiti@2.6.1_jsdom@27.4.0_sas_13be941c57d55f08f06eeaf1c180ddfe/node_modules/vitest/dist/chunks/test.B8ej_ZHS.js:239:21)
553
554
  at runTest (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:12)
554
555
 
555
- ✓  node  test/pages/api/graphql.test.ts (19 tests) 34ms
556
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 29ms
556
+ ✓  node  test/pages/api/graphql.test.ts (19 tests) 36ms
557
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 26ms
557
558
  ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 10ms
558
559
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
559
560
  Set password request failed: Bad Request
560
561
 
561
- ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 49ms
562
- ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 450ms
563
- ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 24ms
564
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 5ms
565
- ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 5ms
566
- ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 857ms
567
- ✓ navigates with the search term on blur  362ms
568
- ✓ navigates without a label param when the search is cleared  362ms
569
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 49ms
570
- ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 10ms
571
- ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 7ms
572
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 46ms
573
- ✓  node  test/sdk/redirects/index.test.ts (7 tests) 55ms
574
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 161ms
562
+ ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 32ms
563
+ ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 398ms
564
+ ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 26ms
565
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 7ms
566
+ ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 7ms
567
+ ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 823ms
568
+ ✓ navigates with the search term on blur  360ms
569
+ ✓ navigates without a label param when the search is cleared  359ms
570
+ ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 7ms
571
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 44ms
572
+ ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 10ms
573
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 52ms
574
+ ✓  node  test/sdk/redirects/index.test.ts (7 tests) 44ms
575
+ ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 151ms
575
576
  ✓  node  test/utils/productJsonLd.test.ts (17 tests) 11ms
576
- ✓  node  test/proxy.localization.test.ts (5 tests) 36ms
577
- ✓  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 6ms
578
- ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 22ms
579
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 42ms
580
- ✓  node  test/server/index.test.ts (7 tests) 885ms
581
- ✓ should handle options and execute  340ms
577
+ ✓  node  test/proxy.localization.test.ts (5 tests) 40ms
578
+ ✓  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 9ms
579
+ ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 17ms
580
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 35ms
581
+ ✓  node  test/server/index.test.ts (7 tests) 1560ms
582
+ ✓ should handle options and execute  997ms
582
583
  ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (6 tests) 10ms
583
- ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 51ms
584
- ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 109ms
585
- ✓  node  test/server/webops-api.test.ts (9 tests) 17ms
586
- ✓  node  test/proxy.test.ts (4 tests) 23ms
587
- ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 44ms
588
- ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 30ms
584
+ ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 108ms
585
+ ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 45ms
586
+ ✓  node  test/proxy.test.ts (4 tests) 25ms
587
+ ✓  node  test/server/webops-api.test.ts (9 tests) 12ms
588
+ ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 31ms
589
589
  ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 5ms
590
- ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 17ms
590
+ ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 11ms
591
591
  ✓  node  test/server/cms/myAccountDefaultSections.test.ts (7 tests) 6ms
592
- ✓  node  test/server/content/service.test.ts (5 tests) 5ms
593
- ✓  node  test/utils/productJsonLdRendering.test.tsx (4 tests) 15ms
594
- ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 8ms
592
+ ✓  node  test/server/content/service.test.ts (5 tests) 8ms
593
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 42ms
594
+ ✓  node  test/utils/productJsonLdRendering.test.tsx (4 tests) 16ms
595
+ ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 12ms
595
596
  ✓  node  test/server/cms/global.test.ts (3 tests) 6ms
596
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 36ms
597
- ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 159ms
598
- ✓  node  test/server/rootSpan.test.ts (4 tests) 46ms
599
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 7ms
597
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 27ms
598
+ ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 135ms
599
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 9ms
600
+ ✓  node  test/server/rootSpan.test.ts (4 tests) 43ms
600
601
  ✓  node  test/pages/api/preview.test.ts (2 tests) 9ms
601
602
  ✓  node  test/components/search/SearchInput.test.ts (6 tests) 8ms
602
603
  ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 4ms
603
- ✓  node  test/sdk/recommendations/vrn.test.ts (5 tests) 6ms
604
- ✓  node  test/components/account/Layout.test.tsx (6 tests) 79ms
605
- ✓  node  test/utils/retry.test.ts (5 tests) 13ms
606
- ✓  node  test/server/cms/index.test.ts (2 tests) 6ms
607
- ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 15ms
608
- ✓  node  test/utils/userOrderStatus.test.ts (4 tests) 4ms
609
- ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 192ms
610
- ✓  node  test/utils/unlockResponse.test.ts (11 tests) 8ms
611
- ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 4ms
612
- ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 57ms
604
+ ✓  node  test/components/account/Layout.test.tsx (6 tests) 64ms
605
+ ✓  node  test/sdk/recommendations/vrn.test.ts (5 tests) 5ms
606
+ ✓  node  test/utils/retry.test.ts (5 tests) 15ms
607
+ ✓  node  test/server/cms/index.test.ts (2 tests) 4ms
608
+ ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 6ms
609
+ ✓  node  test/utils/userOrderStatus.test.ts (4 tests) 6ms
610
+ ✓  node  test/utils/unlockResponse.test.ts (11 tests) 5ms
611
+ ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 195ms
612
+ ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 5ms
613
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 50ms
613
614
  ✓  node  test/utils/isLocalHost.test.ts (7 tests) 4ms
614
- ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 3ms
615
- ✓  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 3ms
616
- ✓  node  test/utils/getCookie.test.ts (4 tests) 5ms
615
+ ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 5ms
616
+ ✓  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 4ms
617
+ ✓  node  test/utils/getCookie.test.ts (4 tests) 7ms
617
618
  ✓  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 4ms
618
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 44ms
619
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 36ms
619
620
  ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 4ms
620
- ✓  node  test/instrumentation.test.ts (3 tests) 4ms
621
+ ✓  node  test/instrumentation.test.ts (3 tests) 6ms
622
+ ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 34ms
621
623
  ✓  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 4ms
622
- ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 38ms
623
624
  ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 9ms
624
625
 
625
626
   Test Files  122 passed (122)
626
627
   Tests  926 passed (926)
627
-  Start at  23:31:16
628
-  Duration  59.06s (transform 13.22s, setup 0ms, import 51.66s, tests 20.67s, environment 73.87s)
628
+  Start at  22:18:16
629
+  Duration  57.44s (transform 16.09s, setup 0ms, import 52.44s, tests 21.12s, environment 70.14s)
629
630
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
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.9.0-dev.0](https://github.com/vtex/faststore/compare/v4.8.1-dev.3...v4.9.0-dev.0) (2026-09-24)
7
+
8
+ ### Features
9
+
10
+ - **api,sdk:** support custom StoreSort values via customSortMap ([#3496](https://github.com/vtex/faststore/issues/3496)) ([8613faa](https://github.com/vtex/faststore/commit/8613faa046449801d17a2f0076e3a9b9d5a8c00f)), closes [/github.com/vtex/faststore/pull/3496#discussion_r4063084635](https://github.com//github.com/vtex/faststore/pull/3496/issues/discussion_r4063084635) [vtex-sites/playground.store#238](https://github.com/vtex-sites/playground.store/issues/238) [#3495](https://github.com/vtex/faststore/issues/3495)
11
+
6
12
  ## [4.8.1-dev.3](https://github.com/vtex/faststore/compare/v4.8.1-dev.2...v4.8.1-dev.3) (2026-09-22)
7
13
 
8
14
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "4.8.1-dev.3",
3
+ "version": "4.9.0-dev.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -71,11 +71,11 @@
71
71
  "style-loader": "^3.3.1",
72
72
  "swr": "^2.2.5",
73
73
  "use-sync-external-store": "^1.6.0",
74
- "@faststore/api": "4.8.1-dev.3",
75
- "@faststore/lighthouse": "4.8.1-dev.3",
76
- "@faststore/diagnostics": "4.8.1-dev.3",
77
- "@faststore/ui": "4.8.1-dev.3",
78
- "@faststore/sdk": "4.8.1-dev.3"
74
+ "@faststore/api": "4.9.0-dev.0",
75
+ "@faststore/diagnostics": "4.9.0-dev.0",
76
+ "@faststore/lighthouse": "4.9.0-dev.0",
77
+ "@faststore/ui": "4.9.0-dev.0",
78
+ "@faststore/sdk": "4.9.0-dev.0"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@cypress/code-coverage": "^3.12.1",
@@ -13,6 +13,7 @@ export const apiOptions: APIOptions = {
13
13
  showSponsored: storeConfig.api.showSponsored,
14
14
  simulationBehavior: (storeConfig.api as Record<string, any>)
15
15
  .simulationBehavior,
16
+ customSortMap: (storeConfig.api as Record<string, any>).customSortMap,
16
17
  incrementAddress: storeConfig.api.incrementAddress,
17
18
  channel: storeConfig.session.channel,
18
19
  locale: storeConfig.session.locale,