Commit Graph

79 Commits

Author SHA1 Message Date
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
83870acbfb fix: remove need to --force builds + cleanup (#2468)
This is done by properly deleting all build files.

Package-lock was due to it not reflecting the license of
@xrplf/secret-numbers.  This was fixed by running `npm i`.
2024-02-01 13:45:11 -06:00
Caleb Kniffen
3d86318195 test: update address-codec tests to typescript (#2447)
- Switch files to typescript
- Add missing types in test files
- Change how the codec functions were imported. They now count towards the "% Funcs" calculation, increasing it from 75% to 100%.
- Lint test files
2024-02-01 13:45:11 -06:00
Caleb Kniffen
30bbc3f837 feat: remove node 14 support (#2386) 2024-02-01 13:41:52 -06:00
Jackson Mills
60b600faea docs: update keywords for all packages (#2502)
Update keywords for all packages to make the easier to find
2023-10-04 16:19:51 -05: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
2192e11267 fix: source-maps find their designated source (#2435)
fix: source-maps find their designate source

We weren't including the `src` folder in the files published too npm.
This caused errors such as the following seen in the sandbox and by
users on discord.

```
WARNING in ./node_modules/xrpl/dist/npm/utils/xrpConversion.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/sandbox/node_modules/xrpl/src/utils/xrpConversion.ts' file: Error: ENOENT: no such file or directory, open '/sandbox/node_modules/xrpl/src/utils/xrpConversion.ts'
```
2023-08-15 10:37:05 -05:00
Jackson Mills
3791c6292c 2.8.0 release (#2343) 2023-06-13 14:15:08 -07: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
388c4a6124 Update versions (#1879) 2021-12-17 16:48:04 -08:00
Mayukha Vadari
78d9b11794 release: release new versions (#1859) 2021-12-02 14:59:58 -05:00
Jackson Mills
7c6230b18e Lerna patch (#1852) 2021-12-01 15:48:07 -08:00
Omar Khan
8bb248ca9e remove engines requirement for npm from individual packages (#1848)
* remove engines package.json entry from individual packages

* only remove npm from engines entry
2021-12-01 16:33:05 -05:00
Mayukha Vadari
fc101c6733 fix: add workaround for rippled UNLModify encoding bug (#1830)
* initial patch

* clean up

* make ts happy

* fix typing

* respond to comments

* Revert "respond to comments"

This reverts commit 689768bbf1.

* Publish

 - ripple-address-codec@4.2.1-beta.0
 - ripple-binary-codec@1.2.1-beta.0
 - ripple-keypairs@1.1.1-beta.0
 - xrpl@2.0.3-beta.0

* add helper comments

Co-authored-by: Nathan Nichols <natenichols@cox.net>
2021-11-30 17:16:03 -05:00
ledhed2222
5da0db89f4 fix GitHub pages (#1802)
* Publish

 - ripple-address-codec@4.2.0
 - ripple-binary-codec@1.2.0
 - ripple-keypairs@1.1.0
 - xrpl@2.0.2

* moves back git hub pages docs to the top
2021-11-15 20:06:47 -08:00
Greg Weisbrod
43b55ab598 run 'npx lerna link convert' to hoist common devDependencies to top 2021-11-08 18:19:45 -05:00
Greg Weisbrod
99c817ca8a fix all errors resulting from running 'npx lerna bootstrap', hoist github actions to top, hoist vscode config to top 2021-11-08 18:19:44 -05:00
dependabot[bot]
7fe8cd541a Bump base-x from 3.0.8 to 3.0.9
Bumps [base-x](https://github.com/cryptocoinjs/base-x) from 3.0.8 to 3.0.9.
- [Release notes](https://github.com/cryptocoinjs/base-x/releases)
- [Commits](https://github.com/cryptocoinjs/base-x/compare/v3.0.8...v3.0.9)
2021-10-25 15:02:26 +00:00
dependabot[bot]
aba9bb8c51 Bump typescript from 3.9.9 to 4.4.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.9 to 4.4.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.9...v4.4.4)
2021-10-18 15:01:46 +00:00
dependabot[bot]
50cd90c8cf Bump @types/jest from 26.0.24 to 27.0.2
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.24 to 27.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)
2021-10-14 19:46:49 +00:00
ledhed2222
457c840abb switch to npm (#196)
* allow tests to be run manually
2021-10-14 15:46:02 -04:00
dependabot[bot]
551ff135fd Bump @types/node from 15.12.1 to 16.4.3 (#187)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.12.1 to 16.4.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
2021-07-26 13:20:31 -07:00
Elliot Lee
1d23dd9d7b release: 4.1.3 2021-05-10 14:06:40 -07:00
dependabot-preview[bot]
b99179d12c Bump @types/node from 14.14.37 to 15.0.2 (#171)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-05-10 14:00:47 -07:00
Elliot Lee
6b807ffab0 release: 4.1.2 2021-01-11 09:47:46 -08:00
Elliot Lee
d94d0962c1 chore: update dependencies
Fixes a potential moderate severity vuln in node-notifier
2021-01-11 09:45:34 -08:00
dependabot-preview[bot]
06043d5bef Bump @types/jest from 25.2.1 to 26.0.15 (#127)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.1 to 26.0.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-23 13:33:02 -07:00
dependabot-preview[bot]
36ad7e9717 Bump @types/node from 13.13.1 to 14.11.2 (#123)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.13.1 to 14.11.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-22 00:10:41 -07:00
dependabot-preview[bot]
a0655a6737 Bump base-x from 3.0.7 to 3.0.8 (#58)
Bumps [base-x](https://github.com/cryptocoinjs/base-x) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/cryptocoinjs/base-x/releases)
- [Commits](https://github.com/cryptocoinjs/base-x/compare/v3.0.7...v3.0.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-27 00:00:13 -07:00
Elliot Lee
fcb288ce19 Release 4.1.1 2020-04-03 12:01:36 -07:00
Elliot Lee
e889cc96c3 Update jest to 25.2.7 2020-04-03 10:24:24 -07:00
dependabot-preview[bot]
00031bdc90 Bump @types/jest from 24.9.0 to 25.1.0 (#43)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.9.0 to 25.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-29 09:17:32 -08:00
dependabot-preview[bot]
4f8dabc52d Bump jest and ts-jest (#40)
Bumps [jest](https://github.com/facebook/jest) and [ts-jest](https://github.com/kulshekhar/ts-jest). These dependencies needed to be updated together.

Updates `jest` from 24.9.0 to 25.1.0
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v24.9.0...v25.1.0)

Updates `ts-jest` from 24.3.0 to 25.0.0
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v24.3.0...v25.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-29 09:09:04 -08: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
dependabot-preview[bot]
2ea5e6cad3 Bump @types/node from 10.14.19 to 13.1.8 (#39)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 10.14.19 to 13.1.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-22 10:41:22 -08:00
Elliot Lee
79a0d83e2a Bump typescript from 3.6.3 to 3.7.4 2020-01-08 16:21:16 -08:00
Hans Bergren
fdebbcb386 Upgrade base-x from 3.0.4 to 3.0.7 (#31)
On installing `ripple-lib`, a warning is thrown for @types/base-x@3.0.6
since base-x now has types included. By upgrading base-x to at least
3.0.6, we no longer need the stub types.

If we don't want to upgrade this dependency, an alternative approach
would be to version lock `@types/base-x` to 3.0.4.
2020-01-08 18:32:28 -05:00
Elliot Lee
a72adaeb91 Release 4.0.0 2019-10-08 16:58:00 -07:00
Elliot Lee
1949614d86 Add test cases for addresses/tags used in ripple-lib tests 2019-10-08 16:53:35 -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
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
d97f9de122 v3.0.4 2019-09-03 12:57:14 -07:00
Elliot Lee
212baebfd0 v3.0.3 2019-09-03 12:20:59 -07:00
Elliot Lee
d3f5952b61 v3.0.2 2019-09-03 12:19:16 -07:00
Elliot Lee
a97bf0fbef v3.0.1 2019-09-03 12:14:18 -07:00
Elliot Lee
14564051fa Provide types for TypeScript projects using this library 2019-09-03 11:10:34 -07:00