<3.0.0, and adjust other dependencies.
path, since we don't actually import it.
SourceSpans for scalar values surrounded by whitespace.
Rewrite the parser for a 10x speed improvement.
Support anchors and aliases (
Support explicit tags (e.g.
!!str). Note that user-defined tags are still not fully supported.
%TAG directives are now parsed, although again user-defined tags are not fully supported.
YamlMap now expose the styles in which they were written (for example plain vs folded, block vs flow).
yamlWarningCallback field is exposed. This field can be used to customize how YAML warnings are displayed.
Fix an import in a test.
Widen the version constraint on the
Spanclass in documentation and tests.
Span class to
For consistency with
sourceName parameters have been renamed to
sourceUrl. They now accept Urls as well as Strings.
Fix broken type arguments that caused breakage on dart2js.
Fix an analyzer warning in
Add new publicly-accessible constructors for
YamlNode subclasses. These constructors make it possible to use the same API to access non-YAML data as YAML data.
YamlException inherit from source_map's
SpanFormatException. This improves the error formatting and allows callers access to source range information.
Backwards incompatibility: The data structures returned by
loadYamlStream are now immutable.
Backwards incompatibility: The interface of the
YamlMap class has changed substantially in numerous ways. External users may no longer construct their own instances.
Maps and lists returned by
loadYamlStream now contain information about their source locations.
loadYamlNode function returns the source location of top-level scalars as well.
YamlMapclass is deprecated. In a future version, maps returned by
loadYamlStreamwill be Dart
HashMaps with a custom equality operation.