chore: update the README for web3.js with compatibility notes (#27706)

This commit is contained in:
Steven Luscher 2022-09-09 14:42:36 -07:00 committed by GitHub
parent 2b554560fd
commit a98f58f0dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -87,6 +87,24 @@ console.log(solanaWeb3);
console.log(solanaWeb3);
```
## Compatibility
This library requires a JavaScript runtime that supports [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) and the [exponentiation operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Exponentiation). Both are supported in the following runtimes:
- Browsers, by [release date](https://caniuse.com/bigint):
- Chrome: May 2018
- Firefox: July 2019
- Safari: September 2020
- Mobile Safari: September 2020
- Edge: January 2020
- Opera: June 2018
- Samsung Internet: April 2019
- Runtimes, [by version](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt):
- Deno: >=1.0
- Node: >=10.4.0
- React Native:
- \>=0.7.0 using the [Hermes](https://reactnative.dev/blog/2022/07/08/hermes-as-the-default) engine ([integration guide](https://solanacookbook.com/integrations/react-native.html#how-to-use-solana-web3-js-in-a-react-native-app)):
## Flow Support (Discontinued)
Flow types are no longer supported in new releases. The last release with Flow support is v1.37.2 and its