js-yaml को 4.x से 5.x पर अपग्रेड करना
js-yaml 4.3.2 और 5.4.2 के सार्वजनिक API की तुलना, उनके TypeScript टाइप से अपने-आप निकाली गई। बदला हुआ सिग्नेचर संभावित असंगत बदलाव है, निश्चितता नहीं।
सारांश
| हटाए गए इम्पोर्ट पाथ | 0 |
|---|---|
| हटाए गए एक्सपोर्ट | 7 |
| बदले गए सिग्नेचर | 3 |
| क्लास या इंटरफ़ेस के हटाए गए सदस्य | 9 |
| क्लास या इंटरफ़ेस के बदले गए सदस्य | 3 |
| नए डिप्रिकेटेड | 2 |
| आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ) | 0 |
| नए एक्सपोर्ट | 94 |
हटाए गए एक्सपोर्ट
| 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 निर्भरताएँ)
कुछ नहीं मिला।
नए एक्सपोर्ट (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 को 7 हटाए गए एक्सपोर्ट, 3 बदले गए सिग्नेचर और 12 हटाए या बदले गए क्लास/इंटरफ़ेस सदस्य मिले।
js-yaml 5 में क्या डिप्रिकेट हुआ?
js-yaml 5.4.2 में 2 एक्सपोर्ट या सदस्य नए रूप से डिप्रिकेटेड चिह्नित हैं।
एजेंटों के लिए
GET https://vigia.coredls.cloud/v1/packages/npm/js-yaml/upgrade?from=4.3.2&to=5.4.2