Skip to content

Commit

Permalink
chore: make sdkVersion header optional (#2897)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir authored Sep 21, 2024
1 parent 1086727 commit fb20e46
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .changeset/brown-months-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
'@reown/appkit-wallet': patch
'@apps/demo': patch
'@apps/gallery': patch
'@apps/laboratory': patch
'@examples/html-ethers': patch
'@examples/html-ethers5': patch
'@examples/html-wagmi': patch
'@examples/next-ethers': patch
'@examples/next-wagmi': patch
'@examples/react-ethers': patch
'@examples/react-ethers5': patch
'@examples/react-solana': patch
'@examples/react-wagmi': patch
'@examples/vue-ethers5': patch
'@examples/vue-solana': patch
'@examples/vue-wagmi': patch
'@reown/appkit-adapter-ethers': patch
'@reown/appkit-adapter-ethers5': patch
'@reown/appkit-adapter-polkadot': patch
'@reown/appkit-adapter-solana': patch
'@reown/appkit-adapter-wagmi': patch
'@reown/appkit': patch
'@reown/appkit-utils': patch
'@reown/appkit-cdn': patch
'@reown/appkit-common': patch
'@reown/appkit-core': patch
'@reown/appkit-ethers': patch
'@reown/appkit-ethers5': patch
'@reown/appkit-polyfills': patch
'@reown/appkit-scaffold-ui': patch
'@reown/appkit-siwe': patch
'@reown/appkit-solana': patch
'@reown/appkit-ui': patch
'@reown/appkit-wagmi': patch
---

Makes SDKType param optional
4 changes: 2 additions & 2 deletions packages/wallet/src/W3mFrameSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function zType<K extends keyof typeof W3mFrameConstants>(key: K) {

// -- Custom Types -----------------------------------------------------------
type SdkType = 'w3m' | 'appkit'
type SdkVersion = `${SdkFramework}-${AdapterType}-${string}` | AppKitSdkVersion
type SdkVersion = `${SdkFramework}-${AdapterType}-${string}` | AppKitSdkVersion | undefined

// -- Responses --------------------------------------------------------------
export const GetTransactionByHashResponse = z.object({
Expand Down Expand Up @@ -62,7 +62,7 @@ export const AppSyncDappDataRequest = z.object({
icons: z.array(z.string())
})
.optional(),
sdkVersion: z.string() as z.ZodType<SdkVersion>,
sdkVersion: z.string().optional() as z.ZodType<SdkVersion>,
sdkType: (z.string() as z.ZodType<SdkType>).optional(),
projectId: z.string()
})
Expand Down

0 comments on commit fb20e46

Please sign in to comment.