diff --git a/package-lock.json b/package-lock.json index 47ae5803..a837e22b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@xmtp/content-type-remote-attachment": "^1.1.4", "@xmtp/content-type-reply": "^1.1.5", "@xmtp/experimental-content-type-screen-effect": "^1.0.2", - "@xmtp/react-sdk": "^4.0.0", + "@xmtp/react-sdk": "^3.0.0", "buffer": "^6.0.3", "date-fns": "^2.29.3", "dexie": "^3.2.4", @@ -101,9 +101,9 @@ } }, "node_modules/@adraffy/ens-normalize": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz", - "integrity": "sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==" + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.9.4.tgz", + "integrity": "sha512-UK0bHA7hh9cR39V+4gl2/NnBBjoXIxkuWAPCaY4X7fbH4L/azIi7ilWOCjMUYfpJgraLUAqkRi2BqrjME8Rynw==" }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", @@ -14889,10 +14889,22 @@ } }, "node_modules/@xmtp/content-type-reaction": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-reaction/-/content-type-reaction-1.1.3.tgz", + "integrity": "sha512-dGqySD/TwrDkRB5zm46EIS1tViKv0y5urPKy94W93cbcCxFOODRiGPHcyty7ouif/b0CA53NNnG2sjbkxYsLEg==", + "dependencies": { + "@xmtp/xmtp-js": "^11.1.2" + }, + "peerDependencies": { + "@xmtp/xmtp-js": "^11.1.1" + } + }, + "node_modules/@xmtp/content-type-read-receipt": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@xmtp/content-type-reaction/-/content-type-reaction-1.1.5.tgz", - "integrity": "sha512-VNC8Y4cnJTnGxqDRWRriG96Ji/6jZnsijKt5+WqHw88jpSWAQU8KDuDNqlDjOgFSdmgSGkTyRTijQeBZVUhIhQ==", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-read-receipt/-/content-type-read-receipt-1.1.5.tgz", + "integrity": "sha512-/CM/JAuEo+lnUQGJFG3UZ+t5rqql8sA/eLzPc0sJJMzGLCCfogd/SngS8rNkz4KI7yI5SXrXaksAsv5/zqXUHA==", "dependencies": { + "@xmtp/proto": "^3.29.0", "@xmtp/xmtp-js": "^11.1.2" }, "peerDependencies": { @@ -14900,9 +14912,9 @@ } }, "node_modules/@xmtp/content-type-remote-attachment": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@xmtp/content-type-remote-attachment/-/content-type-remote-attachment-1.1.6.tgz", - "integrity": "sha512-QMdCjdgH159ucV7nJ21g5BSgnnooTVLaf0yqC2I3TCWPr3URJpVonoZw87Ht9IDgcHOQdGAbZ+LeL9er0AtnSg==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-remote-attachment/-/content-type-remote-attachment-1.1.4.tgz", + "integrity": "sha512-t/ivPqroNYobttxCrJMLOg/b3hAQT0knTw2hio/c5rQ0XyJd9UDP2eDWnmxchlabhdxnnfu9jP9YI05qL7tzWA==", "dependencies": { "@noble/secp256k1": "^1.7.1", "@xmtp/proto": "^3.29.0", @@ -14913,9 +14925,9 @@ } }, "node_modules/@xmtp/content-type-reply": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@xmtp/content-type-reply/-/content-type-reply-1.1.7.tgz", - "integrity": "sha512-1qGIJhr5udHlIjLDDjwG/bcTeHRVs4Doe53VhhW+1Pyb7eV9NtI5WGvxz1tNQ0wdBWB3vVx5sc9o+zHn7wOxAQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-reply/-/content-type-reply-1.1.5.tgz", + "integrity": "sha512-ug2oBAwgmB/cRwIKjrsRFApAkzQbTJ6MPEVKmRVuXNjZa1/Hzl7VHEpKfiZdJ79PZrHZpruhNnU19bDyViyuTw==", "dependencies": { "@xmtp/proto": "^3.29.0", "@xmtp/xmtp-js": "^11.1.2" @@ -14947,40 +14959,32 @@ } }, "node_modules/@xmtp/react-sdk": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@xmtp/react-sdk/-/react-sdk-4.0.1.tgz", - "integrity": "sha512-YaqO7ro7UTLj+hU+tQtKN5rjYBv8rP35rZ6o0qwE6a+AYIC+B1Vt3vA4QaIAQuPvgevLUF3SkZczMgH81v2/7w==", - "dependencies": { - "@xmtp/content-type-reaction": "^1.1.5", - "@xmtp/content-type-remote-attachment": "^1.1.6", - "@xmtp/content-type-reply": "^1.1.7", - "@xmtp/xmtp-js": "^11.3.5", - "async-mutex": "^0.4.1", - "date-fns": "^3.3.1", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@xmtp/react-sdk/-/react-sdk-3.0.0.tgz", + "integrity": "sha512-xaMQo5N82mSyC551Ktztp+N8aN/kMdZQ6qu/8BJCCErigWV1XXzOHCZr1tgONQHRFjnasmRdqsaTdiGZNatCbg==", + "dependencies": { + "@xmtp/content-type-reaction": "^1.1.3", + "@xmtp/content-type-read-receipt": "^1.1.5", + "@xmtp/content-type-remote-attachment": "^1.1.4", + "@xmtp/content-type-reply": "^1.1.5", + "@xmtp/xmtp-js": "^11.2.0", + "async-mutex": "^0.4.0", + "date-fns": "^2.30.0", "dexie": "^3.2.4", - "dexie-react-hooks": "^1.1.7", + "dexie-react-hooks": "^1.1.6", "react": "^18.2.0", "uuid": "^9.0.1", - "viem": "^1.19.6", - "zod": "^3.22.4" + "viem": "^1.13.0", + "zod": "^3.22.2" }, "engines": { "node": ">=18" }, "peerDependencies": { - "@xmtp/xmtp-js": "^11.3.5", + "@xmtp/xmtp-js": "^11.2.0", "react": ">=16.14" } }, - "node_modules/@xmtp/react-sdk/node_modules/date-fns": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.3.1.tgz", - "integrity": "sha512-y8e109LYGgoQDveiEBD3DYXKba1jWf5BA8YU1FL5Tvm0BTdEfy54WLCwnuYWZNnzzvALy/QQ4Hov+Q9RVRv+Zw==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/kossnocorp" - } - }, "node_modules/@xmtp/react-sdk/node_modules/uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", @@ -14993,34 +14997,22 @@ "uuid": "dist/bin/uuid" } }, - "node_modules/@xmtp/user-preferences-bindings-wasm": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@xmtp/user-preferences-bindings-wasm/-/user-preferences-bindings-wasm-0.3.4.tgz", - "integrity": "sha512-4d0j8QDZT8Z9DXIjxRJh7M1DjLNWcPV6807eeMN79gwF9SWbR1CXGSnBNqSrOgVu9nQSWqtg6qfyrrlQ3yHybA==" - }, "node_modules/@xmtp/xmtp-js": { - "version": "11.3.6", - "resolved": "https://registry.npmjs.org/@xmtp/xmtp-js/-/xmtp-js-11.3.6.tgz", - "integrity": "sha512-+4FlOGUSZAmHdtZPVdvnqj3RFJy5qVMsDqWcYTDWa5lg5/DmXFKE7iIFoUVjib18RvhxsI8paTGkZ8DpqI4x2A==", + "version": "11.2.3", + "resolved": "https://registry.npmjs.org/@xmtp/xmtp-js/-/xmtp-js-11.2.3.tgz", + "integrity": "sha512-uDZcqmOuAtSNVQ4pk7D1GvVPe12Os6oqesyPQQ5vt3tbeteMgK7lqrHZ1PKH4ZVoYuYJm4Rgaz2hKKGM9KsmQw==", "dependencies": { "@noble/secp256k1": "^1.5.2", - "@xmtp/proto": "^3.34.0", - "@xmtp/user-preferences-bindings-wasm": "^0.3.4", + "@xmtp/proto": "^3.29.0", "async-mutex": "^0.4.0", "elliptic": "^6.5.4", "ethers": "^5.5.3", - "js-sha3": "^0.9.3", "long": "^5.2.0" }, "engines": { "node": ">=18" } }, - "node_modules/@xmtp/xmtp-js/node_modules/js-sha3": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.9.3.tgz", - "integrity": "sha512-BcJPCQeLg6WjEx3FE591wVAevlli8lxsxm9/FzV4HXkV49TmBH38Yvrpce6fjbADGMKFrBMGTqrVz3qPIZ88Gg==" - }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", @@ -15933,9 +15925,9 @@ "dev": true }, "node_modules/async-mutex": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.1.tgz", - "integrity": "sha512-WfoBo4E/TbCX1G95XTjbWTE3X2XLG0m1Xbv2cwOtuPdyH9CZvnaA5nCt1ucjaKEgW2A5IF71hxrRhr83Je5xjA==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.0.tgz", + "integrity": "sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA==", "dependencies": { "tslib": "^2.4.0" } @@ -18756,9 +18748,9 @@ } }, "node_modules/dexie-react-hooks": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/dexie-react-hooks/-/dexie-react-hooks-1.1.7.tgz", - "integrity": "sha512-Lwv5W0Hk+uOW3kGnsU9GZoR1er1B7WQ5DSdonoNG+focTNeJbHW6vi6nBoX534VKI3/uwHebYzSw1fwY6a7mTw==", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/dexie-react-hooks/-/dexie-react-hooks-1.1.6.tgz", + "integrity": "sha512-xSblWtmPwhafWNWMECsW7zMMmBu8goH3QqTxEfwBNoNG1mgsM0oFclippev7ss9HhKICqBwTjgqpscci5Ed4mA==", "peerDependencies": { "@types/react": ">=16", "dexie": "^3.2 || ^4.0.1-alpha", @@ -23579,20 +23571,6 @@ "ws": "*" } }, - "node_modules/isows": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.3.tgz", - "integrity": "sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wagmi-dev" - } - ], - "peerDependencies": { - "ws": "*" - } - }, "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", @@ -31827,23 +31805,24 @@ } }, "node_modules/viem": { - "version": "1.21.4", - "resolved": "https://registry.npmjs.org/viem/-/viem-1.21.4.tgz", - "integrity": "sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-1.13.2.tgz", + "integrity": "sha512-iaiExxe0WIbf4Yvqtk/nDaFbKg6CBtW6xY6bGUNBV8/lx9PhSeFneSK/LogC2NPo0X2LpCLaxx+E6MUqL5JEAg==", "funding": [ { "type": "github", - "url": "https://github.com/sponsors/wevm" + "url": "https://github.com/sponsors/wagmi-dev" } ], "dependencies": { - "@adraffy/ens-normalize": "1.10.0", + "@adraffy/ens-normalize": "1.9.4", "@noble/curves": "1.2.0", "@noble/hashes": "1.3.2", "@scure/bip32": "1.3.2", "@scure/bip39": "1.2.1", + "@types/ws": "^8.5.5", "abitype": "0.9.8", - "isows": "1.0.3", + "isomorphic-ws": "5.0.0", "ws": "8.13.0" }, "peerDependencies": { @@ -31855,6 +31834,14 @@ } } }, + "node_modules/viem/node_modules/@types/ws": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.6.tgz", + "integrity": "sha512-8B5EO9jLVCy+B58PLHvLDuOD8DRVMgQzq8d55SjLCOn9kqGyqOvy27exVaTio1q1nX5zLu8/6N0n2ThSxOM6tg==", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/viem/node_modules/abitype": { "version": "0.9.8", "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.9.8.tgz", @@ -31878,6 +31865,14 @@ } } }, + "node_modules/viem/node_modules/isomorphic-ws": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", + "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", + "peerDependencies": { + "ws": "*" + } + }, "node_modules/vite": { "version": "4.3.9", "resolved": "https://registry.npmjs.org/vite/-/vite-4.3.9.tgz", @@ -33140,9 +33135,9 @@ } }, "node_modules/zod": { - "version": "3.22.4", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", - "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", + "version": "3.22.2", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.2.tgz", + "integrity": "sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg==", "funding": { "url": "https://github.com/sponsors/colinhacks" } @@ -33173,9 +33168,9 @@ }, "dependencies": { "@adraffy/ens-normalize": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz", - "integrity": "sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==" + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.9.4.tgz", + "integrity": "sha512-UK0bHA7hh9cR39V+4gl2/NnBBjoXIxkuWAPCaY4X7fbH4L/azIi7ilWOCjMUYfpJgraLUAqkRi2BqrjME8Rynw==" }, "@alloc/quick-lru": { "version": "5.2.0", @@ -44370,17 +44365,26 @@ } }, "@xmtp/content-type-reaction": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-reaction/-/content-type-reaction-1.1.3.tgz", + "integrity": "sha512-dGqySD/TwrDkRB5zm46EIS1tViKv0y5urPKy94W93cbcCxFOODRiGPHcyty7ouif/b0CA53NNnG2sjbkxYsLEg==", + "requires": { + "@xmtp/xmtp-js": "^11.1.2" + } + }, + "@xmtp/content-type-read-receipt": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@xmtp/content-type-reaction/-/content-type-reaction-1.1.5.tgz", - "integrity": "sha512-VNC8Y4cnJTnGxqDRWRriG96Ji/6jZnsijKt5+WqHw88jpSWAQU8KDuDNqlDjOgFSdmgSGkTyRTijQeBZVUhIhQ==", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-read-receipt/-/content-type-read-receipt-1.1.5.tgz", + "integrity": "sha512-/CM/JAuEo+lnUQGJFG3UZ+t5rqql8sA/eLzPc0sJJMzGLCCfogd/SngS8rNkz4KI7yI5SXrXaksAsv5/zqXUHA==", "requires": { + "@xmtp/proto": "^3.29.0", "@xmtp/xmtp-js": "^11.1.2" } }, "@xmtp/content-type-remote-attachment": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@xmtp/content-type-remote-attachment/-/content-type-remote-attachment-1.1.6.tgz", - "integrity": "sha512-QMdCjdgH159ucV7nJ21g5BSgnnooTVLaf0yqC2I3TCWPr3URJpVonoZw87Ht9IDgcHOQdGAbZ+LeL9er0AtnSg==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-remote-attachment/-/content-type-remote-attachment-1.1.4.tgz", + "integrity": "sha512-t/ivPqroNYobttxCrJMLOg/b3hAQT0knTw2hio/c5rQ0XyJd9UDP2eDWnmxchlabhdxnnfu9jP9YI05qL7tzWA==", "requires": { "@noble/secp256k1": "^1.7.1", "@xmtp/proto": "^3.29.0", @@ -44388,9 +44392,9 @@ } }, "@xmtp/content-type-reply": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@xmtp/content-type-reply/-/content-type-reply-1.1.7.tgz", - "integrity": "sha512-1qGIJhr5udHlIjLDDjwG/bcTeHRVs4Doe53VhhW+1Pyb7eV9NtI5WGvxz1tNQ0wdBWB3vVx5sc9o+zHn7wOxAQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-reply/-/content-type-reply-1.1.5.tgz", + "integrity": "sha512-ug2oBAwgmB/cRwIKjrsRFApAkzQbTJ6MPEVKmRVuXNjZa1/Hzl7VHEpKfiZdJ79PZrHZpruhNnU19bDyViyuTw==", "requires": { "@xmtp/proto": "^3.29.0", "@xmtp/xmtp-js": "^11.1.2" @@ -44416,29 +44420,25 @@ } }, "@xmtp/react-sdk": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@xmtp/react-sdk/-/react-sdk-4.0.1.tgz", - "integrity": "sha512-YaqO7ro7UTLj+hU+tQtKN5rjYBv8rP35rZ6o0qwE6a+AYIC+B1Vt3vA4QaIAQuPvgevLUF3SkZczMgH81v2/7w==", - "requires": { - "@xmtp/content-type-reaction": "^1.1.5", - "@xmtp/content-type-remote-attachment": "^1.1.6", - "@xmtp/content-type-reply": "^1.1.7", - "@xmtp/xmtp-js": "^11.3.5", - "async-mutex": "^0.4.1", - "date-fns": "^3.3.1", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@xmtp/react-sdk/-/react-sdk-3.0.0.tgz", + "integrity": "sha512-xaMQo5N82mSyC551Ktztp+N8aN/kMdZQ6qu/8BJCCErigWV1XXzOHCZr1tgONQHRFjnasmRdqsaTdiGZNatCbg==", + "requires": { + "@xmtp/content-type-reaction": "^1.1.3", + "@xmtp/content-type-read-receipt": "^1.1.5", + "@xmtp/content-type-remote-attachment": "^1.1.4", + "@xmtp/content-type-reply": "^1.1.5", + "@xmtp/xmtp-js": "^11.2.0", + "async-mutex": "^0.4.0", + "date-fns": "^2.30.0", "dexie": "^3.2.4", - "dexie-react-hooks": "^1.1.7", + "dexie-react-hooks": "^1.1.6", "react": "^18.2.0", "uuid": "^9.0.1", - "viem": "^1.19.6", - "zod": "^3.22.4" + "viem": "^1.13.0", + "zod": "^3.22.2" }, "dependencies": { - "date-fns": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.3.1.tgz", - "integrity": "sha512-y8e109LYGgoQDveiEBD3DYXKba1jWf5BA8YU1FL5Tvm0BTdEfy54WLCwnuYWZNnzzvALy/QQ4Hov+Q9RVRv+Zw==" - }, "uuid": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", @@ -44446,31 +44446,17 @@ } } }, - "@xmtp/user-preferences-bindings-wasm": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@xmtp/user-preferences-bindings-wasm/-/user-preferences-bindings-wasm-0.3.4.tgz", - "integrity": "sha512-4d0j8QDZT8Z9DXIjxRJh7M1DjLNWcPV6807eeMN79gwF9SWbR1CXGSnBNqSrOgVu9nQSWqtg6qfyrrlQ3yHybA==" - }, "@xmtp/xmtp-js": { - "version": "11.3.6", - "resolved": "https://registry.npmjs.org/@xmtp/xmtp-js/-/xmtp-js-11.3.6.tgz", - "integrity": "sha512-+4FlOGUSZAmHdtZPVdvnqj3RFJy5qVMsDqWcYTDWa5lg5/DmXFKE7iIFoUVjib18RvhxsI8paTGkZ8DpqI4x2A==", + "version": "11.2.3", + "resolved": "https://registry.npmjs.org/@xmtp/xmtp-js/-/xmtp-js-11.2.3.tgz", + "integrity": "sha512-uDZcqmOuAtSNVQ4pk7D1GvVPe12Os6oqesyPQQ5vt3tbeteMgK7lqrHZ1PKH4ZVoYuYJm4Rgaz2hKKGM9KsmQw==", "requires": { "@noble/secp256k1": "^1.5.2", - "@xmtp/proto": "^3.34.0", - "@xmtp/user-preferences-bindings-wasm": "^0.3.4", + "@xmtp/proto": "^3.29.0", "async-mutex": "^0.4.0", "elliptic": "^6.5.4", "ethers": "^5.5.3", - "js-sha3": "^0.9.3", "long": "^5.2.0" - }, - "dependencies": { - "js-sha3": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.9.3.tgz", - "integrity": "sha512-BcJPCQeLg6WjEx3FE591wVAevlli8lxsxm9/FzV4HXkV49TmBH38Yvrpce6fjbADGMKFrBMGTqrVz3qPIZ88Gg==" - } } }, "@xtuc/ieee754": { @@ -45207,9 +45193,9 @@ "dev": true }, "async-mutex": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.1.tgz", - "integrity": "sha512-WfoBo4E/TbCX1G95XTjbWTE3X2XLG0m1Xbv2cwOtuPdyH9CZvnaA5nCt1ucjaKEgW2A5IF71hxrRhr83Je5xjA==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.0.tgz", + "integrity": "sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA==", "requires": { "tslib": "^2.4.0" } @@ -47351,9 +47337,9 @@ "integrity": "sha512-VKoTQRSv7+RnffpOJ3Dh6ozknBqzWw/F3iqMdsZg958R0AS8AnY9x9d1lbwENr0gzeGJHXKcGhAMRaqys6SxqA==" }, "dexie-react-hooks": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/dexie-react-hooks/-/dexie-react-hooks-1.1.7.tgz", - "integrity": "sha512-Lwv5W0Hk+uOW3kGnsU9GZoR1er1B7WQ5DSdonoNG+focTNeJbHW6vi6nBoX534VKI3/uwHebYzSw1fwY6a7mTw==", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/dexie-react-hooks/-/dexie-react-hooks-1.1.6.tgz", + "integrity": "sha512-xSblWtmPwhafWNWMECsW7zMMmBu8goH3QqTxEfwBNoNG1mgsM0oFclippev7ss9HhKICqBwTjgqpscci5Ed4mA==", "requires": {} }, "didyoumean": { @@ -51086,12 +51072,6 @@ "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==", "requires": {} }, - "isows": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.3.tgz", - "integrity": "sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg==", - "requires": {} - }, "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", @@ -57491,25 +57471,40 @@ } }, "viem": { - "version": "1.21.4", - "resolved": "https://registry.npmjs.org/viem/-/viem-1.21.4.tgz", - "integrity": "sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-1.13.2.tgz", + "integrity": "sha512-iaiExxe0WIbf4Yvqtk/nDaFbKg6CBtW6xY6bGUNBV8/lx9PhSeFneSK/LogC2NPo0X2LpCLaxx+E6MUqL5JEAg==", "requires": { - "@adraffy/ens-normalize": "1.10.0", + "@adraffy/ens-normalize": "1.9.4", "@noble/curves": "1.2.0", "@noble/hashes": "1.3.2", "@scure/bip32": "1.3.2", "@scure/bip39": "1.2.1", + "@types/ws": "^8.5.5", "abitype": "0.9.8", - "isows": "1.0.3", + "isomorphic-ws": "5.0.0", "ws": "8.13.0" }, "dependencies": { + "@types/ws": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.6.tgz", + "integrity": "sha512-8B5EO9jLVCy+B58PLHvLDuOD8DRVMgQzq8d55SjLCOn9kqGyqOvy27exVaTio1q1nX5zLu8/6N0n2ThSxOM6tg==", + "requires": { + "@types/node": "*" + } + }, "abitype": { "version": "0.9.8", "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.9.8.tgz", "integrity": "sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==", "requires": {} + }, + "isomorphic-ws": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", + "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", + "requires": {} } } }, @@ -58468,9 +58463,9 @@ "dev": true }, "zod": { - "version": "3.22.4", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", - "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==" + "version": "3.22.2", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.2.tgz", + "integrity": "sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg==" }, "zustand": { "version": "4.3.8", diff --git a/package.json b/package.json index 83ef5ad7..753be559 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@xmtp/content-type-remote-attachment": "^1.1.4", "@xmtp/content-type-reply": "^1.1.5", "@xmtp/experimental-content-type-screen-effect": "^1.0.2", - "@xmtp/react-sdk": "^4.0.0", + "@xmtp/react-sdk": "^3.0.0", "buffer": "^6.0.3", "date-fns": "^2.29.3", "dexie": "^3.2.4", diff --git a/vite.config.ts b/vite.config.ts index a3183460..0268b7c9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,4 @@ import pluginRewriteAll from "vite-plugin-rewrite-all"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), pluginRewriteAll()], - optimizeDeps: { - exclude: ["@xmtp/user-preferences-bindings-wasm"], - }, });