All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.15.2 - 2024-08-20
- Path parsing with
S
orT
segments afterA
. Was broken since v0.12
0.15.1 - 2024-05-07
- Allow double quotes in FuncIRI.
0.15.0 - 2024-04-03
- Bump
kurbo
andsiphasher
0.14.0 - 2024-02-05
0.13.0 - 2023-12-03
0.12.0 - 2023-10-01
- Allow parsing of float RGB values from CSS Color 4 draft like
rgb(3.14, 110, 201)
. The values itself would still be stored asu8
. @yisibl - Allow quotes in FuncIRI. @romanzes
0.11.0 - 2023-03-25
SimplifyingPathParser
handles implicit MoveTo commands after ClosePath now. Previously,M 10 20 L 30 40 Z L 50 60
would have been parsed as is, but now it will be parsed asM 10 20 L 30 40 Z M 10 20 L 50 60
.
0.10.0 - 2023-02-04
- Bump
kurbo
- Bump MSRV to 1.65 (because of
kurbo
)
0.9.0 - 2022-12-25
SimplifyingPathParser
that allows parsing an already simplified Path Data.
0.8.2 - 2022-10-23
paint-order
0.8.1 - 2022-06-11
- Support #RRGGBBAA and #RGBA color notation as per CSS Color 4. @demurgos
0.8.0 - 2021-09-12
EnableBackground
Number
. Previously accessible viaSteam::parse_number
.IRI
. Previously accessible viaSteam::parse_iri
.FuncIRI
. Previously accessible viaSteam::parse_func_iri
.
Stream
is now private.
0.7.0 - 2021-09-04
Breaking: Almost a complete rewrite. This crate is strictly a parser from now.
<filter-value-list>
parsing usingFilterValueListParser
.ViewBoxError
- Writing support.
- Container types. Only stack allocated types and pull-based parsers are available.
FuzzyEq
andFuzzyZero
.
0.6.0 - 2021-08-22
- CSS3 colors support (
rgba
,hsl
,hsla
,transparent
). turn
angle unit.Angle::to_degrees
.
- Move to Rust 2018 edition.
- Rename
Stream::skip_string
intoStream::consume_string
. - Rename
Color::new
intoColor::new_rgb
. Color
struct gained analpha
field.- Rename
Angle::num
intoAngle::number
. - Rename
Length::num
intoLength::number
.
0.5.0 - 2019-08-12
- Implement
Default
forLength
,LengthList
,NumberList
,Points
andPath
.
- The minimum Rust version is 1.31
PathBuilder
. UsePath::push_*
instead.Style
parser. Use an external CSS parser instead, likesimplecss
.ElementId
andAttributeId
.phf
dependency. Onlysiphasher
is used now.
0.4.4 - 2019-06-11
- Update
float-cmp
.
0.4.3 - 2019-06-10
Transform::prepend
.- Implement
FuzzyEq
andFuzzyZero
forf32
. - Parsing of
Color
,Paint
,ElementId
andAttributeId
can be disabled now.
0.4.2 - 2019-03-15
- The
XmlByteExt
trait is private now.
0.4.1 - 2019-01-06
- Style with comments parsing.
0.4.0 - 2019-01-02
- An
angle
value type.
Length::from_str
will return an error if an input string has trailing data. So length like1mmx
was previously parsed without errors.
0.3.0 - 2018-12-13
PathParser
will returnResult<PathSegment>
instead ofPathSegment
from now.Error
was rewritten.
FromSpan
trait. UseFromStr
.StrSpan
. All strings are&str
now.TextPos
. All errors have position in characters now.xmlparser
dependency.log
dependency.
0.2.0 - 2018-09-12
black
,white
,gray
,red
,green
andblue
constructors to theColor
struct.
StyleParser
will return(StrSpan, StrSpan)
and notStyleToken
from now.StyleParser
requires entity references to be resolved before parsing from now.
failure
dependency.StyleToken
.Error::InvalidEntityRef
.
0.1.1 - 2018-05-23
encoding
andstandalone
to AttributeId.new_translate
,new_scale
,new_rotate
,new_rotate_at
,new_skew_x
,new_skew_y
androtate_at
methods to theTransform
.
StreamExt::parse_iri
andStreamExt::parse_func_iri
will parse not only well-formed data now.
Paint::from_span
poor performance.