Skip to content

Add Renovate config: JSONata manager for the pinned Mermaid version - #2713

Merged
chalin merged 6 commits into
docsy:mainfrom
chalin:chalin-m24-renovate-setup-2026-0809
Aug 10, 2026
Merged

chalin merged 6 commits into
docsy:mainfrom
chalin:chalin-m24-renovate-setup-2026-0809

Conversation

@chalin

@chalin chalin commented Aug 9, 2026 •

Copy link
Copy Markdown
Collaborator

chalin added 5 commits August 9, 2026 18:27
- Scopes Renovate to the regex customManager alone (`enabledManagers`); npm, actions, and Hugo are a deliberate later increment
- Adopts the annotation-comment idiom so one generic regex serves every pinned script dependency
- Gates updates with a 3-day minimum release age (supply-chain cooldown)
- Annotates the Mermaid pin as the first managed dependency; KaTeX and markmap follow when their pins land
- Anchors currentValue to a pin shape (`version:` or `@`) and captures full semver incl. prerelease: adversarial review showed the unanchored first-X.Y form silently extracting decoy numbers (intermediate comments, URL path segments)
- Adds tests/renovate-regex.test.mjs, decoy fixtures from that review (red-first: 5 failures on the old pattern); chains it in _test:full:post
Round-3 adversarial review: the anchored pattern still accepted substring
decoys, and the harness had false-clean paths.

- Splits the matchString into two structural forms: a line-front YAML `version:` key, and an `@version` inside an http(s) URL; full-SemVer capture (prerelease + build) with a trailing delimiter; digits after the annotation's depName disable it (keeps the replaced span unambiguous)
- Harness now runs every matchString against every fixture, asserts pattern counts, rejects RE2-incompatible syntax, exercises managerFilePatterns, round-trips Renovate's first-occurrence auto-replace, sweeps live files for orphan annotations, and equates the extracted Mermaid version with the YAML pin (red-first: 9 failures against the prior config)
Design review against ecosystem configs (opentelemetry.io, semantic-conventions, java-instrumentation): shape-specific managers on parsed structure, not annotation grammars.

- Reads params.mermaid.version from the parsed YAML, so the comment-decoy class three review rounds defended against is structurally impossible
- Drops the annotation comment, the regex fixture suite, and its wiring; the existing Mermaid canary already asserts the exact value the query reads
- Scope is deliberately Mermaid-only: KaTeX joins as a second query when its pin lands; URL-shaped pins (markmap, DocSearch) wait on an SRI policy, since bumping a version under a stale integrity hash would break the asset
@chalin chalin changed the title Add Renovate config: custom manager for annotated CDN version pins Add Renovate config: JSONata manager for the pinned Mermaid version Aug 10, 2026
- Documents why minimumReleaseAge stays at top level beside the preset's npm-only cooldown: it must cover any datasource this config grows to manage
- Narrows the manager description to what the query implements (Mermaid only)
@chalin
chalin merged commit de85fcc into docsy:main Aug 10, 2026
16 checks passed
@chalin
chalin deleted the chalin-m24-renovate-setup-2026-0809 branch August 10, 2026 12:21
@chalin chalin added this to the 0.17.0 milestone Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant