Skip to content

fix(deps): update module github.com/tdewolff/minify/v2 to v2.24.12#263

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-tdewolff-minify-v2-2.x
Open

fix(deps): update module github.com/tdewolff/minify/v2 to v2.24.12#263
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-tdewolff-minify-v2-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 20, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/tdewolff/minify/v2 v2.24.8v2.24.12 age confidence

Release Notes

tdewolff/minify (github.com/tdewolff/minify/v2)

v2.24.12

Compare Source

v2.24.11

Compare Source

v2.24.10

Compare Source

v2.24.9

Compare Source

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Apr 20, 2026

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
github.com/tdewolff/parse/v2 v2.8.5 -> v2.8.11

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 20, 2026

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

Version Update: v2.24.8v2.24.12 (4 patch releases)

Major Changes Across Releases:

  • v2.24.12:

    • JS: Fixed variable reordering for const and let declarations (#939)
    • HTML: Prevented long execution time for whitespace look-ahead (OSSFuzz bug fix)
  • v2.24.11:

    • CSS: Added removal of empty rulesets (#908)
    • SVG: Introduced new KeepNamespaces option (#936)
    • JS: Fixed variable declaration reordering (#926)
    • JS: Suppressed checking for duplicate private members in classes (#932)
  • v2.24.10:

    • JS: Fixed precedence in OptionalExpression within Member/CallExpressions (#912)
    • JS: Fixed variable renaming inside objects within object-property-methods (#910)
  • v2.24.9:

    • CMD: Fixed --match for Windows (#901)
    • CMD: Ignore bad softlinks, updated verbosity levels
    • HTML: Don't remove end tags in <template> (#907)
    • CSS: Fixed nested rulesets (#908)

Breaking Changes: None identified

Security Fixes: HTML whitespace processing performance issue (OSSFuzz-discovered DoS prevention)

Transitive Dependency Update: github.com/tdewolff/parse/v2 also updated from v2.8.5v2.8.11

🎯 Impact Scope Investigation

Direct Usage Locations: 3 files in /internal/formatters/

  • html_minified.go:10-12 - Uses minify.New(), html.Minifier{KeepDocumentTags, KeepQuotes}, css.Minify
  • json_minified.go:9-10 - Uses minify.New(), json.Minify
  • svg_minified.go:9-10 - Uses minify.New(), svg.Minify

API Methods Used:

  • minify.New() - Core initialization method
  • (*minify.M).Add() - Register minifier with options
  • (*minify.M).AddFunc() - Register minifier function
  • (*minify.M).Minify() - Execute minification
  • html.Minifier struct with KeepDocumentTags and KeepQuotes options
  • Function minifiers: css.Minify, json.Minify, svg.Minify

API Compatibility: ✅ All APIs used in gat remain unchanged and backward compatible

Test Results:

  • ✅ All existing tests pass: go test ./... (internal/display, internal/gat, internal/masker, internal/prettier)
  • ✅ Build successful: Binary builds without errors
  • ✅ Runtime verification: HTML and JSON minified formatters work correctly with test files
  • ✅ Manual API compatibility test: All minification functions execute successfully

Impact on Other Dependencies: None - minify/v2 is a leaf dependency with no impact on other packages

💡 Recommended Actions

Immediate Actions:

  1. Safe to merge - No code changes required
  2. Merge this PR to benefit from bug fixes and performance improvements

Benefits of This Update:

  • Improved JavaScript minification correctness (fixes for const/let declarations, variable renaming, optional chaining)
  • Enhanced HTML minification stability (prevents long execution times)
  • Better CSS handling (empty ruleset removal, nested ruleset fixes)
  • Cross-platform improvements (Windows --match fix)
  • Security improvement (DoS prevention for HTML whitespace processing)

Post-Merge Monitoring:

  • Monitor for any unexpected minification behavior in HTML, JSON, or SVG outputs
  • No configuration changes needed

🔗 Reference Links

Generated by koki-develop/claude-renovate-review

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.

0 participants