openfoodnetwork
openfoodnetwork copied to clipboard
Bump haml from 5.2.2 to 6.0.6
Bumps haml from 5.2.2 to 6.0.6.
Release notes
Sourced from haml's releases.
6.0.1
- Unescape HTML-safe interpolation on Rails #1084
- Resurrect Haml 5's
AttributeParser.available?
for syntax_tree-haml #10856.0.0
Haml 6 became 1.7x faster than Haml 5, and it's now faster than Slim and Erubi in this benchmark that was originally written by Slim developers.
$ bundle exec ruby benchmark/slim/run-benchmarks.rb Calculating ------------------------------------- erubi v1.11.0 34.595k i/100ms slim v4.1.0 30.931k i/100ms haml v6.0.0.beta.1 35.621k i/100ms ------------------------------------------------- erubi v1.11.0 411.827k (± 0.4%) i/s - 2.076M slim v4.1.0 361.660k (± 0.4%) i/s - 1.825M haml v6.0.0.beta.1 427.207k (± 0.6%) i/s - 2.137M
Comparison: haml v6.0.0.beta.1: 427206.9 i/s erubi v1.11.0: 411826.6 i/s - 1.04x slower slim v4.1.0: 361659.8 i/s - 1.18x slower
Changes
- Replace the implementation with Hamlit
- Haml 6 is about 1.7x faster than Haml 5 in this benchmark.
- The parser is kept as is, but everything else is replaced.
- The
haml
CLI interface was also replaced.- The interface of
Haml::Engine
is changed.Haml::Template
is most likely what you need now.- Most Haml helpers are removed.
- Rails:
- Kept:
find_and_reserve
,preserve
,surround
,precede
,succeed
,capture_haml
- Removed:
block_is_haml?
,flatten
,haml_concat
,haml_indent
,haml_tag
,haml_tag_if
,html_attrs
,html_escape
,init_haml_helpers
,is_haml?
,list_of
,non_haml
,tab_down
,tab_up
,with_tabs
- Tilt:
- Kept:
preserve
- Removed:
block_is_haml?
,capture_haml
,escape_once
,find_and_preserve
,flatten
,haml_concat
,haml_indent
,haml_tag
,haml_tag_if
,html_attrs
,html_escape
,init_haml_helpers
,is_haml?
,list_of
,non_haml
,precede
,succeed
,surround
,tab_down
,tab_up
,with_tabs
- Only the attributes in
Haml::AttributeBuilder::BOOLEAN_ATTRIBUTES
are handled as boolean attributes.- Some legacy Rails integration is removed.
6.0.0.beta.1
Haml 6 became 1.7x faster than Haml 5, and it's now faster than Slim and Erubi in this benchmark that was originally written by Slim developers.
$ bundle exec ruby benchmark/slim/run-benchmarks.rb </tr></table>
... (truncated)
Changelog
Sourced from haml's changelog.
6.0.6
- Prevent CRuby from accidentally using the Ruby implementation fallback
- Reversing what v6.0.3 and v6.0.4 did, but still supporting Wasm.
6.0.5
- Resurrect
#haml_object_ref
support in an object reference #1097
- This was removed in 6.0.0, and added back in this version.
- Stop warning
remove_whitespace: true
option.6.0.4
Released on October 2, 2022 (diff).
- Fix a parse failure of
%
in attributes #1096- Add another fallback from C to Ruby for Wasm.
6.0.3
Released on September 28, 2022 (diff).
- For Wasm, fallback to Ruby when C extension is not available.
6.0.2
Released on September 28, 2022 (diff).
- Unescape HTML-safe arguments for
surround
,succeed
, andprecede
on Rails #10886.0.1
Released on September 23, 2022 (diff).
- Unescape HTML-safe interpolation on Rails #1084
- Resurrect Haml 5's
AttributeParser.available?
for syntax_tree-haml #10856.0.0
Released on September 21, 2022 (diff).
- Replace the implementation with Hamlit
- Haml 6 is about 1.7x faster than Haml 5 in this benchmark.
- The parser is kept as is, but everything else is replaced.
... (truncated)
Commits
c61aa12
Version 6.0.68516156
Looks like C extension doesn't work on TruffleRuby69c7cbb
Prevent CRuby from using the Ruby implementationf3a0279
add a couple of examples for custom filters, including registration. (#1098)cb48840
Version 6.0.578811ed
Resurrect support of #haml_object_ref90f9ac6
Add a changelog entry60c7e6a
Resurrect the Options reference7105569
Stop warning remove_whitespace: true0eb3cf6
Explain special case ofdata-
andaria-
attributes (#1095)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)