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
tequ
83442b18ba
Add nftoken_id, nftoken_ids, offer_id to meta fields ( #2450 )
...
Add type for metadata for specific transactions(`Payment`, `NFTokenMint`, `NFTokenCreateOffer`, `NFTokenAcceptOffer`, `NFTokenCancelOffer`)
Closes #2316
2024-02-01 13:45:11 -06:00
Caleb Kniffen
1a83997e49
feat: add xrpl-secret-numbers to the monorepo ( #2445 )
...
- Add `xrpl-secret-numbers` by @WietseWind to the mono repo.
- `unpkg` and `jsdelivr` support was simplified by adding fields to package.json.
- Unit tests run in a browser and node.
BREAKING CHANGES:
- `xrpl-secret-numbers` is now `@xrplf/secret-numbers`.
- Changed the bundled file produced changed from `dist/browerified.js` to `build/xrplf-secret-numbers-latest.js`.
- Bundle variable is `xrplf_secret_numbers` instead of using browserify's loader.
- If using CDN instructions in README will need to update to `https://cdn.jsdelivr.net/npm/@xrplf/secret-numbers `
Making this library part of the monorepo was discussed in #1788 . This solves several problems with the upcoming `xrpl.js@3.0`.
`xrpl-secret-numbers` has a dependency of `ripple-keypairs` and `xrpl` has a depenendecy on `xrpl-secret-numbers`. This means that any change would require a separate release of `ripple-keypairs`, then a release of `xrpl-secret-numbers`, followed by `xrpl`. Now they can be released all at once
In 3.0 we eliminated the need for many polyfills like `util`, `assert`, and soon to be `buffer` (after noble libs PR is merged). `xrpl-secret-numbers` still needs those. This will also eliminate them and anytime similar changes in the future will be much easier. This further reduces the bundle size of 3.0 branch by over 10% as well as reducing bundler setup.
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
Jackson Mills
9676b218b7
Re-add the walletFromSecretNumbers custom algorithm test ( #2437 )
...
Re-add test
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
justinr1234
3b70a3b919
fix: make docs not output confusing information in xrpl client ( #2337 )
...
* fix: make docs not output confusing information in xrpl client
---------
Co-authored-by: Jackson Mills <jmills@ripple.com >
Co-authored-by: Caleb Kniffen <ckniffen@ripple.com >
2024-02-01 13:43:55 -06:00
Caleb Kniffen
21c2423bac
test: remove extra polyfills only for testing ( #2428 )
...
Removes the testing polyfills by using jasmine and not jest in the
browser. We were already using jasmine but where overriding those
methods with jest versions which was not needed.
The previous karma setup also used a single entrypoint which meant that
not all integration tests were running because all files were not
imported in integrations/index.ts.
This also eliminates 79 dev dependencies.
2024-02-01 13:43:55 -06:00
Jackson Mills
a0e53ac9e1
fix: Fix invariant assertion in binary-codec ( #2429 )
...
* Fix assertion
* Add a test
2024-02-01 13:43:55 -06:00
Jackson Mills
041055082a
BREAKING CHANGE(fix): deriveKeypair ignoring a manual algorithm being specified ( #2376 )
2024-02-01 13:43:55 -06:00
Caleb Kniffen
07afcea97d
feat: remove BroadcastClient ( #2408 )
...
BREAKING CHANGE: `BroadcastClient` was removed. It was deprecated in 2.2
2024-02-01 13:43:55 -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
0050b2f75e
feat: remove 3 http related polyfills ( #2375 )
...
Switch to using fetch for browser and `node-fetch` for node for the faucet calls. This reduces the webpack bundle by 3.2% or 16.5kb gzipped.
The fundWallet code has been refactored to be much more straight forward due to not having to do such low level operations.
This improves the frontend setup process by no longer requiring several polyfills such as `url`, `stream-http`, and `https-browserify`.
2024-02-01 13:43:55 -06:00
Caleb Kniffen
3b7dd4ea87
feat(deps): make https-proxy-agent optional ( #2388 )
...
Bump https-proxy-agent to v7 and a dev dependency. This makes
configuring bundlers easier to configure and removes a direct
dependency of `https-proxy-agent`.
BREAKING CHANGE: Configuring a proxy is done by specifying the
`agent` parameter on the ConnectionOptions config. This can use be
created by libraries such as `https-proxy-agent` or any that
implements `http.Agent`.
2024-02-01 13:43:55 -06:00
Caleb Kniffen
8caf2e45bb
feat: remove decimal.js and big-integer ( #2379 )
...
Reduces the bundle size by 8% (41kb)
BigInteger is now well supported so the library is no longer needed.
BigNumber was already being used by xrpl and they had almost identical
interfaces as they are both based on Java.
2024-02-01 13:43:55 -06:00
Caleb Kniffen
cfb64c3f88
feat: remove lodash as a dependency ( #2378 )
...
This will reduce the bundle size by ~23%(117kb).
Only 4 methods were used `flatten`, `flatMap`, `omitBy`, and `groupBy`.
`omitBy and `groupBy` were recreated while the es2019 implementations of
`flatten` and `flatMap` are used.
`lodash` is still used in the tests which is fine because it makes the
tests cleaner.
Closes #2118
2024-02-01 13:43:52 -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
Caleb Kniffen
f7d0cfb93a
release xrpl 2.14.1 ( #2631 )
xrpl@2.14.1
2024-02-01 12:58:20 -06:00
dependabot[bot]
e4ccc11236
build(deps-dev): bump webpack from 5.89.0 to 5.90.0 ( #2627 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.89.0 to 5.90.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.89.0...v5.90.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 11:11:42 -06:00
Jackson Mills
e7e5a3a506
Add a CONTRIBUTING.md to ripple-binary-codec ( #2617 )
...
Add binary-codec-contributing doc
2024-01-23 15:44:44 -08:00
dependabot[bot]
e1f651d8c7
build(deps-dev): bump source-map-loader from 4.0.2 to 5.0.0 ( #2622 )
...
Bumps [source-map-loader](https://github.com/webpack-contrib/source-map-loader ) from 4.0.2 to 5.0.0.
- [Release notes](https://github.com/webpack-contrib/source-map-loader/releases )
- [Changelog](https://github.com/webpack-contrib/source-map-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/source-map-loader/compare/v4.0.2...v5.0.0 )
---
updated-dependencies:
- dependency-name: source-map-loader
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 13:05:42 -06:00
dependabot[bot]
205043fc62
build(deps-dev): bump ts-jest from 29.1.1 to 29.1.2 ( #2623 )
...
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest ) from 29.1.1 to 29.1.2.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases )
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.1.1...v29.1.2 )
---
updated-dependencies:
- dependency-name: ts-jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 11:16:13 -06:00
Omar Khan
b2c96714a8
fix AMM ledger object's LPTokenBalance type to IssuedCurrencyAmount ( #2621 )
2024-01-21 20:50:47 -05:00
dependabot[bot]
1efb9d1e9c
build(deps-dev): bump chai from 4.3.10 to 4.4.1 ( #2616 )
2024-01-18 22:00:53 +00:00
dependabot[bot]
2d5899f87f
build(deps-dev): bump follow-redirects from 1.15.2 to 1.15.4 ( #2614 )
2024-01-09 19:18:12 +00:00
dependabot[bot]
186c778b6c
build(deps-dev): bump ts-node from 10.9.1 to 10.9.2 ( #2599 )
...
Bumps [ts-node](https://github.com/TypeStrong/ts-node ) from 10.9.1 to 10.9.2.
- [Release notes](https://github.com/TypeStrong/ts-node/releases )
- [Changelog](https://github.com/TypeStrong/ts-node/blob/main/development-docs/release-template.md )
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.9.1...v10.9.2 )
---
updated-dependencies:
- dependency-name: ts-node
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 16:53:40 -06:00
dependabot[bot]
407fe0e7a0
build(deps-dev): bump @types/jest from 29.5.10 to 29.5.11 ( #2598 )
...
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ) from 29.5.10 to 29.5.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
---
updated-dependencies:
- dependency-name: "@types/jest"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 15:43:23 -06:00
dependabot[bot]
fb5d4e1767
build(deps-dev): bump source-map-loader from 4.0.1 to 4.0.2 ( #2607 )
2024-01-08 20:08:28 +00:00
dependabot[bot]
0af516cd6b
build(deps-dev): bump eslint-plugin-import from 2.29.0 to 2.29.1 ( #2603 )
2024-01-08 19:52:57 +00:00
dependabot[bot]
999416a5a9
build(deps-dev): bump eslint from 8.55.0 to 8.56.0 ( #2605 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.55.0 to 8.56.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.55.0...v8.56.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 13:32:09 -06:00
dependabot[bot]
33b8c8ba3e
build(deps): bump ws from 8.14.2 to 8.16.0 ( #2610 )
...
Bumps [ws](https://github.com/websockets/ws ) from 8.14.2 to 8.16.0.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/8.14.2...8.16.0 )
---
updated-dependencies:
- dependency-name: ws
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 13:17:07 -06:00
dependabot[bot]
300e6e782e
build(deps-dev): bump @types/create-hash from 1.2.5 to 1.2.6 ( #2593 )
2023-12-04 19:32:22 +00:00
dependabot[bot]
94a9bfab42
build(deps-dev): bump eslint from 8.54.0 to 8.55.0 ( #2594 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.54.0 to 8.55.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.54.0...v8.55.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 12:51:35 -06:00
Jackson Mills
99dd0eb44c
Release xrpl.js 2.11.0 ( #2591 )
...
Update HISTORY.md + Run docgen
ripple-binary-codec@1.11.0
xrpl@2.14.0
2023-11-30 15:27:12 -06:00
Jackson Mills
98abafbf12
feat: Add optional CTID field to Tx ( #2477 )
...
* Add optional CTID field to Tx
* Update HISTORY.md
* Update TxRequest
* Update comment to remove incorrect statement
---------
Co-authored-by: Caleb Kniffen <ckniffen@ripple.com >
2023-11-30 07:23:12 -08:00
Ildar Gumirov
9a85aaa109
fix: nftoken taxon calculation ( #2590 )
...
Fix taxon calculation for NFTokenID
### Context of Change
If NFToken taxon or serial is too big to be handled as number it could be calculated wrong.
2023-11-29 13:27:36 -06:00
Caleb Kniffen
b555f39e40
feat: remove AMM devnet ( #2587 )
...
The AMM dev network will be decommissioned on the 12/8
2023-11-28 15:03:41 -06:00
dependabot[bot]
d1ca360537
build(deps-dev): bump @types/jest from 29.5.8 to 29.5.10 ( #2586 )
...
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ) from 29.5.8 to 29.5.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
---
updated-dependencies:
- dependency-name: "@types/jest"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 12:36:52 -06:00
dependabot[bot]
3f181fa29d
build(deps): bump big-integer from 1.6.51 to 1.6.52 ( #2581 )
2023-11-27 18:21:14 +00:00
dependabot[bot]
e05ca2b359
build(deps-dev): bump @types/lodash from 4.14.201 to 4.14.202 ( #2582 )
2023-11-27 18:11:27 +00:00
dependabot[bot]
c584961767
build(deps-dev): bump @types/ws from 8.5.9 to 8.5.10 ( #2583 )
2023-11-27 17:53:20 +00:00
dependabot[bot]
ca689cf9f8
build(deps-dev): bump @types/chai from 4.3.10 to 4.3.11 ( #2584 )
2023-11-27 17:44:45 +00:00
dependabot[bot]
4b9d506167
build(deps-dev): bump eslint from 8.53.0 to 8.54.0 ( #2580 )
2023-11-20 16:30:58 +00:00
dependabot[bot]
2f8e9bfb03
build(deps-dev): bump ts-loader from 9.5.0 to 9.5.1 ( #2579 )
2023-11-20 15:55:20 +00:00
dependabot[bot]
1d988aa7e1
build(deps-dev): bump webpack-bundle-analyzer from 4.9.1 to 4.10.1 ( #2577 )
2023-11-20 15:45:44 +00:00
Caleb Kniffen
73f48bd771
docs: Add note that Deno is broken due to zlib ( #2573 )
...
While ensuring that xrpl@3 still would support Deno it was discovered
that it is broken in 2.x due Deno's port of zlib.
2023-11-17 12:54:24 -06:00
Mayukha Vadari
740210d9a2
fix: add DID ledger object + ledger_entry support ( #2576 )
...
* add ledger_entry support for DID
* add DID ledger object
* add empty DID validation
2023-11-17 10:54:32 -05:00
Mayukha Vadari
c8f25a6347
feat: add support for XLS-40d + add script to auto-generate models from rippled code ( #2491 )
...
Add support for XLS-40 and adds a script to automatically
generate transaction models from rippled source code.
### Context of Change
https://github.com/XRPLF/XRPL-Standards/pull/136
https://github.com/XRPLF/rippled/pull/4636
2023-11-15 16:19:50 -06:00
dependabot[bot]
22dd17d6b7
build(deps-dev): bump @types/create-hash from 1.2.4 to 1.2.5 ( #2572 )
2023-11-13 18:10:02 +00:00