@faststore/core 3.22.0 → 3.22.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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +15 -15
- 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].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/en-US.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{sxcpSwMDDcw9l49pgSihn → U1srs8bQfyxk_a5_ffbOw}/_buildManifest.js +1 -1
- package/.next/static/chunks/{1552.e7cece605fc2e1cd.js → 1552.b5a073e7ac834965.js} +1 -1
- package/.next/static/chunks/pages/{[...slug]-de4989a17e31600b.js → [...slug]-da7d9dc180306001.js} +1 -1
- package/.next/static/chunks/pages/[slug]/{p-69513544fba08477.js → p-ce4cf864661e2340.js} +1 -1
- package/.next/static/chunks/{webpack-73f875a3fea96a4a.js → webpack-d75fedf95eeeadf6.js} +1 -1
- package/.next/trace +121 -121
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-test.log +6 -5
- package/CHANGELOG.md +11 -0
- package/cms/faststore/content-types.json +0 -1
- package/package.json +8 -8
- package/src/components/templates/ProductListingPage/ProductListingPage.tsx +12 -3
- package/src/pages/[slug]/p.tsx +12 -3
- /package/.next/static/{sxcpSwMDDcw9l49pgSihn → U1srs8bQfyxk_a5_ffbOw}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.
|
|
2
|
+
> @faststore/core@3.22.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.
|
|
6
|
+
> @faststore/core@3.22.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.
|
|
11
|
+
> @faststore/core@3.22.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.
|
|
15
|
+
> @faststore/core@3.22.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.
|
|
20
|
+
> @faststore/core@3.22.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.
|
|
40
|
+
> @faststore/core@3.22.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.
|
|
44
|
+
> @faststore/core@3.22.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
|
|
@@ -71,7 +71,7 @@ Route (pages) Size First Load JS
|
|
|
71
71
|
┌ ● / 3.87 kB 124 kB
|
|
72
72
|
├ └ css/b1806cbafd0c1f81.css 3.06 kB
|
|
73
73
|
├ /_app 0 B 92.2 kB
|
|
74
|
-
├ ● /[...slug] 2.
|
|
74
|
+
├ ● /[...slug] 2.15 kB 132 kB
|
|
75
75
|
├ ● /[slug]/p 34.9 kB 155 kB
|
|
76
76
|
├ ├ css/a3ca6a9b63f657be.css 5.75 kB
|
|
77
77
|
├ ├ css/62a5153ac7061286.css 6.11 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-d75fedf95eeeadf6.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,13 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.
|
|
2
|
+
> @faststore/core@3.22.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/index.test.ts (
|
|
7
|
-
PASS test/server/index.test.ts (34.
|
|
5
|
+
PASS test/utils/multipleTemplates.test.ts (30.872 s)
|
|
6
|
+
PASS test/server/cms/index.test.ts (31.404 s)
|
|
7
|
+
PASS test/server/index.test.ts (34.661 s)
|
|
8
|
+
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
|
|
8
9
|
|
|
9
10
|
Test Suites: 3 passed, 3 total
|
|
10
11
|
Tests: 19 passed, 19 total
|
|
11
12
|
Snapshots: 0 total
|
|
12
|
-
Time:
|
|
13
|
+
Time: 36.249 s
|
|
13
14
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.22.2 (2025-02-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Removes CI invalid input ([#2689](https://github.com/vtex/faststore/issues/2689)) ([30ea4b5](https://github.com/vtex/faststore/commit/30ea4b5d38fee5f9aacda60c0bd3b3296875864c))
|
|
11
|
+
- Removes url image as required field for Organization ([#2697](https://github.com/vtex/faststore/issues/2697)) ([f325a28](https://github.com/vtex/faststore/commit/f325a28764767fdd6b92d22ef06703a78afdf1a6))
|
|
12
|
+
|
|
13
|
+
## [3.22.1](https://github.com/vtex/faststore/compare/v3.22.0...v3.22.1) (2025-02-18)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package @faststore/core
|
|
16
|
+
|
|
6
17
|
# [3.22.0](https://github.com/vtex/faststore/compare/v3.21.0...v3.22.0) (2025-02-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @faststore/core
|
|
@@ -142,7 +142,6 @@
|
|
|
142
142
|
"image": {
|
|
143
143
|
"title": "Organization image/logo object",
|
|
144
144
|
"description": "An image that is representative of your organization. Image guidelines: https://developers.google.com/search/docs/appearance/structured-data/organization",
|
|
145
|
-
"required": ["url"],
|
|
146
145
|
"type": "object",
|
|
147
146
|
"properties": {
|
|
148
147
|
"url": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"@envelop/graphql-jit": "^8.0.3",
|
|
44
44
|
"@envelop/parser-cache": "^6.0.2",
|
|
45
45
|
"@envelop/validation-cache": "^6.0.2",
|
|
46
|
-
"@faststore/api": "^3.
|
|
47
|
-
"@faststore/components": "^3.22.
|
|
48
|
-
"@faststore/graphql-utils": "^3.
|
|
49
|
-
"@faststore/lighthouse": "^3.
|
|
50
|
-
"@faststore/sdk": "^3.
|
|
51
|
-
"@faststore/ui": "^3.22.
|
|
46
|
+
"@faststore/api": "^3.22.2",
|
|
47
|
+
"@faststore/components": "^3.22.2",
|
|
48
|
+
"@faststore/graphql-utils": "^3.22.2",
|
|
49
|
+
"@faststore/lighthouse": "^3.22.2",
|
|
50
|
+
"@faststore/sdk": "^3.22.2",
|
|
51
|
+
"@faststore/ui": "^3.22.2",
|
|
52
52
|
"@graphql-codegen/cli": "5.0.2",
|
|
53
53
|
"@graphql-codegen/client-preset": "4.2.6",
|
|
54
54
|
"@graphql-codegen/typescript": "4.0.7",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"ts-jest": "29.1.1",
|
|
104
104
|
"typescript": "5.3.2"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "28cafe77e6b07fffd2c9820c2e11007502d3aea5"
|
|
107
107
|
}
|
|
@@ -82,6 +82,17 @@ export default function ProductListingPage({
|
|
|
82
82
|
const canonical = `${storeConfig.storeUrl}${pathname}`
|
|
83
83
|
const itemsPerPage = settings?.productGallery?.itemsPerPage ?? ITEMS_PER_PAGE
|
|
84
84
|
|
|
85
|
+
let itemListElements = collection?.breadcrumbList.itemListElement ?? []
|
|
86
|
+
if (itemListElements.length !== 0) {
|
|
87
|
+
itemListElements = itemListElements.map(
|
|
88
|
+
({ item: pathname, name, position }) => {
|
|
89
|
+
const pageUrl = storeConfig.storeUrl + pathname
|
|
90
|
+
|
|
91
|
+
return { name, position, item: pageUrl }
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
|
|
85
96
|
return (
|
|
86
97
|
<SearchProvider
|
|
87
98
|
onChange={applySearchState}
|
|
@@ -100,9 +111,7 @@ export default function ProductListingPage({
|
|
|
100
111
|
description,
|
|
101
112
|
}}
|
|
102
113
|
/>
|
|
103
|
-
<BreadcrumbJsonLd
|
|
104
|
-
itemListElements={collection?.breadcrumbList.itemListElement ?? []}
|
|
105
|
-
/>
|
|
114
|
+
<BreadcrumbJsonLd itemListElements={itemListElements} />
|
|
106
115
|
|
|
107
116
|
<ProductListing
|
|
108
117
|
globalSections={globalSections}
|
package/src/pages/[slug]/p.tsx
CHANGED
|
@@ -85,6 +85,17 @@ function Page({ data: server, sections, globalSections, offers, meta }: Props) {
|
|
|
85
85
|
const { currency } = useSession()
|
|
86
86
|
const titleTemplate = storeConfig?.seo?.titleTemplate ?? ''
|
|
87
87
|
|
|
88
|
+
let itemListElements = product.breadcrumbList.itemListElement ?? []
|
|
89
|
+
if (itemListElements.length !== 0) {
|
|
90
|
+
itemListElements = itemListElements.map(
|
|
91
|
+
({ item: pathname, name, position }) => {
|
|
92
|
+
const pageUrl = storeConfig.storeUrl + pathname
|
|
93
|
+
|
|
94
|
+
return { name, position, item: pageUrl }
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
|
|
88
99
|
const { client, isValidating } = isClientOfferEnabled
|
|
89
100
|
? (() => {
|
|
90
101
|
const offer = useOffer({ skuId: product.sku })
|
|
@@ -148,9 +159,7 @@ function Page({ data: server, sections, globalSections, offers, meta }: Props) {
|
|
|
148
159
|
]}
|
|
149
160
|
titleTemplate={titleTemplate}
|
|
150
161
|
/>
|
|
151
|
-
<BreadcrumbJsonLd
|
|
152
|
-
itemListElements={product.breadcrumbList.itemListElement}
|
|
153
|
-
/>
|
|
162
|
+
<BreadcrumbJsonLd itemListElements={itemListElements} />
|
|
154
163
|
<ProductJsonLd
|
|
155
164
|
productName={product.name}
|
|
156
165
|
description={product.description}
|
|
File without changes
|