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.
3.0 KiB
3.0 KiB
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:
CheckisValidation,IssueisValidationError,Issue.CollectionisValidationErrorCollection(its.issuesis.values),SubjectContextisValidationContext,BuiltinCheckisBuiltinValidation,AnyCheckisAnyValidation.Validatoris a reference type over the walked subject and the document (Traversable), andTagged.Validatoris an alias of it.unwrapis a new combinator. parseTagged(_:)andparseTaggedStream(_:)keep alias references asaliasnodes in place of copies of the anchored node, and fill the newanchorandstylefields. A switch overTagged.Nodegains a case, andTagged.NodeKindgains.alias; resolved values are unchanged.Tagged.Pairstores its key as a full node (keyNode): alias keys parse, key anchors register and re-emit, and a deliberately quoted key keeps its style.keyandkeyTagremain as read-through accessors.parseandparseStreamingreject 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:)andTagged.Dumperemit a tagged tree with its anchors, aliases, tags and per-node styles.- Typed accessors on
Tagged.Scalarfor!!timestamp(Tagged.Timestamp) and!!binary. Emitting.Options:indentWidth,sortKeys,canonical,explicitDocumentStart,explicitDocumentEnd,lineWidth.- A public
PureYAML.Streamingnamespace 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_wasmSDK 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.