Download Latest Version 1.0.0 source code.zip (66.5 kB) Google Add to Preferred Sources
Home / 0.20.0
Name Modified Size InfoDownloads / Week
Parent folder
0.20.0 source code.tar.gz 2026-08-28 51.0 kB
0.20.0 source code.zip 2026-08-28 64.0 kB
README.md 2026-08-28 1.2 kB
Totals: 3 Items   116.2 kB 1

💥 Breaking changes

  • Deprecated exception class UnsupportedPlatformException has been removed, catch PlatformException instead

The following breaking change only affects you if you specifically catch DivisionByZeroException around calls to of() or to any method accepting strings:

  • of() now throws NumberFormatException instead of DivisionByZeroException when the string is a fraction with a denominator of zero, such as '2/0'

New features

  • New methods: parse() and parseNullable() safely parse untrusted input, by restricting the allowed syntax and limiting the number of digits
  • New enum: NumberSyntax lists the syntax features that parse() can accept, with constants for the most common combinations

🐛 Bug fixes

  • of() no longer throws PlatformException on malformed input with many digits, crafted to trigger heavy backtracking in its parser; such input now throws NumberFormatException as documented

👌 Improvements

  • NumberFormatException messages now escape control and non-ASCII characters, and truncate values longer than 40 bytes, instead of copying the raw input into the message
Source: README.md, updated 2026-08-28