Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: version packages #735

Merged
merged 4 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/blue-wasps-hunt.md

This file was deleted.

25 changes: 25 additions & 0 deletions packages/frames-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @xmtp/frames-client

## 1.0.0

### BREAKING CHANGE

- 86a8f9f: Refactored signing process using a new `FramesSigner` type

The `FramesClient` class now accepts a `FramesSigner` that handles signing of the frame actions. It supports both V2 and V3 signers.

```ts
type V2FramesSigner = {
address: () => Promise<string> | string;
getPublicKeyBundle: () => Promise<publicKeyProto.PublicKeyBundle>;
sign: (message: Uint8Array) => Promise<signatureProto.Signature>;
};

type V3FramesSigner = {
installationId: () => Promise<Uint8Array> | Uint8Array;
inboxId: () => Promise<string> | string;
address: () => Promise<string> | string;
sign: (message: Uint8Array) => Promise<Uint8Array> | Uint8Array;
};

type FramesSigner = V2FramesSigner | V3FramesSigner;
```

## 0.5.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/frames-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xmtp/frames-client",
"version": "0.5.5",
"version": "1.0.0",
"keywords": [
"xmtp",
"messaging",
Expand Down
19 changes: 19 additions & 0 deletions packages/frames-validator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @xmtp/frames-validator

## 1.0.0

### BREAKING CHANGE

- 86a8f9f: Added support for validating V3 frames

`validateFramesPost` is now async to support fetching the inbox ID of an account address when validating V3 frames. It also accepts a second parameter to specify the environment to use when looking up inbox IDs. In production, this parameter **must** be set to `production`.

```ts
import { XmtpValidator, validateFramesPost } from "@xmtp/frames-validator";

const validator = new XmtpValidator();
// environment must be set in production (default: "dev")
const validation = await validator(payload, "production");

// now async, also requires environment in production (default: "dev")
const validation = await validateFramesPost(payload, "production");
```

## 0.6.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/frames-validator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xmtp/frames-validator",
"version": "0.6.3",
"version": "1.0.0",
"description": "A validator for XMTP frames requests",
"homepage": "https://github.com/xmtp/xmtp-js",
"bugs": {
Expand Down Expand Up @@ -49,7 +49,7 @@
"@open-frames/types": "^0.1.1",
"@rollup/plugin-typescript": "^12.1.1",
"@types/bl": "^5.1.4",
"@xmtp/frames-client": "^0.5.5",
"@xmtp/frames-client": "^1.0.0",
"@xmtp/xmtp-js": "^12.1.0",
"ethers": "^6.10.0",
"fast-glob": "^3.3.2",
Expand Down
Loading