Commit Graph

24 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
Caleb Kniffen
c5fc25efc2 release: 3.0.0-beta.0 (#2533) 2024-02-01 13:53:39 -06:00
Nicholas Dudfield
217b111ef2 feat: use @noble and @scure libraries for cryptography (#2273)
Switch to using `@noble/hashes`, `@noble/curves`, `@scure/base`,
`@scure/bip32`, and `@scure/bip39`. This replaces `crypto` polyfills
(such as `crypto-browserify`), `create-hash`, `elliptic`, `hash.js`,
`bn.js` (both versions), and their many dependencies.  This also means
there are 33 less dependencies downloaded when running a fresh
`npm install` and will make the project much easier to maintain.

This reduces the bundle size by 44% (82kb minified and gzipped) over
the current 3.0 branch as well as reducing the amount of configuration
required to bundle.

Closes #1814, #1817, #2272, and #2306

Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
2024-02-01 13:50:19 -06:00
Caleb Kniffen
c143dc3e99 test: run address-codec tests in the browser (#2466)
Update tests to use jasmine compatible functions.

This means changing `test` to `it`, `toStrictEqual` to `toEqual` (which
is still strict), `toThrowError` to `toError`, and updating the param
for toError to pass an `Error` object.

Remove the need to specify --single-run.
2024-02-01 13:45:11 -06:00
Caleb Kniffen
cddb048588 feat: remove util polyfill and fix HISTORY.md (#2432)
- Remove `util` from bundle by switching `inspect` to `JSON.stringify`
- Update `HISTORY.md` with latest 3.0 changes
2024-02-01 13:45:09 -06:00
Omar Khan
62cea624f8 2.12 release (#2488)
* update HISTORY

* docgen

* update HISTORY again

* update package.json files
2023-09-27 11:50:21 -04:00
Caleb Kniffen
8e5aa9df99 doc: update HISTORY.md with source-map fix (#2467)
This was missed when I did #2435 which led to `ripple-address-codec` and
`ripple-keypairs` not being released.
2023-09-06 17:26:59 -05:00
Jackson Mills
3791c6292c 2.8.0 release (#2343) 2023-06-13 14:15:08 -07:00
Mayukha Vadari
82c5b3598a feat: support npm v9 (#2318)
* add support for npm v9

* Update package-lock.json

* Update nodejs.yml

* update changelogs

* update PR template
2023-05-25 16:01:42 -04:00
Jackson Mills
b3d3bc2f99 Release xrpl.js 2.7.0 (#2240) 2023-03-08 15:05:00 -08:00
justinr1234
5fe480ece4 feat: Jest Test Runner (#2170) 2023-02-03 17:03:07 -06:00
Caleb Kniffen
3ed93aa19e Prepare release of xrpl@2.2.1 and ripple-address-codec@4.2.4 2022-04-21 17:10:44 -05:00
Jackson Mills
417978e131 Fix deriveXAddress null behavior (#1964)
* Fix deriveXAddress null behavior

* Also check for undefined

* Simplify theTag

* Add test case for undefined
2022-04-21 14:36:10 -07:00
Jackson Mills
0eb64b1447 Update history for all codecs and xrpl.js (#1849)
* Update xrpl.js history.md

* Update ripple-address-codec history

* Add comment about npm < 7 for all codecs
2021-12-01 15:20:59 -08:00
Greg Weisbrod
f522d3f418 add HISTORY for monorepo updates and update CONTRIBUTING.md for publication 2021-11-15 21:03:42 -05:00
Elliot Lee
1d23dd9d7b release: 4.1.3 2021-05-10 14:06:40 -07:00
Elliot Lee
6b807ffab0 release: 4.1.2 2021-01-11 09:47:46 -08:00
Elliot Lee
fcb288ce19 Release 4.1.1 2020-04-03 12:01:36 -07:00
Elliot Lee
c0a3b97edf Require node v10+ 2020-01-28 22:54:54 -08:00
Elliot Lee
ae26db0a9d Drop node 6 and add node 13 2020-01-28 22:42:16 -08:00
Elliot Lee
0d75a62551 Release 4.1.0 2020-01-22 13:23:39 -08:00
Elliot Lee
a57c71beb8 Add support for Account Public Key data type (#35)
Per https://xrpl.org/base58-encodings.html
2020-01-22 10:42:07 -08:00
Elliot Lee
a72adaeb91 Release 4.0.0 2019-10-08 16:58:00 -07: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