🚀 [Feature]: YAML streams can now be normalized safely#42
Closed
Marius Storhaug (MariusStorhaug) wants to merge 6 commits into
Closed
🚀 [Feature]: YAML streams can now be normalized safely#42Marius Storhaug (MariusStorhaug) wants to merge 6 commits into
Marius Storhaug (MariusStorhaug) wants to merge 6 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
11 tasks
Apply tag limits to decoded effective identities while bounding worst-case percent-encoded presentation and cumulative storage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Resolve every formatter scalar tag canonically while retaining explicit and non-specific tag state and ignoring presentation style. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Member
Author
|
Superseded by #47 (release/v1.0.0 consolidation PR). Closing this stacked layer as part of release cleanup. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
YAML streams can now be normalized into deterministic YAML without losing documents, tags, anchors, aliases, recursive graphs, complex keys, scalar content, or mapping order.
New: Deterministic YAML stream formatting
Format-Yamlaccepts complete YAML text or line-oriented pipeline input, removes comments and presentation differences, emits every document with an explicit---marker, and produces LF-only output without a final newline.-Indentselects 2 through 9 spaces, while the parser safety controls matchConvertFrom-Yaml.Formatting is byte-idempotent at the same options, including multi-document streams, effective tags, aliases, recursive YAML graphs, and complex keys.
Review fixes
MaxTagLengthnow budgets the decoded effective tag identity rather than presentation wrappers or percent-encoded token length. Local, verbatim, and expanded-handle tags remain idempotent at exact custom and default boundaries, while worst-case presentation scanning and cumulative tag storage stay bounded.Technical Details
30144414180passed on exact headb9c1ab1, completing 45 jobs successfully with 5 expected skips. It covered source and built-module Pester, PSScriptAnalyzer, formatter and conformance suites on Windows, Linux, and macOS under PowerShell 7.6.3, plus module, documentation, and site builds. Hosted tests totaled 1,441 passed, 0 failed, and 35 skipped out of 1,476.Related issues