@faststore/core 3.24.1 → 3.25.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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +14 -14
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/[slug]/p.js +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{qaRgicHUu7U8273um8QDo → J20CA9Jl6I7akg-WLiVg6}/_buildManifest.js +1 -1
- package/.next/static/chunks/{1552.e7cece605fc2e1cd.js → 1552.b5a073e7ac834965.js} +1 -1
- package/.next/static/chunks/pages/[slug]/{p-ce4cf864661e2340.js → p-d1fa1e8ec5f56258.js} +1 -1
- package/.next/static/chunks/{webpack-bd7f68a5f4827cb0.js → webpack-606059c538886f4e.js} +1 -1
- package/.next/trace +121 -121
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +6 -0
- package/cms/faststore/content-types.json +23 -0
- package/package.json +2 -2
- package/src/pages/[slug]/p.tsx +13 -1
- package/src/server/cms/pdp.ts +4 -0
- /package/.next/static/{qaRgicHUu7U8273um8QDo → J20CA9Jl6I7akg-WLiVg6}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.24.
|
|
2
|
+
> @faststore/core@3.24.1 prebuild /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> na run partytown && na run generate
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @faststore/core@3.24.
|
|
6
|
+
> @faststore/core@3.24.1 partytown /home/runner/work/faststore/faststore/packages/core
|
|
7
7
|
> partytown copylib ./public/~partytown
|
|
8
8
|
|
|
9
9
|
Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
|
|
10
10
|
|
|
11
|
-
> @faststore/core@3.24.
|
|
11
|
+
> @faststore/core@3.24.1 generate /home/runner/work/faststore/faststore/packages/core
|
|
12
12
|
> na run generate:schema && na run generate:codegen && na run format:generated
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
> @faststore/core@3.24.
|
|
15
|
+
> @faststore/core@3.24.1 generate:schema /home/runner/work/faststore/faststore/packages/core
|
|
16
16
|
> tsx src/server/generator/generateGraphQLSchemaFile.ts
|
|
17
17
|
|
|
18
18
|
Schema GraphQL file generated successfully
|
|
19
19
|
|
|
20
|
-
> @faststore/core@3.24.
|
|
20
|
+
> @faststore/core@3.24.1 generate:codegen /home/runner/work/faststore/faststore/packages/core
|
|
21
21
|
> graphql-codegen
|
|
22
22
|
|
|
23
23
|
[STARTED] Parse Configuration
|
|
@@ -37,11 +37,11 @@ Running lifecycle hook "afterStart" scripts...
|
|
|
37
37
|
[CLI] Loading Documents
|
|
38
38
|
[CLI] Generating output
|
|
39
39
|
|
|
40
|
-
> @faststore/core@3.24.
|
|
40
|
+
> @faststore/core@3.24.1 format:generated /home/runner/work/faststore/faststore/packages/core
|
|
41
41
|
> prettier --write "@generated/**/*.{ts,js,tsx,jsx,json}" --loglevel error
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
> @faststore/core@3.24.
|
|
44
|
+
> @faststore/core@3.24.1 build /home/runner/work/faststore/faststore/packages/core
|
|
45
45
|
> next build
|
|
46
46
|
|
|
47
47
|
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
|
|
@@ -72,7 +72,7 @@ Route (pages) Size First Load JS
|
|
|
72
72
|
├ └ css/b1806cbafd0c1f81.css 3.06 kB
|
|
73
73
|
├ /_app 0 B 92.2 kB
|
|
74
74
|
├ ● /[...slug] 2.15 kB 132 kB
|
|
75
|
-
├ ● /[slug]/p
|
|
75
|
+
├ ● /[slug]/p 35 kB 155 kB
|
|
76
76
|
├ ├ css/a3ca6a9b63f657be.css 5.75 kB
|
|
77
77
|
├ ├ css/62a5153ac7061286.css 6.11 kB
|
|
78
78
|
├ └ css/dd6a7e5b229ea65e.css 15.7 kB
|
|
@@ -90,7 +90,7 @@ Route (pages) Size First Load JS
|
|
|
90
90
|
├ chunks/framework-807b0f81cbc129f0.js 45.4 kB
|
|
91
91
|
├ chunks/main-1617ca75abfe1b79.js 33.1 kB
|
|
92
92
|
├ chunks/pages/_app-859f97f9c8a57799.js 10.2 kB
|
|
93
|
-
├ chunks/webpack-
|
|
93
|
+
├ chunks/webpack-606059c538886f4e.js 3.58 kB
|
|
94
94
|
└ css/2eafb8997a3946dc.css 3.07 kB
|
|
95
95
|
|
|
96
96
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.24.
|
|
2
|
+
> @faststore/core@3.24.1 test /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS test/utils/multipleTemplates.test.ts (
|
|
6
|
-
PASS test/server/cms/global.test.ts (29.
|
|
5
|
+
PASS test/utils/multipleTemplates.test.ts (28.663 s)
|
|
6
|
+
PASS test/server/cms/global.test.ts (29.056 s)
|
|
7
7
|
PASS test/server/cms/index.test.ts
|
|
8
|
-
PASS test/server/index.test.ts (
|
|
8
|
+
PASS test/server/index.test.ts (33.91 s)
|
|
9
9
|
|
|
10
10
|
Test Suites: 4 passed, 4 total
|
|
11
11
|
Tests: 22 passed, 22 total
|
|
12
12
|
Snapshots: 0 total
|
|
13
|
-
Time: 35.
|
|
13
|
+
Time: 35.045 s
|
|
14
14
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.25.0](https://github.com/vtex/faststore/compare/v3.24.1...v3.25.0) (2025-02-28)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- Add `category`, `mainEntityOfPage` and `[@id](https://github.com/id)` to Product structured data ([#2694](https://github.com/vtex/faststore/issues/2694)) ([1e9f81e](https://github.com/vtex/faststore/commit/1e9f81eb85ad4d40f64181967940ef629d979a4a))
|
|
11
|
+
|
|
6
12
|
## [3.24.1](https://github.com/vtex/faststore/compare/v3.24.0...v3.24.1) (2025-02-26)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -242,6 +242,29 @@
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "seo",
|
|
248
|
+
"schema": {
|
|
249
|
+
"title": "SEO",
|
|
250
|
+
"description": "Search Engine Optimization options",
|
|
251
|
+
"type": "object",
|
|
252
|
+
"widget": {
|
|
253
|
+
"ui:ObjectFieldTemplate": "GoogleSeoPreview"
|
|
254
|
+
},
|
|
255
|
+
"properties": {
|
|
256
|
+
"id": {
|
|
257
|
+
"title": "ID",
|
|
258
|
+
"description": "A unique identifier used to reference the product page. This is a descriptive value (e.g., `#product`) that will be concatenated with the product path (example of the result: `/product-slug/p#product`).",
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"mainEntityOfPage": {
|
|
262
|
+
"title": "Main entity of page",
|
|
263
|
+
"description": "Indicates the main entity of the page. A unique identifier used to reference the product page. This is a descriptive value (e.g., `#webpage`) that will be concatenated with the product path (example of the result: `/product-slug/p#webpage`).",
|
|
264
|
+
"type": "string"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
245
268
|
}
|
|
246
269
|
]
|
|
247
270
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"ts-jest": "29.1.1",
|
|
105
105
|
"typescript": "5.3.2"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "19a7f9ec1f3cf48f7884739405301d51e608866b"
|
|
108
108
|
}
|
package/src/pages/[slug]/p.tsx
CHANGED
|
@@ -81,7 +81,14 @@ const overwriteMerge = (_: any[], sourceArray: any[]) => sourceArray
|
|
|
81
81
|
const isClientOfferEnabled = (storeConfig as StoreConfig).experimental
|
|
82
82
|
.enableClientOffer
|
|
83
83
|
|
|
84
|
-
function Page({
|
|
84
|
+
function Page({
|
|
85
|
+
data: server,
|
|
86
|
+
sections,
|
|
87
|
+
settings,
|
|
88
|
+
globalSections,
|
|
89
|
+
offers,
|
|
90
|
+
meta,
|
|
91
|
+
}: Props) {
|
|
85
92
|
const { product } = server
|
|
86
93
|
const { currency } = useSession()
|
|
87
94
|
const titleTemplate = storeConfig?.seo?.titleTemplate ?? ''
|
|
@@ -162,6 +169,8 @@ function Page({ data: server, sections, globalSections, offers, meta }: Props) {
|
|
|
162
169
|
/>
|
|
163
170
|
<BreadcrumbJsonLd itemListElements={itemListElements} />
|
|
164
171
|
<ProductJsonLd
|
|
172
|
+
id={`${meta.canonical}${settings?.seo?.id ?? ''}`}
|
|
173
|
+
mainEntityOfPage={`${meta.canonical}${settings?.seo?.mainEntityOfPage ?? ''}`}
|
|
165
174
|
productName={product.name}
|
|
166
175
|
description={product.description}
|
|
167
176
|
brand={product.brand.name}
|
|
@@ -170,6 +179,9 @@ function Page({ data: server, sections, globalSections, offers, meta }: Props) {
|
|
|
170
179
|
releaseDate={product.releaseDate}
|
|
171
180
|
images={product.image.map((img) => img.url)} // Somehow, Google does not understand this valid Schema.org schema, so we need to do conversions
|
|
172
181
|
offers={offers}
|
|
182
|
+
{...(itemListElements.length !== 0 && {
|
|
183
|
+
category: itemListElements[0].name,
|
|
184
|
+
})}
|
|
173
185
|
/>
|
|
174
186
|
|
|
175
187
|
{/*
|
package/src/server/cms/pdp.ts
CHANGED
|
File without changes
|