Skip to content

Commit

Permalink
refactor: deprecate parent and channelKey in compose action (#476)
Browse files Browse the repository at this point in the history
* refactor: deprecate `parent` in `ComposerActionMessage`

* chore: changesets

* nit: horsefacts review
  • Loading branch information
dalechyn authored Aug 22, 2024
1 parent b6c6467 commit 4539665
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .changeset/tiny-walls-collect.md
Original file line number Diff line number Diff line change
@@ -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).
2 changes: 0 additions & 2 deletions src/next/postComposerActionMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ export type ComposerActionMessage = {
type: 'createCast'
data: {
cast: {
channelKey?: string | undefined
embeds: string[]
parent?: string | undefined
text: string
}
}
Expand Down

0 comments on commit 4539665

Please sign in to comment.