Skip to content

Commit

Permalink
feat: remove flow type generation (solana-labs#24380)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Apr 16, 2022
1 parent a0e3e3c commit 7c45d94
Show file tree
Hide file tree
Showing 7 changed files with 7,790 additions and 6,418 deletions.
1 change: 0 additions & 1 deletion web3.js/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/deploy
/doc
/lib
/module.flow.js
/.eslintrc.js
/test/.eslintrc.js
/test/dist
Expand Down
11 changes: 0 additions & 11 deletions web3.js/.flowconfig

This file was deleted.

1 change: 0 additions & 1 deletion web3.js/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
test/dist
module.flow.js
declarations
7 changes: 4 additions & 3 deletions web3.js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ Example scripts for the Solana Program Library:

- [Token Program Examples](https://github.com/solana-labs/solana-program-library/tree/master/token/js/examples)

## Flow
## Flow Support (Discontinued)

A [Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
https://unpkg.com/@solana/web3.js@latest/module.flow.js.
Flow types are no longer supported in new releases. The last release with Flow support is v1.37.2 and its
[Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
https://unpkg.com/@solana/[email protected]/module.flow.js.
Download the file and add the following line under the [libs] section of your project's `.flowconfig` to
activate it:

Expand Down
171 changes: 4 additions & 167 deletions web3.js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions web3.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,15 @@
],
"files": [
"/lib",
"/module.flow.js",
"/src"
],
"scripts": {
"build": "npm run clean; cross-env NODE_ENV=production rollup -c; npm run type:gen; npm run flow:gen; npm run flow:check",
"build": "npm run clean; cross-env NODE_ENV=production rollup -c; npm run type:gen",
"build:fixtures": "set -ex; ./test/fixtures/noop-program/build.sh",
"clean": "rimraf ./coverage ./lib",
"codecov": "set -ex; npm run test:cover; cat ./coverage/lcov.info | codecov",
"dev": "cross-env NODE_ENV=development rollup -c",
"doc": "set -ex; typedoc --treatWarningsAsErrors",
"flow:check": "flow check-contents < module.flow.js",
"flow:gen": "flowgen lib/index.d.ts -o module.flow.js",
"type:gen": "./scripts/typegen.sh",
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
"lint:fix": "npm run pretty:fix && eslint . --fix --ext .js,.ts",
Expand Down Expand Up @@ -113,8 +110,6 @@
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-prettier": "^4.0.0",
"esm": "^3.2.25",
"flow-bin": "^0.150.0",
"flowgen": "^1.13.0",
"http-server": "^14.0.0",
"mocha": "^8.2.1",
"mockttp": "^2.0.1",
Expand Down
Loading

0 comments on commit 7c45d94

Please sign in to comment.