chore(deps): update dependency djlint to >=1.49.4 #745
No reviewers
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
servala/servala-portal!745
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/djlint-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
>=1.49.3→>=1.49.4Release Notes
djlint/djLint (djlint)
v1.49.4Compare Source
Performance
{{,{% set %}or{% include %}left unclosed, as in{{ 'aon every line, formats in well under a second. Four hundred such lines took from 45 seconds to seven minutes. Linting such lines withT002no longer slows down the same way.<script {%a%}{%a%}…>, formats and lints in well under a second. It took tens of seconds.Bug fixes
djlint --checkpasses right afterdjlint --reformat.--max-line-length, its indentation and any text beside it included. A line that fit only without its indentation was joined, and the next run spread its attributes.--max-attribute-lengthonce astyleorsrcsetvalue loses its trailing;or extra spaces stays on one line. It was spread, and the next run joined it again.{% blocktrans trimmed %}inside a{% filter %}no longer ends the filter early. Everything after it lost its indentation, and the next run indented the{% endfilter %}again.<script>or<style>written across lines, whose attributes are longer than--max-attribute-length, has them spread when it is put on one line. It took a second run.{{ }},{% %}or mako${ }that spans lines, as inHTML('<a class="x" href="y">')on a line of its own, no longer has its attributes spread over several lines. That put line breaks into the string, which in mako is an error, and the next run moved them again.value="{{ _("Students' list") }}"or mako'svalue="${_("Students' list")}", no longer upsets the layout of the lines that follow. The quote was read as the end of the value and the apostrophe as the start of another.<button "="" title="x">orid="a"", no longer stops djLint from reading the tags after it. Only a quote after=opens a value, as browsers read it. Before, the rest of the file was skipped: the linter reported its elements as orphans (H025) and the formatter indented them differently on each run. A quote inside a bare value, as intitle=a'b, is part of the value for the same reason.>in a string of a template tag inside an attribute value, as indata-x="{{ "a > b" }}", no longer ends the tag. The formatter took out the space beside it, which changed the string.class="{{ "a b" }}", closed up"a = b", joined a line break in a string in astyleorsrcset, split astyleat a;or asrcsetat a,inside a template tag, and with--format-jsor--format-csstook a>in one for the end of the<script>or<style>tag.--max-line-length, as the rule for long lines intends. A lonestylewas split at each;, and the next run could join it again.styleorsrcsetattribute that has no value no longer stops the formatter with an error when its attributes are spread over several lines.type="text/javascript"ortype="text/css"is dropped, and a form'smethodlowercased, also when the value is written without quotes or with spaces around=. It used to take a second run.{{, with}}on a line of its own, stays where it was written. It used to be pulled up onto the{{line with its arguments a level too deep, which the next run corrected.{% set %}or{% trans %}, is kept, also when the string holds a%},{%,}}or{{, or a comment before it holds a quote. It was stripped or replaced with indentation, which changed the string.{% if x %}followed by{{ _('Deleted') }}on its own line. It used to be put on one line.typeonly where it is the element's default:text/javascripton a<script>, andtext/csson a<style>or a<link rel="stylesheet">. A<script type="text/css">, a<style type="text/javascript">, a custom element such as<script-x>, and a<link>that is not a stylesheet keep theirs, as does a<link>whoserela template tag helps write or comes after one (arelinside a{# #}comment does not count). So does an attribute with a longer name, such as@typeor@method. Atypeormethodnext to a template tag written with-, as in{{- x }}, is left as written, since dropping the type would join what the-trims.H024reports the same cases, also when the value is written without quotes or with spaces around=.typeis kept when the browser might not read it: when anothertypefollows in the same tag, as in<script type="text/javascript" type="module">, since a browser reads the first one, and when a template tag that may write atypeof its own follows, as in<script type="text/javascript" {{ attrs }}>. A template tag that is part of a value, as insrc={{ url }}ordata-x="{{ "a > b" }}", does not count, and neither does text inside a string of a template tag, as in{{ '}} type=text/javascript' }}. A defaulttypewritten twice, as intype="text/javascript" type=text/javascript, is dropped both times in one run.<div class="x" {# note #}>, is kept. With a profile that has{# #}comments, the formatter deleted it.-, as inclass=x {{- suffix }}orclass={{ c -}} x, stays unquoted. The-joins the text beyond it onto the value, and quoting the value left that text outside, which changed the attribute.<option value="x"{% if a %} selected{% endif %}>or<li{{ attrs }}>, stays there when the attributes are spread over several lines. A line break or space was put between them, which the page then rendered.H056no longer reads asrcwritten inside a template tag, as in<img {% if src %}class="a"{% endif %} src="a.png">, as an emptysrcof the tag.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.