chore(deps): update dependency djlint to >=1.46.3 #706
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!706
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.46.2→>=1.46.3Release Notes
djlint/djLint (djlint)
v1.46.3Compare Source
Performance
{{or{%no longer makes linting and formatting quadratic. Each was read again from every opener to the end of the line or the file, so eight thousand{{on one line took over half a minute to lint and as long again to format, and twenty thousand in one attribute value tookH054alone 80 seconds; each now takes well under a second. A second opener is taken to mean the first one never closed, which is how the tokenizer already read them.T038still reads an unclosed{%up to the next%}, as django does, so a run of those stays slow there.Fix
>inside a string of a template tag no longer ends the html tag around it when the string reuses the attribute's quote, as inclass="{{ classes|default:"[&>a]:flex" }}". Before, the linter lost the rest of the tag, soH037missed a repeated attribute after it, and the formatter put a line break inside the string.H054no longer reads an attribute out of a{# #}comment in another attribute's value, as in<a title="{# " href #}">, and leaves an input alone when an{% if %}writes its type and another tag writes the value, as in{% if shown %}type="{% if hidden %}hidden{% else %}text{% endif %}"{% endif %}.{#inside a{{ }}or{% %}tag, as in{{ "{# x" }}or an ICU message such as{n, plural, one {# item} other {# items}}, no longer opens a comment that runs to the next#}in the file. Before, the linter skipped everything in between, soT038reported the{% if %}before it as unclosed andT041missed an{% extends %}after it, and the formatter left the lines in between unformatted. A tag ends at its first closing delimiter, which is where django ends it.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.