0.9.0 - 2023-06-10
- Serialize all HTML attributes without escaping. #184
- Replaced the
kuchiki
crate with our custom-built HTML tree representation. #176
- 30-50% average performance improvement due switch to a custom-built HTML tree representation and serializer.
0.8.5 - 2022-11-10
--output-filename-prefix
CLI option to control the output files prefix.- Support for the
file://
URI scheme inbase_url
. #171
- Return
1
exit code if any of the input files were not processed successfully via CLI.
0.8.4 - 2022-11-02
data-css-inline="ignore"
attribute to ignore CSS inlining. #10
0.8.3 - 2022-10-20
- Ignoring selectors' specificity when applying declarations from different qualified rules. #148
0.8.2 - 2022-07-21
- New
http
&file
features which give a way to disable resolving external stylesheets and reduce the compiled artifacts size.
!important
rules not overriding inlined styles. #152
0.8.1 - 2022-04-01
- Not respecting specificity in case of inlining overlapping rules like
padding
andpadding-top
. #142
- Pre-allocate more memory for output HTML to avoid resizing.
0.8.0 - 2022-01-09
- Separate
InlineError::MissingStyleSheet
error variant to improve debugging experience. #124
0.7.6 - 2022-01-08
- Invalid handling of double-quoted property values like in
font-family: "Open Sans"
. #129
- Use
std::fs::read_to_string
in CLI to avoid over/under allocating of the input buffer.
0.7.5 - 2021-07-24
- Panic on invalid URLs for remote stylesheets.
0.7.4 - 2021-07-06
- Update
rayon
to1.5
.
- Optimize loading of external files.
0.7.3 - 2021-06-24
- Avoid allocations in error formatting.
0.7.2 - 2021-06-22
- Incorrect override of exiting
style
attribute values. #113
- Use specialized
to_string
implementation on&&str
. - Use
ahash
.
0.7.1 - 2021-06-10
- Ignored
style
tags when the document contains multiple of them and theremove_style_tags: true
config option is used. #110
0.7.0 - 2021-06-09
- Ignored selectors specificity. #108
0.6.1 - 2020-12-07
- Compatibility with the new
cssparser
crate version.
- Avoid string allocations during converting
ParseError
toInlineError
.
0.6.0 - 2020-11-02
- Links to remote stylesheets are deduplicated now.
- Wrong inlined file prefixes handling in CLI. #89
- Use
Formatter.write_str
instead ofwrite!
macro in theDisplay
trait implementation forInlineError
. #85 - Use
Cow
for error messages. #87
0.5.0 - 2020-08-07
CSSInliner::options()
that implements the Builder pattern. #71
- Restrict visibility of items in
parser.rs
- Avoid string allocation in
get_full_url
0.4.0 - 2020-07-13
- Switch from
openssl
torustls
inattohttpc
dependency. #49
- Use
codegen-units=1
andlto=fat
. - Reduce the number of allocations in CLI.
- Avoid CLI output formatting when it is not needed.
0.3.3 - 2020-07-07
- Pre-allocate the output vector.
- Minor improvement for creating new files via CLI.
- Reduce the average number of allocations during styles merge by a factor of 5.5x.
0.3.2 - 2020-06-27
- Remove debug symbols from the release build
- Reduce the number of
String
allocations. - Avoid
BTreeMap::insert
whenstyle
attribute already exists
0.3.1 - 2020-06-25
- Fix links in docs
0.3.0 - 2020-06-25
- Command Line Interface. #33
0.2.0 - 2020-06-25
CSSInliner
and customization options. #9- Option to remove "style" tags (
remove_style_tags
). Disabled by default. #11 CSSInliner::compact()
constructor for producing smaller HTML output.CSSInliner.inline_to
that writes the output to a generic writer. #24- Implement
Error
forInlineError
. - Loading external stylesheets. #8
- Option to control whether remote stylesheets should be loaded (
load_remote_stylesheets
). Enabled by default.
- Improved error messages. #27
- Skip selectors that can't be parsed.
- Ignore
@media
queries since they can not be inlined. #7 - Panic in cases when styles are applied to the currently processed "link" tags.
- Improve performance for merging new styles in existing "style" attributes.
- Initial public release