@faststore/core 3.0.53 → 3.0.54

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.
Files changed (38) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +4 -4
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/eslint/.cache_1gneedd +1 -1
  6. package/.next/cache/fetch-cache/50912854cb7c781522a6ff8792d714e549515fcbbbfd660761961b06afe01c07 +1 -1
  7. package/.next/cache/webpack/client-production/0.pack +0 -0
  8. package/.next/cache/webpack/client-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/next-minimal-server.js.nft.json +1 -1
  12. package/.next/next-server.js.nft.json +1 -1
  13. package/.next/prerender-manifest.js +1 -1
  14. package/.next/prerender-manifest.json +1 -1
  15. package/.next/routes-manifest.json +1 -1
  16. package/.next/server/app/_not-found.html +1 -1
  17. package/.next/server/app/_not-found.rsc +1 -1
  18. package/.next/server/app/fs-next-update.html +1 -1
  19. package/.next/server/app/fs-next-update.rsc +1 -1
  20. package/.next/server/chunks/513.js +1 -1
  21. package/.next/server/middleware-build-manifest.js +1 -1
  22. package/.next/server/pages/404.html +1 -1
  23. package/.next/server/pages/en-US/404.html +2 -2
  24. package/.next/server/pages/en-US/500.html +2 -2
  25. package/.next/server/pages/en-US/account.html +2 -2
  26. package/.next/server/pages/en-US/checkout.html +2 -2
  27. package/.next/server/pages/en-US/login.html +2 -2
  28. package/.next/server/pages/en-US/s.html +2 -2
  29. package/.next/server/pages/en-US.html +2 -2
  30. package/.next/server/pages-manifest.json +1 -1
  31. package/.next/static/{HJeKQVDu72pcragJS7Wv_ → BNKlzM8EUdVejvFjscl_o}/_buildManifest.js +1 -1
  32. package/.next/static/chunks/{913-024e149266ee79b9.js → 913-f29dc656b7bffacd.js} +1 -1
  33. package/.next/trace +132 -132
  34. package/.turbo/turbo-build.log +3 -3
  35. package/.turbo/turbo-test.log +10 -10
  36. package/package.json +9 -9
  37. package/src/sdk/search/state.ts +6 -1
  38. /package/.next/static/{HJeKQVDu72pcragJS7Wv_ → BNKlzM8EUdVejvFjscl_o}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  $ yarn partytown & yarn generate && next build
2
- $ partytown copylib ./public/~partytown
3
2
  $ faststore generate-graphql -c
3
+ $ partytown copylib ./public/~partytown
4
4
  Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
5
5
  success - GraphQL schema, types, and optimizations successfully generated 🎉
6
6
  ⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
@@ -32,10 +32,10 @@ warn - CustomIconsAlert not found. Add a new component for this section or remov
32
32
  warn - AlertWithImage not found. Add a new component for this section or remove it from the CMS
33
33
  warn - CustomIconsAlert not found. Add a new component for this section or remove it from the CMS
34
34
 
35
35
  Generating static pages (2/9)
36
-
37
36
  Generating static pages (4/9)
38
- Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
39
37
  warn - AlertWithImage not found. Add a new component for this section or remove it from the CMS
40
38
  warn - CustomIconsAlert not found. Add a new component for this section or remove it from the CMS
39
+ Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
40
+
41
41
  Generating static pages (4/9)
42
42
  warn - AlertWithImage not found. Add a new component for this section or remove it from the CMS
43
43
  warn - CustomIconsAlert not found. Add a new component for this section or remove it from the CMS
44
44
  warn - AlertWithImage not found. Add a new component for this section or remove it from the CMS
@@ -1,23 +1,23 @@
1
1
  $ jest
2
- PASS test/server/index.test.ts (26.319 s)
2
+ PASS test/server/index.test.ts (26.329 s)
3
3
  FastStore GraphQL Layer
4
4
  @faststore/api
