Skip to content

Upgrading yaml 1 to 2

Breaking1.1.1 → 2.2.1Breaking2New2Changed2Fixed6Other3

Fetching 21 releases from GitHub…12 / 21
BreakingUpgrade verdict

2 breaking changes.

  • Remove use of deprecated features.
  • Remove the dependency on path, since we don't actually import it.
2 items need code or config changes

Dart SDK requirement changed in 2.2.1: >=1.5.0-dev.0.0 <2.0.0 → >=2.4.0 <3.0.0.

Adds charcode ^1.1.0, source_span >=1.0.0 <2.0.0.

Drops path, source_maps.

Moves collection >=0.9.2 <0.10.0 → >=1.1.0 <2.0.0, string_scanner >=0.0.2 <0.1.0 → >=0.1.4 <2.0.0. Your build may pick other versions.

Breaking2
Remove use of deprecated features.
Remove the dependency on path, since we don't actually import it.
path

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: field YamlList.span: final Span
  • removed: field YamlMap.span: final Span
  • removed: field YamlScalar.span: final Span
  • changed: class YamlException extends SpanFormatException → class YamlException extends SourceSpanFormatException
  • changed: ctor YamlException(String message, Span span) → ctor YamlException(String message, SourceSpan span)
  • changed: ctor YamlList({String sourceName}) → ctor YamlList({sourceUrl})
  • changed: ctor YamlList.internal(List<YamlNode> nodes, this.span) → ctor YamlList.internal(List<YamlNode> nodes, SourceSpan span, this.style)
  • changed: ctor YamlList.wrap(List dartList, {String sourceName}) → ctor YamlList.wrap(List dartList, {sourceUrl})
  • changed: ctor YamlMap({String sourceName}) → ctor YamlMap({sourceUrl})
  • changed: ctor YamlMap.internal(Map<dynamic, YamlNode> nodes, this.span) → ctor YamlMap.internal(Map<dynamic, YamlNode> nodes, SourceSpan span, this.style)
  • changed: ctor YamlMap.wrap(Map dartMap, {String sourceName}) → ctor YamlMap.wrap(Map dartMap, {sourceUrl})
  • changed: ctor YamlScalar.internal(this.value, this.span) → ctor YamlScalar.internal(this.value, ScalarEvent scalar)
  • changed: ctor YamlScalar.wrap(this.value, {String sourceName}) → ctor YamlScalar.wrap(this.value, {sourceUrl})
  • changed: field YamlScalar.value: final → field YamlScalar.value: final dynamic
  • changed: function loadYaml(String yaml, {String sourceName}) → function loadYaml(String yaml, {sourceUrl}): dynamic
  • changed: function loadYamlNode(String yaml, {String sourceName}): YamlNode → function loadYamlNode(String yaml, {sourceUrl}): YamlNode
  • changed: function loadYamlStream(String yaml, {String sourceName}): YamlList → function loadYamlStream(String yaml, {sourceUrl}): YamlList
  • changed: get YamlNode.span: Span → get YamlNode.span: SourceSpan
  • changed: get YamlNode.value → get YamlNode.value: dynamic
  • changed: method YamlList.operator [](int index) → method YamlList.operator [](int index): dynamic
  • changed: method YamlMap.operator [](key) → method YamlMap.operator [](key): dynamic
  • added: class CollectionStyle
  • added: class ScalarStyle
  • added: class TagDirective
  • added: class VersionDirective
  • added: class YamlDocument
  • added: ctor TagDirective(this.handle, this.prefix)
  • added: ctor VersionDirective(this.major, this.minor)
  • added: ctor YamlDocument.internal(this.contents, this.span, this.versionDirective, List<TagDirective> tagDirectives, {this.startImplicit = …, this.endImplicit = …})
  • added: ctor YamlScalar.internalWithSpan(this.value, SourceSpan span)
  • added: field CollectionStyle.name: final String
  • added: field ScalarStyle.name: final String
  • added: field TagDirective.handle: final String
  • added: field TagDirective.prefix: final String
  • added: field VersionDirective.major: final int
  • added: field VersionDirective.minor: final int
  • added: field YamlDocument.contents: final YamlNode
  • added: field YamlDocument.endImplicit: final bool
  • added: field YamlDocument.span: final SourceSpan
  • added: field YamlDocument.startImplicit: final bool
  • added: field YamlDocument.tagDirectives: final List<TagDirective>
  • added: field YamlDocument.versionDirective: final VersionDirective
  • added: field YamlList.style: final CollectionStyle
  • added: field YamlMap.style: final CollectionStyle
  • added: field YamlScalar.style: final ScalarStyle
  • added: function loadYamlDocument(String yaml, {sourceUrl}): YamlDocument
  • added: function loadYamlDocuments(String yaml, {sourceUrl}): List<YamlDocument>
  • added: get ScalarStyle.isQuoted: bool
  • added: method CollectionStyle.toString(): String
  • added: method ScalarStyle.toString(): String
  • added: method TagDirective.toString(): String
  • added: method VersionDirective.toString(): String
  • added: method YamlDocument.toString(): String
  • added: static field CollectionStyle.ANY: const
  • added: static field CollectionStyle.BLOCK: const
  • added: static field CollectionStyle.FLOW: const
  • added: static field ScalarStyle.ANY: const
  • added: static field ScalarStyle.DOUBLE_QUOTED: const
  • added: static field ScalarStyle.FOLDED: const
  • added: static field ScalarStyle.LITERAL: const
  • added: static field ScalarStyle.PLAIN: const
  • added: static field ScalarStyle.SINGLE_QUOTED: const
  • added: typedef YamlWarningCallback = Function(String message, [SourceSpan span])
  • added: variable yamlWarningCallback: YamlWarningCallback