- Refer exclude new things from Clojure 1.11:
parse-boolean
parse-double
parse-long
parse-uuid
- Add support for
s/merge
- Add support for
s/tuple
- Add support for
s/multi-spec
- Handle number->number, any->string, and symbol->keyword
- Infer coercion from specs given as sets
- Fix coercion of nilables
- Fix coercion of lists getting out of order
- Fix parsing of conditionals in unqualified keys
- Allow overriding coercers in the registry in a local context
- Coerce to bigdecimal from other number types
- Return original value when trying to
coerce!
on simple keywords
inst?
coercion now accepts a wider range of date & date/time patternsspec-coerce.core/*inst-format*
is dynamic and can be rebound if you need more formats- added
deps.edn
setup - support nilable
- add
sc/coerce!
- add
sc/conform
sc/coerce-structure
supports::sc/op
argument to use custom processor (eg: the newsc/coerce!
orsc/conform
)
- Support
s/keys
- More tolerant specs for internals
- Support 1.9 special numbers (
##-Inf
##Inf
##NaN
NaN
Infinity
-Infinity
) - Use
decimal?
instead ofbigdec?
(Clojure 1.9) - Thanks to
joodie
for these updates!
- Support overrides on
sc/coerce-structure
- Fix NaN cases for number parsing on CLJS, now they are considered bad parsing, making the original value returns.
- In CLJS, string "NaN" is coerced to
js/NaN
.
- Support
s/coll-of
predicate. - Support
s/map-of
predicate. - Support
s/or
predicate.
- Initial release.