From af7ef92a5bc1975a95151dd773a08dda394461b3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:38:11 -0800 Subject: [PATCH] =?UTF-8?q?chore:=20version=20packages=20v0.3.0=20?= =?UTF-8?q?=F0=9F=8C=8A=20(#45)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] Co-authored-by: Leonardo Zizzamia --- .changeset/brave-chefs-pay.md | 30 ------------------------------ CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 33 insertions(+), 31 deletions(-) delete mode 100644 .changeset/brave-chefs-pay.md diff --git a/.changeset/brave-chefs-pay.md b/.changeset/brave-chefs-pay.md deleted file mode 100644 index 7db5f0c40..000000000 --- a/.changeset/brave-chefs-pay.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@coinbase/onchainkit': minor ---- - -- **feat** have `getFrameAccountAddress` reading from the message instead of the body. By @zizzamia #46 -- **feat** update `getFrameMetadata` to the latest [Frame APIs](https://warpcast.com/v/0x24295a0a) By @zizzamia #43 - -BREAKING CHANGES - -We have enhanced the `getFrameAccountAddress` method by making it more composable with `getFrameMessage`. Now, instead of directly retrieving the `accountAddress` from the `body`, you will utilize the validated `message` to do so. - -Before - -```ts -import { getFrameAccountAddress } from '@coinbase/onchainkit'; - -... - -const accountAddress = await getFrameAccountAddress(body); -``` - -After - -```ts -import { getFrameAccountAddress } from '@coinbase/onchainkit'; - -... -const { isValid, message } = await getFrameMessage(body); -const accountAddress = await getFrameAccountAddress(message); -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 8631e03bc..3109c367f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## 0.3.0 + +### Minor Changes + +- **feat** have `getFrameAccountAddress` reading from the message instead of the body. By @zizzamia #46 0695eb9 + +- **feat** update `getFrameMetadata` to the latest [Frame APIs](https://warpcast.com/v/0x24295a0a) By @zizzamia #43 + +BREAKING CHANGES + +We have enhanced the `getFrameAccountAddress` method by making it more composable with `getFrameMessage`. Now, instead of directly retrieving the `accountAddress` from the `body`, you will utilize the validated `message` to do so. + +Before + +```ts +import { getFrameAccountAddress } from '@coinbase/onchainkit'; + +... + +const accountAddress = await getFrameAccountAddress(body); +``` + +After + +```ts +import { getFrameAccountAddress } from '@coinbase/onchainkit'; + +... +const { isValid, message } = await getFrameMessage(body); +const accountAddress = await getFrameAccountAddress(message); +``` + ## 0.2.1 ### Patch Changes diff --git a/package.json b/package.json index 520982a84..aba55e14b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coinbase/onchainkit", - "version": "0.2.1", + "version": "0.3.0", "repository": "https://github.com/coinbase/onchainkit.git", "license": "MIT", "dependencies": {