Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/android/src/main/assets/
/lib/
/types.js
/types.js.flow
/types.mjs
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"standard-kit/prettier",
"standard-kit/prettier/node",
"standard-kit/prettier/jsx",
"standard-kit/prettier/flow",
"standard-kit/prettier/typescript"
],
"parserOptions": {
Expand Down
13 changes: 0 additions & 13 deletions .flowconfig

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/android/src/main/assets/
/lib/
/types.js
/types.js.flow
/types.mjs

# Package managers:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- removed: All Flow tooling. TypeScript is the type system of record, and nothing in the Edge codebase consumes the generated Flow types. This drops the `flow-bin` devDependency, the root `.flowconfig`, the `build.types` script and its `make-types.ts` generator, the `rollup-plugin-flow-entry` plugin, the `eslint-plugin-flowtype` config, the `flow-typed` directory, and the published `types.js.flow` artifact. The `flow-bin` package shipped an x86_64-only binary that failed with EBADARCH on arm64 hosts. Note: dropping `types.js.flow` is a breaking change for any downstream consumer that imports this package via Flow.

## 2.45.0 (2026-06-12)

- changed: Convert the build tooling from Yarn to npm.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This library implements the Edge login system. It runs inside a client applicati

## Documentation

We have documentation at https://developer.airbitz.co/javascript/, but our [Flow types](./src/types/types.js) are the best, most up-to-date reference for what this library contains.
We have documentation at https://developer.airbitz.co/javascript/, but our [TypeScript types](./src/types/types.ts) are the best, most up-to-date reference for what this library contains.

## Account Management UI

Expand Down
5 changes: 0 additions & 5 deletions flow-typed/react-native-libs.js

This file was deleted.

54 changes: 2 additions & 52 deletions package-lock.json

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

5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,13 @@
"/README.md",
"/src/types/",
"/types.d.ts",
"/types.js.flow",
"/types.js",
"/types.mjs"
],
"scripts": {
"build.lib": "sucrase ./src -q -d ./lib -t typescript,jsx",
"build.node": "rollup -c",
"build.react-native": "webpack",
"build.types": "node -r sucrase/register ./scripts/make-types.ts && flow",
"clean": "rimraf lib android/src/main/assets",
"fix.android": "(cd android; ./format-java.sh)",
"fix.ios": "swift-format format -i ios/*.swift",
Expand Down Expand Up @@ -129,14 +127,12 @@
"copy-webpack-plugin": "^13.0.1",
"eslint": "^7.32.0",
"eslint-config-standard-kit": "0.15.1",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-simple-import-sort": "^6.0.1",
"flow-bin": "^0.89.0",
"husky": "^7.0.0",
"lint-staged": "^10.2.11",
"mocha": "^10.6.0",
Expand All @@ -145,7 +141,6 @@
"process": "^0.11.10",
"rimraf": "^3.0.2",
"rollup": "^2.80.0",
"rollup-plugin-flow-entry": "^0.3.6",
"rollup-plugin-mjs-entry": "^0.1.1",
"stream-browserify": "^3.0.0",
"sucrase": "^3.20.0",
Expand Down
15 changes: 2 additions & 13 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import babel from '@rollup/plugin-babel'
import resolve from '@rollup/plugin-node-resolve'
import flowEntry from 'rollup-plugin-flow-entry'
import mjs from 'rollup-plugin-mjs-entry'

import packageJson from './package.json'
Expand All @@ -25,22 +24,12 @@ export default [
external,
input: './src/index.ts',
output: { file: packageJson.main, format: 'cjs' },
plugins: [
resolve(resolveOpts),
babel(babelOpts),
flowEntry({ types: './lib/flow/exports.js' }),
mjs()
]
plugins: [resolve(resolveOpts), babel(babelOpts), mjs()]
},
{
external,
input: './src/types/types.ts',
output: { file: './types.js', format: 'cjs' },
plugins: [
resolve(resolveOpts),
babel(babelOpts),
flowEntry({ types: './lib/flow/types.js' }),
mjs()
]
plugins: [resolve(resolveOpts), babel(babelOpts), mjs()]
}
]
57 changes: 0 additions & 57 deletions scripts/make-types.ts

This file was deleted.

Loading