- Convert tests to typescript
- Update type definitions causing errors in tests
- `makeParser` to accept a `Buffer` in addition to `string`
- `SerializedType` constructor allows not passing in a byte array
- `Comparable` is now a generic type so that it allows `compareTo`
methods to take more that the type itself. Example: `Uint64.compareTo`
can accept `number`
- Update tests to use jasmine compatible functions
- Switching from `test` to `it`.
- Updated test checking if coretypes all implement SerializedType
- Import fixtures directly instead of using `loadFixture` utility
- Remove importing of `buffer/` explicitly. It was throwing off type
checking in tests. Buffer is going away in a future PR anyway.
- Fixed `npm run clean` not clearing `.tsbuildinfo` files for keypairs
- Remove unused account-tx-transactions.db. It was likely used in the
past to test historical ledgers.
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>
* will compile as typescript
* migrated test suite to use JestJS
* Migrated to Jest testing framework and typescript source files
* updated deps
* updated prepublish
* resolved 1 failing test
* changed decimal .0 on four tests, it appears that these were the only four tests expecting integer values to have '.0'
* added linter
* added package-lock
* removed tslint in favor of eslint
* changed yarn to npm
* updated version 2.6->3.0
* removing package lock
* updated node version in nvmrc and jest version in package
* removed nvmrc
* removed some unused functions
* replaced data driven with file from master
* commitint yarn.lock
* removing babel as a dependency in favor of typescript compiling to es5
* removing babel deps
* resolved testing issues by migrating helper function
* added partial linting functionality for test suite
* updated imports for decodeLedgerData
* updated test
* updated yarn.lock
* removed a console.log
* added eslint-jest-plugin to package
* reverting to old linting, will add linting in next PR
* removed comments in shamap
* re-adding .nvmrc
* npm -> yarn
* added . to .eslintrc
* added .eslintrc
* removing linting for this PR
* Changed linting to print a message so that linting doesnt fail in CI
* changing back
* added newline so diff wont show
* removed eslint deps, since linting will be dealt with in a later PR
* changed function calls to describe(...)