Skip to content

fix: Remove default parameters changed in minify-html 0.16.0#7

Merged
justinmayer merged 5 commits into
pelican-plugins:mainfrom
pauloxnet:support/0.16.0
Oct 31, 2025
Merged

fix: Remove default parameters changed in minify-html 0.16.0#7
justinmayer merged 5 commits into
pelican-plugins:mainfrom
pauloxnet:support/0.16.0

Conversation

@pauloxnet
Copy link
Copy Markdown
Member

@pauloxnet pauloxnet commented Apr 1, 2025

Fixes #6, #9

@alexreinking
Copy link
Copy Markdown

alexreinking commented Apr 2, 2025

That code change looks good to me. From my reading of the minify-html docs, these are now the default. However, I think you need to update the dependency in pyproject.toml:

https://github.com/pelican-plugins/minify/blob/c40fa0106de72ad6023806116b83aa31337d60f2/pyproject.toml#L41C8-L41C27

@pauloxnet pauloxnet marked this pull request as ready for review April 10, 2025 06:18
@pauloxnet
Copy link
Copy Markdown
Member Author

That code change looks good to me. From my reading of the minify-html docs, these are now the default. However, I think you need to update the dependency in pyproject.toml

Thanks for the review. I updated the PR and set it as ready to be reviewed.

Copy link
Copy Markdown
Contributor

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for this fix, Paolo. Because AutoPub automatically updates the change-log and increments the version number, there is no need to change these manually. Please add a RELEASE.md file to this PR with Release type: patch and containing the description of the changes. (Example)

Also, it seems that CI is reporting test failure(s)/error(s), so that situation should be resolved as well.

Comment thread CHANGELOG.md Outdated
Comment thread pyproject.toml Outdated
@pauloxnet
Copy link
Copy Markdown
Member Author

Many thanks for this fix, Paolo. Because AutoPub automatically updates the change-log and increments the version number, there is no need to change these manually. Please add a RELEASE.md file to this PR with Release type: patch and containing the description of the changes. (Example)

I forgot every time that your repo are totally automatized :-)

I hope I fixed it properly.

Also, it seems that CI is reporting test failure(s)/error(s), so that situation should be resolved as well.

I try to deep dive in the failures, any help will be appreciated :-D

@pauloxnet pauloxnet requested a review from justinmayer April 10, 2025 10:35
@justinmayer
Copy link
Copy Markdown
Contributor

Thanks for the follow-up changes, Paolo. Unfortunately, CI is still reporting test problems. Does the test suite pass for you when you run the tests locally on your workstation?

@pauloxnet
Copy link
Copy Markdown
Member Author

Unfortunately, CI is still reporting test problems. Does the test suite pass for you when you run the tests locally on your workstation?

It fails also o my machine, but it seems a minify-html issue:
wilsonzlin/minify-html#225

@justinmayer
Copy link
Copy Markdown
Contributor

The latest comment to the above-linked issue says: “Version 0.17.1 has migrated the JS minifier to oxc, which should be more robust.”

@pauloxnet
Copy link
Copy Markdown
Member Author

pauloxnet commented Oct 24, 2025

The latest comment to the above-linked issue says: “Version 0.17.1 has migrated the JS minifier to oxc, which should be more robust.”

Thanks for the ping, I tried to update the PR using version 0.17.1 just before shutting down the PC. :)

@pauloxnet
Copy link
Copy Markdown
Member Author

@justinmayer can you approve the run of the checking workflow?

@pauloxnet pauloxnet requested a review from Copilot October 30, 2025 21:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the plugin to be compatible with the newer version of the minify-html library (0.17.1+) by removing deprecated parameters that were removed from the library's API. It also adds a new contributor to the project.

  • Updates minimum minify_html version from 0.10.8 to 0.17.1
  • Removes deprecated do_not_minify_doctype and keep_spaces_between_attributes parameters from the minification call
  • Adds Paolo Melchiorre as a project author

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pyproject.toml Updates minify_html dependency to version 0.17.1+ and adds new author
pelican/plugins/minify/minify.py Removes deprecated parameters from minify_html.minify() function call
RELEASE.md Documents the compatibility fix as a patch release

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@justinmayer justinmayer changed the title Fix #6 - Remove default parameters changed in minify-html 0.16.0 fix: Remove default parameters changed in minify-html 0.16.0 Oct 31, 2025
Copy link
Copy Markdown
Contributor

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work, Paolo. Many thanks for this fix. Much appreciated! 🥇

@justinmayer justinmayer merged commit 17f986c into pelican-plugins:main Oct 31, 2025
7 checks passed
@pauloxnet
Copy link
Copy Markdown
Member Author

Excellent work, Paolo. Many thanks for this fix. Much appreciated! 🥇

Thanks for your input and reviews :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incompatible with minify-html 0.16.0 and newer

4 participants