@faststore/core 3.65.1 → 3.66.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.
Files changed (84) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  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/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/routes-manifest.json +1 -1
  12. package/.next/server/chunks/2445.js +1 -22
  13. package/.next/server/chunks/{3412.js → 4168.js} +1 -1
  14. package/.next/server/chunks/9563.js +2 -2
  15. package/.next/server/chunks/9630.js +395 -0
  16. package/.next/server/functions-config-manifest.json +1 -1
  17. package/.next/server/middleware-build-manifest.js +1 -1
  18. package/.next/server/pages/404.js +1 -1
  19. package/.next/server/pages/404.js.nft.json +1 -1
  20. package/.next/server/pages/500.js +1 -1
  21. package/.next/server/pages/500.js.nft.json +1 -1
  22. package/.next/server/pages/[...slug].js +1 -1
  23. package/.next/server/pages/[...slug].js.nft.json +1 -1
  24. package/.next/server/pages/[slug]/p.js +1 -1
  25. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  26. package/.next/server/pages/_app.js +1 -1
  27. package/.next/server/pages/_app.js.nft.json +1 -1
  28. package/.next/server/pages/_document.js +1 -1
  29. package/.next/server/pages/_document.js.nft.json +1 -1
  30. package/.next/server/pages/_error.js +1 -1
  31. package/.next/server/pages/_error.js.nft.json +1 -1
  32. package/.next/server/pages/account/403.js +1 -1
  33. package/.next/server/pages/account/403.js.nft.json +1 -1
  34. package/.next/server/pages/account/404.js +1 -1
  35. package/.next/server/pages/account/404.js.nft.json +1 -1
  36. package/.next/server/pages/account/[...unknown].js +1 -1
  37. package/.next/server/pages/account/[...unknown].js.nft.json +1 -1
  38. package/.next/server/pages/account/orders/[id].js +1 -1
  39. package/.next/server/pages/account/orders/[id].js.nft.json +1 -1
  40. package/.next/server/pages/account/orders.js +1 -1
  41. package/.next/server/pages/account/orders.js.nft.json +1 -1
  42. package/.next/server/pages/account/profile.js +1 -1
  43. package/.next/server/pages/account/profile.js.nft.json +1 -1
  44. package/.next/server/pages/account/security.js +1 -1
  45. package/.next/server/pages/account/security.js.nft.json +1 -1
  46. package/.next/server/pages/account/user-details.js +1 -1
  47. package/.next/server/pages/account/user-details.js.nft.json +1 -1
  48. package/.next/server/pages/account.js +1 -1
  49. package/.next/server/pages/account.js.nft.json +1 -1
  50. package/.next/server/pages/api/graphql.js +2 -2
  51. package/.next/server/pages/api/graphql.js.nft.json +1 -1
  52. package/.next/server/pages/api/health/live.js.nft.json +1 -1
  53. package/.next/server/pages/api/health/ready.js.nft.json +1 -1
  54. package/.next/server/pages/api/preview.js.nft.json +1 -1
  55. package/.next/server/pages/checkout.js +1 -1
  56. package/.next/server/pages/checkout.js.nft.json +1 -1
  57. package/.next/server/pages/en-US/404.html +2 -2
  58. package/.next/server/pages/en-US/500.html +2 -2
  59. package/.next/server/pages/en-US/checkout.html +2 -2
  60. package/.next/server/pages/en-US/login.html +2 -2
  61. package/.next/server/pages/en-US/s.html +2 -2
  62. package/.next/server/pages/en-US.html +2 -2
  63. package/.next/server/pages/index.js +1 -1
  64. package/.next/server/pages/index.js.nft.json +1 -1
  65. package/.next/server/pages/login.js +1 -1
  66. package/.next/server/pages/login.js.nft.json +1 -1
  67. package/.next/server/pages/s.js +1 -1
  68. package/.next/server/pages/s.js.nft.json +1 -1
  69. package/.next/server/pages-manifest.json +1 -1
  70. package/.next/static/chunks/pages/_app-1885a948b243078c.js +1 -0
  71. package/.next/trace +132 -131
  72. package/.turbo/turbo-build.log +31 -31
  73. package/.turbo/turbo-test.log +5 -6
  74. package/@generated/graphql.ts +31 -0
  75. package/@generated/schema.graphql +27 -0
  76. package/CHANGELOG.md +12 -0
  77. package/package.json +3 -3
  78. package/src/pages/_app.tsx +4 -1
  79. package/src/pages/_document.tsx +0 -2
  80. package/test/server/index.test.ts +1 -0
  81. package/.next/server/chunks/6011.js +0 -374
  82. package/.next/static/chunks/pages/_app-1c533ab202b7acef.js +0 -1
  83. /package/.next/static/{Ng-7veMyFA-ZQMeoLafNn → pub-GYCLSosy4MirjEMnD}/_buildManifest.js +0 -0
  84. /package/.next/static/{Ng-7veMyFA-ZQMeoLafNn → pub-GYCLSosy4MirjEMnD}/_ssgManifest.js +0 -0
