diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 030e5de66..b6dd1b552 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,8 +15,6 @@ jobs: - uses: astral-sh/setup-uv@v3 - run: uv build --python 3.12 --no-cache - uses: pypa/gh-action-pypi-publish@release/v1 - with: - attestations: true publish-npm: runs-on: ubuntu-latest if: ${{ github.repository_owner == 'djlint' }} diff --git a/CHANGELOG.md b/CHANGELOG.md index fc81803be..47de6a6a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ [Semantic Versioning](https://semver.org/) +## [1.35.3] - 2024-10-30 + +This release significantly improves performance, especially for large files and large projects. + +Formatting 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. + ## [1.35.2] - 2024-08-29 - Fix npm publishing diff --git a/package-lock.json b/package-lock.json index 8f8759bdc..46aed0cdf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "djlint", - "version": "1.35.2", + "version": "1.35.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "djlint", - "version": "1.35.2", + "version": "1.35.3", "hasInstallScript": true, "license": "GPL-3.0-or-later", "devDependencies": { @@ -454,9 +454,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001674", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001674.tgz", - "integrity": "sha512-jOsKlZVRnzfhLojb+Ykb+gyUSp9Xb57So+fAiFlLzzTKpqg8xxSav0e40c8/4F/v9N8QSvrRRaLeVzQbLqomYw==", + "version": "1.0.30001675", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001675.tgz", + "integrity": "sha512-/wV1bQwPrkLiQMjaJF5yUMVM/VdRPOCU8QZ+PmG6uW6DvYSrNY1bpwHI/3mOcUosLaJCzYDi5o91IQB51ft6cg==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index 0c46fdd5b..e2cbf5c5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "djlint", - "version": "1.35.2", + "version": "1.35.3", "description": "HTML Template Linter and Formatter", "keywords": [ "html template linter", @@ -35,7 +35,7 @@ }, "files": [], "scripts": { - "postinstall": "python3 -m pip install --upgrade djlint==1.35.2" + "postinstall": "python3 -m pip install --upgrade djlint==1.35.3" }, "devDependencies": { "@ianvs/prettier-plugin-sort-imports": "4.3.1", diff --git a/pyproject.toml b/pyproject.toml index afd684b08..854193feb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = ["hatchling"] [project] name = "djlint" -version = "1.35.2" +version = "1.35.3" description = "HTML Template Linter and Formatter" readme = "README.md" license = { text = "GPL-3.0-or-later" } diff --git a/uv.lock b/uv.lock index 173a243a5..a69156e67 100644 --- a/uv.lock +++ b/uv.lock @@ -109,7 +109,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/e5/66/9bfd2d69fb4479d38 [[package]] name = "djlint" -version = "1.35.2" +version = "1.35.3" source = { editable = "." } dependencies = [ { name = "click" },