From 39aa0fac69984afe16e12467f83692f9c08eb94f Mon Sep 17 00:00:00 2001 From: daria-github Date: Tue, 23 Jan 2024 08:42:44 -0800 Subject: [PATCH 1/2] bump react sdk --- package-lock.json | 289 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 148 insertions(+), 143 deletions(-) diff --git a/package-lock.json b/package-lock.json index a837e22b..47ae5803 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": "^3.0.0", + "@xmtp/react-sdk": "^4.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.9.4", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.9.4.tgz", - "integrity": "sha512-UK0bHA7hh9cR39V+4gl2/NnBBjoXIxkuWAPCaY4X7fbH4L/azIi7ilWOCjMUYfpJgraLUAqkRi2BqrjME8Rynw==" + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz", + "integrity": "sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==" }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", @@ -14889,22 +14889,10 @@ } }, "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-read-receipt/-/content-type-read-receipt-1.1.5.tgz", - "integrity": "sha512-/CM/JAuEo+lnUQGJFG3UZ+t5rqql8sA/eLzPc0sJJMzGLCCfogd/SngS8rNkz4KI7yI5SXrXaksAsv5/zqXUHA==", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-reaction/-/content-type-reaction-1.1.5.tgz", + "integrity": "sha512-VNC8Y4cnJTnGxqDRWRriG96Ji/6jZnsijKt5+WqHw88jpSWAQU8KDuDNqlDjOgFSdmgSGkTyRTijQeBZVUhIhQ==", "dependencies": { - "@xmtp/proto": "^3.29.0", "@xmtp/xmtp-js": "^11.1.2" }, "peerDependencies": { @@ -14912,9 +14900,9 @@ } }, "node_modules/@xmtp/content-type-remote-attachment": { - "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==", + "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==", "dependencies": { "@noble/secp256k1": "^1.7.1", "@xmtp/proto": "^3.29.0", @@ -14925,9 +14913,9 @@ } }, "node_modules/@xmtp/content-type-reply": { - "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==", + "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==", "dependencies": { "@xmtp/proto": "^3.29.0", "@xmtp/xmtp-js": "^11.1.2" @@ -14959,32 +14947,40 @@ } }, "node_modules/@xmtp/react-sdk": { - "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", + "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", "dexie": "^3.2.4", - "dexie-react-hooks": "^1.1.6", + "dexie-react-hooks": "^1.1.7", "react": "^18.2.0", "uuid": "^9.0.1", - "viem": "^1.13.0", - "zod": "^3.22.2" + "viem": "^1.19.6", + "zod": "^3.22.4" }, "engines": { "node": ">=18" }, "peerDependencies": { - "@xmtp/xmtp-js": "^11.2.0", + "@xmtp/xmtp-js": "^11.3.5", "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", @@ -14997,22 +14993,34 @@ "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.2.3", - "resolved": "https://registry.npmjs.org/@xmtp/xmtp-js/-/xmtp-js-11.2.3.tgz", - "integrity": "sha512-uDZcqmOuAtSNVQ4pk7D1GvVPe12Os6oqesyPQQ5vt3tbeteMgK7lqrHZ1PKH4ZVoYuYJm4Rgaz2hKKGM9KsmQw==", + "version": "11.3.6", + "resolved": "https://registry.npmjs.org/@xmtp/xmtp-js/-/xmtp-js-11.3.6.tgz", + "integrity": "sha512-+4FlOGUSZAmHdtZPVdvnqj3RFJy5qVMsDqWcYTDWa5lg5/DmXFKE7iIFoUVjib18RvhxsI8paTGkZ8DpqI4x2A==", "dependencies": { "@noble/secp256k1": "^1.5.2", - "@xmtp/proto": "^3.29.0", + "@xmtp/proto": "^3.34.0", + "@xmtp/user-preferences-bindings-wasm": "^0.3.4", "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", @@ -15925,9 +15933,9 @@ "dev": true }, "node_modules/async-mutex": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.0.tgz", - "integrity": "sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.1.tgz", + "integrity": "sha512-WfoBo4E/TbCX1G95XTjbWTE3X2XLG0m1Xbv2cwOtuPdyH9CZvnaA5nCt1ucjaKEgW2A5IF71hxrRhr83Je5xjA==", "dependencies": { "tslib": "^2.4.0" } @@ -18748,9 +18756,9 @@ } }, "node_modules/dexie-react-hooks": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/dexie-react-hooks/-/dexie-react-hooks-1.1.6.tgz", - "integrity": "sha512-xSblWtmPwhafWNWMECsW7zMMmBu8goH3QqTxEfwBNoNG1mgsM0oFclippev7ss9HhKICqBwTjgqpscci5Ed4mA==", + "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==", "peerDependencies": { "@types/react": ">=16", "dexie": "^3.2 || ^4.0.1-alpha", @@ -23571,6 +23579,20 @@ "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", @@ -31805,24 +31827,23 @@ } }, "node_modules/viem": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/viem/-/viem-1.13.2.tgz", - "integrity": "sha512-iaiExxe0WIbf4Yvqtk/nDaFbKg6CBtW6xY6bGUNBV8/lx9PhSeFneSK/LogC2NPo0X2LpCLaxx+E6MUqL5JEAg==", + "version": "1.21.4", + "resolved": "https://registry.npmjs.org/viem/-/viem-1.21.4.tgz", + "integrity": "sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==", "funding": [ { "type": "github", - "url": "https://github.com/sponsors/wagmi-dev" + "url": "https://github.com/sponsors/wevm" } ], "dependencies": { - "@adraffy/ens-normalize": "1.9.4", + "@adraffy/ens-normalize": "1.10.0", "@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", - "isomorphic-ws": "5.0.0", + "isows": "1.0.3", "ws": "8.13.0" }, "peerDependencies": { @@ -31834,14 +31855,6 @@ } } }, - "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", @@ -31865,14 +31878,6 @@ } } }, - "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", @@ -33135,9 +33140,9 @@ } }, "node_modules/zod": { - "version": "3.22.2", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.2.tgz", - "integrity": "sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg==", + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", "funding": { "url": "https://github.com/sponsors/colinhacks" } @@ -33168,9 +33173,9 @@ }, "dependencies": { "@adraffy/ens-normalize": { - "version": "1.9.4", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.9.4.tgz", - "integrity": "sha512-UK0bHA7hh9cR39V+4gl2/NnBBjoXIxkuWAPCaY4X7fbH4L/azIi7ilWOCjMUYfpJgraLUAqkRi2BqrjME8Rynw==" + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz", + "integrity": "sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==" }, "@alloc/quick-lru": { "version": "5.2.0", @@ -44365,26 +44370,17 @@ } }, "@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-read-receipt/-/content-type-read-receipt-1.1.5.tgz", - "integrity": "sha512-/CM/JAuEo+lnUQGJFG3UZ+t5rqql8sA/eLzPc0sJJMzGLCCfogd/SngS8rNkz4KI7yI5SXrXaksAsv5/zqXUHA==", + "resolved": "https://registry.npmjs.org/@xmtp/content-type-reaction/-/content-type-reaction-1.1.5.tgz", + "integrity": "sha512-VNC8Y4cnJTnGxqDRWRriG96Ji/6jZnsijKt5+WqHw88jpSWAQU8KDuDNqlDjOgFSdmgSGkTyRTijQeBZVUhIhQ==", "requires": { - "@xmtp/proto": "^3.29.0", "@xmtp/xmtp-js": "^11.1.2" } }, "@xmtp/content-type-remote-attachment": { - "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==", + "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==", "requires": { "@noble/secp256k1": "^1.7.1", "@xmtp/proto": "^3.29.0", @@ -44392,9 +44388,9 @@ } }, "@xmtp/content-type-reply": { - "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==", + "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==", "requires": { "@xmtp/proto": "^3.29.0", "@xmtp/xmtp-js": "^11.1.2" @@ -44420,25 +44416,29 @@ } }, "@xmtp/react-sdk": { - "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", + "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", "dexie": "^3.2.4", - "dexie-react-hooks": "^1.1.6", + "dexie-react-hooks": "^1.1.7", "react": "^18.2.0", "uuid": "^9.0.1", - "viem": "^1.13.0", - "zod": "^3.22.2" + "viem": "^1.19.6", + "zod": "^3.22.4" }, "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,17 +44446,31 @@ } } }, + "@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.2.3", - "resolved": "https://registry.npmjs.org/@xmtp/xmtp-js/-/xmtp-js-11.2.3.tgz", - "integrity": "sha512-uDZcqmOuAtSNVQ4pk7D1GvVPe12Os6oqesyPQQ5vt3tbeteMgK7lqrHZ1PKH4ZVoYuYJm4Rgaz2hKKGM9KsmQw==", + "version": "11.3.6", + "resolved": "https://registry.npmjs.org/@xmtp/xmtp-js/-/xmtp-js-11.3.6.tgz", + "integrity": "sha512-+4FlOGUSZAmHdtZPVdvnqj3RFJy5qVMsDqWcYTDWa5lg5/DmXFKE7iIFoUVjib18RvhxsI8paTGkZ8DpqI4x2A==", "requires": { "@noble/secp256k1": "^1.5.2", - "@xmtp/proto": "^3.29.0", + "@xmtp/proto": "^3.34.0", + "@xmtp/user-preferences-bindings-wasm": "^0.3.4", "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": { @@ -45193,9 +45207,9 @@ "dev": true }, "async-mutex": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.0.tgz", - "integrity": "sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.1.tgz", + "integrity": "sha512-WfoBo4E/TbCX1G95XTjbWTE3X2XLG0m1Xbv2cwOtuPdyH9CZvnaA5nCt1ucjaKEgW2A5IF71hxrRhr83Je5xjA==", "requires": { "tslib": "^2.4.0" } @@ -47337,9 +47351,9 @@ "integrity": "sha512-VKoTQRSv7+RnffpOJ3Dh6ozknBqzWw/F3iqMdsZg958R0AS8AnY9x9d1lbwENr0gzeGJHXKcGhAMRaqys6SxqA==" }, "dexie-react-hooks": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/dexie-react-hooks/-/dexie-react-hooks-1.1.6.tgz", - "integrity": "sha512-xSblWtmPwhafWNWMECsW7zMMmBu8goH3QqTxEfwBNoNG1mgsM0oFclippev7ss9HhKICqBwTjgqpscci5Ed4mA==", + "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==", "requires": {} }, "didyoumean": { @@ -51072,6 +51086,12 @@ "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", @@ -57471,40 +57491,25 @@ } }, "viem": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/viem/-/viem-1.13.2.tgz", - "integrity": "sha512-iaiExxe0WIbf4Yvqtk/nDaFbKg6CBtW6xY6bGUNBV8/lx9PhSeFneSK/LogC2NPo0X2LpCLaxx+E6MUqL5JEAg==", + "version": "1.21.4", + "resolved": "https://registry.npmjs.org/viem/-/viem-1.21.4.tgz", + "integrity": "sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==", "requires": { - "@adraffy/ens-normalize": "1.9.4", + "@adraffy/ens-normalize": "1.10.0", "@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", - "isomorphic-ws": "5.0.0", + "isows": "1.0.3", "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": {} } } }, @@ -58463,9 +58468,9 @@ "dev": true }, "zod": { - "version": "3.22.2", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.2.tgz", - "integrity": "sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg==" + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==" }, "zustand": { "version": "4.3.8", diff --git a/package.json b/package.json index 753be559..83ef5ad7 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": "^3.0.0", + "@xmtp/react-sdk": "^4.0.0", "buffer": "^6.0.3", "date-fns": "^2.29.3", "dexie": "^3.2.4", From 038aaa2b7ee8750ee6c26a5341df21bbd7e92079 Mon Sep 17 00:00:00 2001 From: daria-github Date: Tue, 23 Jan 2024 09:26:09 -0800 Subject: [PATCH 2/2] updated vite config for wasm --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 0268b7c9..a3183460 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,4 +5,7 @@ import pluginRewriteAll from "vite-plugin-rewrite-all"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), pluginRewriteAll()], + optimizeDeps: { + exclude: ["@xmtp/user-preferences-bindings-wasm"], + }, });