@faststore/core 3.11.4 → 3.12.1

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 (37) 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/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/next-minimal-server.js.nft.json +1 -1
  10. package/.next/next-server.js.nft.json +1 -1
  11. package/.next/prerender-manifest.js +1 -1
  12. package/.next/prerender-manifest.json +1 -1
  13. package/.next/routes-manifest.json +1 -1
  14. package/.next/server/chunks/371.js +1 -1
  15. package/.next/server/chunks/5430.js +1 -1
  16. package/.next/server/chunks/5754.js +1 -1
  17. package/.next/server/middleware-build-manifest.js +1 -1
  18. package/.next/server/pages/api/graphql.js +1 -1
  19. package/.next/server/pages/en-US/404.html +1 -1
  20. package/.next/server/pages/en-US/500.html +1 -1
  21. package/.next/server/pages/en-US/account.html +1 -1
  22. package/.next/server/pages/en-US/checkout.html +1 -1
  23. package/.next/server/pages/en-US/login.html +1 -1
  24. package/.next/server/pages/en-US/s.html +1 -1
  25. package/.next/server/pages/en-US.html +1 -1
  26. package/.next/server/pages/s.js +1 -1
  27. package/.next/static/chunks/pages/{_app-e0cf85dd2f4d858c.js → _app-cf18278fd3aa3fb4.js} +1 -1
  28. package/.next/static/chunks/pages/{s-e609aea0cbb6c9fd.js → s-f7e39acf5e07a979.js} +1 -1
  29. package/.next/static/{FO1Q-M-kedNdmpX1S3tkc → s6UxedSYV9iXHkWl4YlAS}/_buildManifest.js +1 -1
  30. package/.next/trace +102 -102
  31. package/.turbo/turbo-build.log +5 -5
  32. package/.turbo/turbo-test.log +5 -5
  33. package/CHANGELOG.md +10 -0
  34. package/discovery.config.default.js +1 -0
  35. package/package.json +3 -3
  36. package/src/pages/s.tsx +4 -2
  37. /package/.next/static/{FO1Q-M-kedNdmpX1S3tkc → s6UxedSYV9iXHkWl4YlAS}/_ssgManifest.js +0 -0
@@ -39,8 +39,8 @@ https://nextjs.org/telemetry
39
39
  Collecting page data ...
40
40
  Generating static pages (0/7) ...
41
41
 
42
42
  Generating static pages (1/7)
43
- 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.
44
43
 
45
44
  Generating static pages (3/7)
45
+ 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.
46
46
 
47
47
  Generating static pages (5/7)
48
48
 
49
49
  ✓ Generating static pages (7/7)
50
50
  Finalizing page optimization ...
@@ -64,11 +64,11 @@ Route (pages) Size First Load JS
64
64
  ├ λ /api/preview 0 B 92 kB
65
65
  ├ ● /checkout 695 B 120 kB
66
66
  ├ ● /login 1.59 kB 121 kB
67
- └ ● /s 2.92 kB 132 kB
68
- + First Load JS shared by all 95 kB
67
+ └ ● /s 2.98 kB 132 kB
68
+ + First Load JS shared by all 95.1 kB
69
69
  ├ chunks/framework-12a146e94cfcf7c4.js 45.4 kB
70
70
  ├ chunks/main-48d1188fa94dad34.js 33.1 kB
71
- ├ chunks/pages/_app-e0cf85dd2f4d858c.js 9.97 kB
71
+ ├ chunks/pages/_app-cf18278fd3aa3fb4.js 9.98 kB
72
72
  ├ chunks/webpack-ed53dd91aa26df33.js 3.57 kB
73
73
  └ css/ee0556daedda6306.css 3.07 kB
74
74
 
@@ -76,4 +76,4 @@ Route (pages) Size First Load JS
76
76
  ○ (Static) automatically rendered as static HTML (uses no initial props)
77
77
  ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
78
78
 
79
- Done in 69.01s.
79
+ Done in 79.98s.
@@ -1,12 +1,12 @@
1
1
  yarn run v1.22.22
