Jaco
22aab4a4e6
2024 ( #1909 )
2024-01-08 15:08:27 +02:00
Jaco
90e20ed4d2
Some small test loop cleanups ( #1869 )
2023-08-23 09:14:55 +03:00
Jaco
55ebc4f0d9
Check sign flag for i{8, 16, 32, ...} conversions ( #1867 )
...
* Check sign flag for i{8, 16, 32, ...} conversions
* Ensure negative path is tested on i32 perf
* CHANGELOG
* Comment check on top-most signed bit
* toBn test array
* toNumber uses exposed toBn tests
* Re-use tests in toBn
* Re-use expectations inside bnToU8a
* Remove explicit BE (swap to non-optimal reverse)
* Adjust
* Remove defunct "only BE" comment
* typo
* Use bnToU8a tests in biToU8a
* Flatten tests
* Additional tests
* Additional tests
2023-08-22 20:08:30 +03:00
Jaco
41caf2fd6d
Bump dev (w/ ts-eslint updates) ( #1854 )
...
* Bump dev (w/ ts-eslint updates)
* Adjust ipfs compat check
2023-07-15 09:57:35 +03:00
Jaco
2e82528e1b
Bump dev (w/ eslint config adj) ( #1832 )
2023-05-21 12:42:39 +03:00
Jaco
5674b1df67
Bump deps w/ export ordering ( #1817 )
2023-04-26 12:29:21 +03:00
Jaco
51a7263d38
Bump dev (w/ Node 16+ only) ( #1813 )
...
* Bump dev (w/ Node 16+ only)
* Lint
* Fix build
2023-04-21 10:10:27 +03:00
Jaco
211af1f999
Bump dev deps ( #1767 )
2023-03-17 07:22:49 +02:00
Jaco
79593b0a70
Bump dev ( #1766 )
...
* Bump dev
* Change ref types
2023-03-15 17:06:07 +02:00
Jaco
3fd61e678a
Bump dev ( #1761 )
...
* Bump dev
* Adjust dev/node/test/node.d.ts imports
* Adjust extensionless import
* Additional adjustments
2023-03-12 12:01:35 +02:00
Jaco
9c224f5076
Use .js imports in src ( #1756 )
...
* Use .js imports in src
* Revert node/test/node -> node/test/node.d.ts (for now)
* util-crypto
* Additional
* Adjust tsconfig aliases
* Bump dev
2023-03-09 11:04:03 +02:00
Jaco
0b85a4d5e2
Bump dev deps ( #1755 )
2023-03-06 14:17:56 +02:00
Jaco
3e2c3a6ed8
Move test cryptoWaitReady top-level ( #1747 )
...
* Move test cryptoWaitReady top-level
* Add missing mod.ts
* Revert mod.ts add
* Add types reference for tests
* Adjust
* adjust
* node:fs & node:path
2023-02-25 11:13:51 +02:00
Jaco
e93b7a3626
Expose sqrt(MAX_SAFE_INTEGER) for bi/bn ( #1717 )
2023-01-26 10:20:59 +02:00
Jaco
f2afcfc1a7
Adjust internal character maps to operate on Uint8Array ( #1685 )
...
* Adjust internal character maps to operate on Uint8Array
* Use Uint8Array
* Actual perf testing
* Rename perf exports
* Expose specs in own tsconfig (circular)
2023-01-26 10:05:15 +02:00
Jaco
3fe6be655d
Update headers for 2023 ( #1697 )
2023-01-01 10:21:43 +02:00
Jaco
fa593ef1fc
Add /*#__PURE__*/ annotations ( #1684 )
2022-12-02 09:59:59 +02:00
Jaco
669d8b1a84
Ensure {bn, n}ToHex respects bitLength with 0 values ( #1660 )
2022-10-07 06:45:49 +03:00
Jaco
4fedd594f1
Dedupe sqrt tests between bi/bn ( #1596 )
2022-07-11 16:31:41 +03:00
Jaco
4bb2c83213
Adjust exports ( #1585 )
2022-07-07 08:31:58 +03:00
Jaco
c92d5cfb20
Remove deprecated call signatures ( #1584 )
2022-07-07 07:54:07 +03:00
Jaco
3db2990ce7
Change Date.now() to performance.now() ( #1551 )
...
* Change Date.now() to performance.now()
* Adjust
2022-06-20 11:29:59 +03:00
Jaco
4edb0f00b6
Adjust asserts ( #1544 )
2022-06-18 13:31:25 +03:00
Jaco
fff30601a0
Unroll u8aToBn loops ( #1535 )
...
* Unroll u8aToBn loops
* Adjust with additional xor shortcuts
* Adjust mult -> shift (where below u32)
* assertUnreachable
* Add u8aToNumber
2022-06-16 11:29:23 +03:00
Jaco
7ce4ed1504
Cleanup comments ( #1534 )
2022-06-15 21:47:23 +03:00
Jaco
1a73a3407e
Adjust option extraction for helpers ( #1533 )
...
* Adjust option extraction for helpers
* Adjust
2022-06-15 21:17:07 +03:00
Jaco
de5c9a1594
Inline function for min/max creator ( #1528 )
2022-06-11 23:33:42 +03:00
Jaco
6d795ecc5d
Shared helper function for bn/bi min/max compares ( #1527 )
...
* Shared helper function for bn/bi min/max compares
* min/max test
2022-06-11 18:17:21 +03:00
Jaco
e30bac1ed6
Test for sqrt(MAX_SAFE_INT) (w/ comments for excluded functions) ( #1526 )
...
* Test for sqrt(MAX_SAFE_INT) (w/ comments for excluded functions)
* Adjust {bi, bn}{Max, Min} with factory
2022-06-11 17:28:55 +03:00
Jaco
7765476a26
Use bitwise not as Math.floor replacement ( #1518 )
...
* Use bitwise not as Math.floor replacement
* No objectSpread in extractTime
* Flatten extractTime calls
2022-06-07 08:58:11 +03:00
Jaco
83d0121a28
Additional deprecations ( #1488 )
...
* Additional deprecations
* Unsigned shift
* Adjust
* offset calc
2022-05-13 11:19:20 +03:00
Jaco
be4619ba3d
MArk deprecated function signatures ( #1487 )
2022-05-13 09:40:43 +03:00
Jaco
e24385213d
9.1.1 ( #1473 )
2022-04-30 08:25:32 +03:00
Jaco
30d5f5c118
Additional BN & BigInt negative tests ( #1443 )
2022-03-23 14:18:14 +02:00
Jaco
0859fe4b74
Small util return adjustments ( #1351 )
2022-01-03 13:56:54 +02:00
Jaco
3597a4eb4e
2022 ( #1346 )
2022-01-01 09:26:11 +02:00
Jaco
feae08fc0f
Adjust with tsconfig references ( #1317 )
...
* Adjust with tsconfig references
* tabs -> spaces
* Adjust
* Cleanup spacing
* Adjust
* eslint-specific config
* Bump deps
* Bumps
* Adjust
* Update tests
2021-12-14 08:23:16 +02:00
Jaco
9dfd013755
Dedupes for min/max ( #1297 )
2021-12-08 11:33:29 +02:00
Jaco
0ee4bc81f5
Performance test adjustments ( #1239 )
...
* Performance test adjustments
* testing
* adjust
* alphabet
* Adjust
2021-11-25 09:16:01 +02:00
Jaco
fa5b5bca7e
Additional bigint utilities ( #1194 )
...
* Additional bigint utilities
* Adjust tests
* biTo{Hex, U8a}
* Adjust
* Ordering
* biSqrt
* Fix toU8a
* Extensible BigInt
* Class TS issues....
* Move type def to types
* Update packages/util/src/bi/sqrt.spec.ts
* max/min
* min/max tests
2021-11-16 20:27:19 +02:00
Jaco
ac06f38118
Bump deps ( #1187 )
2021-11-15 14:30:31 +02:00
Jaco
ba0a183bd9
Re-use pre-define BN_{BE, LE}_* constants ( #1175 )
...
* Re-use pre-define BN_{BE, LE}_* constants
* ordering update
* bnMax/bnMin opt
* u8aToHex flatten
2021-11-12 09:19:49 +02:00
Jaco
733d7c1948
Add objectClear & objectSpread ( #1157 )
...
* Add objectClear & objectSpread
* Allow null/undefined as a source
2021-11-04 08:16:55 +02:00
Jaco
a4cefa4bfc
Adjust base library usage of for vs reduce/map ( #1151 )
...
* Adjust base library usage of `for` vs `reduce/map`
* Additional
* Adjust
2021-10-31 08:27:14 +02:00
Jaco
9fc57a23e8
Adjust isHex with template return ( #1103 )
...
* Adjust isHex with template return
* Unneeded assignment
* CHANGELOG
* typo
* Additional HexString types
* Additional HexString inputs
* Use U8aLike as applicable
* typo
* Unneeded type
* HexString outputs
* Export types
2021-09-08 14:38:53 +02:00
Nantian
2e4de2093c
fix bigint type ( #1079 )
2021-08-12 10:00:58 +02:00
Jaco
b58543237f
Sync ss58 ( #1013 )
2021-06-13 09:48:35 +02:00
Jaco
a5f3ce20ae
Fix internal bn/* imports ( #1010 )
2021-06-11 12:02:24 +02:00
Jaco
f2d611e26d
BN util export (& imports adjust) ( #1009 )
...
* BN util export (& imports adjust)
* Fix hexToBn
* Adjusts test
* Move bn export
2021-06-11 11:42:29 +02:00
Jaco
3a98323e8b
Minor readability improvements ( #952 )
...
* Minor readability improvements
* trigger
* Additional
* Additional
2021-04-21 10:31:28 +02:00