@faststore/core 4.5.1-dev.1 → 4.5.1-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.5.1-dev.0 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.5.1-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.5.1-dev.0 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.5.1-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.5.1-dev.0 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.5.1-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,11 +1,11 @@
1
1
 
2
- > @faststore/core@4.5.1-dev.0 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.5.1-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
- ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 62ms
8
+ ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 50ms
9
9
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
10
10
  Error in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=8199d03debb0a6751ec53d8ee8987b78d0292acb
11
11
   at node:internal/deps/undici/undici:16416:13
@@ -38,11 +38,10 @@ Browserslist: browsers data (caniuse-lite) is 6 months old. Please run:
38
38
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
39
39
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
40
40
 
41
- ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 263ms
42
- ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (13 tests) 2181ms
43
- ✓ shows an error state when the list fails to load  654ms
44
- ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  308ms
45
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 23ms
41
+ ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 345ms
42
+ ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (13 tests) 2351ms
43
+ ✓ shows an error state when the list fails to load  620ms
44
+ ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  364ms
46
45
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
47
46
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
48
47
 
@@ -272,13 +271,13 @@ act(() => {
272
271
  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
273
272
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
274
273
 
275
- ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 2364ms
276
- ✓ renders the password protection form  1042ms
277
- ✓ posts the password and redirects to the requested return path  380ms
278
- ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 83ms
279
- ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (5 tests) 2231ms
280
- ✓ renders the menu view with contract details and manage footer  1175ms
281
- ✓ opens the contract switcher and returns to the menu on back  423ms
274
+ ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 1570ms
275
+ ✓ renders the password protection form  685ms
276
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 24ms
277
+ ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (5 tests) 1771ms
278
+ ✓ renders the menu view with contract details and manage footer  951ms
279
+ ✓ opens the contract switcher and returns to the menu on back  347ms
280
+ ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 75ms
282
281
  stderr | test/sdk/localization/store-url.browser.test.ts
283
282
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
284
283
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:121:27)
@@ -286,9 +285,9 @@ This ensures that you're testing the behavior the user would see in the browser.
286
285
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
287
286
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
288
287
 
289
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 18ms
290
- ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 135ms
291
- ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (4 tests) 131ms
288
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 14ms
289
+ ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 60ms
290
+ ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (4 tests) 88ms
292
291
  stderr | test/components/account/doLogout.browser.test.ts
293
292
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
294
293
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:121:27)
@@ -296,7 +295,9 @@ This ensures that you're testing the behavior the user would see in the browser.
296
295
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
297
296
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
298
297
 
299
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 33ms
298
+ ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 34ms
299
+ ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 291ms
300
+ ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (3 tests) 279ms
300
301
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
301
302
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
302
303
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:121:27)
@@ -304,12 +305,12 @@ This ensures that you're testing the behavior the user would see in the browser.
304
305
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
305
306
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
306
307
 
307
- ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (1 test) 13ms
308
- ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 290ms
309
- ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (3 tests) 349ms
310
- ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 4ms
311
- ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 5ms
312
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 29ms
308
+ ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 3ms
309
+ ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (1 test) 9ms
310
+ ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 2ms
311
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 28ms
312
+ ✓  node  test/server/password-protection-service.test.ts (22 tests) 34ms
313
+ ✓  node  test/utils/match-url.test.ts (10 tests) 9ms
313
314
  stderr | test/sdk/account/refreshToken.browser.test.ts
314
315
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
315
316
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:121:27)
@@ -317,12 +318,10 @@ This ensures that you're testing the behavior the user would see in the browser.
317
318
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
318
319
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
319
320
 
320
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 34ms
321
321
  ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 5ms
322
- ✓  node  test/utils/match-url.test.ts (10 tests) 12ms
323
- ✓  node  test/pages/api/unlock.test.ts (15 tests) 309ms
324
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 16ms
325
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 11ms
322
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 12ms
323
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 8ms
324
+ ✓  node  test/pages/api/unlock.test.ts (15 tests) 186ms
326
325
  stderr | test/components/search/SearchInputComponent.test.tsx
327
326
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
328
327
 
@@ -386,23 +385,23 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
386
385
  at Suspense
387
386
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
388
387
 
389
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 81ms
390
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 16ms
391
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 44ms
392
- ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 11ms
393
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 29ms
388
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 85ms
389
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 14ms
390
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 55ms
391
+ ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 7ms
392
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 32ms
394
393
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
395
394
  Set password request failed: Bad Request
396
395
 
397
- ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 45ms
398
- ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 443ms
399
- ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 25ms
400
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 5ms
396
+ ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 46ms
397
+ ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 441ms
398
+ ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 29ms
399
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 6ms
401
400
  ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 5ms
