From 04f598b875548d036a0a5a289efed3b8bacbc638 Mon Sep 17 00:00:00 2001 From: Leonardo Zizzamia Date: Sun, 18 Feb 2024 14:37:19 -0800 Subject: [PATCH 1/2] chore: version docs --- .changeset/chatty-bananas-breathe.md | 10 ++++++++++ src/version.ts | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.changeset/chatty-bananas-breathe.md b/.changeset/chatty-bananas-breathe.md index 2bb92faae9..b79e6d8208 100644 --- a/.changeset/chatty-bananas-breathe.md +++ b/.changeset/chatty-bananas-breathe.md @@ -3,3 +3,13 @@ --- - **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. \ No newline at end of file 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'; From 73b5ebfd5b9e080d457751c77c53b5ca961dc49e Mon Sep 17 00:00:00 2001 From: Leonardo Zizzamia Date: Sun, 18 Feb 2024 14:39:01 -0800 Subject: [PATCH 2/2] chore: version docs --- .changeset/chatty-bananas-breathe.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.changeset/chatty-bananas-breathe.md b/.changeset/chatty-bananas-breathe.md index b79e6d8208..5f8864af9c 100644 --- a/.changeset/chatty-bananas-breathe.md +++ b/.changeset/chatty-bananas-breathe.md @@ -8,8 +8,9 @@ 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. \ No newline at end of file +5. Wait at least 5 seconds for a response from the frame server.