Releases: xmtp/xmtp-js
Releases · xmtp/xmtp-js
@xmtp/[email protected]
@xmtp/node-sdk
0.0.27
Patch Changes
- 9324310:
- Added
installationIdBytes
toClient
- Refactored
Client.verifySignedWithInstallationKey
to return aboolean
- Changed
Client.verifySignedWithPublicKey
to a static method
- Added
0.0.26
Patch Changes
- 7661f78:
- Added
syncAll
method toConversations
- Added
signWithInstallationKey
,verifySignedWithInstallationKey
, andverifySignedWithPublicKey
toClient
- Added
0.0.25
Patch Changes
- 63e5276: Updated exports
- Updated dependencies [63e5276]
- @xmtp/[email protected]
- @xmtp/[email protected]
- @xmtp/[email protected]
- @xmtp/[email protected]
0.0.24
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
0.0.23
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
0.0.22
Patch Changes
- 5a41542:
- Upgraded node bindings
- Refactored code with updated type exports
- Fixed streaming issues when a stream error occurs
0.0.21
Patch Changes
- 764d6c0: Refactor streams for better error handling
0.0.20
Patch Changes
- 981bcf4:
- Added 1:1 messages
- Added stream errors to the stream's async iterator values
- Added consent state methods to client and conversation
- Added signature methods for adding/revoke wallets and revoking installations
- Added
getLatestInboxState
to client - Added inbox ID helpers
0.0.19
Patch Changes
- 87457d6:
- Allowed for
undefined
content type and content in messages - Filtered out messages without content when calling
Conversation.messages
- Added generic typing for message content to
DecodedMessage
class andConversations.findMessageById
- Replaced temporary group updated codec with official content type
- Allowed for
0.0.18
Patch Changes
- cdc9212: Update
@xmtp/node-bindings
to 0.0.14
0.0.17
Patch Changes
- 5f02a9b:
- Upgraded node bindings
- Added
inboxStateFromInboxIds
method to client - Added logging option when creating a client
0.0.16
Patch Changes
- b8f97ba: Upgrade to latest node bindings
BREAKING CHANGE
This is a breaking change as some of the APIs have changed.
Client.signatureText
is now an async functionClient.addScwSignature
has been removedClient.addEcdsaSignature
has been renamed toClient.addSignature
Conversation.members
is now an async function
0.0.15
Patch Changes
- b8d9b36:
- Upgraded to latest MLS node bindings
- Added
inboxState
to Client
0.0.14
Patch Changes
- 93f0fb9: Upgraded to latest MLS node bindings
0.0.13
Patch Changes
- 4c0340b:
- Upgraded
@xmtp/proto
- Upgraded MLS bindings
- Added optimistic sending
- Added
pinnedFrameUrl
metadata to conversations - Added
policySet
to conversation permissions
- Upgraded
0.0.12
Patch Changes
- 4ec046b:
- Added conversation descriptions
- Fixed DB locking issues
- Fixed invalid policy error
- Removed Admin status from group creators (Super Admin only)
- Made content type optional when sending messages
0.0.11
Patch Changes
- c506faf:
- Upgraded to latest MLS node bindings
- Added
requestHistorySync
andgetInboxIdByAddress
toClient
- Renamed
get
togetConversationById
inConversations
- Added
getMessageById
toConversations
0.0.10
Patch Changes
- b5db898: Upgrade node bindings for bug fixes
0.0.9
Patch Changes
- a419052:
- Upgrade to latest node bindings
- Rename addErc1271Signature to addScwSignature
- Add more options when creating a group with client.conversations.newConversation
- Add getter and setter for group image URL
- Add getter for group permissions
- Add more tests
- Add GroupPermissions to exports
0.0.8
Patch Changes
- b87672a:
- Add production environment
- Allow for all environments when creating a client
- Remove dependency on
@xmtp/xmtp-js
for content types and their primitives
0.0.7
Patch Changes
- 8a9b624:
- Add streaming callbacks
- Add
get
method toConversations
for easy access to conversations that are created, listed, or streamed during a client session
0.0.6
Patch Changes
- 6dd6a0e: Add
streamAllMessages
to Conversations
0.0.5
Patch Changes
- ff6c304: Use correct inbox ID for all environments
0.0.4
Patch Changes
- 632e6a3: Add conversation reference to messages
0.0.3
Patch Changes
- 3006d8b: Upgrade MLS node bindings, add admin features
0.0.2
Patch Changes
- ff5fcd7: Fix package.json issues
0.0.1
Initial release
@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