entities breaking changes
Updated December 4, 2026
On this page
Latest version 9.0.0, released October 29, 2026. Source repository
Its 8.0.0 release requires Node.js 20.19.0 or later. Node.js end of life dates.
- From 8.1.0 to 9.0.0: 15 breaking changes in 1 version.
- From 2.0.0 to 9.0.0: 118 breaking changes in 8 versions.
entities 9.0.0 breaking changes
- Removed
decode:determineBranch
determineBranch was removed in entities 9.0.0 npmjs.com - Removed
decode:htmlDecodeTree
htmlDecodeTree was removed in entities 9.0.0 npmjs.com - Removed
decode:xmlDecodeTree
xmlDecodeTree was removed in entities 9.0.0 npmjs.com - Removed
determineBranch
The determineBranch export is gone. github.com - Removed
EntityDecoder
The streaming decoder class EntityDecoder is now HtmlEntityDecoder. Update constructor calls to the new name and arguments. npmjs.com - Removed
escape:getCodePoint
Use String.prototype.codePointAt instead. npmjs.com - Removed
getCodePoint
The deprecated getCodePoint export is gone; use String.prototype.codePointAt instead. github.com - Removed
htmlDecodeTree
The htmlDecodeTree export is gone; streaming decoders no longer need it. github.com - Removed
xmlDecodeTree
The xmlDecodeTree export is gone; streaming decoders no longer need it. github.com - Renamed
XmlEntityDecoder
Use XmlEntityDecoder for streaming XML decoding; the old XML decoder variant is replaced. github.com - Behavior changed
encodeHTML
encodeHTML now picks the shortest named alias, so some output names differ from v8. github.com - Behavior changed
encodeXML
encodeXML now writes decimal numeric references, so output strings differ from v8. github.com - Behavior changed
EncodingMode.Attribute
The Attribute encoding mode now escapes < and > as well, matching the latest HTML spec. github.com - Behavior changed
escapeAttribute
escapeAttribute now escapes < and > as well, matching the latest HTML spec. Expect different output for attributes containing these characters. github.com - Signature changed
HtmlEntityDecoder
The constructor now takes only emit and errors; the decode table argument is gone. github.com
entities 8.1.0 breaking changes
- Behavior changed
decode
The default decode now decodes numeric references such as € to U+0080 instead of € (HTML decoding still yields €). Code relying on the old output must be updated. github.com - Behavior changed
decodeXML
decodeXML now decodes numeric references such as € to the matching code point (U+0080) instead of the HTML windows-1252 mapping (€). Code relying on the old output must be updated. github.com - Signature changed
escape:getCodePoint
Was const getCodePoint: (c: string, index: number) => number; now const getCodePoint: (input: string, index: number) => number. npmjs.com - Signature changed
escapeAttribute
Was const escapeAttribute: (data: string) => string; now function escapeAttribute(data: string): string. npmjs.com - Signature changed
escapeText
Was const escapeText: (data: string) => string; now function escapeText(data: string): string. npmjs.com - Signature changed
escapeUTF8
Was const escapeUTF8: (data: string) => string; now function escapeUTF8(data: string): string. npmjs.com
entities 8.0.0 breaking changes
- Removed
Deprecated functions and polyfills were removed, so code that still uses them will break and must be updated. github.com - Removed
decode:decodeCodePoint
decodeCodePoint was removed in entities 8.0.0 npmjs.com - Removed
decode:fromCodePoint
fromCodePoint was removed in entities 8.0.0 npmjs.com - Removed
decodeHTML4
decodeHTML4 was removed in entities 8.0.0 npmjs.com - Removed
decodeHTML4Strict
decodeHTML4Strict was removed in entities 8.0.0 npmjs.com - Removed
decodeHTML5
decodeHTML5 was removed in entities 8.0.0 npmjs.com - Removed
decodeHTML5Strict
decodeHTML5Strict was removed in entities 8.0.0 npmjs.com - Removed
decodeStrict
Use decode instead. npmjs.com - Removed
encodeHTML4
encodeHTML4 was removed in entities 8.0.0 npmjs.com - Removed
encodeHTML5
encodeHTML5 was removed in entities 8.0.0 npmjs.com
And 2 more in this version. Sign up to see every change
entities 7.0.0 breaking changes
- Removed
decode:BinTrieFlags
BinTrieFlags was removed in entities 7.0.0 npmjs.com - Removed
escape:xmlReplacer
xmlReplacer was removed in entities 7.0.0 npmjs.com - Behavior changed
The release states there are no public API changes; internal trie and encoding structures changed, which may alter behavior only in edge cases. Users should verify their output if they depend on internals. github.com
entities 6.0.0 breaking changes
- Removed
dist/decode.js:BinTrieFlags
BinTrieFlags was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:decodeCodePoint
decodeCodePoint was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:decodeHTML
decodeHTML was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:decodeHTMLAttribute
decodeHTMLAttribute was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:decodeHTMLStrict
decodeHTMLStrict was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:decodeXML
decodeXML was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:DecodingMode
DecodingMode was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:determineBranch
determineBranch was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:EntityDecoder
EntityDecoder was removed in entities 6.0.0 npmjs.com - Removed
dist/decode.js:EntityErrorProducer
EntityErrorProducer was removed in entities 6.0.0 npmjs.com
And 13 more in this version. Sign up to see every change
entities 5.0.0 breaking changes
- Removed
lib/decode.js:decodeHTML
decodeHTML was removed in entities 5.0.0 npmjs.com - Removed
lib/decode.js:decodeHTMLAttribute
decodeHTMLAttribute was removed in entities 5.0.0 npmjs.com - Removed
lib/decode.js:decodeHTMLStrict
decodeHTMLStrict was removed in entities 5.0.0 npmjs.com - Removed
lib/decode.js:decodeXML
decodeXML was removed in entities 5.0.0 npmjs.com - Removed
lib/decode.js:determineBranch
determineBranch was removed in entities 5.0.0 npmjs.com - Removed
lib/decode.js:fromCodePoint
fromCodePoint was removed in entities 5.0.0 npmjs.com - Removed
lib/decode.js:htmlDecodeTree
htmlDecodeTree was removed in entities 5.0.0 npmjs.com - Removed
lib/decode.js:xmlDecodeTree
xmlDecodeTree was removed in entities 5.0.0 npmjs.com - Removed
lib/escape.js:encodeXML
encodeXML was removed in entities 5.0.0 npmjs.com - Removed
lib/escape.js:escape
escape was removed in entities 5.0.0 npmjs.com
And 30 more in this version. Sign up to see every change
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
entities 4.0.0 breaking changes
- Behavior changed
Base maps were moved out of the bundle and encoding uses a smaller map, so encoded output may differ from earlier versions. github.com - Signature changed
escapeUTF8
Was function escapeUTF8(data: string): string; now const escapeUTF8: (data: string) => string. npmjs.com
entities 3.0.0 breaking changes
- Signature changed
decode
Was function decode(data: string, level?: number): string; now function decode(data: string, options?: DecodingOptions | EntityLevel): string. npmjs.com - Signature changed
decodeHTML
Was const decodeHTML: (str: string) => string; now function decodeHTML(str: string): string. npmjs.com
And 15 more in this version.
entities 2.0.0 breaking changes
- Signature changed
decodeHTML
Was function decodeHTML(str: string): string; now const decodeHTML: (str: string) => string. npmjs.com - Signature changed
decodeHTML4
Was function decodeHTML4(str: string): string; now const decodeHTML: (str: string) => string. npmjs.com
And 10 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.