Skip to content

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

Merged
koki-develop merged 1 commit into
mainfrom
renovate/github.com-tdewolff-minify-v2-2.x
May 31, 2026
Merged

fix(deps): update module github.com/tdewolff/minify/v2 to v2.24.13#269
koki-develop merged 1 commit into
mainfrom
renovate/github.com-tdewolff-minify-v2-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 28, 2026

This PR contains the following updates:

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

Release Notes

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

v2.24.13

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday (* 0-4,22-23 * * 1-5)
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented May 28, 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):

  • 2 additional dependencies were updated

Details:

Package Change
github.com/tdewolff/parse/v2 v2.8.11 -> v2.8.12
golang.org/x/sys v0.39.0 -> v0.43.0

@github-actions
Copy link
Copy Markdown
Contributor

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

This PR updates github.com/tdewolff/minify/v2 from v2.24.12 to v2.24.13, which is a patch version update containing bug fixes with no breaking changes.

Key Changes in v2.24.13:

  1. CSS Enhancement (#784): Fixed handling of CSS custom properties (CSS variables) at stylesheet top-level. Previously, the minifier incorrectly removed whitespace around operators in calc() functions containing variables (e.g., producing invalid calc(var(--width)+var(--expansion)) instead of valid calc(var(--width) + var(--expansion))). This fix ensures proper spacing is preserved.

  2. JavaScript Bug Fix (#958): Resolved incorrect rearrangement of const/let variable declarations during minification. The minifier was reordering variables in a way that violated JavaScript's temporal dead zone semantics, causing runtime errors when variables were referenced before declaration.

Indirect Dependency Updates:

  • github.com/tdewolff/parse/v2: v2.8.11 → v2.8.12
  • github.com/tdewolff/test: v1.0.11 → v1.0.12
  • golang.org/x/sys: v0.39.0 → v0.43.0

No API Changes: The public API of the minify package remains unchanged. All existing methods, function signatures, and usage patterns are preserved.

🎯 Impact Scope Investigation

Usage Analysis:

The gat codebase uses github.com/tdewolff/minify/v2 in three formatter files:

  1. internal/formatters/html_minified.go:10-30

    • Uses minify.New(), html.Minifier, and css.Minify
    • Benefits from CSS custom properties fix
  2. internal/formatters/json_minified.go:9-24

    • Uses minify.New() and json.Minify
    • No direct impact from this release's changes
  3. internal/formatters/svg_minified.go:9-24

    • Uses minify.New() and svg.Minify
    • No direct impact from this release's changes

Testing Results:

✅ All tests pass: go test ./... completed successfully
✅ Build succeeds: go build completed without errors
✅ No test files exist for formatters package, but integration tests in other packages pass

Dependency Impact:

The transitive dependencies (parse/v2 and test) are internal to the minify package ecosystem and do not expose breaking changes. The golang.org/x/sys update from v0.39.0 to v0.43.0 is a standard maintenance update with no impact on gat's usage.

Code Modification Assessment:

  • No code changes required: gat uses the stable public API (minify.New(), AddFunc(), Add(), Minify()) which remains unchanged
  • No configuration changes needed: All formatter configurations are code-based and remain valid
  • Backward compatible: The update only fixes bugs without altering expected behavior for valid inputs

💡 Recommended Actions

  1. Merge immediately: This is a safe patch update with bug fixes that improve the quality of minified output
  2. No code modifications required: Existing code works without changes
  3. Consider the benefits: The CSS fix improves handling of modern CSS features (custom properties), and the JS fix prevents potential minification errors

Post-Merge Verification (Optional):

# Run tests after merge to confirm
go test ./...

# Test minified output quality with actual files
./gat --format html-min <sample.html>
./gat --format json-min <sample.json>
./gat --format svg-min <sample.svg>

🔗 Reference Links

Generated by koki-develop/claude-renovate-review

@koki-develop koki-develop merged commit d0f7b21 into main May 31, 2026
5 checks passed
@koki-develop koki-develop deleted the renovate/github.com-tdewolff-minify-v2-2.x branch May 31, 2026 04:33
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.

1 participant