Vigia

magic-string을(를) 0.x에서 1.x로 업그레이드하기

magic-string 0.30.21과 1.4.2의 공개 API를 TypeScript 타입에서 자동으로 비교한 결과입니다. 시그니처 변경은 호환성이 깨질 가능성이 있다는 뜻이며 확정은 아닙니다.

요약

삭제된 import 경로0
삭제된 export0
변경된 시그니처0
삭제된 클래스·인터페이스 멤버1
변경된 클래스·인터페이스 멤버15
새로 지원 중단됨0
요구 사항 변경 (engines, peer 의존성)0
새 export5

삭제된 export

감지되지 않았습니다.

변경된 시그니처

감지되지 않았습니다.

삭제된 클래스·인터페이스 멤버

memberimport이전
default.indentExclusionRangesmagic-stringExclusionRange | ExclusionRange[]

변경된 클래스·인터페이스 멤버

member이전이후
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

새로 지원 중단됨

감지되지 않았습니다.

요구 사항 변경 (engines, peer 의존성)

감지되지 않았습니다.

새 export (5)
importexportkind
magic-stringMagicStringclass
magic-stringMagicStringErrorclass
magic-stringReplacementFunctiontype
magic-stringBundleSourceMapOptionsinterface
magic-stringBundledSourceFileRecordinterface

자주 묻는 질문

magic-string을(를) 0에서 1(으)로 업그레이드할 때 호환성이 깨지는 변경은 무엇인가요?

magic-string 0.30.21과 1.4.2 사이에서 Vigia는 삭제된 export 0개, 변경된 시그니처 0개, 삭제되거나 변경된 클래스·인터페이스 멤버 16개를 찾았습니다.

magic-string 1에서 지원 중단된 것은 무엇인가요?

magic-string 1.4.2에서 export 또는 멤버 0개가 새로 지원 중단으로 표시되었습니다.

에이전트용

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