Commit Graph

22 Commits

Author SHA1 Message Date
Caleb Kniffen
38b385969b feat: remove Buffer support and bundle polyfill (#2526)
- Removes need for bundlers to polyfill the `Buffer` class. `UInt8Array` are used instead which are native to the browser and node.
- Reduces bundle size 7.1kb gzipped and eliminates 4 runtime dependencies: `base-x`, `base64-js`, `buffer`, and `ieee754`.

BREAKING CHANGE: All methods that previously took a `Buffer` now accept a `UInt8Array`.

---------

Co-authored-by: Jackson Mills <jmills@ripple.com>
2024-02-01 13:53:41 -06:00
Elliot Lee
3e55066b70 rename: branch develop -> main; master -> old-master (#1826)
* rename: branch develop -> main; master -> old-master

* Update all references to `master` and `develop`

* Update the GitHub pages docs

Co-authored-by: Jackson Mills <jmills@ripple.com>, Elliot Lee <intelliot@ripple.com>
2021-11-30 10:54:56 -08:00
ledhed2222
457c840abb switch to npm (#196)
* allow tests to be run manually
2021-10-14 15:46:02 -04:00
Elliot Lee
1d23dd9d7b release: 4.1.3 2021-05-10 14:06:40 -07:00
Elliot Lee
e838f543f6 README: Add badges (#120) 2020-09-22 00:11:06 -07:00
Elliot Lee
5b416a8862 Fix docs for xAddressToClassicAddress when there is no tag (#114)
Add a redundant test to ensure the behavior is abundantly clear
2020-08-20 15:33:36 -07:00
Elliot Lee
14f9a3952f README: Document functions (#73) 2020-04-13 23:41:32 -07:00
Elliot Lee
9572e5d1a5 README example: encode test address 2020-04-03 14:10:31 -07:00
Elliot Lee
4889a0305c Update README.md
Add larger npm badge
2020-01-28 20:29:27 -08:00
RareData
90793562fa Correct X-address to classic address example (#15) 2019-12-16 18:42:52 +01:00
Elliot Lee
7521ff8b85 Add X-address support (#14)
* Update test coverage

* Fix #7

* Add support for test addresses (T...)

* Add classic address <> X-address conversion methods

* Rename isValidAddress to isValidClassicAddress
2019-10-08 16:51:52 -07:00
Elliot Lee
7f9efe9e71 Migrate unit tests to TypeScript (#12)
* Add type information for utils
* Enable "strictNullChecks" and "noImplicitAny"
* Replace mocha with jest
* Fix #11
* Refactor and add tests for 100% code coverage
* Mention --coverage option in README
* Travis: remove node v9 and add node v10 and v12
* Improvements per review by @keefertaylor

Node.js v6 throws "Invalid hex string" if the hex string has an odd number
of characters (two hex characters per byte means the string should
have an even length). This changed in later versions of Node.js.
2019-09-24 15:33:30 -07:00
Elliot Lee
0c8d997958 Refactor and simplify code (#8)
* Remove dependency on x-address-codec

* Version 3.0.0
2019-09-03 10:51:10 -07:00
Keefer Taylor
1eae464868 Update README.md (#10) 2019-08-08 16:52:02 -04:00
Nicholas Dudfield
852465bd85 Add codecov 2015-10-03 13:23:58 +07:00
Nicholas Dudfield
a63619b40d s/sublimator/ripple/ 2015-09-17 10:41:43 +07:00
Nicholas Dudfield
4597b323d2 Use coveralls badge instead of inaccessible shields.io 2015-07-31 18:14:56 +07:00
Nicholas Dudfield
e6972ea7fc Use shields.io service for badges 2015-07-31 11:57:47 +07:00
Nicholas Dudfield
43b7c376c3 Add coveralls to travis 2015-07-30 19:34:26 +07:00
Nicholas Dudfield
4c6f7ae344 Add travis badge 2015-07-30 18:13:03 +07:00
Nicholas Dudfield
2b1062865d Use better names for seed types 2015-07-20 10:54:33 +07:00
Nicholas Dudfield
78269ed420 Add exemplary README 2015-07-17 16:18:13 +08:00