js-yaml을(를) 4.x에서 5.x로 업그레이드하기
js-yaml 4.3.2과 5.4.2의 공개 API를 TypeScript 타입에서 자동으로 비교한 결과입니다. 시그니처 변경은 호환성이 깨질 가능성이 있다는 뜻이며 확정은 아닙니다.
요약
| 삭제된 import 경로 | 0 |
|---|---|
| 삭제된 export | 7 |
| 변경된 시그니처 | 3 |
| 삭제된 클래스·인터페이스 멤버 | 9 |
| 변경된 클래스·인터페이스 멤버 | 3 |
| 새로 지원 중단됨 | 2 |
| 요구 사항 변경 (engines, peer 의존성) | 0 |
| 새 export | 94 |
삭제된 export
| import | export | kind | 이전 |
|---|---|---|---|
js-yaml | Mark | interface | interface |
js-yaml | Type | class | class |
js-yaml | State | interface | interface |
js-yaml | EventType | type | "open" | "close" |
js-yaml | DEFAULT_SCHEMA | variable | Schema |
js-yaml | SchemaDefinition | interface | interface |
js-yaml | TypeConstructorOptions | interface | interface |
변경된 시그니처
| 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 |
삭제된 클래스·인터페이스 멤버
| member | import | 이전 |
|---|---|---|
Schema.extend | js-yaml | (types: Type | SchemaDefinition | Type[]): Schema |
DumpOptions.styles | js-yaml | { [x: string]: any; } | undefined |
DumpOptions.replacer | js-yaml | ((key: string, value: any) => any) | undefined |
DumpOptions.quotingType | js-yaml | "'" | "\"" | undefined |
DumpOptions.condenseFlow | js-yaml | boolean | undefined |
DumpOptions.noCompatMode | js-yaml | boolean | undefined |
DumpOptions.noArrayIndent | js-yaml | boolean | undefined |
LoadOptions.listener | js-yaml | ((this: State, eventType: EventType, state: State) => void) | undefined |
LoadOptions.onWarning | js-yaml | ((this: null, e: YAMLException) => void) | undefined |
변경된 클래스·인터페이스 멤버
| member | 이전 | 이후 |
|---|---|---|
Schema.constructor | (definition: Type | SchemaDefinition | Type[]): Schema | (tags: readonly TagDefinition[]): Schema |
YAMLException.mark | Mark | SnippetMark | undefined |
YAMLException.constructor | (reason?: string | undefined, mark?: Mark | undefined): YAMLException | (reason: string, mark?: SnippetMark | undefined): YAMLException |
새로 지원 중단됨
| export | @deprecated |
|---|---|
js-yaml · loadAll | Iterator is not supported. |
js-yaml · DumpOptions.sortKeys | Use {@link transform} to reorder mapping items. |
요구 사항 변경 (engines, peer 의존성)
감지되지 않았습니다.
새 export (94)
| import | export | kind |
|---|---|---|
js-yaml | Node | type |
js-yaml | Event | type |
js-yaml | visit | function |
js-yaml | mapTag | variable |
js-yaml | seqTag | variable |
js-yaml | setTag | variable |
js-yaml | strTag | variable |
js-yaml | EventId | type |
js-yaml | Visitor | type |
js-yaml | jsToAst | function |
js-yaml | omapTag | variable |
js-yaml | present | function |
js-yaml | Document | interface |
js-yaml | EVENT_ID | variable |
js-yaml | NodeBase | interface |
js-yaml | PopEvent | interface |
js-yaml | mergeTag | variable |
js-yaml | pairsTag | variable |
js-yaml | AliasNode | interface |
js-yaml | EVENT_POP | variable |
js-yaml | binaryTag | variable |
js-yaml | AliasEvent | interface |
js-yaml | ScalarNode | interface |
js-yaml | VISIT_SKIP | variable |
js-yaml | intCoreTag | variable |
js-yaml | intJsonTag | variable |
js-yaml | realMapTag | variable |
js-yaml | DUMP_SCHEMA | variable |
js-yaml | EVENT_ALIAS | variable |
js-yaml | MappingNode | interface |
js-yaml | ScalarEvent | interface |
js-yaml | ScalarStyle | type |
js-yaml | VISIT_BREAK | variable |
js-yaml | boolCoreTag | variable |
js-yaml | boolJsonTag | variable |
js-yaml | eventsToAst | function |
js-yaml | nullCoreTag | variable |
js-yaml | nullJsonTag | variable |
js-yaml | parseEvents | function |
js-yaml | ChompingMode | type |
js-yaml | EVENT_SCALAR | variable |
js-yaml | MappingEvent | interface |
js-yaml | NOT_RESOLVED | variable |
js-yaml | SCALAR_STYLE | variable |
js-yaml | ScalarLayout | interface |
js-yaml | SequenceNode | interface |
js-yaml | VisitContext | interface |
js-yaml | floatCoreTag | variable |
js-yaml | floatJsonTag | variable |
js-yaml | intYaml11Tag | variable |
js-yaml | legacyMapTag | variable |
js-yaml | timestampTag | variable |
js-yaml | CHOMPING_CLIP | variable |
js-yaml | CHOMPING_KEEP | variable |
js-yaml | CHOMPING_MODE | variable |
js-yaml | DocumentEvent | interface |
js-yaml | EVENT_MAPPING | variable |
js-yaml | FromJsOptions | interface |
js-yaml | ParserOptions | interface |
js-yaml | SequenceEvent | interface |
js-yaml | TagDefinition | type |
js-yaml | YAML11_SCHEMA | variable |
js-yaml | boolYaml11Tag | variable |
js-yaml | nullYaml11Tag | variable |
js-yaml | CHOMPING_STRIP | variable |
js-yaml | EVENT_DOCUMENT | variable |
js-yaml | EVENT_SEQUENCE | variable |
js-yaml | floatYaml11Tag | variable |
js-yaml | getScalarValue | function |
js-yaml | CollectionStyle | type |
js-yaml | ScalarStyleRule | type |
js-yaml | defineScalarTag | function |
js-yaml | COLLECTION_STYLE | variable |
js-yaml | PresenterOptions | interface |
js-yaml | ScalarTagOptions | interface |
js-yaml | defineMappingTag | function |
js-yaml | DocumentDirective | type |
js-yaml | FromEventsOptions | interface |
js-yaml | MappingTagOptions | interface |
js-yaml | defineSequenceTag | function |
js-yaml | ConstructorOptions | interface |
js-yaml | SCALAR_STYLE_PLAIN | variable |
js-yaml | SequenceTagOptions | interface |
js-yaml | ScalarTagDefinition | interface |
js-yaml | constructFromEvents | function |
js-yaml | MappingTagDefinition | interface |
js-yaml | COLLECTION_STYLE_FLOW | variable |
js-yaml | SequenceTagDefinition | interface |
js-yaml | COLLECTION_STYLE_BLOCK | variable |
js-yaml | SCALAR_STYLE_FOLDED_BLOCK | variable |
js-yaml | DEFAULT_SCALAR_STYLE_RULES | variable |
js-yaml | SCALAR_STYLE_DOUBLE_QUOTED | variable |
js-yaml | SCALAR_STYLE_LITERAL_BLOCK | variable |
js-yaml | SCALAR_STYLE_SINGLE_QUOTED | variable |
자주 묻는 질문
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