@@ -1,23 +1,23 @@
1
1
 
2
- > @faststore/core@3.65.0 prebuild /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@3.65.2 prebuild /home/runner/work/faststore/faststore/packages/core
3
3
  > na run partytown && na run generate
4
4
 
5
5
 
6
- > @faststore/core@3.65.0 partytown /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@3.65.2 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.65.0 generate /home/runner/work/faststore/faststore/packages/core
11
+ > @faststore/core@3.65.2 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.65.0 generate:schema /home/runner/work/faststore/faststore/packages/core
15
+ > @faststore/core@3.65.2 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.65.0 generate:codegen /home/runner/work/faststore/faststore/packages/core
20
+ > @faststore/core@3.65.2 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.65.0 format:generated /home/runner/work/faststore/faststore/packages/core
40
+ > @faststore/core@3.65.2 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.65.0 build /home/runner/work/faststore/faststore/packages/core
44
+ > @faststore/core@3.65.2 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
@@ -70,43 +70,43 @@ Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Cont
70
70
  Collecting build traces ...
71
71
 
72
72
  Route (pages) Size First Load JS
73
- ┌ ● / 3.87 kB 134 kB
73
+ ┌ ● / 3.87 kB 136 kB
74
74
  ├ └ css/b1806cbafd0c1f81.css 3.06 kB
75
- ├ /_app 0 B 100 kB
76
- ├ ● /[...slug] 2.38 kB 141 kB
77
- ├ ● /[slug]/p 32.4 kB 162 kB
75
+ ├ /_app 0 B 102 kB
76
+ ├ ● /[...slug] 2.38 kB 143 kB
77
+ ├ ● /[slug]/p 32.4 kB 164 kB
78
78
  ├ ├ css/a3ca6a9b63f657be.css 5.75 kB
79
79
  ├ ├ css/62a5153ac7061286.css 6.11 kB
80
80
  ├ └ css/6831395ff5fd317a.css 16.1 kB
81
- ├ ○ /404 1.48 kB 131 kB
82
- ├ ● /500 1.48 kB 131 kB
83
- ├ λ /account 240 B 101 kB
84
- ├ ● /account/[...unknown] 281 B 101 kB
85
- ├ λ /account/403 2.39 kB 132 kB
81
+ ├ ○ /404 1.48 kB 133 kB
82
+ ├ ● /500 1.48 kB 133 kB
83
+ ├ λ /account 240 B 103 kB
84
+ ├ ● /account/[...unknown] 281 B 103 kB
85
+ ├ λ /account/403 2.39 kB 134 kB
86
86
  ├ └ css/b7bba8fce075688b.css 4.2 kB
87
- ├ λ /account/404 2.07 kB 132 kB
87
+ ├ λ /account/404 2.07 kB 134 kB
88
88
  ├ └ css/5347dbc8b71de47d.css 4.25 kB
89
- ├ λ /account/orders 8.66 kB 139 kB
89
+ ├ λ /account/orders 8.66 kB 141 kB
90
90
  ├ └ css/8a3f440e0ff9cd8e.css 11.9 kB
