From a33cc03623fd72429d7d505d88376c668c6c105a Mon Sep 17 00:00:00 2001 From: Leonardo Zizzamia Date: Sun, 18 Feb 2024 14:40:51 -0800 Subject: [PATCH] chore: version docs (#143) --- .changeset/chatty-bananas-breathe.md | 11 +++++++++++ src/version.ts | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.changeset/chatty-bananas-breathe.md b/.changeset/chatty-bananas-breathe.md index 2bb92faae9..5f8864af9c 100644 --- a/.changeset/chatty-bananas-breathe.md +++ b/.changeset/chatty-bananas-breathe.md @@ -3,3 +3,14 @@ --- - **feat**: Updated `FrameMetadataType` to support `target` for button `post` and `post_redirect` actions. By @HashWarlock @zizzamia #130 #136 + +Note: +In this release we update the `FrameMetadataType` so that it supports the latest [Handling Clicks](https://docs.farcaster.xyz/reference/frames/spec#handling-clicks) Frames specification. + +If the button clicked is a `post` or `post_redirect`, apps must: + +1. Construct a Frame Signature Packet. +2. POST the packet to `fc:frame:button:$idx:target` if present +3. POST the packet to `fc:frame:post_url if target` was not present. +4. POST the packet to or the frame's embed URL if neither target nor action were present. +5. Wait at least 5 seconds for a response from the frame server. diff --git a/src/version.ts b/src/version.ts index 1929953dd0..54bbec8358 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = '0.6.3'; +export const version = '0.7.0';