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 importu | 0 |
|---|---|
| Usunięte eksporty | 0 |
| Zmienione sygnatury | 0 |
| Usunięte składowe klas lub interfejsów | 1 |
| Zmienione składowe klas lub interfejsów | 15 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 0 |
| Nowe eksporty | 5 |
Usunięte eksporty
Nie wykryto.
Zmienione sygnatury
Nie wykryto.
Usunięte składowe klas lub interfejsów
| member | import | Przed |
|---|---|---|
default.indentExclusionRanges | magic-string | ExclusionRange | ExclusionRange[] |
Zmienione składowe klas lub interfejsów
| member | Przed | Po |
|---|---|---|
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.indentExclusionRanges | ExclusionRange | 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.file | string | string | undefined |
SourceMap.constructor | (properties: DecodedSourceMap): SourceMap | (properties: DecodedSourceMap | (Omit<DecodedSourceMap, "mappings"> & { mappings: string; })): SourceMap |
SourceMap.sourcesContent | string[] | undefined | (string | null)[] | undefined |
DecodedSourceMap.file | string | string | undefined |
DecodedSourceMap.sourcesContent | string[] | undefined | (string | null)[] | undefined |
SourceMapOptions.hires | boolean | "boundary" | undefined | boolean | "boundary" | "experimental-range" | undefined |
Nowo wycofane
Nie wykryto.
Zmiany wymagań (engines, zależności peer)
Nie wykryto.
Nowe eksporty (5)
| import | export | kind |
|---|---|---|
magic-string | MagicString | class |
magic-string | MagicStringError | class |
magic-string | ReplacementFunction | type |
magic-string | BundleSourceMapOptions | interface |
magic-string | BundledSourceFileRecord | interface |
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