---
title: "html-entities 2.0.0 Breaking Changes on npm | Since.dev"
description: "What each html-entities release removed, renamed or changed: 7 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/html-entities
last_updated: 2026-12-04
---

# html-entities breaking changes

html-entities 2.0.0 (December 28, 2020) is its newest release with breaking changes, 7 of them. The first: Removed AllHtmlEntities. Every breaking API change we have recorded in html-entities on npm: 7 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.6.0`, released March 30, 2025. 

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

## html-entities 2.0.0 breaking changes

html-entities 2.0.0, released December 28, 2020: 7 breaking changes.

- **Removed** `AllHtmlEntities`  

The XML/HTML version classes are gone; pass the level option to the top-level encode and decode functions instead. [npmjs.com](https://www.npmjs.com/package/html-entities/v/2.0.0)
- **Removed** `Html4Entities`  

The XML/HTML version classes are gone; pass the level option to the top-level encode and decode functions instead. [npmjs.com](https://www.npmjs.com/package/html-entities/v/2.0.0)
- **Removed** `Html5Entities`  

The XML/HTML version classes are gone; pass the level option to the top-level encode and decode functions instead. [npmjs.com](https://www.npmjs.com/package/html-entities/v/2.0.0)
- **Removed** `XmlEntities`  

The XML/HTML version classes are gone; pass the level option to the top-level encode and decode functions instead. [npmjs.com](https://www.npmjs.com/package/html-entities/v/2.0.0)
- **Renamed** `htmlEntitiesInstance.encode`  

Calling encode on an instance is replaced by importing the top-level encode function and calling encode(text). [github.com](https://github.com/mdevils/html-entities/releases/tag/v2.0.0)
- **Renamed** `instance.decode`  

Calling decode on an instance is replaced by importing the top-level decode function and calling decode(text). [github.com](https://github.com/mdevils/html-entities/releases/tag/v2.0.0)
- **Renamed** `instance.encodeNonASCII`  

Use encode with the mode option set to 'nonAscii' or 'nonAsciiPrintable' instead of encodeNonASCII. [github.com](https://github.com/mdevils/html-entities/releases/tag/v2.0.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.