5
- ✓ should return a valid GraphQL schema (11 ms)
6
- ✓ should return a valid GraphQL schema contain all expected types (12 ms)
7
- ✓ should return a valid GraphQL schema contain all expected queries (2 ms)
8
- ✓ should return a valid GraphQL schema contain all expected mutations
5
+ ✓ should return a valid GraphQL schema (9 ms)
6
+ ✓ should return a valid GraphQL schema contain all expected types (6 ms)
7
+ ✓ should return a valid GraphQL schema contain all expected queries (1 ms)
8
+ ✓ should return a valid GraphQL schema contain all expected mutations (1 ms)
9
9
  VTEX API Extension
10
- ✓ getTypeDefsFromFolder function should return an Array (13 ms)
11
- Third Party API Extension
12
10
  ✓ getTypeDefsFromFolder function should return an Array (7 ms)
11
+ Third Party API Extension
12
+ ✓ getTypeDefsFromFolder function should return an Array (5 ms)
13
13
  Final Schema after merging
14
14
  ✓ should return a valid merged GraphQL schema (45 ms)
15
15
  Envelop
16
- ✓ should exist with its plugins (56 ms)
17
- ✓ should handle options and execute (325 ms)
16
+ ✓ should exist with its plugins (50 ms)
17
+ ✓ should handle options and execute (193 ms)
18
18
 
19
19
  Test Suites: 1 passed, 1 total
20
20
  Tests: 9 passed, 9 total
21
21
  Snapshots: 0 total
22
- Time: 26.468 s
22
+ Time: 26.4 s
23
23
  Ran all test suites.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.0.53",
3
+ "version": "3.0.54",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -39,11 +39,11 @@
39
39
  "@envelop/graphql-jit": "^1.1.1",
40
40
  "@envelop/parser-cache": "^2.2.0",
41
41
  "@envelop/validation-cache": "^2.2.0",
42
- "@faststore/api": "^3.0.51",
43
- "@faststore/components": "^3.0.47",
44
- "@faststore/graphql-utils": "^3.0.47",
45
- "@faststore/sdk": "^3.0.47",
46
- "@faststore/ui": "^3.0.47",
42
+ "@faststore/api": "^3.0.54",
43
+ "@faststore/components": "^3.0.54",
44
+ "@faststore/graphql-utils": "^3.0.54",
45
+ "@faststore/sdk": "^3.0.54",
46
+ "@faststore/ui": "^3.0.54",
47
47
  "@graphql-codegen/cli": "^3.3.1",
48
48
  "@graphql-codegen/client-preset": "^4.1.0",
49
49
  "@graphql-codegen/typescript": "^3.0.4",
@@ -82,8 +82,8 @@
82
82
  "devDependencies": {
83
83
  "@cypress/code-coverage": "^3.12.1",
84
84
  "@envelop/testing": "^6.0.0",
85
- "@faststore/cli": "^3.0.47",
86
- "@faststore/eslint-config": "^3.0.47",
85
+ "@faststore/cli": "^3.0.54",
86
+ "@faststore/eslint-config": "^3.0.54",
87
87
  "@faststore/lighthouse": "^1.12.32",
88
88
  "@lhci/cli": "^0.9.0",
89
89
  "@testing-library/cypress": "^10.0.1",
@@ -124,5 +124,5 @@
124
124
  "node": "18.19.0",
125
125
  "yarn": "1.19.1"
126
126
  },
127
- "gitHead": "83ceac1d47b4c3b2151ea6b9ef47c92dd84b9480"
127
+ "gitHead": "21bd9cf63b6205f42b50bb744b67722ff794d256"
128
128
  }
@@ -5,7 +5,12 @@ export const useApplySearchState = () => {
5
5
  const router = useRouter()
6
6
 
7
7
  return useCallback(
8
- (url: URL) => router.push(`${url.pathname}${url.search}`),
8
+ (url: URL) => {
9
+ const newUrl = `${url.pathname}${url.search}`
10
+ return url.searchParams.has('fuzzy') && url.searchParams.has('operator')
11
+ ? router.replace(newUrl)
12
+ : router.push(newUrl)
13
+ },
9
14
  [router]
10
15
  )
11
16
  }