91
- ├ λ /account/orders/[id] 11.9 kB 142 kB
91
+ ├ λ /account/orders/[id] 11.9 kB 144 kB
92
92
  ├ └ css/ba1d8927d8745656.css 12.6 kB
93
- ├ λ /account/profile 1.75 kB 132 kB
93
+ ├ λ /account/profile 1.75 kB 134 kB
94
94
  ├ └ css/831a1f72fe4b2d80.css 3.97 kB
95
- ├ λ /account/security 2.44 kB 132 kB
95
+ ├ λ /account/security 2.44 kB 134 kB
96
96
  ├ └ css/32b1696118552960.css 5.19 kB
97
- ├ λ /account/user-details 1.7 kB 132 kB
97
+ ├ λ /account/user-details 1.7 kB 134 kB
98
98
  ├ └ css/e46393a76c5d93a9.css 4.17 kB
99
- ├ λ /api/graphql 0 B 100 kB
100
- ├ λ /api/health/live 0 B 100 kB
101
- ├ λ /api/health/ready 0 B 100 kB
102
- ├ λ /api/preview 0 B 100 kB
103
- ├ ● /checkout 696 B 131 kB
104
- ├ ● /login 1.59 kB 131 kB
105
- └ ● /s 3.16 kB 142 kB
106
- + First Load JS shared by all 104 kB
99
+ ├ λ /api/graphql 0 B 102 kB
100
+ ├ λ /api/health/live 0 B 102 kB
101
+ ├ λ /api/health/ready 0 B 102 kB
102
+ ├ λ /api/preview 0 B 102 kB
103
+ ├ ● /checkout 696 B 133 kB
104
+ ├ ● /login 1.59 kB 134 kB
105
+ └ ● /s 3.16 kB 144 kB
106
+ + First Load JS shared by all 106 kB
107
107
  ├ chunks/framework-807b0f81cbc129f0.js 45.4 kB
108
108
  ├ chunks/main-f658704b53a96ab1.js 33.1 kB
109
- ├ chunks/pages/_app-1c533ab202b7acef.js 18.2 kB
109
+ ├ chunks/pages/_app-1885a948b243078c.js 20.2 kB
110
110
  ├ chunks/webpack-a24b8ac1ca628dfe.js 3.76 kB
111
111
  └ css/0a57ee6c7a57788c.css 3.49 kB
112
112
 
@@ -1,15 +1,14 @@
1
1
 
2
- > @faststore/core@3.65.0 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@3.65.2 test /home/runner/work/faststore/faststore/packages/core
3
3
  > jest
4
4
 
5
- PASS test/server/cms/global.test.ts (27.146 s)
6
- PASS test/utils/multipleTemplates.test.ts (27.824 s)
5
+ PASS test/utils/multipleTemplates.test.ts (26.221 s)
6
+ PASS test/server/cms/global.test.ts (26.296 s)
7
7
  PASS test/server/cms/index.test.ts
8
- PASS test/server/index.test.ts (32.488 s)
9
- 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
+ PASS test/server/index.test.ts (31.934 s)
10
9
 
11
10
  Test Suites: 4 passed, 4 total
12
11
  Tests: 22 passed, 22 total
13
12
  Snapshots: 0 total
14
- Time: 33.969 s
13
+ Time: 33.29 s
15
14
  Ran all test suites.
@@ -373,6 +373,20 @@ export type IProcessOrderAuthorization = {
373
373
  ruleId: Scalars['String']['input']
374
374
  }
375
375
 
376
+ /** Input type for setting a new password. */
377
+ export type ISetPassword = {
378
+ /** Optional access key for the user, used in some authentication flows. */
379
+ accesskey: InputMaybe<Scalars['String']['input']>
380
+ /** The current password of the user, required for verification before changing to the new password. */
381
+ currentPassword: Scalars['String']['input']
382
+ /** The email of the user for whom the password is being set. */
383
+ email: Scalars['String']['input']
384
+ /** The new password to be set for the user. */
385
+ newPassword: Scalars['String']['input']
386
+ /** Optional reCAPTCHA token for security verification. */
387
+ recaptcha: InputMaybe<Scalars['String']['input']>
388
+ }
389
+
376
390
  /** Shipping Simulation item input. */
