Skip to content

Releases: djlint/djLint

v1.36.1

07 Nov 06:10
Compare
Choose a tag to compare

v1.36.0

05 Nov 06:02
Compare
Choose a tag to compare

Feature

  • Add support for djlint.toml config file. The format is identical to pyproject.toml, but it does not use [tool.djlint] table.

Fix

  • Do not format HTML in attributes. Thanks, @oliverhaas.
  • Fix using js_config instead of css_config.

Performance

  • Increase performance by ~30% by using regex more efficiently and caching more stuff.

v1.35.4

01 Nov 08:04
Compare
Choose a tag to compare

Compiled mypyc wheels are now also available, which improve performance by ~21% over Pure Python. They will be automatically installed by your package manager when available for your platform. Pure Python wheel is still available.

Other changes have been made to improve performance, thanks to @JCWasmx86. See the commits for more details.

Formatting performance comparison with the previous version (tested on https://github.com/openedx/edx-platform with single thread):

Version Seconds
v1.35.3 20.39
v1.35.4 pure Python 14.39
v1.35.4 compiled 11.35

v1.35.3

30 Oct 07:40
Compare
Choose a tag to compare

This release significantly improves performance, especially for large files and large projects.

Formatting https://github.com/openedx/edx-platform took 87 seconds in the previous version, now it takes only 4 seconds (>2000% speedup)! Tested on a 32-core computer.

  • Performance improved by caching some functions. Thanks to @JCWasmx86!
  • Removed the limitation on the number of workers introduced in v1.35.0.
  • Drop Python 3.8 support.

v1.35.2

29 Aug 10:35
Compare
Choose a tag to compare
  • Unpin dependencies upper bounds.
  • Use min(cpu_count, files_count, 4) workers. Use a thread instead of a process if only one worker will be used. This gives the best performance and low resource usage.
  • Refactor the code.
  • Fix max attribute length with longer regex custom html tags (#884)
  • Fix Jinja formatting issues (#715)
  • Fix: not detecting tabs as a valid seperation between tags (#813)
  • Fix: Add ignore for sms links (#815)
  • Fix: Allow attributes on <title> (#830)

v1.34.2

28 Aug 13:13
Compare
Choose a tag to compare

1.34.2 (2024-08-28)

Bug Fixes

  • max attribute length with longer regex custom html tags (#884) (a8e3835)

v1.34.1

20 Dec 19:23
Compare
Choose a tag to compare

1.34.1 (2023-12-20)

Bug Fixes

  • formatter: Avoid rewriting the file if it has not been changed (6965ba5)
  • linter: fix missed H025 for double closing (cf52faf), closes #786

v1.34.0

20 Sep 06:38
Compare
Choose a tag to compare

1.34.0 (2023-09-20)

Bug Fixes

  • configuration: Fix formatting, unused import and forgotten print (f6dbef2)

Features

  • configuration: Accept pyproject.toml as a --configuration argument (d8a059a)

v1.33.0

18 Sep 09:46
Compare
Choose a tag to compare

1.33.0 (2023-09-18)

Bug Fixes

  • formatter: fixed extra breaks added around html tags inside template tags (6091ffb), closes #742
  • formatter: fixed extra indend in script tags (9d04d51), closes #733
  • formatter: fixed formatting on functions that used python keywords as the param name (183a7c0), closes #756
  • h033: fix rull to not match data-action (f6881e0)
  • linter: fixed false positive on DJ018 (78d81dc), closes #755

Features

  • formatter: added support for nunjucks async loop tags (5a32bb3)

v1.32.1

20 Jul 11:29
Compare
Choose a tag to compare

1.32.1 (2023-07-20)

Bug Fixes

  • formatter: reverted chained function formatting (2ba6e3b), closes #720 #704