@faststore/core 4.5.0-dev.1 → 4.5.0-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.0-dev.0 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.5.0-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.0-dev.0 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.5.0-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.0-dev.0 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.5.0-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.0-dev.0 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.5.0-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) 44ms
8
+ ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 69ms
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=32c15f8888ca34f223def7972b7f19090808435a
11
11
   at node:internal/deps/undici/undici:16416:13
@@ -35,10 +35,10 @@
35
35
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
36
36
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
37
37
 
38
- ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 254ms
39
- ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (13 tests) 2294ms
40
- ✓ shows an error state when the list fails to load  682ms
41
- ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  325ms
38
+ ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 262ms
39
+ ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (13 tests) 2295ms
40
+ ✓ shows an error state when the list fails to load  590ms
41
+ ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  317ms
42
42
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
43
43
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
44
44
 
@@ -268,14 +268,14 @@ act(() => {
268
268
  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
269
269
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
270
270
 
271
- ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 1479ms
272
- ✓ renders the password protection form  659ms
273
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 19ms
274
- ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 90ms
275
- ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (5 tests) 2251ms
276
- ✓ renders the menu view with contract details and manage footer  1053ms
277
- ✓ opens the contract switcher and returns to the menu on back  529ms
278
- ✓ resets to the menu when the drawer closes  349ms
271
+ ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 1629ms
272
+ ✓ renders the password protection form  896ms
273
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 38ms
274
+ ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 82ms
275
+ ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (5 tests) 1855ms
276
+ ✓ renders the menu view with contract details and manage footer  959ms
277
+ ✓ opens the contract switcher and returns to the menu on back  369ms
278
+ ✓ resets to the menu when the drawer closes  318ms
279
279
  stderr | test/sdk/localization/store-url.browser.test.ts
280
280
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
281
281
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:119:27)
@@ -283,9 +283,9 @@ This ensures that you're testing the behavior the user would see in the browser.
283
283
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
284
284
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
285
285
 
286
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 14ms
287
- ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 132ms
288
- ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (4 tests) 155ms
286
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 11ms
287
+ ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 112ms
288
+ ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (4 tests) 101ms
289
289
  stderr | test/components/account/doLogout.browser.test.ts
290
290
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
291
291
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:119:27)
@@ -293,7 +293,9 @@ This ensures that you're testing the behavior the user would see in the browser.
293
293
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
294
294
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
295
295
 
296
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 61ms
296
+ ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 42ms
297
+ ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 304ms
298
+ ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (3 tests) 280ms
297
299
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
298
300
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
299
301
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:119:27)
@@ -301,10 +303,9 @@ This ensures that you're testing the behavior the user would see in the browser.
301
303
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
302
304
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
303
305
 
304
- ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 285ms
305
- ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (3 tests) 317ms
306
- ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (1 test) 9ms
307
- ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 4ms
306
+ ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (1 test) 7ms
307
+ ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 5ms
308
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 31ms
308
309
  ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 3ms
309
310
  stderr | test/sdk/account/refreshToken.browser.test.ts
310
311
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
@@ -313,12 +314,11 @@ This ensures that you're testing the behavior the user would see in the browser.
313
314
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
314
315
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
315
316
 
316
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 31ms
317
- ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 4ms
318
317
  ✓  node  test/utils/match-url.test.ts (10 tests) 8ms
319
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 38ms
320
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 10ms
321
- ✓  node  test/pages/api/unlock.test.ts (15 tests) 175ms
318
+ ✓  node  test/server/password-protection-service.test.ts (22 tests) 29ms
319
+ ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 6ms
320
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 9ms
321
+ ✓  node  test/pages/api/unlock.test.ts (15 tests) 202ms
322
322
  stderr | test/components/search/SearchInputComponent.test.tsx
323
323
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
324
324
 
@@ -382,23 +382,23 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
382
382
  at Suspense
383
383
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
384
384
 
385
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 91ms
386
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 12ms
387
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 17ms
385
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 85ms
386
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 16ms
387
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 11ms
388
388
  ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 58ms
389
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 21ms
390
- ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 316ms
389
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 28ms
390
+ ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 367ms
391
391
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
392
392
  Set password request failed: Bad Request
393
393
 
