Vigia

Aggiornare js-yaml da 4.x a 5.x

Confronto dell’API pubblica di js-yaml 4.3.2 e 5.4.2, calcolato automaticamente dai tipi TypeScript. Una firma modificata è una possibile modifica incompatibile, non una certezza.

Riepilogo

Percorsi di import rimossi0
Export rimossi7
Firme modificate3
Membri di classi o interfacce rimossi9
Membri di classi o interfacce modificati3
Nuove deprecazioni2
Requisiti cambiati (engines, dipendenze peer)0
Nuovi export94

Export rimossi

importexportkindPrima
js-yamlMarkinterfaceinterface
js-yamlTypeclassclass
js-yamlStateinterfaceinterface
js-yamlEventTypetype"open" | "close"
js-yamlDEFAULT_SCHEMAvariableSchema
js-yamlSchemaDefinitioninterfaceinterface
js-yamlTypeConstructorOptionsinterfaceinterface

Firme modificate

exportPrimaDopo
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

Membri di classi o interfacce rimossi

memberimportPrima
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

Membri di classi o interfacce modificati

memberPrimaDopo
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

Nuove deprecazioni

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

Requisiti cambiati (engines, dipendenze peer)

Nessuna rilevata.

Nuovi 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

Domande frequenti

Quali sono le modifiche incompatibili aggiornando js-yaml da 4 a 5?

Tra js-yaml 4.3.2 e 5.4.2, Vigia ha trovato 7 export rimossi, 3 firme modificate e 12 membri di classi o interfacce rimossi o modificati.

Cosa è stato deprecato in js-yaml 5?

2 export o membri risultano ora deprecati in js-yaml 5.4.2.

Per gli agenti

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