🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@xmtp/react-sdk

Package Overview
Dependencies
Maintainers
0
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmtp/react-sdk - npm Package Compare versions

Comparing version

to
7.0.1

32

lib/index.d.ts

@@ -159,9 +159,9 @@ import * as _xmtp_xmtp_js from '@xmtp/xmtp-js';

hasSendError: boolean;
sendOptions?: SendOptions | undefined;
sendOptions?: SendOptions;
content: any;
contentBytes?: Uint8Array | undefined;
contentFallback?: string | undefined;
contentBytes?: Uint8Array;
contentFallback?: string;
contentType: string;
conversationTopic: string;
id?: number | undefined;
id?: number;
senderAddress: string;

@@ -184,9 +184,9 @@ uuid: string;

hasSendError: boolean;
sendOptions?: SendOptions | undefined;
sendOptions?: SendOptions;
content: any;
contentBytes?: Uint8Array | undefined;
contentFallback?: string | undefined;
contentBytes?: Uint8Array;
contentFallback?: string;
contentType: string;
conversationTopic: string;
id?: number | undefined;
id?: number;
senderAddress: string;

@@ -416,3 +416,3 @@ uuid: string;

status: "processed" | "no_client" | "queued" | "duplicate" | "invalid" | "unsupported";
message: CachedMessage<any, ContentTypeMetadata>;
message: CachedMessage;
}>;

@@ -435,9 +435,9 @@ resendMessage: (message: CachedMessageWithId) => Promise<_xmtp_xmtp_js.DecodedMessage<any>>;

hasSendError: boolean;
sendOptions?: SendOptions | undefined;
sendOptions?: SendOptions;
content: any;
contentBytes?: Uint8Array | undefined;
contentFallback?: string | undefined;
contentBytes?: Uint8Array;
contentFallback?: string;
contentType: string;
conversationTopic: string;
id?: number | undefined;
id?: number;
senderAddress: string;

@@ -500,3 +500,3 @@ uuid: string;

canMessage: <T extends string | string[]>(peerAddress: T) => Promise<CanMessageReturns<T>>;
canMessageStatic: <T_1 extends string | string[]>(peerAddress: T_1, options?: Partial<_xmtp_xmtp_js.NetworkOptions> | undefined) => Promise<CanMessageReturns<T_1>>;
canMessageStatic: <T extends string | string[]>(peerAddress: T, options?: Parameters<typeof Client.canMessage>["1"]) => Promise<CanMessageReturns<T>>;
};

@@ -541,3 +541,3 @@

*/
declare const useStreamAllMessages: (onMessage?: ((message: DecodedMessage) => void | Promise<void>) | undefined, onError?: OnError["onError"]) => {
declare const useStreamAllMessages: (onMessage?: (message: DecodedMessage) => void | Promise<void>, onError?: OnError["onError"]) => {
error: Error | null;

@@ -621,3 +621,3 @@ };

*/
declare const useStreamConsentList: (onAction?: ((action: PrivatePreferencesAction) => void | Promise<void>) | undefined, onError?: OnError["onError"]) => {
declare const useStreamConsentList: (onAction?: (action: PrivatePreferencesAction) => void | Promise<void>, onError?: OnError["onError"]) => {
error: Error | null;

@@ -624,0 +624,0 @@ };

{
"name": "@xmtp/react-sdk",
"version": "7.0.0",
"version": "7.0.1",
"description": "XMTP client SDK for React apps written in TypeScript",

@@ -85,9 +85,10 @@ "keywords": [

"@rollup/plugin-typescript": "^11.1.6",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@types/react": "^18.2.65",
"@types/react-dom": "^18.2.22",
"@types/uuid": "^9.0.8",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.3.1",
"@testing-library/dom": "^10.3.1",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^10.0.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/coverage-v8": "^2.0.1",
"@xmtp/content-type-reaction": "^1.1.9",

@@ -101,16 +102,18 @@ "@xmtp/content-type-remote-attachment": "^1.1.9",

"eslint-config-xmtp-web": "workspace:*",
"fake-indexeddb": "^5.0.2",
"happy-dom": "^13.8.2",
"prettier": "^3.2.5",
"react": "^18.2.0",
"rollup": "^4.13.0",
"rollup-plugin-dts": "^6.1.0",
"fake-indexeddb": "^6.0.0",
"happy-dom": "^14.12.3",
"prettier": "^3.3.2",
"prettier-plugin-packagejson": "^2.5.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rollup": "^4.18.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-tsconfig-paths": "^1.5.2",
"typedoc": "^0.25.12",
"typescript": "^5.4.2",
"viem": "^2.7.15",
"vite": "^5.1.6",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.3.1"
"typedoc": "^0.26.3",
"typescript": "^5.5.3",
"viem": "^2.17.3",
"vite": "^5.3.3",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^2.0.1"
},

@@ -122,7 +125,7 @@ "peerDependencies": {

"@xmtp/content-type-reply": "^1.1.9",
"@xmtp/xmtp-js": "^11.5.0",
"@xmtp/xmtp-js": "^12.0.0",
"react": "^16.14.0 || ^17 || ^18"
},
"engines": {
"node": ">=18"
"node": ">=20"
},

@@ -129,0 +132,0 @@ "publishConfig": {