From 453966543df5c3b3eb8afa011f8895b5018aa000 Mon Sep 17 00:00:00 2001 From: Vladyslav Dalechyn Date: Fri, 23 Aug 2024 00:58:37 +0300 Subject: [PATCH] refactor: deprecate `parent` and `channelKey` in compose action (#476) * refactor: deprecate `parent` in `ComposerActionMessage` * chore: changesets * nit: horsefacts review --- .changeset/tiny-walls-collect.md | 34 +++++++++++++++++++++++++++ src/next/postComposerActionMessage.ts | 2 -- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .changeset/tiny-walls-collect.md diff --git a/.changeset/tiny-walls-collect.md b/.changeset/tiny-walls-collect.md new file mode 100644 index 00000000..77d193e3 --- /dev/null +++ b/.changeset/tiny-walls-collect.md @@ -0,0 +1,34 @@ +--- +"frog": minor +--- + +**Breaking Change**: `parent` and `channelKey` are deprecated in `ComposerActionMessage` + +```diff +import { postComposerActionMessage } from 'frog/next' + +postComposerActionMessage({ + type: "createCast", + data: { + cast: { + embeds: [/*...*/]; + text: 'Hi'; +- parent: '0x...' +- channelKey: '...' + }; + }; +}) +``` + +```diff +import { postComposerCreateCastActionMessage } from 'frog/next' + +postComposerCreateCastActionMessage({ + embeds: [/*...*/]; + text: 'Hi'; +- parent: '0x...' +- channelKey: '...' +}) +``` + +[See More](https://warpcast.com/horsefacts.eth/0x98185a2f). diff --git a/src/next/postComposerActionMessage.ts b/src/next/postComposerActionMessage.ts index 2cf20a9f..e4d9f8c9 100644 --- a/src/next/postComposerActionMessage.ts +++ b/src/next/postComposerActionMessage.ts @@ -2,9 +2,7 @@ export type ComposerActionMessage = { type: 'createCast' data: { cast: { - channelKey?: string | undefined embeds: string[] - parent?: string | undefined text: string } }