XuqmGroup-RNSDK/packages/im/package.json
XuqmGroup 4e821b280b feat(rn-im): add WatermelonDB local message database
- Add schema for im_conversations and im_messages tables
- ConversationModel/MessageModel: WatermelonDB ORM models
- ImDatabase: init/saveMessage/getMessages/getConversations/markRead/bulkSave
- ImSDK: fetchHistory/fetchGroupHistory read local DB first, cache server results
- ImSDK: incoming WebSocket messages auto-saved to local DB
- ImSDK: new listConversations() and markRead() public APIs
- @nozbe/watermelondb >=0.27.0 added as peer dependency

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 20:54:12 +08:00

23 行
618 B
JSON

{
"name": "@xuqm/rn-im",
"version": "0.2.0",
"description": "XuqmGroup RN SDK — IM module (single chat, group chat, 13 message types)",
"main": "src/index.ts",
"react-native": "src/index.ts",
"types": "src/index.ts",
"private": false,
"publishConfig": {
"registry": "https://nexus.xuqinmin.com/repository/npm-hosted/"
},
"scripts": { "typecheck": "tsc --noEmit" },
"peerDependencies": {
"@xuqm/rn-common": ">=0.2.0",
"@nozbe/watermelondb": ">=0.27.0",
"react-native": ">=0.76.0"
},
"devDependencies": {
"typescript": "^5.9.3",
"@types/react-native": "^0.73.0"
}
}