Chenna Keshava B S
3bc3c2029b
feat: Upgrade to Node 18 and remove cross-fetch ( #2678 ) ( #2737 )
...
* feat: Upgrade to Node 18 and remove cross-fetch (#2678 )
BREAKING CHANGE: fetch now relies on the native javascript environment in browsers and node.js
Co-authored-by: justinr1234 <justinr1234@gmail.com >
2024-07-16 11:04:47 -07:00
Mayukha Vadari
9b3bb9c14b
fix: throw error if hexToBytes or hexToString is provided a string that is not in hex ( #2657 )
...
* better error handling
* fix browser tests
* add shared variable
* re-add test case
2024-05-08 13:02:34 -04:00
Caleb Kniffen
a09084289b
release: xrpl.js 3.0 ( #2633 )
...
- @xrplf/isomorphic@1.0.0
- ripple-address-codec@5.0.0
- ripple-binary-codec@2.0.0
- ripple-keypairs@2.0.0
- @xrplf/secret-numbers@1.0.0
- xrpl@3.0.0
2024-02-01 15:48:48 -06:00
Caleb Kniffen
63c71a162d
release: xrpl@3.0.0-beta.1 and friends ( #2592 )
...
Release beta versions of all the packages and fix history file version numbers for first beta.
2024-02-01 13:54:11 -06:00
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
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
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
Caleb Kniffen
328987a0a3
feat(deps): remove assert-browserify ( #2389 )
...
Use if statements and manually error throwing to save 20kb gzipped.
BREAKING CHANGE: If you were catching AssertionError you need to change to Error.
2024-02-01 13:43:55 -06:00
Caleb Kniffen
30bbc3f837
feat: remove node 14 support ( #2386 )
2024-02-01 13:41:52 -06:00
Caleb Kniffen
9f8502d522
feat: bump typescript to 5.x ( #2387 )
2024-02-01 13:41:51 -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
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
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
Caleb Kniffen
352abae003
chore: remove extra files for git, nyc, and mocha ( #2422 )
...
- Remove `.gitignore` from individual packages.
- Remove `nyc.config.js` and `.nycrc` since `nyc` is no longer in use
- Remove `.mocharc` and `localIntegrationRunner.html` since `mocha` is
no longer in use.
2023-08-15 10:19:15 -05:00
Caleb Kniffen
f760b2e56f
chore: remove extra lock files and nyc ( #2403 )
...
nyc is not a direct dependency any more and nested lock files are unused
2023-07-20 15:03:17 -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
Jackson Mills
bef2f79fee
Update linter peer dependencies ( #2168 )
2023-02-07 15:00:55 -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
ledhed2222
7041a0bbd3
address codec linting ( #1881 )
2022-01-04 09:25:04 -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
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
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
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
ff9bdbdc4c
initial pass at linting ripple-address-codec ( #1798 )
...
* initial pass at linting ripple-address-codec
* refix doc changes autofixed by eslint
2021-11-30 04:18:35 -05:00
Greg Weisbrod
f522d3f418
add HISTORY for monorepo updates and update CONTRIBUTING.md for publication
2021-11-15 21:03:42 -05:00
Greg Weisbrod
f96f38d0d9
Publish
...
- ripple-address-codec@4.2.0
- ripple-binary-codec@1.2.0
- ripple-keypairs@1.1.0
- xrpl@2.0.2
2021-11-15 20:23:58 -05:00
Greg Weisbrod
afd6aadaf1
run prettier on all packages
2021-11-12 02:41:28 -05:00
Greg Weisbrod
0d6e723a7e
fix inter-repo dependencies and remove now-redundant package-locks within packages
...
fix linter again
2021-11-08 18:19:45 -05:00
Greg Weisbrod
b5beeb6668
migrate ripple-address-codec tests back to javascript for now - jest and mocha cannot be used in the same typescript project due to type name conflicts
2021-11-08 18:19:45 -05: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]
bd281f6599
Bump @types/node from 16.11.1 to 16.11.4
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.11.1 to 16.11.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
2021-10-25 15:02:19 +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]
09fca0f660
Bump @types/node from 16.7.10 to 16.11.1
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.7.10 to 16.11.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
2021-10-18 15:01:34 +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]
418a791604
Bump @types/node from 16.10.2 to 16.10.3
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.10.2 to 16.10.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
2021-10-11 15:01:51 +00:00