@faststore/core 3.11.2 → 3.11.3
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 +35 -35
- 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/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +3 -3
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/1163.js +2 -2
- package/.next/server/chunks/3157.js +1 -1
- package/.next/server/chunks/{1377.js → 3668.js} +1 -1
- package/.next/server/chunks/4012.js +1 -1
- package/.next/server/chunks/6859.js +1 -1
- package/.next/server/chunks/8857.js +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/404.js +1 -1
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +1 -1
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +1 -1
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +1 -1
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +1 -1
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js +1 -1
- package/.next/server/pages/_document.js.nft.json +1 -1
- package/.next/server/pages/_error.js +1 -1
- package/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/server/pages/account.js +1 -1
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/api/health/live.js.nft.json +1 -1
- package/.next/server/pages/api/health/ready.js.nft.json +1 -1
- package/.next/server/pages/api/preview.js.nft.json +1 -1
- package/.next/server/pages/checkout.js +1 -1
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +1 -1
- package/.next/server/pages/en-US/500.html +1 -1
- package/.next/server/pages/en-US/account.html +1 -1
- package/.next/server/pages/en-US/checkout.html +1 -1
- package/.next/server/pages/en-US/login.html +1 -1
- package/.next/server/pages/en-US/s.html +1 -1
- package/.next/server/pages/en-US.html +1 -1
- package/.next/server/pages/index.js +1 -1
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +1 -1
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js +1 -1
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/chunks/{1153.d7522522b6c917ed.js → 1153.7f616071da309cf5.js} +1 -1
- package/.next/static/chunks/{5217.350e250227ef3657.js → 5217.2c285832cd2bb950.js} +1 -1
- package/.next/static/chunks/{6941-6223429b182b7109.js → 6941-691e0f68baf2036e.js} +2 -2
- package/.next/static/chunks/{8857.0ff8f6604fb061a8.js → 8857.141d2a4640c89f4a.js} +1 -1
- package/.next/static/chunks/{main-209ac4974b020af1.js → main-48d1188fa94dad34.js} +1 -1
- package/.next/static/chunks/pages/{_app-91d65e1abd88251d.js → _app-e0cf85dd2f4d858c.js} +1 -1
- package/.next/static/chunks/pages/{_error-85cabf0d7a5ea2f2.js → _error-6a4b9b22c63bd9d7.js} +1 -1
- package/.next/static/chunks/{webpack-a63f842ae0d7bdfd.js → webpack-0b036af6daba5815.js} +1 -1
- package/.next/static/{bYvT7j3s1L8_ALPlSxNjt → qw1fhkTKJwfp3KmckYsWd}/_buildManifest.js +1 -1
- package/.next/trace +102 -102
- package/.turbo/turbo-build.log +7 -6
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +4 -0
- package/README.md +0 -3
- package/cypress/integration/a11y.test.js +0 -1
- package/cypress/integration/analytics.test.js +0 -1
- package/cypress/integration/cart.test.js +0 -1
- package/cypress/integration/plp.test.js +0 -1
- package/cypress/integration/search.test.js +0 -1
- package/cypress/integration/seo.test.js +0 -1
- package/cypress/plugins/index.js +0 -3
- package/cypress/support/commands.js +0 -1
- package/next.config.js +3 -0
- package/package.json +9 -11
- package/src/customizations/src/components/index.tsx +0 -1
- package/src/fonts/WebFonts.tsx +0 -2
- package/src/plugins/index.ts +0 -1
- package/src/server/index.ts +4 -5
- package/.next/cache/eslint/.cache_1gneedd +0 -1
- /package/.next/static/{bYvT7j3s1L8_ALPlSxNjt → qw1fhkTKJwfp3KmckYsWd}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -30,7 +30,8 @@ This information is used to shape Next.js' roadmap and prioritize features.
|
|
|
30
30
|
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
|
|
31
31
|
https://nextjs.org/telemetry
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
Skipping linting
|
|
34
|
+
Checking validity of types ...
|
|
34
35
|
Creating an optimized production build ...
|
|
35
36
|
Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
|
|
36
37
|
Using external babel configuration from /home/runner/work/faststore/faststore/packages/core/.babelrc.js
|
|
@@ -38,8 +39,8 @@ https://nextjs.org/telemetry
|
|
|
38
39
|
Collecting page data ...
|
|
39
40
|
Generating static pages (0/7) ...
|
|
40
41
|
|
|
41
42
|
Generating static pages (1/7)
|
|
42
|
-
|
|
43
43
|
Generating static pages (3/7)
|
|
44
44
|
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.
|
|
45
|
+
|
|
45
46
|
Generating static pages (3/7)
|
|
46
47
|
|
|
47
48
|
Generating static pages (5/7)
|
|
48
49
|
|
|
49
50
|
✓ Generating static pages (7/7)
|
|
50
51
|
Finalizing page optimization ...
|
|
@@ -66,13 +67,13 @@ Route (pages) Size First Load JS
|
|
|
66
67
|
└ ● /s 2.92 kB 132 kB
|
|
67
68
|
+ First Load JS shared by all 95 kB
|
|
68
69
|
├ chunks/framework-12a146e94cfcf7c4.js 45.4 kB
|
|
69
|
-
├ chunks/main-
|
|
70
|
-
├ chunks/pages/_app-
|
|
71
|
-
├ chunks/webpack-
|
|
70
|
+
├ chunks/main-48d1188fa94dad34.js 33.1 kB
|
|
71
|
+
├ chunks/pages/_app-e0cf85dd2f4d858c.js 9.97 kB
|
|
72
|
+
├ chunks/webpack-0b036af6daba5815.js 3.57 kB
|
|
72
73
|
└ css/ee0556daedda6306.css 3.07 kB
|
|
73
74
|
|
|
74
75
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
|
75
76
|
○ (Static) automatically rendered as static HTML (uses no initial props)
|
|
76
77
|
● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
|
|
77
78
|
|
|
78
|
-
Done in
|
|
79
|
+
Done in 68.23s.
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
yarn run v1.22.22
|
|
2
2
|
$ jest
|
|
3
|
-
PASS test/
|
|
4
|
-
PASS test/
|
|
5
|
-
PASS test/server/index.test.ts (
|
|
3
|
+
PASS test/server/cms/index.test.ts (32.814 s)
|
|
4
|
+
PASS test/utils/multipleTemplates.test.ts (33.116 s)
|
|
5
|
+
PASS test/server/index.test.ts (37.603 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:
|
|
10
|
+
Time: 38.753 s
|
|
11
11
|
Ran all test suites.
|
|
12
|
-
Done in
|
|
12
|
+
Done in 40.26s.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.11.3](https://github.com/vtex/faststore/compare/v3.11.2...v3.11.3) (2025-01-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @faststore/core
|
|
9
|
+
|
|
6
10
|
## [3.11.2](https://github.com/vtex/faststore/compare/v3.11.1...v3.11.2) (2025-01-29)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @faststore/core
|
package/README.md
CHANGED
|
@@ -51,7 +51,6 @@ A quick look at the top-level files and directories you'll see in a this NextJS
|
|
|
51
51
|
├── .prettierrrc
|
|
52
52
|
├── .stylelintignore
|
|
53
53
|
├── .gitignore
|
|
54
|
-
├── .eslintignore
|
|
55
54
|
├── codegen.ts
|
|
56
55
|
├── cypress
|
|
57
56
|
├── cypress.config.ts
|
|
@@ -98,8 +97,6 @@ A quick look at the top-level files and directories you'll see in a this NextJS
|
|
|
98
97
|
|
|
99
98
|
13. **`.prettierignore`**: Ignore listed files when applying prettier rules
|
|
100
99
|
|
|
101
|
-
14. **`.eslintignore`**: Ignore listed files when applying eslint rules
|
|
102
|
-
|
|
103
100
|
## 💻 Code Structure
|
|
104
101
|
|
|
105
102
|
All code is inside the `src` folder. The code is split into folders that implement an MVC-like architecture.
|
package/cypress/plugins/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// eslint-disable-next-line spaced-comment
|
|
2
1
|
/// <reference types="cypress" />
|
|
3
2
|
// ***********************************************************
|
|
4
3
|
// This example plugins/index.js can be used to load plugins
|
|
@@ -22,13 +21,11 @@ module.exports = (on, config) => {
|
|
|
22
21
|
|
|
23
22
|
on('task', {
|
|
24
23
|
log(message) {
|
|
25
|
-
// eslint-disable-next-line no-console
|
|
26
24
|
console.log(message)
|
|
27
25
|
|
|
28
26
|
return null
|
|
29
27
|
},
|
|
30
28
|
table(message) {
|
|
31
|
-
// eslint-disable-next-line no-console
|
|
32
29
|
console.table(message)
|
|
33
30
|
|
|
34
31
|
return null
|
package/next.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.3",
|
|
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.11.
|
|
48
|
-
"@faststore/graphql-utils": "^3.
|
|
49
|
-
"@faststore/lighthouse": "^3.
|
|
50
|
-
"@faststore/sdk": "^3.
|
|
51
|
-
"@faststore/ui": "^3.11.
|
|
46
|
+
"@faststore/api": "^3.11.3",
|
|
47
|
+
"@faststore/components": "^3.11.3",
|
|
48
|
+
"@faststore/graphql-utils": "^3.11.3",
|
|
49
|
+
"@faststore/lighthouse": "^3.11.3",
|
|
50
|
+
"@faststore/sdk": "^3.11.3",
|
|
51
|
+
"@faststore/ui": "^3.11.3",
|
|
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",
|
|
@@ -81,13 +81,11 @@
|
|
|
81
81
|
"sharp": "^0.32.6",
|
|
82
82
|
"style-loader": "^3.3.1",
|
|
83
83
|
"swr": "^1.3.0",
|
|
84
|
-
"tsx": "^4.6.2"
|
|
85
|
-
"typescript": "4.7.3"
|
|
84
|
+
"tsx": "^4.6.2"
|
|
86
85
|
},
|
|
87
86
|
"devDependencies": {
|
|
88
87
|
"@cypress/code-coverage": "^3.12.1",
|
|
89
88
|
"@envelop/testing": "^6.0.0",
|
|
90
|
-
"@faststore/eslint-config": "^3.9.0",
|
|
91
89
|
"@lhci/cli": "^0.9.0",
|
|
92
90
|
"@testing-library/cypress": "^10.0.1",
|
|
93
91
|
"@types/cypress": "^1.1.3",
|
|
@@ -103,5 +101,5 @@
|
|
|
103
101
|
"jest": "^29.7.0",
|
|
104
102
|
"ts-jest": "29.1.1"
|
|
105
103
|
},
|
|
106
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "6b9aae9d5eb648c456b313cc210fa7e90821d5fb"
|
|
107
105
|
}
|
package/src/fonts/WebFonts.tsx
CHANGED
package/src/plugins/index.ts
CHANGED
package/src/server/index.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/* eslint-disable react-hooks/rules-of-hooks */
|
|
2
1
|
import {
|
|
3
2
|
envelop,
|
|
4
|
-
MaskError,
|
|
3
|
+
type MaskError,
|
|
5
4
|
useEngine,
|
|
6
5
|
useExtendContext,
|
|
7
6
|
useMaskedErrors,
|
|
8
|
-
useSchema
|
|
7
|
+
useSchema,
|
|
9
8
|
} from '@envelop/core'
|
|
10
9
|
import { useGraphQlJit } from '@envelop/graphql-jit'
|
|
11
10
|
import { useParserCache } from '@envelop/parser-cache'
|
|
@@ -14,7 +13,7 @@ import type { CacheControl, Maybe } from '@faststore/api'
|
|
|
14
13
|
import {
|
|
15
14
|
getContextFactory,
|
|
16
15
|
getResolvers,
|
|
17
|
-
isFastStoreError
|
|
16
|
+
isFastStoreError,
|
|
18
17
|
} from '@faststore/api'
|
|
19
18
|
import { loadFilesSync } from '@graphql-tools/load-files'
|
|
20
19
|
import { makeExecutableSchema } from '@graphql-tools/schema'
|
|
@@ -28,7 +27,7 @@ import persisted from '@generated/persisted-documents.json'
|
|
|
28
27
|
import thirdPartyResolvers from '../customizations/src/graphql/thirdParty/resolvers'
|
|
29
28
|
import vtexExtensionsResolvers from '../customizations/src/graphql/vtex/resolvers'
|
|
30
29
|
|
|
31
|
-
import { Operation } from '../sdk/graphql/request'
|
|
30
|
+
import type { Operation } from '../sdk/graphql/request'
|
|
32
31
|
import { apiOptions } from './options'
|
|
33
32
|
|
|
34
33
|
interface ExecuteOptions<V = Record<string, unknown>> {
|