402
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 30ms
403
- ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 854ms
404
- ✓ navigates with the search term on blur  369ms
405
- ✓ navigates without a label param when the search is cleared  361ms
401
+ ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 856ms
402
+ ✓ navigates with the search term on blur  363ms
403
+ ✓ navigates without a label param when the search is cleared  359ms
404
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 40ms
406
405
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
407
406
  Graphql execution returned with error: [
408
407
  {
@@ -449,49 +448,47 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
449
448
  { message: 'bad', status: 400, type: 'BadRequestError' }
450
449
  ]
451
450
 
452
- ✓  node  test/pages/api/graphql.test.ts (10 tests) 29ms
453
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 61ms
454
- ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 41ms
455
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 161ms
456
- ✓  node  test/proxy.localization.test.ts (5 tests) 43ms
457
- ✓  node  test/server/index.test.ts (7 tests) 1015ms
458
- ✓ should return a valid merged GraphQL schema  319ms
459
- ✓ should handle options and execute  431ms
460
- ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (10 tests) 14ms
461
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 44ms
462
- ✓  node  test/proxy.test.ts (4 tests) 20ms
463
- ✓  node  test/server/webops-api.test.ts (9 tests) 21ms
464
- ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 108ms
451
+ ✓  node  test/pages/api/graphql.test.ts (10 tests) 24ms
452
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 52ms
453
+ ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 158ms
454
+ ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 54ms
455
+ ✓  node  test/proxy.localization.test.ts (5 tests) 41ms
456
+ ✓  node  test/server/index.test.ts (7 tests) 802ms
457
+ ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (10 tests) 8ms
458
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 48ms
459
+ ✓  node  test/proxy.test.ts (4 tests) 23ms
460
+ ✓  node  test/server/webops-api.test.ts (9 tests) 25ms
461
+ ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 88ms
465
462
  ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 42ms
466
- ✓  node  test/server/content/service.test.ts (5 tests) 6ms
467
- ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 8ms
468
- ✓  node  test/server/cms/global.test.ts (3 tests) 4ms
469
- ✓  node  test/sdk/localization/store-url.test.ts (1 test) 5ms
470
- ✓  node  test/sdk/analytics/hasEnabledRecommendationShelf.test.ts (6 tests) 5ms
471
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 6ms
472
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 33ms
473
- ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 140ms
474
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 6ms
475
- ✓  node  test/pages/api/preview.test.ts (2 tests) 11ms
463
+ ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 6ms
464
+ ✓  node  test/server/cms/global.test.ts (3 tests) 8ms
465
+ ✓  node  test/server/content/service.test.ts (5 tests) 5ms
466
+ ✓  node  test/sdk/localization/store-url.test.ts (1 test) 4ms
467
+ ✓  node  test/sdk/analytics/hasEnabledRecommendationShelf.test.ts (6 tests) 4ms
468
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 7ms
469
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 32ms
470
+ ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 113ms
471
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 5ms
472
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 10ms
476
473
  ✓  node  test/components/search/SearchInput.test.ts (6 tests) 8ms
477
474
  ✓  node  test/components/RecommendationShelf/vrn.test.ts (5 tests) 6ms
478
- ✓  node  test/server/cms/index.test.ts (2 tests) 5ms
479
- ✓  node  test/utils/retry.test.ts (5 tests) 15ms
480
- ✓  node  test/components/account/Layout.test.tsx (4 tests) 42ms
481
- ✓  node  test/components/RecommendationShelf/useRecommendationUserId.test.ts (4 tests) 195ms
482
- ✓  node  test/utils/unlockResponse.test.ts (11 tests) 7ms
475
+ ✓  node  test/server/cms/index.test.ts (2 tests) 11ms
476
+ ✓  node  test/utils/retry.test.ts (5 tests) 11ms
477
+ ✓  node  test/components/RecommendationShelf/useRecommendationUserId.test.ts (4 tests) 184ms
478
+ ✓  node  test/components/account/Layout.test.tsx (4 tests) 56ms
479
+ ✓  node  test/utils/unlockResponse.test.ts (11 tests) 6ms
483
480
  ✓  node  test/server/cms/myAccountDefaultSections.test.ts (5 tests) 5ms
484
- ✓  node  test/components/RecommendationShelf/useRecommendations.test.ts (2 tests) 5ms
485
- ✓  node  test/utils/isLocalHost.test.ts (7 tests) 5ms
486
- ✓  node  test/utils/userOrderStatus.test.ts (3 tests) 5ms
487
- ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 38ms
488
- ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 3ms
489
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 42ms
490
- ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 12ms
481
+ ✓  node  test/components/RecommendationShelf/useRecommendations.test.ts (2 tests) 4ms
482
+ ✓  node  test/utils/isLocalHost.test.ts (7 tests) 4ms
483
+ ✓  node  test/utils/userOrderStatus.test.ts (3 tests) 4ms
484
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 51ms
485
+ ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 4ms
486
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 36ms
487
+ ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 11ms
491
488
  ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 26ms
492
489
 
493
490
   Test Files  73 passed (73)
494
491
   Tests  570 passed (570)
495
-  Start at  15:41:47
496
-  Duration  38.79s (transform 9.13s, setup 0ms, collect 32.09s, tests 12.43s, environment 50.66s, prepare 1.37s)
492
+  Start at  15:55:03
493
+  Duration  38.20s (transform 10.95s, setup 0ms, collect 32.77s, tests 10.85s, environment 50.70s, prepare 1.23s)
497
494
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.5.1-dev.2](https://github.com/vtex/faststore/compare/v4.5.1-dev.1...v4.5.1-dev.2) (2026-08-04)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
6
10
  ## [4.5.1-dev.1](https://github.com/vtex/faststore/compare/v4.5.1-dev.0...v4.5.1-dev.1) (2026-08-04)
7
11
 
8
12
  **Note:** Version bump only for package @faststore/core
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "4.5.1-dev.1",
3
+ "version": "4.5.1-dev.2",
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.5.1-dev.1",
75
- "@faststore/diagnostics": "4.5.1-dev.1",
76
- "@faststore/sdk": "4.5.1-dev.1",
77
- "@faststore/ui": "4.5.1-dev.1",
78
- "@faststore/lighthouse": "4.5.1-dev.1"
74
+ "@faststore/api": "4.5.1-dev.2",
75
+ "@faststore/lighthouse": "4.5.1-dev.2",
76
+ "@faststore/diagnostics": "4.5.1-dev.2",
77
+ "@faststore/sdk": "4.5.1-dev.2",
78
+ "@faststore/ui": "4.5.1-dev.2"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@cypress/code-coverage": "^3.12.1",