edge-core-js 2.44.0 → 2.46.0
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.
- package/CHANGELOG.md +12 -1
- package/README.md +4 -4
- package/android/src/main/assets/edge-core-js/edge-core.js +1 -1
- package/android/src/main/assets/edge-core-js/fbcba1e9b05cb4dd9870.js +2 -0
- package/android/src/main/assets/edge-core-js/web-worker-0.js +1 -1
- package/lib/core/account/account-api.js +35 -1
- package/lib/core/account/memory-wallet.js +2 -1
- package/lib/core/actions.js +15 -0
- package/lib/core/currency/wallet/currency-wallet-api.js +16 -0
- package/lib/core/currency/wallet/currency-wallet-cleaners.js +4 -0
- package/lib/core/currency/wallet/currency-wallet-files.js +57 -3
- package/lib/core/currency/wallet/currency-wallet-pixie.js +36 -6
- package/lib/core/currency/wallet/currency-wallet-reducer.js +14 -0
- package/lib/core/login/splitting.js +5 -9
- package/lib/node/index.js +3934 -3805
- package/lib/types/types.js +9 -0
- package/package.json +6 -11
- package/src/types/types.ts +9 -0
- package/types.js +90 -90
- package/android/src/main/assets/edge-core-js/27cab3e7ba7549594ad5.js +0 -2
- package/lib/flow/error.js +0 -448
- package/lib/flow/exports.js +0 -140
- package/lib/flow/fake-types.js +0 -187
- package/lib/flow/server-cleaners.js +0 -444
- package/lib/flow/server-types.js +0 -342
- package/lib/flow/type-helpers.js +0 -60
- package/lib/flow/types.js +0 -2250
- package/lib/node/index.js.flow +0 -4
- package/types.js.flow +0 -4
- /package/android/src/main/assets/edge-core-js/{27cab3e7ba7549594ad5.js.LICENSE.txt → fbcba1e9b05cb4dd9870.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 2.46.0 (2026-06-18)
|
|
6
|
+
|
|
7
|
+
- added: `EdgeCurrencyWallet.walletSettings` and `EdgeCurrencyWallet.changeWalletSettings`, plus matching engine plumbing.
|
|
8
|
+
- added: `EdgeCurrencyWallet.imported` flag, indicating a wallet created by importing keys.
|
|
9
|
+
- 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.
|
|
10
|
+
|
|
11
|
+
## 2.45.0 (2026-06-12)
|
|
12
|
+
|
|
13
|
+
- changed: Convert the build tooling from Yarn to npm.
|
|
14
|
+
- security: Upgrade dependencies per Socket security recommendations.
|
|
15
|
+
|
|
5
16
|
## 2.44.0 (2026-04-06)
|
|
6
17
|
|
|
7
18
|
- added: Expose engine otherMethods on EdgeMemoryWallet so memory wallets support custom methods like makeMaxSpend.
|
|
@@ -965,7 +976,7 @@ This release completely changes the way React Native works, both to improve perf
|
|
|
965
976
|
- Stop depending on external libraries such as react-native-fast-crypto, react-native-randombytes, or react-native-webview.
|
|
966
977
|
- Use React Native auto-linking to integrate all native code, HTML, and Javascript needed to run the core.
|
|
967
978
|
- Accept core plugins via a `pluginUris` prop to `MakeEdgeContext` or `MakeFakeEdgeWorld`.
|
|
968
|
-
- Allow core debugging by running `
|
|
979
|
+
- Allow core debugging by running `npm run start` in this repo to start a dev server, and then setting the `debug` prop to true.
|
|
969
980
|
- Accept an `allowDebugging` prop on Android to enable WebView debugging in general (useful for debugging plugins).
|
|
970
981
|
- changed: Require `EdgeCurrencyEngine` methods to return promises.
|
|
971
982
|
- changed: Mark methods as `readonly` in the TypeScript definitions, to match what Flow was already doing.
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This library implements the Edge login system. It runs inside a client applicati
|
|
|
8
8
|
|
|
9
9
|
## Documentation
|
|
10
10
|
|
|
11
|
-
We have documentation at https://developer.airbitz.co/javascript/, but our [
|
|
11
|
+
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.
|
|
12
12
|
|
|
13
13
|
## Account Management UI
|
|
14
14
|
|
|
@@ -82,12 +82,12 @@ The core itself runs inside a hidden WebView, which this `MakeEdgeContext` compo
|
|
|
82
82
|
|
|
83
83
|
The core creates a `<script>` tag for each source file in the `pluginUris` array. For this to work, you need to add these plugin files to your app's native asset bundle, which is located at `/android/app/src/main/assets/` on Android. For iOS, drag these files into the "Resources" section of your Xcode project.
|
|
84
84
|
|
|
85
|
-
To debug the core, run `
|
|
85
|
+
To debug the core, run `npm run start` inside the edge-core-js project, and then pass a `debug={true}` property to the `MakeEdgeContext` component. This tells the WebView to load the core from a local development server.
|
|
86
86
|
|
|
87
87
|
## Contributing
|
|
88
88
|
|
|
89
|
-
Run `
|
|
89
|
+
Run `npm install` to download dependencies, and then run `npm run prepare` to build the library.
|
|
90
90
|
|
|
91
|
-
Use `
|
|
91
|
+
Use `npm run verify` to run all our code-quality tools. All sources are in the [JavaScript Standard Style](http://standardjs.com/) + [Prettier](https://prettier.io/). We check files prior to each commit, so if you have formatting issues, you can run `npm run fix` to fix them automatically.
|
|
92
92
|
|
|
93
93
|
If you use Visual Studio Code, consider installing the [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension. This will give you nice error highlighting as you work, along with quick fixes for formatting issues.
|