@faststore/core 4.5.0-dev.7 → 4.5.1-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.5.0-dev.6 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.5.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.5.0-dev.6 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.5.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 /home/runner/work/faststore/faststore/packages/core/@generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.5.0-dev.6 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.5.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,11 +1,11 @@
1
1
 
2
- > @faststore/core@4.5.0-dev.6 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.5.0 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) 46ms
8
+ ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 48ms
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,9 +38,9 @@ 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) 237ms
42
- ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (13 tests) 1804ms
43
- ✓ shows an error state when the list fails to load  571ms
41
+ ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 241ms
42
+ ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (13 tests) 2157ms
43
+ ✓ shows an error state when the list fails to load  632ms
44
44
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
45
45
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
46
46
 
@@ -270,12 +270,14 @@ act(() => {
270
270
  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
271
271
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
272
272
 
273
- ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 1941ms
274
- ✓ renders the password protection form  822ms
275
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 25ms
276
- ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 59ms
277
- ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (5 tests) 1651ms
278
- ✓ renders the menu view with contract details and manage footer  974ms
273
+ ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 1570ms
274
+ ✓ renders the password protection form  554ms
275
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 32ms
276
+ ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 73ms
277
+ ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (5 tests) 1777ms
278
+ ✓ renders the menu view with contract details and manage footer  857ms
279
+ ✓ opens the contract switcher and returns to the menu on back  301ms
280
+ ✓ resets to the menu when the drawer closes  319ms
279
281
  stderr | test/sdk/localization/store-url.browser.test.ts
280
282
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
281
283
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:121:27)
@@ -283,9 +285,9 @@ This ensures that you're testing the behavior the user would see in the browser.
283
285
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
284
286
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
285
287
 
286
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 36ms
287
- ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 91ms
288
- ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (4 tests) 53ms
288
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 11ms
289
+ ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 120ms
290
+ ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (4 tests) 87ms
289
291
  stderr | test/components/account/doLogout.browser.test.ts
290
292
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
291
293
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:121:27)
@@ -293,8 +295,10 @@ This ensures that you're testing the behavior the user would see in the browser.
293
295
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
294
296
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
295
297
 
296
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 24ms
297
- ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 249ms
298
+ ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 27ms
299
+ ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 326ms
300
+ ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (3 tests) 262ms
301
+ ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 4ms
298
302
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
299
303
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
300
304
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:121:27)
@@ -302,12 +306,11 @@ This ensures that you're testing the behavior the user would see in the browser.
302
306
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
303
307
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
304
308
 
305
- ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (3 tests) 248ms
306
- ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (1 test) 8ms
307
- ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 4ms
308
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 23ms
309
- ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 3ms
310
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 30ms
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) 31ms
312
+ ✓  node  test/server/password-protection-service.test.ts (22 tests) 37ms
313
+ ✓  node  test/utils/match-url.test.ts (10 tests) 8ms
311
314
  stderr | test/sdk/account/refreshToken.browser.test.ts
312
315
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
313
316
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:121:27)
@@ -316,10 +319,9 @@ This ensures that you're testing the behavior the user would see in the browser.
316
319
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
317
320
 
318
321
  ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 6ms
319
- ✓  node  test/utils/match-url.test.ts (10 tests) 10ms
320
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 10ms
321
- ✓  node  test/pages/api/unlock.test.ts (15 tests) 201ms
322
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 6ms
322
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 15ms
323
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 7ms
324
+ ✓  node  test/pages/api/unlock.test.ts (15 tests) 210ms
323
325
  stderr | test/components/search/SearchInputComponent.test.tsx
324
326
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
325
327
 
@@ -383,23 +385,23 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
383
385
  at Suspense
384
386
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
385
387
 
386
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 73ms
387
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 13ms
388
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 51ms
389
- ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 9ms
390
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 27ms
388
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 83ms
389
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 15ms
390
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 60ms
391
+ ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 10ms
392
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 28ms
391
393
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
392
394
  Set password request failed: Bad Request
393
395
 
