mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Problem `markdown-toc@1.2.0` (its latest release) depends on `gray-matter@2.1.1`, which pins `toml@^2.3.2`. That leaves `toml@2.3.6` in the lockfile, and `pnpm audit` flags it with several high-severity advisories (fixed in `>=5.0.1`). Neither parent has a release that moves off toml 2.x, so a lockfile-only bump or a temporary override can't remove it. ## Solution The customer story (`/customers/[slug]`) and alternatives (`/alternatives/[slug]`) pages built a `toc` prop at build time, but neither page nor `LayoutComparison` ever read it. This PR removes that prop, the `markdown-toc` dependency, and `apps/www/lib/toc.ts`, which had no other callers. With `markdown-toc` gone from `apps/www/package.json`, `gray-matter@2.1.1` and `toml` leave the dependency tree. www keeps using `gray-matter@4.0.3` directly. The lockfile change only removes entries. ## Review instructions 1. Run `pnpm why toml --recursive` and check it finds no `toml`. 2. Run `pnpm tsx scripts/fix-audit-vulnerability.ts --json` and check `toml` is not in `vulnerabilities`. 3. Open a customer story on the preview, for example `/customers/asap-work`, and an alternatives page, for example `/alternatives/supabase-vs-auth0`. Each page builds and renders as it does on production. Checks run: `pnpm install --frozen-lockfile`, `pnpm run typecheck` in `apps/www` (next typegen + tsc), eslint on both changed pages (no errors), and `oxfmt --check` on the changed files. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) [FE-5192](https://linear.app/supabase/issue/FE-5192/bump-a-single-vulnerable-dependency) ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [FE-5192](https://linear.app/supabase/issue/FE-5192/bump-a-single-vulnerable-dependency). Tedd doesn't read comments on this PR. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>