Files
supabase/apps/www/package.json
supabase-vercel-tedd[bot] 1f6ee9e8b9 chore(www): replace markdown-toc with the local TOC helper to drop vulnerable toml (#53879)
## 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>
2026-11-24 16:44:02 +01:00

138 lines
4.5 KiB
JSON

{
"name": "www",
"version": "0.0.3",
"description": "Supabase main website",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "maybe-turbo next dev --webpack --port 3000",
"build": "maybe-turbo \"next build --webpack && node ./internals/generate-sitemap.mjs\"",
"export": "next export",
"start": "next start",
"lint": "eslint .",
"lint:ratchet": "tsx node_modules/eslint-config-supabase/ratchet-eslint-rules.ts --rules-file node_modules/eslint-config-supabase/ratchet-rules.json",
"clean": "rimraf .next .turbo tsconfig.tsbuildinfo",
"typecheck": "maybe-turbo \"next typegen && tsc --noEmit\"",
"content:build:core": "node scripts/generateStaticContent.mjs && node scripts/generateMdContent.mjs",
"content:build": "maybe-turbo node scripts/fetchAgentSkills.mjs",
"sync:partner-form": "node scripts/syncPartnerIntakeForm.mjs",
"test": "vitest --run",
"test:watch": "vitest watch",
"test:partner-form-sync": "vitest run --config vitest.sync.config.ts"
},
"dependencies": {
"@bsmnt/scrollytelling": "^0.3.3",
"@code-hike/mdx": "^0.9.0",
"@codesandbox/sandpack-react": "^2.20.0",
"@hcaptcha/react-hcaptcha": "^1.12.0",
"@heroicons/react": "^1.0.6",
"@mdx-js/mdx": "^3.0.1",
"@mdx-js/react": "^3.0.0",
"@next/bundle-analyzer": "16.3.6",
"@next/mdx": "16.3.6",
"@octokit/auth-app": "^7.0.0",
"@octokit/core": "^6.0.0",
"@octokit/graphql": "^8.0.0",
"@octokit/plugin-paginate-graphql": "^4.0.0",
"@octokit/rest": "^21.0.0",
"@sentry/nextjs": "catalog:",
"@supabase/ssr": "catalog:",
"@supabase/supabase-js": "catalog:",
"@typescript/native": "catalog:",
"@vercel/og": "^0.6.2",
"ai-commands": "workspace:*",
"animejs": "^4.0.2",
"class-variance-authority": "^0.7.1",
"classnames": "^2.3.1",
"cobe": "^0.6.5",
"common": "workspace:*",
"common-tags": "^1.8.2",
"config": "workspace:*",
"d3-geo": "^3.1.1",
"dayjs": "^1.11.12",
"dev-tools": "workspace:*",
"eslint-config-supabase": "workspace:*",
"globby": "^13.2.2",
"gray-matter": "^4.0.3",
"gsap": "^3.13.0",
"icons": "workspace:*",
"js-yaml": "^3.15.1",
"lucide-react": "catalog:",
"marketing": "workspace:*",
"mdast-util-from-markdown": "^2.0.2",
"mdast-util-gfm": "^2.0.2",
"mdast-util-mdx": "^2.0.1",
"mdast-util-mdx-jsx": "^2.1.4",
"mdast-util-to-markdown": "^1.5.0",
"micromark-extension-gfm": "^2.0.3",
"micromark-extension-mdxjs": "^1.0.1",
"motion": "catalog:",
"next": "catalog:",
"next-mdx-remote-client": "^1.1.7",
"next-seo": "^6.5.0",
"next-themes": "catalog:",
"nuqs": "^2.8.1",
"ogl": "^1.0.11",
"openai": "^4.75.1",
"parse-numeric-range": "^1.3.0",
"radix-ui": "catalog:",
"react": "catalog:",
"react-copy-to-clipboard": "^5.1.0",
"react-countdown": "^2.3.5",
"react-dom": "catalog:",
"react-markdown": "^10.1.0",
"react-simple-maps": "4.0.0-beta.6",
"react-syntax-highlighter": "^15.6.6",
"react-transition-group": "^4.4.1",
"react-use": "^17.4.0",
"recharts": "catalog:",
"rehype-slug": "^5.1.0",
"remark": "^15.0.1",
"remark-gfm": "^4.0.1",
"shared-data": "workspace:*",
"shiki": "catalog:",
"swiper": "^12.1.2",
"typed.js": "^2.0.16",
"typescript": "catalog:",
"ui": "workspace:*",
"ui-patterns": "workspace:*",
"unicornstudio-react": "2.0.1-1",
"use-debounce": "^7.0.1",
"vanilla-tilt": "1.7.0"
},
"devDependencies": {
"@babel/core": "*",
"@hookform/resolvers": "^3.1.1",
"@types/animejs": "^3.1.12",
"@types/classnames": "^2.3.1",
"@types/common-tags": "^1.8.4",
"@types/d3-geo": "^3.1.0",
"@types/mdast": "^4.0.4",
"@types/mdx-js__react": "^1.5.6",
"@types/node": "catalog:",
"@types/parse-numeric-range": "^0.0.1",
"@types/react": "catalog:",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "catalog:",
"@types/react-simple-maps": "^3.0.1",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/three": "^0.169.0",
"api-types": "workspace:*",
"maybe-turbo": "workspace:*",
"oxfmt": "catalog:",
"postcss": "catalog:",
"react-hook-form": "^7.71.2",
"remark-mdx": "^3.0.1",
"tailwindcss": "catalog:",
"tar-stream": "^3.1.7",
"tsconfig": "workspace:*",
"unist-util-visit": "^5.1.0",
"unist-util-visit-parents": "5.1.3",
"uuid": "^14.0.0",
"vite": "catalog:",
"vitest": "catalog:",
"zod": "catalog:"
},
"license": "MIT"
}