Repository navigation
Add Renovate config: JSONata manager for the pinned Mermaid version - #2713
Merged
Merged
Conversation
- 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
- 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)
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.
@latest#2703/Mermaid: pin default version, droplatest#2704)params.mermaid.versionfrom the parsedtheme/hugo.yaml; no other manager is enabledlatest#2705) joins as a second query when its pin lands; URL-shaped pins (markmap Pin themarkmap-autoloaderversion instead of loading it unversioned #2706, DocSearch) need an SRI policy first, since a version bump under a staleintegrityhash breaks the assetrenovate-config-validatorclean; extraction and write-back exercised against the real file under Renovate's own manager code (extractsmermaid/11.16.1; a simulated bump rewrites only the pin line; an absent key yields nothing)mermaidat the same version as thetheme/hugo.yamlpin