@faststore/core 3.11.1 → 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.
Files changed (97) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +38 -38
  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/react-loadable-manifest.json +11 -11
  14. package/.next/required-server-files.json +1 -1
  15. package/.next/routes-manifest.json +1 -1
  16. package/.next/server/chunks/1163.js +2 -2
  17. package/.next/server/chunks/3157.js +1 -1
  18. package/.next/server/chunks/{1377.js → 3668.js} +1 -1
  19. package/.next/server/chunks/4012.js +1 -1
  20. package/.next/server/chunks/5671.js +1 -1
  21. package/.next/server/chunks/5754.js +1 -1
  22. package/.next/server/chunks/6198.js +1 -1
  23. package/.next/server/chunks/6859.js +1 -1
  24. package/.next/server/chunks/8857.js +1 -1
  25. package/.next/server/middleware-build-manifest.js +1 -1
  26. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  27. package/.next/server/pages/404.js +1 -1
  28. package/.next/server/pages/404.js.nft.json +1 -1
  29. package/.next/server/pages/500.js +1 -1
  30. package/.next/server/pages/500.js.nft.json +1 -1
  31. package/.next/server/pages/[...slug].js +1 -1
  32. package/.next/server/pages/[...slug].js.nft.json +1 -1
  33. package/.next/server/pages/[slug]/p.js +1 -1
  34. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  35. package/.next/server/pages/_app.js +1 -1
  36. package/.next/server/pages/_app.js.nft.json +1 -1
  37. package/.next/server/pages/_document.js +1 -1
  38. package/.next/server/pages/_document.js.nft.json +1 -1
  39. package/.next/server/pages/_error.js +1 -1
  40. package/.next/server/pages/_error.js.nft.json +1 -1
  41. package/.next/server/pages/account.js +1 -1
  42. package/.next/server/pages/account.js.nft.json +1 -1
  43. package/.next/server/pages/api/graphql.js.nft.json +1 -1
  44. package/.next/server/pages/api/health/live.js.nft.json +1 -1
  45. package/.next/server/pages/api/health/ready.js.nft.json +1 -1
  46. package/.next/server/pages/api/preview.js.nft.json +1 -1
  47. package/.next/server/pages/checkout.js +1 -1
  48. package/.next/server/pages/checkout.js.nft.json +1 -1
  49. package/.next/server/pages/en-US/404.html +1 -1
  50. package/.next/server/pages/en-US/500.html +1 -1
  51. package/.next/server/pages/en-US/account.html +1 -1
  52. package/.next/server/pages/en-US/checkout.html +1 -1
  53. package/.next/server/pages/en-US/login.html +1 -1
  54. package/.next/server/pages/en-US/s.html +1 -1
  55. package/.next/server/pages/en-US.html +1 -1
  56. package/.next/server/pages/index.js +1 -1
  57. package/.next/server/pages/index.js.nft.json +1 -1
  58. package/.next/server/pages/login.js +1 -1
  59. package/.next/server/pages/login.js.nft.json +1 -1
  60. package/.next/server/pages/s.js +1 -1
  61. package/.next/server/pages/s.js.nft.json +1 -1
  62. package/.next/server/pages-manifest.json +1 -1
  63. package/.next/static/chunks/{1153.d7522522b6c917ed.js → 1153.7f616071da309cf5.js} +1 -1
  64. package/.next/static/chunks/{5217.350e250227ef3657.js → 5217.2c285832cd2bb950.js} +1 -1
  65. package/.next/static/chunks/{6941-6223429b182b7109.js → 6941-691e0f68baf2036e.js} +2 -2
  66. package/.next/static/chunks/{7498-791ad2ef2c9fc716.js → 7498-304bc236a51fc94c.js} +1 -1
  67. package/.next/static/chunks/{8857.0ff8f6604fb061a8.js → 8857.141d2a4640c89f4a.js} +1 -1
  68. package/.next/static/chunks/{main-209ac4974b020af1.js → main-48d1188fa94dad34.js} +1 -1
  69. package/.next/static/chunks/pages/[slug]/p-9f818242d4684d7b.js +1 -0
  70. package/.next/static/chunks/pages/{_app-91d65e1abd88251d.js → _app-e0cf85dd2f4d858c.js} +1 -1
  71. package/.next/static/chunks/pages/{_error-85cabf0d7a5ea2f2.js → _error-6a4b9b22c63bd9d7.js} +1 -1
  72. package/.next/static/chunks/{webpack-bf502499da135235.js → webpack-0b036af6daba5815.js} +1 -1
  73. package/.next/static/css/{d92839440872e246.css → d23b961580181439.css} +1 -1
  74. package/.next/static/{Ip8ORS16rwfFtlFeTRcSj → qw1fhkTKJwfp3KmckYsWd}/_buildManifest.js +1 -1
  75. package/.next/trace +102 -102
  76. package/.turbo/turbo-build.log +9 -8
  77. package/.turbo/turbo-test.log +5 -5
  78. package/CHANGELOG.md +8 -0
  79. package/README.md +0 -3
  80. package/cypress/integration/a11y.test.js +0 -1
  81. package/cypress/integration/analytics.test.js +0 -1
  82. package/cypress/integration/cart.test.js +0 -1
  83. package/cypress/integration/plp.test.js +0 -1
  84. package/cypress/integration/search.test.js +0 -1
  85. package/cypress/integration/seo.test.js +0 -1
  86. package/cypress/plugins/index.js +0 -3
  87. package/cypress/support/commands.js +0 -1
  88. package/next.config.js +3 -0
  89. package/package.json +9 -11
  90. package/src/components/ui/SKUMatrix/SKUMatrixSidebar.tsx +8 -0
  91. package/src/customizations/src/components/index.tsx +0 -1
  92. package/src/fonts/WebFonts.tsx +0 -2
  93. package/src/plugins/index.ts +0 -1
  94. package/src/server/index.ts +4 -5
  95. package/.next/cache/eslint/.cache_1gneedd +0 -1
  96. package/.next/static/chunks/pages/[slug]/p-1334ebce46042e06.js +0 -1
  97. /package/.next/static/{Ip8ORS16rwfFtlFeTRcSj → qw1fhkTKJwfp3KmckYsWd}/_ssgManifest.js +0 -0
