A lightweight, simple and functional DSL library to work with XML in Scala with Cats
Full Changelog: https://github.com/geirolz/advxml/compare/v2.5.1...v2.5.2
Full Changelog: https://github.com/geirolz/advxml/compare/v2.5.0...v2.5.1
core
and moving implicits inside the … by @geirolz in https://github.com/geirolz/advxml/pull/275
scala-xml
2.1.0 supportadvxml.core.*
to advxml.*
, so please just replace advxml.core.
with advxml.
import advxml.core.instances.*
is not longer needed in most cases.Full Changelog: https://github.com/geirolz/advxml/compare/v2.4.2...v2.4.3
ValidatedEx
and ValidatedNelEx
into ValidatedThrow
and ValidatedNelThrow
EitherEx
and EitherNelEx
into EitherThrow
and EitherNelThrow
AppExOrEu
into ApplicativeThrowOrEu
MonadEx
, replaced by cats MonadThrow
AppEx
, replaced by cats ApplicativeThrow
AppEu
into ApplicativeEu
AppNelEx
into ApplicativeNelThrow
AppNelEx
into AppNelThrow
const
into pure
and drop constF
and idF
Change project structure to allows future modules, due that the library from now on will be published as advxml-core
instead of advxml
. This is done because the upcoming feature for automatic converters derivation, this feature will be available in a different module named advxml-generic
or advxml-macros
(I've not decided yet).
advxml.syntax
to advxml.syntax.data
KeyValuePredicate
doesn`t take type paramenter.Converter
now takes only 2 parameters. Input and output, no effect.PureConverter
removed.ImmediateDown
renamed in Down
./@
renamend in attr
text
renamend in content
XmlNormalizer
and his syntax have been moved under transform
packageValue
, SimpleValue
and ValidatedValue
ADT to wrap and validate String values, add v
as string interpolation to easelly build a SimpleValue
.advxml.instances.data.value
label
method to get node label value.As
type alias to Converter[A, B]
XmlEncoder
type alias to ValidatedConverter[T, NodeSeq]
XmlDecoder
type alias to ValidatedConverter[NodeSeq, T]
OptionConverter
type alias to Converter[A, Option[B]]
to[G[_]]
to apply implicit natural transformation, provided by converter instances.andThenAs[B]
same as flatMapAs
but for Validated
Minor fix:
XmlTraverser
, the goals of these changes are simplify core and usability. Check documentation for further information.ValidatedEx
has been deprecated, ValidatedNelEx
replace it.