@faststore/core 4.8.1-dev.3 → 4.9.0-dev.1

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.9.0-dev.0 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.9.0-dev.0 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.9.0-dev.0 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.9.0-dev.0 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
@@ -7,24 +7,30 @@
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) 1104ms
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) 2569ms
15
+ ✓ shows the tab bar and renders Personal cards by default  1127ms
16
+ ✓ paginates when there are more than 25 cards  309ms
17
+ ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 3114ms
18
+ ✓ opens the reject confirmation modal with the default English copy  945ms
19
+ ✓ opens the reject confirmation modal with CMS-provided labels  495ms
20
+ ✓ shows the default English toast when a policy is rejected  398ms
21
+ ✓ shows the CMS-provided error toast when rejecting a policy fails  320ms
22
+ ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (14 tests) 3320ms
23
+ ✓ shows an error state when the list fails to load  739ms
24
+ ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  554ms
25
+ ✓ keeps Confirm disabled until a different contract is selected  372ms
26
+ ✓ keeps Confirm disabled when switching is unavailable  411ms
27
+ ✓ keeps Confirm disabled when the selected contract is filtered out  355ms
28
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 343ms
29
+ ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1604ms
30
+ ✓ renders the menu view with contract details and manage footer  912ms
31
+ ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 105ms
32
+ ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 100ms
33
+ ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 21ms
28
34
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
29
35
  Error in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=3c71b0d3fc2bade14df68abfa271858beb361b12
30
36
   at node:internal/deps/undici/undici:16416:13
@@ -34,7 +40,7 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
34
40
  at request (/home/runner/work/faststore/faststore/packages/core/src/sdk/graphql/request.ts:154:5)
35
41
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:122:46)
36
42
  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) {
43
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:17) {
38
44
  [cause]: TypeError: Invalid URL
39
45
   at new URL (node:internal/url:828:25)
40
46
  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 +60,10 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
54
60
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
55
61
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
56
62
 
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
63
+ ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 159ms
64
+ ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 70ms
65
+ ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 113ms
66
+ ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 166ms
61
67
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
62
68
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
63
69
 
@@ -287,89 +293,89 @@ act(() => {
287
293
  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
294
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
289
295
 
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
296
+ ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 960ms
297
+ ✓ renders the password protection form  530ms
298
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 7ms
299
+ ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 59ms
300
+ ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 418ms
296
301
  stderr | test/components/cms/RenderSections.browser.test.tsx
297
302
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
298
303
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
299
304
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
300
305
  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)
306
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
302
307
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
303
308
 
304
- ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 59ms
305
- ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 49ms
309
+ ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 43ms
310
+ ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 66ms
311
+ ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 33ms
306
312
  stderr | test/sdk/localization/store-url.browser.test.ts
307
313
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
308
314
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
309
315
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
310
316
  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)
317
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
312
318
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
313
319
 
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
318
- ✓  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/sdk/localization/store-url.browser.test.ts (3 tests) 9ms
321
+ ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 370ms
322
+ ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 27ms
323
+ ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 44ms
324
+ ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 136ms
325
+ ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 56ms
326
+ ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 24ms
327
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 82ms
322
328
  stderr | test/components/account/doLogout.browser.test.ts
323
329
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
324
330
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
325
331
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
326
332
  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)
333
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
328
334
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
329
335
 
330
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 23ms
336
+ ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 27ms
331
337
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
332
338
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
333
339
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
334
340
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
335
341
  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)
342
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
337
343
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
338
344
 
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
345
+ ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 25ms
346
+ ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 49ms
347
+ ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 139ms
348
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 107ms
349
+ ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 136ms
350
+ ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 73ms
351
+ ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 29ms
352
+ ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 268ms
353
+ ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 106ms
354
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 47ms
355
+ ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (2 tests) 238ms
350
356
  ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 5ms
351
357
  ✓  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
356
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 28ms
358
+ ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 107ms
359
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 35ms
360
+ ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 35ms
361
+ ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 49ms
362
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 20ms
363
+ ✓  node  test/server/password-protection-service.test.ts (22 tests) 38ms
357
364
  stderr | test/sdk/account/refreshToken.browser.test.ts
358
365
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
359
366
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
360
367
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
361
368
  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)
369
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
363
370
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
364
371
 
365
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 38ms
366
372
  ✓  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
373
+ ✓  node  test/pages/api/switch-contract.test.ts (25 tests) 84ms
374
+ ✓  node  test/utils/match-url.test.ts (10 tests) 9ms
375
+ ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 230ms
376
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 16ms
377
+ ✓  node  test/pages/api/unlock.test.ts (15 tests) 158ms
378
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 10ms
373
379
  stderr | test/components/search/SearchInputComponent.test.tsx
374
380
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
375
381
 
@@ -433,16 +439,16 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
433
439
  at Suspense
434
440
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
435
441
 
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
442
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 79ms
443
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 48ms
444
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 15ms
439
445
  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
446
  { extensions: { status: 401 } }
441
447
 
442
448
  stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > renders the error state (no redirect) when the query fails with a non-auth status
443
449
  { extensions: { status: 502 } }
444
450
 
