Skip to content

Commit 714ba90

Browse files
committed
Prepare for release
1 parent f3d7fce commit 714ba90

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.18.0](https://github.com/brick/math/releases/tag/0.18.0) - 2026-06-14
6+
7+
💥 **Breaking changes**
8+
9+
The following breaking change only affects you if you're using named arguments:
10+
11+
- `BigInteger::fromBytes()` now uses `$bytes` as the parameter name
12+
13+
🐛 **Bug fixes**
14+
15+
- `of()` no longer accepts a trailing newline (`\n`) in the input string; such input now throws `NumberFormatException`
16+
- `of()` now consistently throws `NumberFormatException` for exponents too large to process, instead of `IntegerOverflowException` in some cases
17+
- `BigInteger::fromBase()` now reports the invalid character with its original case in the `NumberFormatException` message, instead of lower-casing it
18+
19+
⚡️ **Performance improvements**
20+
21+
- `BigInteger::gcd()` no longer exhausts memory on large inputs when the GMP extension is not installed
22+
- `BigInteger::modInverse()` no longer exhausts memory on large inputs, and is faster when the GMP extension is not installed
23+
24+
👌 **Improvements**
25+
26+
- Narrowed parameter and return types with static analysis annotations:
27+
- `nthRoot()`'s `$n` is now `positive-int`
28+
- `BigInteger::toBase()`, `toArbitraryBase()`, `toBytes()` and `BigRational::toRepeatingDecimalString()` now return `non-empty-string`
29+
530
## [0.17.2](https://github.com/brick/math/releases/tag/0.17.2) - 2026-05-25
631

732
**New features**

0 commit comments

Comments
 (0)