Skip to content

Latest commit

 

History

History
708 lines (407 loc) · 26.4 KB

File metadata and controls

708 lines (407 loc) · 26.4 KB

@farcaster/frame-kit

0.3.0

Minor Changes

  • #581 7b346f9 Thanks @lyoshenka! - Upgrade to Zod v4 and ox v0.14.x

    What changed

    • zod upgraded from ^3.x to ^4.0.0 across all packages.
    • ox upgraded from ^0.4.4 to ^0.14.0, removing its zod@^3 peer dependency.
    • The ethProvider parameter in @farcaster/miniapp-host and @farcaster/miniapp-host-react-native is now typed as Provider.Provider<undefined, true> (requires on/removeListener to be present, not optional). Runtime behavior is unchanged.

    Migration guide

    1. Zod v4 — upgrade your own zod dependency

    If your project imports zod directly, upgrade it:

    npm install zod@^4.0.0
    # or
    pnpm add zod@^4.0.0

    If you were composing schemas exported from these packages (e.g. domainMiniAppConfigSchema, versionSchema) with your own z.merge() or z.extend() calls, this is now required. Mixing a Zod v3 schema with a Zod v4 schema exported from this package will produce a runtime error like:

    TypeError: schema.merge is not a function
    

    or a TypeScript error like:

    Argument of type 'ZodObject<...>' is not assignable to parameter of type 'ZodObject<...>'
    

    Search pattern: grep your codebase for imports of schema objects from these packages combined with .merge(, .extend(, .and(, .or(, .pipe(:

    grep -r "miniapp-core\|frame-core" --include="*.ts" --include="*.tsx" -l | xargs grep -l "\.merge\|\.extend\|\.and\|\.or\|\.pipe"

    No code change is needed if you only call .parse(), .safeParse(), or use z.infer<typeof schema>.

    2. ethProvider type — fix TypeScript errors in host integrations

    Affected functions: exposeToEndpoint, useExposeToEndpoint, exposeToIframe (in @farcaster/miniapp-host), and useWebViewRpcAdapter, useExposeWebViewToEndpoint (in @farcaster/miniapp-host-react-native).

    If you pass a custom ethProvider, you may see a TypeScript error like:

    Argument of type 'EthereumProvider' is not assignable to parameter of type 'Provider<undefined, true>'.
      Types of property 'on' are incompatible.
    

    The provider must now declare on and removeListener as required (not optional) methods. If your provider wraps a standard EIP-1193 provider, assert the type:

    // Before
    exposeToEndpoint({ ..., ethProvider: myProvider })
    
    // After — if myProvider has on/removeListener but TypeScript doesn't see them as required
    import type * as OxProvider from 'ox/Provider'
    exposeToEndpoint({ ..., ethProvider: myProvider as OxProvider.Provider<undefined, true> })

    Or narrow at the call site:

    if (typeof myProvider.on === 'function' && typeof myProvider.removeListener === 'function') {
      exposeToEndpoint({ ..., ethProvider: myProvider })
    }

    Search pattern:

    grep -r "exposeToEndpoint\|useExposeToEndpoint\|exposeToIframe\|useWebViewRpcAdapter\|useExposeWebViewToEndpoint" --include="*.ts" --include="*.tsx" -l

    3. Wagmi connector — ensure your provider implements event methods

    @farcaster/miniapp-wagmi-connector now throws at connect time if the provider is missing on or removeListener:

    Error: MiniApp provider does not support event listeners.
    

    Previously this was a silent no-op. If you supply a custom provider to the wagmi connector, ensure it implements the full EIP-1193 event interface.

Patch Changes

  • Updated dependencies [7b346f9]:
    • @farcaster/miniapp-core@0.6.0

0.2.3

Patch Changes

  • #559 5e466f0 Thanks @tybook! - Test deploy via new CI auth method

  • Updated dependencies [5e466f0]:

    • @farcaster/miniapp-core@0.5.1

0.2.2

Patch Changes

  • Updated dependencies [e640bf5]:
    • @farcaster/miniapp-core@0.5.0

0.2.1

Patch Changes

  • Updated dependencies [153d925]:
    • @farcaster/miniapp-core@0.4.1

0.2.0

Minor Changes

Patch Changes

  • Updated dependencies [9edfb78]:
    • @farcaster/miniapp-core@0.4.0

0.1.10

Patch Changes

  • #478 a631434 Thanks @PirosB3! - Added experimental manifest signing tool

  • Updated dependencies [a631434]:

    • @farcaster/miniapp-core@0.3.9

0.1.9

Patch Changes

0.1.8

Patch Changes

  • #456 5bc0153 Thanks @PirosB3! - added experimental camera permissions

  • Updated dependencies [5bc0153]:

    • @farcaster/miniapp-core@0.3.7

0.1.7

Patch Changes

  • Updated dependencies [614ec77]:
    • @farcaster/miniapp-core@0.3.6

0.1.6

Patch Changes

0.1.5

Patch Changes

  • Updated dependencies [764c392]:
    • @farcaster/miniapp-core@0.3.5

0.1.4

Patch Changes

  • Updated dependencies [1e46d5f]:
    • @farcaster/miniapp-core@0.3.4

0.1.3

Patch Changes

  • #418 384866f Thanks @deodad! - Made addMiniApp backwards compatible.

  • Updated dependencies [384866f]:

    • @farcaster/miniapp-core@0.3.3

0.1.2

Patch Changes

  • Updated dependencies [960dc83]:
    • @farcaster/miniapp-core@0.3.2

0.1.1

Patch Changes

  • Updated dependencies [92f1de9]:
    • @farcaster/miniapp-core@0.3.1

0.1.0

Minor Changes

Patch Changes

  • Updated dependencies [d23f93f]:
    • @farcaster/miniapp-core@0.3.0

0.0.64

Patch Changes

  • Updated dependencies [6c593bf]:
    • @farcaster/frame-core@0.2.0

0.0.63

Patch Changes

  • Updated dependencies [3417795]:
    • @farcaster/frame-core@0.1.10

0.0.62

Patch Changes

  • Updated dependencies [a9e5271]:
    • @farcaster/frame-core@0.1.9

0.0.61

Patch Changes

0.0.60

Patch Changes

  • Updated dependencies [3e29677]:
    • @farcaster/frame-core@0.1.8

0.0.59

Patch Changes

0.0.58

Patch Changes

  • Updated dependencies [52db973]:
    • @farcaster/frame-core@0.1.7

0.0.57

Patch Changes

  • Updated dependencies [2346ca2]:
    • @farcaster/frame-core@0.1.6

0.0.56

Patch Changes

0.0.55

Patch Changes

0.0.54

Patch Changes

0.0.53

Patch Changes

  • #324 fcb978f Thanks @Ashoat! - Use fully-qualified import paths with file extensions

  • Updated dependencies [fcb978f]:

    • @farcaster/frame-core@0.1.2

0.0.52

Patch Changes

0.0.51

Patch Changes

  • Updated dependencies [6d75914]:
    • @farcaster/frame-core@0.1.0

0.0.50

Patch Changes

0.0.49

Patch Changes

  • #291 d968e02 Thanks @Ashoat! - Introduce @farcaster/mini-app-solana with Wallet Standard support for Solana

0.0.48

Patch Changes

0.0.47

Patch Changes

  • #283 600c53d Thanks @deodad! - Bumped @farcaster/quick-auth version.

  • Updated dependencies []:

    • @farcaster/frame-core@0.0.40

0.0.46

Patch Changes

  • #281 18af402 Thanks @deodad! - Added experimental quickAuth SDK action.

  • Updated dependencies []:

    • @farcaster/frame-core@0.0.40

0.0.45

Patch Changes

  • Updated dependencies [978ab3b]:
    • @farcaster/frame-core@0.0.40

0.0.44

Patch Changes

  • Updated dependencies [dc6e185]:
    • @farcaster/frame-core@0.0.39

0.0.43

Patch Changes

  • #270 9ca5d35 Thanks @Ashoat! - Add getChains and rename getEvmProvider to getEthereumProvider

  • Updated dependencies [9ca5d35]:

    • @farcaster/frame-core@0.0.38

0.0.42

Patch Changes

0.0.41

Patch Changes

  • #257 dc12377 Thanks @Ashoat! - Fix SDK crash on getEvmProvider/getSolanaProvider if host doesn't support getCapabilities

0.0.40

Patch Changes

0.0.39

Patch Changes

0.0.38

Patch Changes

0.0.37

Patch Changes

  • #211 a06cbb3 Thanks @Slokh! - feat: add experimental token actions

  • Updated dependencies [a06cbb3]:

    • @farcaster/frame-core@0.0.34

0.0.36

Patch Changes

  • Updated dependencies [b1c125f]:
    • @farcaster/frame-core@0.0.33

0.0.35

Patch Changes

  • Updated dependencies [2617d14]:
    • @farcaster/frame-core@0.0.32

0.0.34

Patch Changes

  • Updated dependencies [c960c03]:
    • @farcaster/frame-core@0.0.31

0.0.33

Patch Changes

0.0.32

Patch Changes

0.0.31

Patch Changes

0.0.30

Patch Changes

0.0.29

Patch Changes

0.0.28

Patch Changes

  • Updated dependencies [b20e3cf]:
    • @farcaster/frame-core@0.0.26

0.0.27

Patch Changes

  • Updated dependencies [ce37061]:
    • @farcaster/frame-core@0.0.25

0.0.26

Patch Changes

0.0.25

Patch Changes

  • Updated dependencies [5b8367c]:
    • @farcaster/frame-core@0.0.23

0.0.24

Patch Changes

  • 81eb169 Thanks @deodad! - fix webview listener for eip6963:announceProvider

0.0.23

Patch Changes

0.0.22

Patch Changes

  • Updated dependencies [1c4c66a]
    • @farcaster/frame-core@0.0.21

0.0.21

Patch Changes

  • Updated dependencies [6f9253d]
  • Updated dependencies [2a68a88]
    • @farcaster/frame-core@0.0.20

0.0.20

Patch Changes

  • f5457ab: Add real-time eventing from host to frame
  • Updated dependencies [f5457ab]
    • @farcaster/frame-core@0.0.19

0.0.19

Patch Changes

  • 27e8fca: add sign in action
  • Updated dependencies [27e8fca]
    • @farcaster/frame-core@0.0.18

0.0.18

Patch Changes

  • Updated dependencies [2a5ec00]
    • @farcaster/frame-core@0.0.17

0.0.17

Patch Changes

  • Updated dependencies [fdcc36a]
    • @farcaster/frame-core@0.0.16

0.0.16

Patch Changes

  • Updated dependencies [2e0e776]
    • @farcaster/frame-core@0.0.15

0.0.15

Patch Changes

  • Updated dependencies [444a210]
    • @farcaster/frame-core@0.0.14

0.0.14

Patch Changes

  • Updated dependencies [4e2a50f]
    • @farcaster/frame-core@0.0.13

0.0.13

Patch Changes

  • Updated dependencies [a2e727d]
    • @farcaster/frame-core@0.0.12

0.0.12

Patch Changes

  • 06ca566: optional ready options
  • Updated dependencies [06ca566]
  • Updated dependencies [7f35aa5]
  • Updated dependencies [aaf9e0e]
    • @farcaster/frame-core@0.0.11

0.0.11

Patch Changes

  • 840776c: add ready options with disableNativeGestures
  • Updated dependencies [840776c]
    • @farcaster/frame-core@0.0.10

0.0.10

Patch Changes

  • c4815e8: split out React Native host into its own package
  • Updated dependencies [c4815e8]
    • @farcaster/frame-core@0.0.9

0.0.9

Patch Changes

  • 5e70f39: support iframe channel in host and sdk
  • Updated dependencies [5e70f39]
    • @farcaster/frame-core@0.0.8

0.0.8

Patch Changes

  • e716b1c: Support Ethereum Provider events, preserve errors over the wire
  • Updated dependencies [e716b1c]
    • @farcaster/frame-core@0.0.7

0.0.7

Patch Changes

  • Updated dependencies [886a9bb]
    • @farcaster/frame-core@0.0.6

0.0.6

Patch Changes

  • a258394: Add support for adding frames, notifications and events
  • Updated dependencies [a258394]
    • @farcaster/frame-core@0.0.5

0.0.5

Patch Changes

  • 5b5f68d: export sdk under named export

0.0.4

Patch Changes

  • a17c2f1: include umd bundle

0.0.3

Patch Changes

  • 0784a43: Fixed an window is not defined issue that happened when during SSR window (and document) have been attempted to be accessed.

0.0.2

Patch Changes

  • Updated dependencies [59ab89c]
    • @farcaster/frame-core@0.0.4