445
- ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 9ms
451
+ ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 11ms
446
452
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
447
453
  Graphql execution returned with error: [
448
454
  {
@@ -494,7 +500,7 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
494
500
 
495
501
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps BadRequestError thrown by execute to its status
496
502
  Something unexpected occurred querying Graphql endpoint:
497
- E [FastStoreError]: malformed
503
+ k [FastStoreError]: malformed
498
504
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:201:31
499
505
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:207:39
500
506
  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 +558,79 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
552
558
  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
559
  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
560
 
555
- ✓  node  test/pages/api/graphql.test.ts (19 tests) 34ms
556
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 29ms
557
- ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 10ms
561
+ ✓  node  test/pages/api/graphql.test.ts (19 tests) 40ms
562
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 24ms
563
+ ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 7ms
558
564
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
559
565
  Set password request failed: Bad Request
560
566
 
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
567
+ ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 32ms
568
+ ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 434ms
569
+ ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 25ms
564
570
  ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 5ms
565
571
  ✓  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
572
+ ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 858ms
573
+ ✓ navigates with the search term on blur  363ms
574
+ ✓ navigates without a label param when the search is cleared  361ms
575
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 45ms
576
+ ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 8ms
577
+ ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 8ms
578
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 55ms
579
+ ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 169ms
573
580
  ✓  node  test/sdk/redirects/index.test.ts (7 tests) 55ms
574
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 161ms
575
581
  ✓  node  test/utils/productJsonLd.test.ts (17 tests) 11ms
576
- ✓  node  test/proxy.localization.test.ts (5 tests) 36ms
582
+ ✓  node  test/proxy.localization.test.ts (5 tests) 40ms
577
583
  ✓  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
582
- ✓  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/sdk/graphql/retryPolicy.test.ts (18 tests) 27ms
585
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 40ms
586
+ ✓  node  test/server/index.test.ts (7 tests) 1023ms
587
+ ✓ should return a valid merged GraphQL schema  335ms
588
+ ✓ should handle options and execute  393ms
589
+ ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (6 tests) 11ms
590
+ ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 56ms
591
+ ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 107ms
592
+ ✓  node  test/proxy.test.ts (4 tests) 18ms
593
+ ✓  node  test/server/webops-api.test.ts (9 tests) 15ms
594
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 38ms
589
595
  ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 5ms
590
- ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 17ms
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
596
+ ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 30ms
597
+ ✓  node  test/server/cms/myAccountDefaultSections.test.ts (7 tests) 5ms
598
+ ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 13ms
599
+ ✓  node  test/server/content/service.test.ts (5 tests) 7ms
600
+ ✓  node  test/utils/productJsonLdRendering.test.tsx (4 tests) 17ms
594
601
  ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 8ms
595
602
  ✓  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
600
- ✓  node  test/pages/api/preview.test.ts (2 tests) 9ms
601
- ✓  node  test/components/search/SearchInput.test.ts (6 tests) 8ms
602
- ✓  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
603
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 33ms
604
+ ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 148ms
605
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 8ms
606
+ ✓  node  test/server/rootSpan.test.ts (4 tests) 44ms
607
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 8ms
608
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 6ms
609
+ ✓  node  test/components/search/SearchInput.test.ts (6 tests) 9ms
610
+ ✓  node  test/components/account/Layout.test.tsx (6 tests) 67ms
611
+ ✓  node  test/sdk/recommendations/vrn.test.ts (5 tests) 7ms
612
+ ✓  node  test/utils/retry.test.ts (5 tests) 18ms
613
+ ✓  node  test/server/cms/index.test.ts (2 tests) 4ms
614
+ ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 6ms
608
615
  ✓  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
613
- ✓  node  test/utils/isLocalHost.test.ts (7 tests) 4ms
614
- ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 3ms
616
+ ✓  node  test/utils/unlockResponse.test.ts (11 tests) 6ms
617
+ ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 191ms
618
+ ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 5ms
619
+ ✓  node  test/utils/isLocalHost.test.ts (7 tests) 7ms
620
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 51ms
621
+ ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 5ms
615
622
  ✓  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 3ms
616
- ✓  node  test/utils/getCookie.test.ts (4 tests) 5ms
623
+ ✓  node  test/utils/getCookie.test.ts (4 tests) 6ms
617
624
  ✓  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 4ms
618
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 44ms
619
- ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 4ms
620
- ✓  node  test/instrumentation.test.ts (3 tests) 4ms
625
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 42ms
626
+ ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 3ms
627
+ ✓  node  test/instrumentation.test.ts (3 tests) 6ms
628
+ ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 27ms
621
629
  ✓  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 4ms
622
- ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 38ms
623
630
  ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 9ms
624
631
 
625
632
   Test Files  122 passed (122)
626
633
   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)
634
+  Start at  19:39:27
635
+  Duration  60.07s (transform 16.40s, setup 0ms, import 55.68s, tests 21.31s, environment 72.47s)
629
636
 
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.9.0-dev.1](https://github.com/vtex/faststore/compare/v4.9.0-dev.0...v4.9.0-dev.1) (2026-09-28)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
10
+ # [4.9.0-dev.0](https://github.com/vtex/faststore/compare/v4.8.1-dev.3...v4.9.0-dev.0) (2026-09-24)
11
+
12
+ ### Features
13
+
14
+ - **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)
15
+
6
16
  ## [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
17
 
8
18
  ### 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.1",
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.1",
75
+ "@faststore/sdk": "4.9.0-dev.1",
76
+ "@faststore/ui": "4.9.0-dev.1",
77
+ "@faststore/lighthouse": "4.9.0-dev.1",
78
+ "@faststore/diagnostics": "4.9.0-dev.1"
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,