Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit a98f58f

Browse files
authored
chore: update the README for web3.js with compatibility notes (#27706)
1 parent 2b55456 commit a98f58f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

web3.js/README.md

+18
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,24 @@ console.log(solanaWeb3);
8787
console.log(solanaWeb3);
8888
```
8989

90+
## Compatibility
91+
92+
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:
93+
94+
- Browsers, by [release date](https://caniuse.com/bigint):
95+
- Chrome: May 2018
96+
- Firefox: July 2019
97+
- Safari: September 2020
98+
- Mobile Safari: September 2020
99+
- Edge: January 2020
100+
- Opera: June 2018
101+
- Samsung Internet: April 2019
102+
- Runtimes, [by version](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt):
103+
- Deno: >=1.0
104+
- Node: >=10.4.0
105+
- React Native:
106+
- \>=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)):
107+
90108
## Flow Support (Discontinued)
91109

92110
Flow types are no longer supported in new releases. The last release with Flow support is v1.37.2 and its

0 commit comments

Comments
 (0)