Vigia

Aktualizacja magic-string z 0.x do 1.x

Porównanie publicznego API magic-string 0.30.21 i 1.4.2, 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 eksporty0
Zmienione sygnatury0
Usunięte składowe klas lub interfejsów1
Zmienione składowe klas lub interfejsów15
Nowo wycofane0
Zmiany wymagań (engines, zależności peer)0
Nowe eksporty5

Usunięte eksporty

Nie wykryto.

Zmienione sygnatury

Nie wykryto.

Usunięte składowe klas lub interfejsów

memberimportPrzed
default.indentExclusionRangesmagic-stringExclusionRange | ExclusionRange[]

Zmienione składowe klas lub interfejsów

memberPrzedPo
Bundle.addSource(source: MagicString | { filename?: string | undefined; content: MagicString; ignoreList?: boolean | undefined; }): Bundle(source: MagicString | BundleSourceDescription): Bundle
Bundle.generateMap(options?: SourceMapOptions | undefined): Omit<SourceMap, "sourcesContent"> & { sourcesContent: (string | null)[]; }(options?: BundleSourceMapOptions | undefined): Omit<SourceMap, "sourcesContent"> & { sourcesContent: (string | null)[]; }
Bundle.generateDecodedMap(options?: SourceMapOptions | undefined): Omit<DecodedSourceMap, "sourcesContent"> & { sourcesContent: (string | null)[]; }(options?: BundleSourceMapOptions | undefined): DecodedSourceMapOrMissingContent
Bundle.indentExclusionRangesExclusionRange | ExclusionRange[]ExclusionRange | ExclusionRange[] | undefined
default.move(start: number, end: number, index: number): MagicString(start: number, end: number, index: number, affinity?: "left" | "right" | undefined): MagicString
default.slice(start: number, end: number): string(start?: number | undefined, end?: number | undefined): string
default.replace(regex: string | RegExp, replacement: string | ((substring: string, ...args: any[]) => string)): MagicString(searchValue: string | RegExp, replacement: string | ReplacementFunction): MagicString
default.replaceAll(regex: string | RegExp, replacement: string | ((substring: string, ...args: any[]) => string)): MagicString(searchValue: string | RegExp, replacement: string | ReplacementFunction): MagicString
default.constructor(str: string, options?: MagicStringOptions | undefined): MagicString(string: string, options?: MagicStringOptions | undefined): MagicString
SourceMap.filestringstring | undefined
SourceMap.constructor(properties: DecodedSourceMap): SourceMap(properties: DecodedSourceMap | (Omit<DecodedSourceMap, "mappings"> & { mappings: string; })): SourceMap
SourceMap.sourcesContentstring[] | undefined(string | null)[] | undefined
DecodedSourceMap.filestringstring | undefined
DecodedSourceMap.sourcesContentstring[] | undefined(string | null)[] | undefined
SourceMapOptions.hiresboolean | "boundary" | undefinedboolean | "boundary" | "experimental-range" | undefined

Nowo wycofane

Nie wykryto.

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

Nie wykryto.

Nowe eksporty (5)
importexportkind
magic-stringMagicStringclass
magic-stringMagicStringErrorclass
magic-stringReplacementFunctiontype
magic-stringBundleSourceMapOptionsinterface
magic-stringBundledSourceFileRecordinterface

Najczęściej zadawane pytania

Jakie są zmiany niekompatybilne przy aktualizacji magic-string z 0 do 1?

Między magic-string 0.30.21 a 1.4.2 Vigia znalazła 0 usuniętych eksportów, 0 zmienionych sygnatur i 16 usuniętych lub zmienionych składowych klas lub interfejsów.

Co zostało wycofane w magic-string 1?

0 eksportów lub składowych oznaczono w magic-string 1.4.2 jako wycofane.

Dla agentów

GET https://vigia.coredls.cloud/v1/packages/npm/magic-string/upgrade?from=0.30.21&to=1.4.2