Skip to content

0.2.0

Latest

Choose a tag to compare

@mackoj mackoj released this 28 Nov 13:29
1101c99

ArazzoKitYAML now reads and writes YAML with swift-yaml 0.1.0, a pure-Swift YAML 1.2 library, instead of Yams and its C core (libyaml). Arazzo.Document(yaml:), yamlString(sortKeys:) and ArazzoYAML.decode/encode keep their signatures, and the YAML trait still makes the dependency optional.

Breaking:

  • Swift 6.2 or later, and OS 26 on Apple platforms (macOS, iOS, tvOS, watchOS, visionOS 26), because swift-yaml uses Span and InlineArray. Linux has no floor. Package@swift-6.0.swift is gone. 0.1.x stays on Yams for older toolchains and OSes.
  • YAML errors are swift-yaml's YAMLError (or DecodingError), not Yams' YamlError.
  • Plain scalars follow the YAML 1.2 core schema, so yes, no, on and off are strings, not booleans.

Kept from Yams: a flow collection whose lines sit at their parent's indentation (a closing ] under its key) still decodes, through swift-yaml's lenientFlowIndentation.

What's Changed

  • ArazzoKitYAML on swift-yaml instead of Yams (0.2.0) by @mackoj in #35

Full Changelog: 0.1.3...0.2.0