@solana/web3.js 1.37.3 → 1.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +4 -3
  2. package/package.json +2 -7
  3. package/module.flow.js +0 -4412
package/README.md CHANGED
@@ -94,10 +94,11 @@ Example scripts for the Solana Program Library:
94
94
 
95
95
  - [Token Program Examples](https://github.com/solana-labs/solana-program-library/tree/master/token/js/examples)
96
96
 
97
- ## Flow
97
+ ## Flow Support (Discontinued)
98
98
 
99
- A [Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
100
- https://unpkg.com/@solana/web3.js@latest/module.flow.js.
99
+ Flow types are no longer supported in new releases. The last release with Flow support is v1.37.2 and its
100
+ [Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
101
+ https://unpkg.com/@solana/web3.js@v1.37.2/module.flow.js.
101
102
  Download the file and add the following line under the [libs] section of your project's `.flowconfig` to
102
103
  activate it:
103
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.37.3",
3
+ "version": "1.38.1",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
@@ -33,7 +33,6 @@
33
33
  ],
34
34
  "files": [
35
35
  "/lib",
36
- "/module.flow.js",
37
36
  "/src"
38
37
  ],
39
38
  "dependencies": {
@@ -91,8 +90,6 @@
91
90
  "eslint-plugin-mocha": "^9.0.0",
92
91
  "eslint-plugin-prettier": "^4.0.0",
93
92
  "esm": "^3.2.25",
94
- "flow-bin": "^0.150.0",
95
- "flowgen": "^1.13.0",
96
93
  "http-server": "^14.0.0",
97
94
  "mocha": "^8.2.1",
98
95
  "mockttp": "^2.0.1",
@@ -118,14 +115,12 @@
118
115
  "node": ">=12.20.0"
119
116
  },
120
117
  "scripts": {
121
- "build": "npm run clean; cross-env NODE_ENV=production rollup -c; npm run type:gen; npm run flow:gen; npm run flow:check",
118
+ "build": "npm run clean; cross-env NODE_ENV=production rollup -c; npm run type:gen",
122
119
  "build:fixtures": "set -ex; ./test/fixtures/noop-program/build.sh",
123
120
  "clean": "rimraf ./coverage ./lib",
124
121
  "codecov": "set -ex; npm run test:cover; cat ./coverage/lcov.info | codecov",
125
122
  "dev": "cross-env NODE_ENV=development rollup -c",
126
123
  "doc": "set -ex; typedoc --treatWarningsAsErrors",
127
- "flow:check": "flow check-contents < module.flow.js",
128
- "flow:gen": "flowgen lib/index.d.ts -o module.flow.js",
129
124
  "type:gen": "./scripts/typegen.sh",
130
125
  "lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
131
126
  "lint:fix": "npm run pretty:fix && eslint . --fix --ext .js,.ts",