394
- ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 48ms
395
- ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 354ms
396
- ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 32ms
397
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 4ms
398
- ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 4ms
399
- ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 833ms
400
- ✓ navigates with the search term on blur  363ms
401
- ✓ navigates without a label param when the search is cleared  356ms
402
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 43ms
396
+ ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 58ms
397
+ ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 433ms
398
+ ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 25ms
399
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 5ms
400
+ ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 5ms
401
+ ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 855ms
402
+ ✓ navigates with the search term on blur  371ms
403
+ ✓ navigates without a label param when the search is cleared  358ms
404
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 38ms
403
405
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
404
406
  Graphql execution returned with error: [
405
407
  {
@@ -446,48 +448,49 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
446
448
  { message: 'bad', status: 400, type: 'BadRequestError' }
447
449
  ]
448
450
 
449
- ✓  node  test/pages/api/graphql.test.ts (10 tests) 24ms
450
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 52ms
451
- ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 58ms
452
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 145ms
453
- ✓  node  test/proxy.localization.test.ts (5 tests) 73ms
454
- ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (10 tests) 5ms
455
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 37ms
456
- ✓  node  test/server/index.test.ts (7 tests) 1241ms
457
- ✓ should handle options and execute  743ms
458
- ✓  node  test/proxy.test.ts (4 tests) 25ms
459
- ✓  node  test/server/webops-api.test.ts (9 tests) 22ms
460
- ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 72ms
451
+ ✓  node  test/pages/api/graphql.test.ts (10 tests) 29ms
452
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 45ms
453
+ ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 64ms
454
+ ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 166ms
455
+ ✓  node  test/proxy.localization.test.ts (5 tests) 41ms
456
+ ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (10 tests) 6ms
457
+ ✓  node  test/server/index.test.ts (7 tests) 1049ms
458
+ ✓ should return a valid merged GraphQL schema  341ms
459
+ ✓ should handle options and execute  466ms
460
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 45ms
461
+ ✓  node  test/proxy.test.ts (4 tests) 38ms
462
+ ✓  node  test/server/webops-api.test.ts (9 tests) 18ms
463
+ ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 93ms
464
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 41ms
461
465
  ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 7ms
462
- ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 37ms
463
- ✓  node  test/server/cms/global.test.ts (3 tests) 3ms
466
+ ✓  node  test/server/cms/global.test.ts (3 tests) 7ms
464
467
  ✓  node  test/server/content/service.test.ts (5 tests) 5ms
465
468
  ✓  node  test/sdk/localization/store-url.test.ts (1 test) 4ms
466
- ✓  node  test/sdk/analytics/hasEnabledRecommendationShelf.test.ts (6 tests) 4ms
467
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 6ms
468
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 29ms
469
- ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 135ms
470
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 3ms
471
- ✓  node  test/pages/api/preview.test.ts (2 tests) 16ms
472
- ✓  node  test/components/search/SearchInput.test.ts (6 tests) 8ms
469
+ ✓  node  test/sdk/analytics/hasEnabledRecommendationShelf.test.ts (6 tests) 5ms
470
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 5ms
471
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 34ms
472
+ ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 137ms
473
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 10ms
474
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 6ms
475
+ ✓  node  test/components/search/SearchInput.test.ts (6 tests) 9ms
473
476
  ✓  node  test/components/RecommendationShelf/vrn.test.ts (5 tests) 5ms
474
- ✓  node  test/server/cms/index.test.ts (2 tests) 8ms
475
- ✓  node  test/utils/retry.test.ts (5 tests) 13ms
476
- ✓  node  test/components/account/Layout.test.tsx (4 tests) 39ms
477
- ✓  node  test/components/RecommendationShelf/useRecommendationUserId.test.ts (4 tests) 190ms
477
+ ✓  node  test/server/cms/index.test.ts (2 tests) 6ms
478
+ ✓  node  test/utils/retry.test.ts (5 tests) 15ms
479
+ ✓  node  test/components/RecommendationShelf/useRecommendationUserId.test.ts (4 tests) 181ms
480
+ ✓  node  test/components/account/Layout.test.tsx (4 tests) 46ms
481
+ ✓  node  test/server/cms/myAccountDefaultSections.test.ts (5 tests) 6ms
478
482
  ✓  node  test/utils/unlockResponse.test.ts (11 tests) 5ms
479
- ✓  node  test/server/cms/myAccountDefaultSections.test.ts (5 tests) 4ms
480
- ✓  node  test/components/RecommendationShelf/useRecommendations.test.ts (2 tests) 5ms
481
- ✓  node  test/utils/isLocalHost.test.ts (7 tests) 6ms
483
+ ✓  node  test/components/RecommendationShelf/useRecommendations.test.ts (2 tests) 4ms
484
+ ✓  node  test/utils/isLocalHost.test.ts (7 tests) 4ms
482
485
  ✓  node  test/utils/userOrderStatus.test.ts (3 tests) 4ms
483
- ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 40ms
486
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 55ms
484
487
  ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 3ms
485
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 26ms
486
- ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 13ms
487
- ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 23ms
488
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 41ms
489
+ ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 10ms
490
+ ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 25ms
488
491
 
489
492
   Test Files  73 passed (73)
490
493
   Tests  570 passed (570)
491
-  Start at  21:42:33
492
-  Duration  33.01s (transform 7.79s, setup 0ms, collect 26.92s, tests 10.65s, environment 41.89s, prepare 1.09s)
494
+  Start at  22:34:58
495
+  Duration  36.41s (transform 8.22s, setup 0ms, collect 30.47s, tests 10.94s, environment 47.75s, prepare 1.27s)
493
496
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.0](https://github.com/vtex/faststore/compare/v4.5.0...v4.5.1-dev.0) (2026-08-03)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
10
+ # [4.5.0](https://github.com/vtex/faststore/compare/v4.5.0-dev.7...v4.5.0) (2026-08-03)
11
+
12
+ **Note:** Version bump only for package @faststore/core
13
+
6
14
  # [4.5.0-dev.7](https://github.com/vtex/faststore/compare/v4.5.0-dev.6...v4.5.0-dev.7) (2026-08-03)
7
15
 
8
16
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "4.5.0-dev.7",
3
+ "version": "4.5.1-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/lighthouse": "4.5.0-dev.7",
75
- "@faststore/diagnostics": "4.5.0-dev.7",
76
- "@faststore/api": "4.5.0-dev.7",
77
- "@faststore/ui": "4.5.0-dev.7",
78
- "@faststore/sdk": "4.5.0-dev.7"
74
+ "@faststore/api": "4.5.1-dev.0",
75
+ "@faststore/lighthouse": "4.5.1-dev.0",
76
+ "@faststore/diagnostics": "4.5.1-dev.0",
77
+ "@faststore/ui": "4.5.1-dev.0",
78
+ "@faststore/sdk": "4.5.1-dev.0"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@cypress/code-coverage": "^3.12.1",