Upgrading entities from 7.x to 8.x
Comparison of the public API of entities 7.0.1 and 8.1.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 9 |
| Changed signatures | 7 |
| Removed class or interface members | 0 |
| Changed class or interface members | 0 |
| Newly deprecated | 1 |
| Requirement changes (engines, peer dependencies) | 1 |
| New exports | 2 |
Removed exports
| import | export | kind | Before |
|---|---|---|---|
entities | decodeHTML4 | function | (htmlString: string, mode?: DecodingMode | undefined): string |
entities | decodeHTML5 | function | (htmlString: string, mode?: DecodingMode | undefined): string |
entities | encodeHTML4 | function | (input: string): string |
entities | encodeHTML5 | function | (input: string): string |
entities | decodeStrict | function | (input: string, options?: DecodingOptions | EntityLevel | undefined): string |
entities | decodeHTML4Strict | function | (htmlString: string): string |
entities | decodeHTML5Strict | function | (htmlString: string): string |
entities/decode | fromCodePoint | variable | (...codePoints: number[]): string |
entities/decode | decodeCodePoint | function | (codePoint: number): string |
Changed signatures
| export | Before | After |
|---|---|---|
entities · escapeText | (data: string): string | (data: string): string |
entities · escapeUTF8 | (data: string): string | (data: string): string |
entities · escapeAttribute | (data: string): string | (data: string): string |
entities/escape · escapeText | (data: string): string | (data: string): string |
entities/escape · escapeUTF8 | (data: string): string | (data: string): string |
entities/escape · getCodePoint | (c: string, index: number): number | (input: string, index: number): number |
entities/escape · escapeAttribute | (data: string): string | (data: string): string |
Removed class or interface members
None detected.
Changed class or interface members
None detected.
Newly deprecated
| export | @deprecated |
|---|---|
entities/escape · getCodePoint | Use `String.prototype.codePointAt` directly instead; this export will be removed in the next major. |
Requirement changes (engines, peer dependencies)
| Before | After | |
|---|---|---|
engines.node | >=0.12 | >=20.19.0 |
New exports (2)
| import | export | kind |
|---|---|---|
entities/decode | replaceCodePointXML | function |
entities/escape | xmlEncodeRegex | variable |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What are the breaking changes when upgrading entities from 7 to 8?
Between entities 7.0.1 and 8.1.0, Vigia found 9 removed exports, 7 changed signatures and 0 removed or changed class or interface members.
What became deprecated in entities 8?
1 exports or members are newly marked as deprecated in entities 8.1.0.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/entities/upgrade?from=7.0.1&to=8.1.0