fix(metadata): use short deprecation anchors#933
Conversation
Assisted-by: OpenAI Codex
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@vsolano9 is attempting to deploy a commit to the OpenJS Foundation Team on Vercel. A member of the Team first needs to authorize it. |
PR SummaryMedium Risk Overview
Unit tests cover metadata slugs and legacy HTML anchor output. Reviewed by Cursor Bugbot for commit 376720a. Bugbot is set up for automated code reviews on this repo. Configure here. |
Add regression coverage for matching primary and legacy anchors. Assisted-by: OpenAI Codex Signed-off-by: Victor Solano <victor.solanonunez@gmail.com>
Share the deprecation heading matcher and classify the published fragment change as minor. Assisted-by: OpenAI Codex Signed-off-by: Victor Solano <victor.solanonunez@gmail.com>
Signed-off-by: Victor Solano <victor.solanonunez@gmail.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f6e9eb6. Configure here.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #933 +/- ##
==========================================
+ Coverage 84.89% 86.19% +1.29%
==========================================
Files 193 195 +2
Lines 17512 17657 +145
Branches 1551 1605 +54
==========================================
+ Hits 14867 15219 +352
+ Misses 2639 2432 -207
Partials 6 6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|

Description
Use short
DEP####codes as metadata slugs for headings on the deprecations page. This keeps duplicate handling in the existing stateful slugger, preserves ordinary slugging outsidedeprecations, and avoids emitting a duplicate legacy HTML alias when the primary slug is already short.This changes web and Orama links from long heading-derived fragments to stable links such as
#DEP0001. Legacy JSON andllms.txtoutputs are byte-identical to the base for the tested deprecations source.Assisted-by: OpenAI Codex
Validation
npm ci(0 vulnerabilities)node --run test:ci: 512 passed, 0 failednode --run lint: 0 errors, 2 pre-existing warnings inuseOrama.mjsnode --run format:checkchangeset status --since=mainnode --run test:e2e: 4 passede6e6f677b34ba0fc87e897512feee11e4d2c0ca4withlegacy-html,legacy-json,web,orama-db, andllms-txt; short anchors were verified in legacy HTML, web, and Orama, with legacy JSON andllms.txtunchanged from baseRelated Issues
Fixes #790
Check List
node --run testand all tests passed.node --run format:checkandnode --run lint.