@@ -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
- Linting and checking validity of types ...
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 ...
@@ -50,10 +51,10 @@ Route (pages) Size First Load JS
50
51
  ├ └ css/b1806cbafd0c1f81.css 3.06 kB
51
52
  ├ /_app 0 B 92 kB
52
53
  ├ ● /[...slug] 2.09 kB 131 kB
53
- ├ ● /[slug]/p 34.1 kB 153 kB
54
+ ├ ● /[slug]/p 34 kB 153 kB
54
55
  ├ ├ css/bf1560439df2c1a1.css 5.66 kB
55
56
  ├ ├ css/e3ff5d95518a5c79.css 6.01 kB
56
- ├ └ css/d92839440872e246.css 15.6 kB
57
+ ├ └ css/d23b961580181439.css 15.6 kB
57
58
  ├ ○ /404 1.48 kB 121 kB
58
59
  ├ ● /500 1.48 kB 121 kB
59
60
  ├ ● /account 714 B 120 kB
@@ -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-209ac4974b020af1.js 33.1 kB
70
- ├ chunks/pages/_app-91d65e1abd88251d.js 9.97 kB
71
- ├ chunks/webpack-bf502499da135235.js 3.57 kB
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 69.82s.
79
+ Done in 68.23s.
@@ -1,12 +1,12 @@
1
1
  yarn run v1.22.22
2
2
  $ jest
3
- PASS test/server/cms/index.test.ts (36.143 s)
4
- PASS test/utils/multipleTemplates.test.ts (36.37 s)
5
- PASS test/server/index.test.ts (39.735 s)
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: 40.867 s
10
+ Time: 38.753 s
11
11
  Ran all test suites.
12
- Done in 42.35s.
12
+ Done in 40.26s.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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
+
10
+ ## [3.11.2](https://github.com/vtex/faststore/compare/v3.11.1...v3.11.2) (2025-01-29)
11
+
12
+ **Note:** Version bump only for package @faststore/core
13
+
6
14
  ## [3.11.1](https://github.com/vtex/faststore/compare/v3.11.0...v3.11.1) (2025-01-29)
