Vigia

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 paths0
Removed exports9
Changed signatures7
Removed class or interface members0
Changed class or interface members0
Newly deprecated1
Requirement changes (engines, peer dependencies)1
New exports2

Removed exports

importexportkindBefore
entitiesdecodeHTML4function(htmlString: string, mode?: DecodingMode | undefined): string
entitiesdecodeHTML5function(htmlString: string, mode?: DecodingMode | undefined): string
entitiesencodeHTML4function(input: string): string
entitiesencodeHTML5function(input: string): string
entitiesdecodeStrictfunction(input: string, options?: DecodingOptions | EntityLevel | undefined): string
entitiesdecodeHTML4Strictfunction(htmlString: string): string
entitiesdecodeHTML5Strictfunction(htmlString: string): string
entities/decodefromCodePointvariable(...codePoints: number[]): string
entities/decodedecodeCodePointfunction(codePoint: number): string

Changed signatures

exportBeforeAfter
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 · getCodePointUse `String.prototype.codePointAt` directly instead; this export will be removed in the next major.

Requirement changes (engines, peer dependencies)

BeforeAfter
engines.node>=0.12>=20.19.0
New exports (2)
importexportkind
entities/decodereplaceCodePointXMLfunction
entities/escapexmlEncodeRegexvariable

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