Releases: xmtp/xmtp-js
Releases · xmtp/xmtp-js
@xmtp/[email protected]
Patch Changes
- 9324310:
- Added
installationIdBytes
toClient
- Refactored
Client.verifySignedWithInstallationKey
to return aboolean
- Changed
Client.verifySignedWithPublicKey
to a static method
- Added
@xmtp/[email protected]
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
.
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");
@xmtp/[email protected]
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.
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;
@xmtp/[email protected]
Patch Changes
- 9324310:
- Added
installationIdBytes
toClient
- Added
Conversations.syncAll
method - Added
signWithInstallationKey
,verifySignedWithInstallationKey
, andverifySignedWithPublicKey
methods toClient
- Added
@xmtp/[email protected]
Patch Changes
- 7661f78:
- Added
syncAll
method toConversations
- Added
signWithInstallationKey
,verifySignedWithInstallationKey
, andverifySignedWithPublicKey
toClient
- Added
@xmtp/[email protected]
Patch Changes
- 63e5276: Updated exports
@xmtp/[email protected]
Patch Changes
- a1a16a0:
- Added
Signer
interface - Refactored
Client.create
to accept aSigner
instead of account address - Refactored client creation to automatically register and identity
- Added
disableAutoRegister
toClientOptions
to allow disabling of client registration after creation - Removed direct access to all signature functions
- Added
Client.register
method for registering a client - Added
Client.addAccount
method for adding another account to an installation - Added
Client.removeAccount
method for removing an account from an installation - Added
Client.revokeInstallations
method for revoking all other installations - Added static
Client.canMessage
for checking if an address is on the network without a client - Added environment to DB path
- Added
@xmtp/[email protected]
Patch Changes
- a1a16a0:
- Added
Signer
interface - Refactored
Client.create
to accept aSigner
instead of account address - Refactored client creation to automatically register and identity
- Added
disableAutoRegister
toClientOptions
to allow disabling of client registration after creation - Removed direct access to all signature functions
- Added
Client.register
method for registering a client - Added
Client.addAccount
method for adding another account to an installation - Added
Client.removeAccount
method for removing an account from an installation - Added
Client.revokeInstallations
method for revoking all other installations - Added static
Client.canMessage
for checking if an address is on the network without a client
- Added
@xmtp/[email protected]
Patch Changes
- 31ca82d:
- Updated return type of
Client.canMessage
from Record to Map - Added requirement of encryption key when creating a client
- Updated logging options
- Added smart contract wallet support
- Updated exports
- Updated return type of
@xmtp/[email protected]
Patch Changes
- f3734c8:
- Upgraded to latest WASM bindings
- Required
encryptionKey
when creating a new client - Added smart contract wallet signature support
- Added more logging options
- Updated WASM bindings re-exports