7
15
 
8
16
  **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.
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line spaced-comment
2
1
  /// <reference types="cypress" />
3
2
  /**
4
3
  * Cypress tests for a11y (accessibility)
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line spaced-comment
2
1
  /// <reference types="cypress" />
3
2
  /**
4
3
  * Cypress tests for testing the Analytics module
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line spaced-comment
2
1
  /// <reference types="cypress" />
3
2
  /**
4
3
  * Cypress tests for testing the Cart module
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line spaced-comment
2
1
  /// <reference types="cypress" />
3
2
  /**
4
3
  * Cypress tests for PLP
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line spaced-comment
2
1
  /// <reference types="cypress" />
3
2
  /**
4
3
  * Cypress tests for Search Input
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line spaced-comment
2
1
  /// <reference types="cypress" />
3
2
  /**
4
3
  * Cypress tests for testing Seo tags, like canonicals, index/noindex and structured data
@@ -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
@@ -41,7 +41,6 @@ function logToTerminal(violations) {
41
41
 
42
42
  Cypress.Commands.overwrite(
43
43
  'checkA11y',
44
- // eslint-disable-next-line max-params
45
44
  (originalFn, context, options, callback) => {
46
45
  return originalFn(context, options, callback ?? logToTerminal)
47
46
  }
package/next.config.js CHANGED
@@ -65,6 +65,9 @@ const nextConfig = {
65
65
  },
66
66
  redirects: storeConfig.redirects,
67
67
  rewrites: storeConfig.rewrites,
68
+ eslint: {
69
+ ignoreDuringBuilds: true,
70
+ },
68
71
  }
69
72
 
70
73
  module.exports = nextConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.11.1",
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.9.2",
47
- "@faststore/components": "^3.9.2",
48
- "@faststore/graphql-utils": "^3.9.2",
49
- "@faststore/lighthouse": "^3.9.2",
50
- "@faststore/sdk": "^3.9.2",
51
- "@faststore/ui": "^3.9.2",
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": "6fea4f1cc3db6a9a894959c31ad2c9a47cfe941a"
104
+ "gitHead": "6b9aae9d5eb648c456b313cc210fa7e90821d5fb"
107
105
  }
@@ -7,9 +7,16 @@ import { gql } from '@generated/gql'
7
7
  import { useBuyButton } from 'src/sdk/cart/useBuyButton'
8
8
  import { usePDP } from 'src/sdk/overrides/PageProvider'
9
9
  import { useAllVariantProducts } from 'src/sdk/product/useAllVariantProducts'
10
+ import { Image } from '../Image'
10
11
 
11
12
  interface SKUMatrixProps extends UISKUMatrixSidebarProps {}
12
13
 
14
+ const ImageComponent: UISKUMatrixSidebarProps['ImageComponent'] = ({
15
+ src,
16
+ alt,
17
+ ...otherProps
18
+ }) => <Image src={src} alt={alt} width={48} height={48} {...otherProps} />
19
+
13
20
  function SKUMatrixSidebar(props: SKUMatrixProps) {
14
21
  const {
15
22
  data: { product },
@@ -76,6 +83,7 @@ function SKUMatrixSidebar(props: SKUMatrixProps) {
76
83
  buyProps={buyProps}
77
84
  title={product.isVariantOf.name ?? ''}
78
85
  loading={isValidating}
86
+ ImageComponent={ImageComponent}
79
87
  {...props}
80
88
  />
81
89
  )
@@ -1,2 +1 @@
1
- // eslint-disable-next-line import/no-anonymous-default-export
2
1
  export default {}
@@ -1,5 +1,3 @@
1
- /* eslint-disable @next/next/no-page-custom-font */
2
-
3
1
  function WebFonts() {
4
2
  return (
5
3
  <>
@@ -1,2 +1 @@
1
- // eslint-disable-next-line import/no-anonymous-default-export
2
1
  export default {}
@@ -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>> {