---
title: "html-minifier 5.5.0 Breaking Changes on npm | Since.dev"
description: "What each html-minifier release removed, renamed or changed: 6 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/html-minifier
last_updated: 2026-12-04
---

# html-minifier breaking changes

html-minifier 5.5.0 (November 30, 2026) is its newest release with breaking changes. The first: Signature changed default. Every breaking API change we have recorded in html-minifier on npm: 6 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.5.2`, released December 3, 2026. [Source repository](https://github.com/j9t/html-minifier)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [5.1.0](#v-5-1-0) to [5.5.0](#v-5-5-0): 3 breaking changes in 2 versions.

## html-minifier 5.5.0 breaking changes

html-minifier 5.5.0, released November 30, 2026: 1 breaking change.

- **Signature changed** `default`  

Was const \_default: {minify: typeof minify; presets: {conservative: {caseSensitive: boolean; collapseBooleanAttributes: boolean; collapseWhitespace: boolean; conservativeCollapse: boolean; preserveLineBreaks: boolean; removeComments... [npmjs.com](https://www.npmjs.com/package/html-minifier/v/5.5.0)

## html-minifier 5.3.0 breaking changes

html-minifier 5.3.0, released November 17, 2026: 2 breaking changes.

- **Signature changed** `default`  

Was const \_default: {minify: typeof minify; presets: {conservative: {caseSensitive: boolean; collapseBooleanAttributes: boolean; collapseWhitespace: boolean; conservativeCollapse: boolean; preserveLineBreaks: boolean; removeComments... [npmjs.com](https://www.npmjs.com/package/html-minifier/v/5.3.0)
- **Signature changed** `presets`  

Was const presets: {conservative: {caseSensitive: boolean; collapseBooleanAttributes: boolean; collapseWhitespace: boolean; conservativeCollapse: boolean; preserveLineBreaks: boolean; removeComments: boolean; removeDefaultTypeAttributes... [npmjs.com](https://www.npmjs.com/package/html-minifier/v/5.3.0)

## html-minifier 5.1.0 breaking changes

html-minifier 5.1.0, released November 11, 2026: 3 breaking changes.

- **Signature changed** `default`  

Was const \_default: {minify: typeof minify; presets: {conservative: {caseSensitive: boolean; collapseBooleanAttributes: boolean; collapseWhitespace: boolean; conservativeCollapse: boolean; preserveLineBreaks: boolean; removeComments... [npmjs.com](https://www.npmjs.com/package/html-minifier/v/5.1.0)
- **Signature changed** `MinifierOptions`  

Was type MinifierOptions = {canCollapseWhitespace?: (tag: string, attrs: HTMLAttribute\[\], canCollapseWhitespace: (tag: string) => boolean) => boolean; canMinifyCSS?: ((text: string, type?: 'inline' | 'media') => boolean) | null... [npmjs.com](https://www.npmjs.com/package/html-minifier/v/5.1.0)
- **Signature changed** `presets`  

Was const presets: {conservative: {caseSensitive: boolean; collapseBooleanAttributes: boolean; collapseWhitespace: boolean; conservativeCollapse: boolean; preserveLineBreaks: boolean; removeComments: boolean; removeDefaultTypeAttributes... [npmjs.com](https://www.npmjs.com/package/html-minifier/v/5.1.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