2
2
  $ jest
3
- PASS test/utils/multipleTemplates.test.ts (33.571 s)
4
- PASS test/server/cms/index.test.ts (34.063 s)
5
- PASS test/server/index.test.ts (38.869 s)
3
+ PASS test/utils/multipleTemplates.test.ts (33.107 s)
4
+ PASS test/server/cms/index.test.ts (33.479 s)
5
+ PASS test/server/index.test.ts (37.93 s)
6
6
 
7
7
  Test Suites: 3 passed, 3 total
8
8
  Tests: 19 passed, 19 total
9
9
  Snapshots: 0 total
10
- Time: 39.982 s
10
+ Time: 39.151 s
11
11
  Ran all test suites.
12
- Done in 41.52s.
12
+ Done in 41.06s.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
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
+ ## [3.12.1](https://github.com/vtex/faststore/compare/v3.12.0...v3.12.1) (2025-01-30)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
10
+ # [3.12.0](https://github.com/vtex/faststore/compare/v3.11.4...v3.12.0) (2025-01-29)
11
+
12
+ ### Features
13
+
14
+ - enables search page seo `noIndex` from config ([#2652](https://github.com/vtex/faststore/issues/2652)) ([31c61a6](https://github.com/vtex/faststore/commit/31c61a65ad1774f19c53e7b2ce7af157d24434d9))
15
+
6
16
  ## [3.11.4](https://github.com/vtex/faststore/compare/v3.11.3...v3.11.4) (2025-01-29)
7
17
 
8
18
  **Note:** Version bump only for package @faststore/core
@@ -11,6 +11,7 @@ module.exports = {
11
11
  search: {
12
12
  titleTemplate: '%s: Search results title',
13
13
  descriptionTemplate: '%s: Search results description',
14
+ noIndex: true,
14
15
  },
15
16
  },
16
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.11.4",
3
+ "version": "3.12.1",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "volta": {
35
35
  "node": "18.19.0",
36
- "yarn": "1.19.1"
36
+ "yarn": "1.22.22"
37
37
  },
38
38
  "sideEffects": false,
39
39
  "dependencies": {
@@ -101,5 +101,5 @@
101
101
  "jest": "^29.7.0",
102
102
  "ts-jest": "29.1.1"
103
103
  },
104
- "gitHead": "12b2c7ae619a3f903e514cfd2dffd7d75cfb0a6d"
104
+ "gitHead": "59cb39a91d3ecaa33a1c7ba3bf7deda66a06f4ca"
105
105
  }
package/src/pages/s.tsx CHANGED
@@ -57,6 +57,7 @@ function generateSEOData(storeConfig: StoreConfig, searchTerm?: string) {
57
57
  // default behavior without SSR
58
58
  if (!isSSREnabled) {
59
59
  return {
60
+ noindex: searchSeo?.noIndex ?? true,
60
61
  title: seo.title,
61
62
  description: seo.description,
62
63
  titleTemplate: seo.titleTemplate,
@@ -79,6 +80,7 @@ function generateSEOData(storeConfig: StoreConfig, searchTerm?: string) {
79
80
  : undefined
80
81
 
81
82
  return {
83
+ noindex: searchSeo?.noIndex ?? true,
82
84
  title,
83
85
  description,
84
86
  titleTemplate,
@@ -108,7 +110,7 @@ function Page({
108
110
  return null
109
111
  }
110
112
 
111
- const seoData = generateSEOData(storeConfig, searchTerm)
113
+ const { noindex, ...seoData } = generateSEOData(storeConfig, searchTerm)
112
114
 
113
115
  return (
114
116
  <SearchProvider
@@ -117,7 +119,7 @@ function Page({
117
119
  {...searchParams}
118
120
  >
119
121
  {/* SEO */}
120
- <NextSeo noindex {...seoData} />
122
+ <NextSeo noindex={noindex} {...seoData} />
121
123
 
122
124
  <UISROnly text={seoData.title} />
123
125