0.8.7
New features
- Add
MinValue
andMaxValue
to companions of numeric refined types
via the newMin
andMax
type classes:Thanks to Howy Perrin! (#383)scala> PosInt.MinValue res0: eu.timepit.refined.types.all.PosInt = 1 scala> PosInt.MaxValue res1: eu.timepit.refined.types.all.PosInt = 2147483647
- Support
Divisible[N]
ifN
is a literal integral type. (#413) - Add floating-point refined types like
PosDouble
,NegDouble
, and more
to theeu.timepit.refined.types.numeric
module.
Thanks to Yuki Ishikawa! (#414) - Add
IPv6
predicate forString
s.
Thanks to Tim Steinbach! (#357)
Bug fixes
- Fix
Modulo
predicate for largeLong
values by avoidingtoDouble
in itsValidate
instance. This also restricts the predicate to types
with anIntegral
instance.
Thanks to Howy Perrin! (#398)
Updates
- Update to shapeless 2.3.3. (#399)
- Update
refined-cats
to Cats 1.0.1. (#399) - Update
refined-pureconfig
to PureConfig 0.9.0.
Thanks to Olli Helenius! (#410) - Update to Scala.js 0.6.22. (#417)
Released on 2018-01-28