Vigia

js-yaml을(를) 4.x에서 5.x로 업그레이드하기

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

요약

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

삭제된 export

importexportkind이전
js-yamlMarkinterfaceinterface
js-yamlTypeclassclass
js-yamlStateinterfaceinterface
js-yamlEventTypetype"open" | "close"
js-yamlDEFAULT_SCHEMAvariableSchema
js-yamlSchemaDefinitioninterfaceinterface
js-yamlTypeConstructorOptionsinterfaceinterface

변경된 시그니처

export이전이후
js-yaml · dump(obj: any, opts?: DumpOptions | undefined): string(input: any, options?: DumpOptions | undefined): string
js-yaml · load(str: string, opts?: LoadOptions | undefined): unknown(input: string, options?: LoadOptions | undefined): unknown
js-yaml · loadAll(str: string, iterator?: null | undefined, opts?: LoadOptions | undefined): unknown[] | (str: string, iterator: (doc: unknown) => void, opts?: LoadOptions | undefined): void(input: string, options?: LoadOptions | undefined): unknown[] | (input: string, iterator: null, options?: LoadOptions | undefined): unknown[] | (input: string, iterator: LoadAllIterator, options?: LoadOptions | undefined): void

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

memberimport이전
Schema.extendjs-yaml(types: Type | SchemaDefinition | Type[]): Schema
DumpOptions.stylesjs-yaml{ [x: string]: any; } | undefined
DumpOptions.replacerjs-yaml((key: string, value: any) => any) | undefined
DumpOptions.quotingTypejs-yaml"'" | "\"" | undefined
DumpOptions.condenseFlowjs-yamlboolean | undefined
DumpOptions.noCompatModejs-yamlboolean | undefined
DumpOptions.noArrayIndentjs-yamlboolean | undefined
LoadOptions.listenerjs-yaml((this: State, eventType: EventType, state: State) => void) | undefined
LoadOptions.onWarningjs-yaml((this: null, e: YAMLException) => void) | undefined

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

member이전이후
Schema.constructor(definition: Type | SchemaDefinition | Type[]): Schema(tags: readonly TagDefinition[]): Schema
YAMLException.markMarkSnippetMark | undefined
YAMLException.constructor(reason?: string | undefined, mark?: Mark | undefined): YAMLException(reason: string, mark?: SnippetMark | undefined): YAMLException

새로 지원 중단됨

export@deprecated
js-yaml · loadAllIterator is not supported.
js-yaml · DumpOptions.sortKeysUse {@link transform} to reorder mapping items.

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

감지되지 않았습니다.

새 export (94)
importexportkind
js-yamlNodetype
js-yamlEventtype
js-yamlvisitfunction
js-yamlmapTagvariable
js-yamlseqTagvariable
js-yamlsetTagvariable
js-yamlstrTagvariable
js-yamlEventIdtype
js-yamlVisitortype
js-yamljsToAstfunction
js-yamlomapTagvariable
js-yamlpresentfunction
js-yamlDocumentinterface
js-yamlEVENT_IDvariable
js-yamlNodeBaseinterface
js-yamlPopEventinterface
js-yamlmergeTagvariable
js-yamlpairsTagvariable
js-yamlAliasNodeinterface
js-yamlEVENT_POPvariable
js-yamlbinaryTagvariable
js-yamlAliasEventinterface
js-yamlScalarNodeinterface
js-yamlVISIT_SKIPvariable
js-yamlintCoreTagvariable
js-yamlintJsonTagvariable
js-yamlrealMapTagvariable
js-yamlDUMP_SCHEMAvariable
js-yamlEVENT_ALIASvariable
js-yamlMappingNodeinterface
js-yamlScalarEventinterface
js-yamlScalarStyletype
js-yamlVISIT_BREAKvariable
js-yamlboolCoreTagvariable
js-yamlboolJsonTagvariable
js-yamleventsToAstfunction
js-yamlnullCoreTagvariable
js-yamlnullJsonTagvariable
js-yamlparseEventsfunction
js-yamlChompingModetype
js-yamlEVENT_SCALARvariable
js-yamlMappingEventinterface
js-yamlNOT_RESOLVEDvariable
js-yamlSCALAR_STYLEvariable
js-yamlScalarLayoutinterface
js-yamlSequenceNodeinterface
js-yamlVisitContextinterface
js-yamlfloatCoreTagvariable
js-yamlfloatJsonTagvariable
js-yamlintYaml11Tagvariable
js-yamllegacyMapTagvariable
js-yamltimestampTagvariable
js-yamlCHOMPING_CLIPvariable
js-yamlCHOMPING_KEEPvariable
js-yamlCHOMPING_MODEvariable
js-yamlDocumentEventinterface
js-yamlEVENT_MAPPINGvariable
js-yamlFromJsOptionsinterface
js-yamlParserOptionsinterface
js-yamlSequenceEventinterface
js-yamlTagDefinitiontype
js-yamlYAML11_SCHEMAvariable
js-yamlboolYaml11Tagvariable
js-yamlnullYaml11Tagvariable
js-yamlCHOMPING_STRIPvariable
js-yamlEVENT_DOCUMENTvariable
js-yamlEVENT_SEQUENCEvariable
js-yamlfloatYaml11Tagvariable
js-yamlgetScalarValuefunction
js-yamlCollectionStyletype
js-yamlScalarStyleRuletype
js-yamldefineScalarTagfunction
js-yamlCOLLECTION_STYLEvariable
js-yamlPresenterOptionsinterface
js-yamlScalarTagOptionsinterface
js-yamldefineMappingTagfunction
js-yamlDocumentDirectivetype
js-yamlFromEventsOptionsinterface
js-yamlMappingTagOptionsinterface
js-yamldefineSequenceTagfunction
js-yamlConstructorOptionsinterface
js-yamlSCALAR_STYLE_PLAINvariable
js-yamlSequenceTagOptionsinterface
js-yamlScalarTagDefinitioninterface
js-yamlconstructFromEventsfunction
js-yamlMappingTagDefinitioninterface
js-yamlCOLLECTION_STYLE_FLOWvariable
js-yamlSequenceTagDefinitioninterface
js-yamlCOLLECTION_STYLE_BLOCKvariable
js-yamlSCALAR_STYLE_FOLDED_BLOCKvariable
js-yamlDEFAULT_SCALAR_STYLE_RULESvariable
js-yamlSCALAR_STYLE_DOUBLE_QUOTEDvariable
js-yamlSCALAR_STYLE_LITERAL_BLOCKvariable
js-yamlSCALAR_STYLE_SINGLE_QUOTEDvariable

자주 묻는 질문

js-yaml을(를) 4에서 5(으)로 업그레이드할 때 호환성이 깨지는 변경은 무엇인가요?

js-yaml 4.3.2과 5.4.2 사이에서 Vigia는 삭제된 export 7개, 변경된 시그니처 3개, 삭제되거나 변경된 클래스·인터페이스 멤버 12개를 찾았습니다.

js-yaml 5에서 지원 중단된 것은 무엇인가요?

js-yaml 5.4.2에서 export 또는 멤버 2개가 새로 지원 중단으로 표시되었습니다.

에이전트용

GET https://vigia.coredls.cloud/v1/packages/npm/js-yaml/upgrade?from=4.3.2&to=5.4.2