@faststore/core 3.27.0 → 3.28.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 +12 -12
- 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/routes-manifest.json +1 -1
- package/.next/server/chunks/1506.js +1 -1
- package/.next/server/chunks/4289.js +1 -1
- package/.next/server/chunks/8646.js +1 -1
- package/.next/server/middleware-build-manifest.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/{SMKjFOKkir-LYt9Mz5pn3 → 4tEedMpsgB8eSey2ZlBS3}/_buildManifest.js +1 -1
- package/.next/static/chunks/{6335-4f83759732fb9a4b.js → 6335-65828a609522b6e2.js} +1 -1
- package/.next/static/chunks/pages/{_app-d2443a3cd63b4466.js → _app-4cf4015388594311.js} +1 -1
- package/.next/trace +121 -121
- package/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +10 -0
- package/discovery.config.default.js +1 -0
- package/package.json +8 -8
- package/src/components/ui/Image/loader.ts +18 -0
- /package/.next/static/{SMKjFOKkir-LYt9Mz5pn3 → 4tEedMpsgB8eSey2ZlBS3}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.
|
|
2
|
+
> @faststore/core@3.27.0 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.27.0 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.27.0 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.27.0 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.27.0 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.27.0 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.27.0 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
|
|
@@ -76,8 +76,8 @@ Route (pages) Size First Load JS
|
|
|
76
76
|
├ ├ css/a3ca6a9b63f657be.css 5.75 kB
|
|
77
77
|
├ ├ css/62a5153ac7061286.css 6.11 kB
|
|
78
78
|
├ └ css/b5bf49598c8f8b66.css 16.1 kB
|
|
79
|
-
├ ○ /404 1.48 kB
|
|
80
|
-
├ ● /500 1.48 kB
|
|
79
|
+
├ ○ /404 1.48 kB 122 kB
|
|
80
|
+
├ ● /500 1.48 kB 122 kB
|
|
81
81
|
├ ● /account 712 B 121 kB
|
|
82
82
|
├ λ /api/graphql 0 B 92.2 kB
|
|
83
83
|
├ λ /api/health/live 0 B 92.2 kB
|
|
@@ -89,7 +89,7 @@ Route (pages) Size First Load JS
|
|
|
89
89
|
+ First Load JS shared by all 95.7 kB
|
|
90
90
|
├ chunks/framework-807b0f81cbc129f0.js 45.4 kB
|
|
91
91
|
├ chunks/main-5569625b3fdd6741.js 33.1 kB
|
|
92
|
-
├ chunks/pages/_app-
|
|
92
|
+
├ chunks/pages/_app-4cf4015388594311.js 10.2 kB
|
|
93
93
|
├ chunks/webpack-082d08d5aac34119.js 3.58 kB
|
|
94
94
|
└ css/0a57ee6c7a57788c.css 3.49 kB
|
|
95
95
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.
|
|
2
|
+
> @faststore/core@3.27.0 test /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS test/utils/multipleTemplates.test.ts (25.
|
|
6
|
-
PASS test/server/cms/global.test.ts (25.
|
|
5
|
+
PASS test/utils/multipleTemplates.test.ts (25.07 s)
|
|
6
|
+
PASS test/server/cms/global.test.ts (25.37 s)
|
|
7
7
|
PASS test/server/cms/index.test.ts
|
|
8
|
-
PASS test/server/index.test.ts (30.
|
|
8
|
+
PASS test/server/index.test.ts (30.086 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: 31.
|
|
13
|
+
Time: 31.464 s
|
|
14
14
|
Ran all test suites.
|
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.28.0 (2025-03-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- add pnpm-lock.yaml to ignored files in biome.json ([#2737](https://github.com/vtex/faststore/issues/2737)) ([e308698](https://github.com/vtex/faststore/commit/e308698a406e27f0112ff1dc2e83564c42c83d85))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- add support for VTEX assets loader in image component ([#2731](https://github.com/vtex/faststore/issues/2731)) ([aea7456](https://github.com/vtex/faststore/commit/aea7456aaf0e6aacd0ba64759136c51fd08c642f)), closes [/#diff-4da6f8e98efa58c9a40ce9b654b9bfeecb6813091999cdea3d2408679d1bf3d3R119](https://github.com///issues/diff-4da6f8e98efa58c9a40ce9b654b9bfeecb6813091999cdea3d2408679d1bf3d3R119) [/#diff-73ffbd4b30ea7347ce7cc718527810b0f8b51f897bcf48efdd48fbe36652afdaR10-R15](https://github.com///issues/diff-73ffbd4b30ea7347ce7cc718527810b0f8b51f897bcf48efdd48fbe36652afdaR10-R15) [/#diff-73ffbd4b30ea7347ce7cc718527810b0f8b51f897bcf48efdd48fbe36652afdaR28-R39](https://github.com///issues/diff-73ffbd4b30ea7347ce7cc718527810b0f8b51f897bcf48efdd48fbe36652afdaR28-R39)
|
|
15
|
+
|
|
6
16
|
# [3.27.0](https://github.com/vtex/faststore/compare/v3.26.1...v3.27.0) (2025-03-20)
|
|
7
17
|
|
|
8
18
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.28.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@envelop/graphql-jit": "^8.0.3",
|
|
45
45
|
"@envelop/parser-cache": "^6.0.2",
|
|
46
46
|
"@envelop/validation-cache": "^6.0.2",
|
|
47
|
-
"@faststore/api": "^3.
|
|
48
|
-
"@faststore/components": "^3.
|
|
49
|
-
"@faststore/graphql-utils": "^3.
|
|
50
|
-
"@faststore/lighthouse": "^3.
|
|
51
|
-
"@faststore/sdk": "^3.
|
|
52
|
-
"@faststore/ui": "^3.
|
|
47
|
+
"@faststore/api": "^3.28.0",
|
|
48
|
+
"@faststore/components": "^3.28.0",
|
|
49
|
+
"@faststore/graphql-utils": "^3.28.0",
|
|
50
|
+
"@faststore/lighthouse": "^3.28.0",
|
|
51
|
+
"@faststore/sdk": "^3.28.0",
|
|
52
|
+
"@faststore/ui": "^3.28.0",
|
|
53
53
|
"@graphql-codegen/cli": "5.0.2",
|
|
54
54
|
"@graphql-codegen/client-preset": "4.2.6",
|
|
55
55
|
"@graphql-codegen/typescript": "4.0.7",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"ts-jest": "29.1.1",
|
|
105
105
|
"typescript": "5.3.2"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "b7dfa5da8e48113e96d0b234d7416aa9e67cdc41"
|
|
108
108
|
}
|
|
@@ -7,6 +7,12 @@ export default function customImageLoader({
|
|
|
7
7
|
width,
|
|
8
8
|
quality,
|
|
9
9
|
}: ImageLoaderProps) {
|
|
10
|
+
return storeConfig.experimental.enableVtexAssetsLoader
|
|
11
|
+
? fileServerLoader({ src, width })
|
|
12
|
+
: thumborLoader({ src, width, quality })
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function thumborLoader({ src, width, quality }: ImageLoaderProps) {
|
|
10
16
|
const preSizeComponents = [THUMBOR_SERVER, 'unsafe']
|
|
11
17
|
|
|
12
18
|
// proportional to the width, enter a height of 0,
|
|
@@ -19,3 +25,15 @@ export default function customImageLoader({
|
|
|
19
25
|
|
|
20
26
|
return [...preSizeComponents, finalSize, ...postSizeComponents].join('/')
|
|
21
27
|
}
|
|
28
|
+
|
|
29
|
+
function fileServerLoader({ src, width }: ImageLoaderProps) {
|
|
30
|
+
// Regular expression to match the pattern: /ids/{number}/{filename}.{extension}?{queryParams}
|
|
31
|
+
const regex = /(\/ids\/\d+)\/([^/?]+)(\.[^/?]+)(\?.+)?$/
|
|
32
|
+
|
|
33
|
+
return src.replace(
|
|
34
|
+
regex,
|
|
35
|
+
(_match, idPart, filename, _extension, queryString = '') => {
|
|
36
|
+
return `${idPart}-${width}-auto/${filename}.webp${queryString}`
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
File without changes
|