Some checks failed
rules-freshness / rules (push) Failing after 16s
Section the changelog, add the release notes with the WASM and Windows disclosures, update the current-release stamps, and point the release commands at git.aleahim.com.
44 lines
3.0 KiB
Markdown
44 lines
3.0 KiB
Markdown
# PureYAML 0.3.0
|
|
|
|
A release of the tagged tree, the emitter and the streaming scanner. It changes public names, so read the first section before updating.
|
|
|
|
## Changed (names and behavior callers can meet)
|
|
|
|
- The validation framework's public types are renamed to the OpenAPIKit validation idiom's names: `Check` is `Validation`, `Issue` is `ValidationError`,
|
|
`Issue.Collection` is `ValidationErrorCollection` (its `.issues` is `.values`), `SubjectContext` is `ValidationContext`, `BuiltinCheck` is
|
|
`BuiltinValidation`, `AnyCheck` is `AnyValidation`. `Validator` is a reference type over the walked subject and the document (`Traversable`), and
|
|
`Tagged.Validator` is an alias of it. `unwrap` is a new combinator.
|
|
- `parseTagged(_:)` and `parseTaggedStream(_:)` keep alias references as `alias` nodes in place of copies of the anchored node, and fill the new `anchor` and
|
|
`style` fields. A switch over `Tagged.Node` gains a case, and `Tagged.NodeKind` gains `.alias`; resolved values are unchanged.
|
|
- `Tagged.Pair` stores its key as a full node (`keyNode`): alias keys parse, key anchors register and re-emit, and a deliberately quoted key keeps its style.
|
|
`key` and `keyTag` remain as read-through accessors.
|
|
- `parse` and `parseStreaming` reject an anchor-expansion ("billion laughs") document, in a few alias levels and without building the expanded tree; wide
|
|
but non-exponential alias reuse still parses.
|
|
- Raw control characters anywhere in the input are rejected, as libyaml's reader rejects them.
|
|
|
|
## Added
|
|
|
|
- `PureYAML.dump(_:options:)` and `Tagged.Dumper` emit a tagged tree with its anchors, aliases, tags and per-node styles.
|
|
- Typed accessors on `Tagged.Scalar` for `!!timestamp` (`Tagged.Timestamp`) and `!!binary`.
|
|
- `Emitting.Options`: `indentWidth`, `sortKeys`, `canonical`, `explicitDocumentStart`, `explicitDocumentEnd`, `lineWidth`.
|
|
- A public `PureYAML.Streaming` namespace and a resumable one-token-at-a-time scanner (`Scanner.scanStep()`), with persisted suspension in the middle of a plain
|
|
scalar.
|
|
|
|
## Fixed
|
|
|
|
Plain scalars that read back as another type, keys that are aliases of non-scalar anchors, a doubled `---` in stream dumps, flow-mapping key safety, scalars
|
|
ending in `:`, duplicate-key detection on resolved values, the nesting limit of the emitter, and a leap-second `60` in `Tagged.Timestamp` (the entries
|
|
are in `CHANGELOG.md`).
|
|
|
|
## Verification
|
|
|
|
- macOS: the full gate (style, namespacing, validation coverage, forbidden patterns, changelog, swiftformat, swiftlint strict, build and test, debug and
|
|
release): 681 tests in 150 suites.
|
|
- Linux: build and test through the Linux relay, Swift 6.3.2 on aarch64: 681 tests in 150 suites.
|
|
|
|
## Known deferred issues
|
|
|
|
- WASM was NOT built for this release: the `swift-6.3.2-RELEASE_wasm` SDK is not installed on the machine the gate ran on.
|
|
- Windows build and test were NOT run, as for 0.2.0: there is no runner for it yet. The tree is pure Swift.
|
|
- The hosted CI run of this commit was not watched: this server's API does not list runs, so the authoritative platform gates are the local ones above.
|