|
1 | 1 | # @openzeppelin/transaction-form-builder-core |
2 | 2 |
|
| 3 | +## 0.11.1 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- [#199](https://github.com/OpenZeppelin/ui-builder/pull/199) [`68c0aed`](https://github.com/OpenZeppelin/ui-builder/commit/68c0aed14f3597df8c52dc8667e420624399b8d2) Thanks [@pasevin](https://github.com/pasevin)! - Add BigInt field type for safe handling of large integers beyond JavaScript Number precision |
| 8 | + |
| 9 | + **Breaking Behavior Changes:** |
| 10 | + - Large integer types (64-bit and above) now map to `bigint` field type instead of `number` |
| 11 | + - **EVM**: `uint64`, `uint128`, `uint256`, `int64`, `int128`, `int256` |
| 12 | + - **Stellar**: `U64`, `U128`, `U256`, `I64`, `I128`, `I256` |
| 13 | + - BigInt values are stored and transmitted as strings to prevent precision loss |
| 14 | + |
| 15 | + **New Features:** |
| 16 | + - Added new `BigIntField` component with built-in integer validation |
| 17 | + - Added `createBigIntTransform()` for proper string-based value handling |
| 18 | + - BigInt field now available in UI Builder field type dropdown under "Numeric" category |
| 19 | + |
| 20 | + **Improvements:** |
| 21 | + - Fixes uint256 truncation issue (#194) |
| 22 | + - Prevents precision loss for values exceeding `Number.MAX_SAFE_INTEGER` (2^53-1) |
| 23 | + - Simplified field generation by removing redundant type-specific validation logic from adapters |
| 24 | + - Component-based validation ensures consistency across all blockchain ecosystems |
| 25 | + |
| 26 | + **Technical Details:** |
| 27 | + - `BigIntField` uses string storage to handle arbitrary-precision integers |
| 28 | + - Integer-only validation via regex (`/^-?\d+$/`) |
| 29 | + - Compatible field types properly ordered with `bigint` as recommended type |
| 30 | + - Transform functions ensure safe conversion between UI and blockchain formats |
| 31 | + |
| 32 | +- Updated dependencies [[`68c0aed`](https://github.com/OpenZeppelin/ui-builder/commit/68c0aed14f3597df8c52dc8667e420624399b8d2)]: |
| 33 | + - @openzeppelin/ui-builder-types@0.13.0 |
| 34 | + - @openzeppelin/ui-builder-ui@0.13.0 |
| 35 | + - @openzeppelin/ui-builder-renderer@0.13.0 |
| 36 | + - @openzeppelin/ui-builder-utils@0.13.0 |
| 37 | + - @openzeppelin/ui-builder-adapter-evm@0.13.0 |
| 38 | + - @openzeppelin/ui-builder-adapter-stellar@0.13.0 |
| 39 | + - @openzeppelin/ui-builder-adapter-midnight@0.13.0 |
| 40 | + - @openzeppelin/ui-builder-adapter-solana@0.13.0 |
| 41 | + - @openzeppelin/ui-builder-react-core@0.13.0 |
| 42 | + - @openzeppelin/ui-builder-storage@0.13.0 |
| 43 | + |
3 | 44 | ## 0.11.0 |
4 | 45 |
|
5 | 46 | ### Minor Changes |
|
0 commit comments