Vigia

Aktualizacja entities z 7.x do 8.x

Porównanie publicznego API entities 7.0.1 i 8.1.0, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.

Podsumowanie

Usunięte ścieżki importu0
Usunięte eksporty9
Zmienione sygnatury7
Usunięte składowe klas lub interfejsów0
Zmienione składowe klas lub interfejsów0
Nowo wycofane1
Zmiany wymagań (engines, zależności peer)1
Nowe eksporty2

Usunięte eksporty

importexportkindPrzed
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

Zmienione sygnatury

exportPrzedPo
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

Usunięte składowe klas lub interfejsów

Nie wykryto.

Zmienione składowe klas lub interfejsów

Nie wykryto.

Nowo wycofane

export@deprecated
entities/escape · getCodePointUse `String.prototype.codePointAt` directly instead; this export will be removed in the next major.

Zmiany wymagań (engines, zależności peer)

PrzedPo
engines.node>=0.12>=20.19.0
Nowe eksporty (2)
importexportkind
entities/decodereplaceCodePointXMLfunction
entities/escapexmlEncodeRegexvariable

Najczęściej zadawane pytania

Jakie są zmiany niekompatybilne przy aktualizacji entities z 7 do 8?

Między entities 7.0.1 a 8.1.0 Vigia znalazła 9 usuniętych eksportów, 7 zmienionych sygnatur i 0 usuniętych lub zmienionych składowych klas lub interfejsów.

Co zostało wycofane w entities 8?

1 eksportów lub składowych oznaczono w entities 8.1.0 jako wycofane.

Dla agentów

GET https://vigia.coredls.cloud/v1/packages/npm/entities/upgrade?from=7.0.1&to=8.1.0