@faststore/core 2.2.74 → 2.2.76

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 (41) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  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/next-server.js.nft.json +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-server.js.nft.json +1 -1
  12. package/.next/prerender-manifest.json +1 -1
  13. package/.next/routes-manifest.json +1 -1
  14. package/.next/server/middleware-build-manifest.js +1 -1
  15. package/.next/server/pages/404.js.nft.json +1 -1
  16. package/.next/server/pages/500.js.nft.json +1 -1
  17. package/.next/server/pages/[...slug].js +1 -8
  18. package/.next/server/pages/[...slug].js.nft.json +1 -1
  19. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  20. package/.next/server/pages/_app.js.nft.json +1 -1
  21. package/.next/server/pages/_error.js.nft.json +1 -1
  22. package/.next/server/pages/account.js.nft.json +1 -1
  23. package/.next/server/pages/checkout.js.nft.json +1 -1
  24. package/.next/server/pages/en-US/404.html +2 -2
  25. package/.next/server/pages/en-US/500.html +2 -2
  26. package/.next/server/pages/en-US/account.html +2 -2
  27. package/.next/server/pages/en-US/checkout.html +2 -2
  28. package/.next/server/pages/en-US/login.html +2 -2
  29. package/.next/server/pages/en-US/s.html +2 -2
  30. package/.next/server/pages/en-US.html +2 -2
  31. package/.next/server/pages/index.js.nft.json +1 -1
  32. package/.next/server/pages/login.js.nft.json +1 -1
  33. package/.next/server/pages/s.js.nft.json +1 -1
  34. package/.next/static/chunks/pages/{[...slug]-90d4a89405e3a626.js → [...slug]-c4abcc133f85d9d0.js} +1 -1
  35. package/.next/static/{nuOb65PjRuGYkide48nIC → ipVXbu_iFY19W2zGgpgEo}/_buildManifest.js +1 -1
  36. package/.next/trace +82 -82
  37. package/.turbo/turbo-build.log +2 -2
  38. package/.turbo/turbo-test.log +8 -8
  39. package/package.json +2 -2
  40. package/src/components/templates/ProductListingPage/ProductListingPage.tsx +1 -5
  41. /package/.next/static/{nuOb65PjRuGYkide48nIC → ipVXbu_iFY19W2zGgpgEo}/_ssgManifest.js +0 -0
@@ -1,7 +1,7 @@
1
1
  $ yarn partytown & yarn generate && next build
2
+ $ faststore generate-graphql -c
2
3
  $ partytown copylib ./public/~partytown
3
4
  Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
4
- $ faststore generate-graphql -c
5
5
  success - GraphQL schema, types, and optimizations successfully generated 🎉
6
6
  warn - You have enabled experimental feature (scrollRestoration) in next.config.js.
7
7
  warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
@@ -41,7 +41,7 @@ Route (pages) Size First Load JS
41
41
  ┌ ● / 3.38 kB 129 kB
42
42
  ├ └ css/7e897ebb936fac09.css 6.55 kB
43
43
  ├ /_app 0 B 83.8 kB
44
- ├ ● /[...slug] 4.5 kB 141 kB
44
+ ├ ● /[...slug] 4.45 kB 141 kB
45
45
  ├ └ css/510895065f32ed2f.css 7 kB
46
46
  ├ ● /[slug]/p 10.9 kB 136 kB
47
47
  ├ └ css/def381bf7c69fa2e.css 11.3 kB
@@ -1,23 +1,23 @@
1
1
  $ jest
2
- PASS test/server/index.test.ts (21.557 s)
2
+ PASS test/server/index.test.ts (21.055 s)
3
3
  FastStore GraphQL Layer
4
4
  @faststore/api
5
- ✓ should return a valid GraphQL schema (6 ms)
5
+ ✓ should return a valid GraphQL schema (9 ms)
6
6
  ✓ should return a valid GraphQL schema contain all expected types (11 ms)
7
7
  ✓ should return a valid GraphQL schema contain all expected queries (1 ms)
8
8
  ✓ should return a valid GraphQL schema contain all expected mutations
9
9
  VTEX API Extension
10
- ✓ getTypeDefsFromFolder function should return an Array (6 ms)
10
+ ✓ getTypeDefsFromFolder function should return an Array (10 ms)
11
11
  Third Party API Extension
12
- ✓ getTypeDefsFromFolder function should return an Array (4 ms)
12
+ ✓ getTypeDefsFromFolder function should return an Array (7 ms)
13
13
  Final Schema after merging
14
- ✓ should return a valid merged GraphQL schema (25 ms)
14
+ ✓ should return a valid merged GraphQL schema (40 ms)
15
15
  Envelop
16
- ✓ should exist with its plugins (25 ms)
17
- ✓ should handle options and execute (275 ms)
16
+ ✓ should exist with its plugins (39 ms)
17
+ ✓ should handle options and execute (267 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: 21.709 s
22
+ Time: 21.135 s
23
23
  Ran all test suites.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "2.2.74",
3
+ "version": "2.2.76",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -123,5 +123,5 @@
123
123
  "node": "18.19.0",
124
124
  "yarn": "1.19.1"
125
125
  },
126
- "gitHead": "ebad430129b52947acad123acc1d308d54ac0b3b"
126
+ "gitHead": "bbdd92cdae213ebba5700fff8df884b73ebfbf60"
127
127
  }
@@ -66,14 +66,10 @@ export default function ProductListingPage({
66
66
  sort: settings?.productGallery?.sortBySelection as SearchState['sort'],
67
67
  })
68
68
 
69
- const { page, sort } = searchParams
70
69
  const title = collection?.seo.title ?? storeConfig.seo.title
71
70
  const description = collection?.seo.description ?? storeConfig.seo.title
72
- const pageQuery = page !== 0 ? `?page=${page}` : ''
73
- const separator = pageQuery !== '' ? '&' : '?'
74
- const sortQuery = !!sort ? `${separator}sort=${sort}` : ''
75
71
  const [pathname] = router.asPath.split('?')
76
- const canonical = `${storeConfig.storeUrl}${pathname}${pageQuery}${sortQuery}`
72
+ const canonical = `${storeConfig.storeUrl}${pathname}`
77
73
  const itemsPerPage = settings?.productGallery?.itemsPerPage ?? ITEMS_PER_PAGE
78
74
 
79
75
  return (