377
391
  export type IShippingItem = {
378
392
  /** ShippingItem ID / Sku. */
@@ -625,6 +639,11 @@ export type Mutation = {
625
639
  cancelOrder: Maybe<UserOrderCancel>
626
640
  /** Process Order Authorization */
627
641
  processOrderAuthorization: Maybe<ProcessOrderAuthorizationResponse>
642
+ /**
643
+ * Sets a new password for the user.
644
+ * This mutation is used to change the user's password, typically after a password reset or when the user wants to update their password.
645
+ */
646
+ setPassword: Maybe<SetPasswordResponse>
628
647
  /** Subscribes a new person to the newsletter list. */
629
648
  subscribeToNewsletter: Maybe<PersonNewsletter>
630
649
  /** Checks for changes between the cart presented in the UI and the cart stored in the ecommerce platform. If changes are detected, it returns the cart stored on the platform. Otherwise, it returns `null`. */
@@ -641,6 +660,10 @@ export type MutationProcessOrderAuthorizationArgs = {
641
660
  data: IProcessOrderAuthorization
642
661
  }
643
662
 
663
+ export type MutationSetPasswordArgs = {
664
+ data: ISetPassword
665
+ }
666
+
644
667
  export type MutationSubscribeToNewsletterArgs = {
645
668
  data: IPersonNewsletter
646
669
  }
@@ -890,6 +913,14 @@ export type SellersData = {
890
913
  sellers: Maybe<Array<Maybe<SellerInfo>>>
891
914
  }
892
915
 
916
+ /** Response type for setting a new password. */
917
+ export type SetPasswordResponse = {
918
+ /** Message providing additional information about the operation. */
919
+ message: Maybe<Scalars['String']['output']>
920
+ /** Indicates whether the password was successfully set. */
921
+ success: Scalars['Boolean']['output']
922
+ }
923
+
893
924
  /** Shipping Simulation information. */
894
925
  export type ShippingData = {
895
926
  /** Address information. */
@@ -236,6 +236,11 @@ type Mutation {
236
236
  cancelOrder(data: IUserOrderCancel!): UserOrderCancel
237
237
  """Process Order Authorization"""
238
238
  processOrderAuthorization(data: IProcessOrderAuthorization!): ProcessOrderAuthorizationResponse
239
+ """
240
+ Sets a new password for the user.
241
+ This mutation is used to change the user's password, typically after a password reset or when the user wants to update their password.
242
+ """
243
+ setPassword(data: ISetPassword!): SetPasswordResponse
239
244
  }
240
245
 
241
246
  """Newsletter information."""
@@ -562,6 +567,28 @@ type StorePageInfo {
562
567
  totalCount: Int!
563
568
  }
564
569
 
570
+ """Input type for setting a new password."""
571
+ input ISetPassword {
572
+ """The email of the user for whom the password is being set."""
573
+ email: String!
574
+ """The new password to be set for the user."""
575
+ newPassword: String!
576
+ """The current password of the user, required for verification before changing to the new password."""
577
+ currentPassword: String!
578
+ """Optional access key for the user, used in some authentication flows."""
579
+ accesskey: String
580
+ """Optional reCAPTCHA token for security verification."""
581
+ recaptcha: String
582
+ }
583
+
584
+ """Response type for setting a new password."""
585
+ type SetPasswordResponse {
586
+ """Indicates whether the password was successfully set."""
587
+ success: Boolean!
588
+ """Message providing additional information about the operation."""
589
+ message: String
590
+ }
591
+
565
592
  """Client profile data."""
566
593
  type StorePerson {
567
594
  """Client ID."""
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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.66.0](https://github.com/vtex/faststore/compare/v3.65.2...v3.66.0) (2025-07-23)
7
+
8
+ ### Features
9
+
10
+ - add mutation to set new password ([#2949](https://github.com/vtex/faststore/issues/2949)) ([f2f3beb](https://github.com/vtex/faststore/commit/f2f3bebfafd9500e3eb2f9d98220f7400ea9fd0e))
11
+
12
+ ## [3.65.2](https://github.com/vtex/faststore/compare/v3.65.1...v3.65.2) (2025-07-22)
13
+
14
+ ### Bug Fixes
15
+
16
+ - duplicated meta tags ([#2947](https://github.com/vtex/faststore/issues/2947)) ([4934609](https://github.com/vtex/faststore/commit/4934609cca34b1e5e7c843a4bd61fb851e954f03))
17
+
6
18
  ## [3.65.1](https://github.com/vtex/faststore/compare/v3.65.0...v3.65.1) (2025-07-17)
7
19
 
8
20
  **Note:** Version bump only for package @faststore/core
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.65.1",
3
+ "version": "3.66.0",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -44,7 +44,7 @@
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.65.1",
47
+ "@faststore/api": "^3.66.0",
48
48
  "@faststore/graphql-utils": "^3.56.1",
49
49
  "@faststore/lighthouse": "^3.56.1",
50
50
  "@faststore/sdk": "^3.63.0",
@@ -107,5 +107,5 @@
107
107
  "ts-jest": "29.1.1",
108
108
  "typescript": "5.3.2"
109
109
  },
110
- "gitHead": "20034f929a5207dcf808fb24a8455c809e8cc00f"
110
+ "gitHead": "df3a172b06dc2e5759067eeed6dd13905003b7d7"
111
111
  }
@@ -1,5 +1,6 @@
1
1
  import { UIProvider } from '@faststore/ui'
2
2
  import type { AppProps } from 'next/app'
3
+ import ThirdPartyScripts from 'src/components/ThirdPartyScripts'
3
4
  import Layout from 'src/Layout'
4
5
  import AnalyticsHandler from 'src/sdk/analytics'
5
6
  import ErrorBoundary from 'src/sdk/error/ErrorBoundary'
@@ -9,9 +10,10 @@ import SEO from '../../next-seo.config'
9
10
  // FastStore UI's base styles
10
11
  import '../styles/main.scss'
11
12
 
13
+ import { useSearch } from '@faststore/sdk'
12
14
  import { DefaultSeo } from 'next-seo'
15
+ import Head from 'next/head'
13
16
  import { useRouter } from 'next/router'
14
- import { useSearch } from '@faststore/sdk'
15
17
  import { ITEMS_PER_PAGE } from 'src/constants'
16
18
 
17
19
  function App({ Component, pageProps }: AppProps) {
@@ -25,6 +27,7 @@ function App({ Component, pageProps }: AppProps) {
25
27
 
26
28
  return (
27
29
  <ErrorBoundary>
30
+ <Head> {!process.env.DISABLE_3P_SCRIPTS && <ThirdPartyScripts />}</Head>
28
31
  <DefaultSeo {...SEO} />
29
32
 
30
33
  <AnalyticsHandler />
@@ -1,7 +1,6 @@
1
1
  import { Head, Html, Main, NextScript } from 'next/document'
2
2
  import storeConfig from '../../discovery.config'
3
3
 
4
- import ThirdPartyScripts from 'src/components/ThirdPartyScripts'
5
4
  import { WebFonts } from 'src/customizations/src/GlobalOverrides'
6
5
 
7
6
  function Document() {
@@ -17,7 +16,6 @@ function Document() {
17
16
  href={`https://${storeConfig.api.storeId}.vtexassets.com`}
18
17
  />
19
18
  <meta name="storefront" content="fast_store" />
20
- {!process.env.DISABLE_3P_SCRIPTS && <ThirdPartyScripts />}
21
19
  <WebFonts />
22
20
  </Head>
23
21
  <body className="theme">
@@ -88,6 +88,7 @@ const MUTATIONS = [
88
88
  'subscribeToNewsletter',
89
89
  'cancelOrder',
90
90
  'processOrderAuthorization',
91
+ 'setPassword',
91
92
  ]
92
93
 
93
94
  describe('FastStore GraphQL Layer', () => {