Closed khancode closed 1 week ago
api_version
2 is supported by 100% of rippled servers now that numerous v2 amendments have activated. (as of April 8, 2024.) Therefore, we decided to drop type support for API v1 and just default to use v2 - https://github.com/XRPLF/xrpl.js/pull/2687
Reopening since we decided it's best to continue TS type support of v1 and only deprecate features/versions when rippled does.
- [ ] For all your tests, shouldn't we be keeping v1 tests? I know you added some v1 tests, but you changed a lot of tests to use
tx_json
but I didn't see tests for making sure v1 still works- [ ] I think we should add a warning to people when they're trying to access v1 data but the library is defaulting to v2 -- Likely we can use a class getter than throws an error when they try to access the wrong
tx
ortx_json
High Level Overview of Change
Add rippled
api_version
support for v2 and use as default while maintaining support for v1.Context of Change
api_version
2 is supported by 100% of rippled servers now that numerous v2 amendments have activated. (as of April 8, 2024.). Therefore, we should default to using v2 and maintain support of v1 response types.Type of Change
Did you update HISTORY.md?
Test Plan
Updated existing unit/integ tests and added new ones.