Skip to content

Snippet Fidelity v0.1.0

Choose a tag to compare

@WLDKK WLDKK released this 26 Aug 03:18
· 16 commits to main since this release

Snippet Fidelity's first public pre-release verifies that documentation copy buttons preserve the
text maintainers intended to ship.

Highlights

  • Compares canonical text, rendered code, copy-handler payloads, and the browser clipboard at
    Unicode code-point precision.
  • Detects terminal newlines, indentation loss, tab/space substitution, invisible characters,
    punctuation substitution, and Unicode normalization changes.
  • Emits bounded Markdown, JSON, and JUnit evidence without including complete snippets by default.
  • Exercises real copy controls in Chromium and refuses ambiguous selectors.
  • Ships a six-case adversarial fixture corpus: one correct control and five intentional regressions.

Install

npm install --save-dev https://github.com/WLDKK/snippet-fidelity/releases/download/v0.1.0/snippet-fidelity-0.1.0.tgz
npx playwright install chromium
npx snippet-fidelity audit https://docs.example.com/

Verification

  • Node.js 24.14.0 and pnpm 10.18.0
  • 5 test files and 19 tests passed, including real Chromium end-to-end coverage
  • type check, build, package dry-run, and production dependency audit passed
  • no known production dependency vulnerabilities reported at release time

Known limitations

  • Chromium is the only supported browser in 0.1.x.
  • Explicit selectors and canonical text or files are required for a dependable source-aware release
    gate.
  • Automatic discovery is intended for reconnaissance and regression triage.

Integrity

SHA-256 (snippet-fidelity-0.1.0.tgz):
3C2850B8BFA8712BB518D24017DDF24D30586631CD49AFF0CC59BC74A4DE8DBB