394
- ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 30ms
395
- ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 24ms
396
- ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 835ms
397
- ✓ navigates with the search term on blur  359ms
398
- ✓ navigates without a label param when the search is cleared  363ms
399
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 7ms
400
- ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 6ms
401
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 30ms
394
+ ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 29ms
395
+ ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 27ms
396
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 5ms
397
+ ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 851ms
398
+ ✓ navigates with the search term on blur  360ms
399
+ ✓ navigates without a label param when the search is cleared  364ms
400
+ ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 5ms
401
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 45ms
402
402
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
403
403
  Graphql execution returned with error: [
404
404
  {
@@ -445,46 +445,46 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
445
445
  { message: 'bad', status: 400, type: 'BadRequestError' }
446
446
  ]
447
447
 
448
- ✓  node  test/pages/api/graphql.test.ts (10 tests) 25ms
449
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 36ms
450
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 50ms
451
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 173ms
452
- ✓  node  test/proxy.localization.test.ts (5 tests) 76ms
453
- ✓  node  test/server/index.test.ts (7 tests) 1060ms
454
- ✓ should handle options and execute  540ms
455
- ✓  node  test/proxy.test.ts (4 tests) 20ms
456
- ✓  node  test/server/webops-api.test.ts (9 tests) 18ms
457
- ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 98ms
458
- ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 32ms
459
- ✓  node  test/server/cms/global.test.ts (3 tests) 5ms
460
- ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 8ms
461
- ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (8 tests) 14ms
462
- ✓  node  test/server/content/service.test.ts (5 tests) 7ms
448
+ ✓  node  test/pages/api/graphql.test.ts (10 tests) 29ms
449
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 52ms
450
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 47ms
451
+ ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 188ms
452
+ ✓  node  test/proxy.localization.test.ts (5 tests) 69ms
453
+ ✓  node  test/server/index.test.ts (7 tests) 956ms
454
+ ✓ should handle options and execute  466ms
455
+ ✓  node  test/proxy.test.ts (4 tests) 52ms
456
+ ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 102ms
457
+ ✓  node  test/server/webops-api.test.ts (9 tests) 26ms
458
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 49ms
459
+ ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 7ms
460
+ ✓  node  test/server/cms/global.test.ts (3 tests) 6ms
461
+ ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (8 tests) 11ms
462
+ ✓  node  test/server/content/service.test.ts (5 tests) 4ms
463
463
  ✓  node  test/sdk/localization/store-url.test.ts (1 test) 4ms
464
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 21ms
465
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 5ms
466
- ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 143ms
464
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 35ms
465
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 7ms
466
+ ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 132ms
467
467
  ✓  node  test/pages/api/preview.test.ts (2 tests) 10ms
468
- ✓  node  test/components/search/SearchInput.test.ts (6 tests) 7ms
469
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 5ms
470
- ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (3 tests) 31ms
468
+ ✓  node  test/components/search/SearchInput.test.ts (6 tests) 9ms
469
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 4ms
470
+ ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (3 tests) 24ms
471
471
  ✓  node  test/components/RecommendationShelf/vrn.test.ts (5 tests) 6ms
472
- ✓  node  test/components/RecommendationShelf/useRecommendationUserId.test.ts (4 tests) 193ms
473
- ✓  node  test/components/account/Layout.test.tsx (4 tests) 83ms
472
+ ✓  node  test/components/RecommendationShelf/useRecommendationUserId.test.ts (4 tests) 188ms
474
473
  ✓  node  test/server/cms/index.test.ts (2 tests) 6ms
474
+ ✓  node  test/components/account/Layout.test.tsx (4 tests) 58ms
475
475
  ✓  node  test/utils/retry.test.ts (5 tests) 14ms
476
476
  ✓  node  test/utils/unlockResponse.test.ts (11 tests) 6ms
477
- ✓  node  test/components/RecommendationShelf/useRecommendations.test.ts (2 tests) 5ms
477
+ ✓  node  test/components/RecommendationShelf/useRecommendations.test.ts (2 tests) 4ms
478
478
  ✓  node  test/utils/isLocalHost.test.ts (7 tests) 5ms
479
- ✓  node  test/utils/userOrderStatus.test.ts (3 tests) 4ms
480
- ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 54ms
481
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 43ms
479
+ ✓  node  test/utils/userOrderStatus.test.ts (3 tests) 5ms
480
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 50ms
482
481
  ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 4ms
483
- ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 20ms
482
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 45ms
483
+ ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 11ms
484
484
  ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 25ms
485
485
 
486
486
   Test Files  70 passed (70)
487
487
   Tests  539 passed (539)
488
-  Start at  21:43:08
489
-  Duration  36.60s (transform 8.50s, setup 0ms, collect 29.72s, tests 11.44s, environment 48.51s, prepare 1.27s)
488
+  Start at  17:59:07
489
+  Duration  37.30s (transform 8.94s, setup 0ms, collect 30.71s, tests 11.16s, environment 50.12s, prepare 1.24s)
490
490
 
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.0-dev.2](https://github.com/vtex/faststore/compare/v4.5.0-dev.1...v4.5.0-dev.2) (2026-07-20)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
6
10
  # [4.5.0-dev.1](https://github.com/vtex/faststore/compare/v4.5.0-dev.0...v4.5.0-dev.1) (2026-07-14)
7
11
 
8
12
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "4.5.0-dev.1",
3
+ "version": "4.5.0-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.0-dev.1",
75
- "@faststore/sdk": "4.5.0-dev.1",
76
- "@faststore/diagnostics": "4.5.0-dev.1",
77
- "@faststore/ui": "4.5.0-dev.1",
78
- "@faststore/lighthouse": "4.5.0-dev.1"
74
+ "@faststore/api": "4.5.0-dev.2",
75
+ "@faststore/lighthouse": "4.5.0-dev.2",
76
+ "@faststore/diagnostics": "4.5.0-dev.2",
77
+ "@faststore/sdk": "4.5.0-dev.2",
78
+ "@faststore/ui": "4.5.0-dev.2"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@cypress/code-coverage": "^3.12.1",