@xmtp/xmtp-js
Advanced tools
Comparing version 11.2.2 to 11.2.3
{ | ||
"name": "@xmtp/xmtp-js", | ||
"version": "11.2.2", | ||
"version": "11.2.3", | ||
"description": "XMTP client SDK for interacting with XMTP networks.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -40,27 +40,12 @@ # XMTP-JS | ||
If you get into issues with Buffer and polyfills check out our [fix below](https://xmtp.org/docs/developer-quickstart#troubleshooting). | ||
### Buffer polyfill | ||
### Create React App | ||
If you run into issues with Buffer and polyfills, see this [solution](https://xmtp.org/docs/faq#why-my-app-is-failing-saying-buffer-is-not-found). | ||
Use `react-scripts` prior to version `5.0.0`. For example: | ||
### BigInt polyfill | ||
```bash | ||
npx create-react-app my-app --scripts-version 4.0.2 | ||
``` | ||
This SDK uses `BigInt` in a way that's incompatible with polyfills. To ensure that a polyfill isn't added to your application bundle, update your [browserslist](https://github.com/browserslist/browserslist) configuration to exclude browsers that don't support `BigInt`. | ||
Or downgrade after creating your app. | ||
For the list of browsers that don't support `BigInt`, see this [compatibility list](https://caniuse.com/bigint). | ||
### Next.js | ||
In `next.config.js`: | ||
```js | ||
webpack: (config, { isServer }) => { | ||
if (!isServer) { | ||
config.resolve.fallback.fs = false | ||
} | ||
return config | ||
} | ||
``` | ||
## Usage | ||
@@ -67,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1815184
13994
429