Skip to content

Bump dependencies, move to TypeScript 6 and clean up the site - #1433

Merged
rasmusbe merged 3 commits into
mainfrom
bump-dependencies
Oct 5, 2026
Merged

rasmusbe merged 3 commits into
mainfrom
bump-dependencies

Conversation

@rasmusbe

@rasmusbe rasmusbe commented Oct 5, 2026

Copy link
Copy Markdown
Member

Brings the site up to date after a quiet period.

Dependencies

  • tailwindcss and @tailwindcss/postcss to 4.3.3, @types/node to 26.
  • TypeScript to 6.0.3. tsconfig now uses target: es2022 and moduleResolution: bundler, since TS 6 rejects the old node resolution.
  • npm audit fix applied.
  • ESLint stays on 9. eslint-config-next 16.3.8 does not work with ESLint 10 (babel parser lacks scopeManager.addGlobals, eslint-plugin-react calls the removed context.getFilename): [ESLint v10]: TypeError: contextOrFilename.getFilename is not a function when running ESLint v10 vercel/next.js#89764.
  • TypeScript 7 is blocked by typescript-eslint.
  • 5 high npm audit findings remain, all in the braces chain under eslint-config-next. They only affect lint, and the only offered fix downgrades eslint-config-next to 14.

Config

  • Removed .eslintrc.json (superseded by eslint.config.mjs) and the Tailwind v3 tailwind.config.js.
  • next.config and postcss.config are now .mjs.

Fixes

  • Paginate the org repo listing. It was cut off at 30 repos.
  • Accept any branch name when parsing .meta.yaml (the regex rejected - and /).
  • Stop sorting the imported users array in place.
  • Replace Tailwind classes that changed in v4 (shadow-outline, outline-none, shadow, rounded, border-gray).
  • Block no longer renders className="mt-5 undefined".
  • Generate shows "not valid" for dates that roll over, such as February 31.
  • Try reads the version from personnummer/package.json instead of bundling our own.

Document head and footer

  • Removed the highlight.js stylesheet, analytics prefetch, IE meta tag and the link to a missing sitemap.
  • og:image and twitter:image point at android-chrome-512x512.png.
  • Source Sans 3 is self-hosted through next/font/google.
  • Removed the Twitter link.

npm run lint and npm run build pass. The build needs GITHUB_TOKEN locally, otherwise unauthenticated GitHub calls hit the rate limit.

Update tailwindcss and @types/node, and TypeScript to 6.0.3. Set
tsconfig target to es2022 and moduleResolution to bundler, as TS 6
rejects the old node resolution. ESLint stays on 9 since
eslint-config-next does not work with ESLint 10 yet.
Drop .eslintrc.json (superseded by eslint.config.mjs) and the Tailwind v3
tailwind.config.js, which v4 does not use. Rename next.config.js and
postcss.config.js to .mjs. Run npm audit fix.
Paginate the org repo listing so it is not cut off at 30 repos, accept
any branch name when parsing .meta.yaml, and stop sorting the imported
users array in place.

Replace Tailwind classes that changed in v4 (shadow-outline, outline-none,
shadow, rounded, border-gray), default Block className, reject rolled over
dates in Generate, and read the personnummer version from its own
package.json instead of bundling ours.

Remove unused head tags (highlight.js css, analytics prefetch, IE meta,
missing sitemap), point og/twitter image at a real image, self-host
Source Sans 3 with next/font and drop the Twitter link.
@rasmusbe
rasmusbe merged commit 15e7cca into main Oct 5, 2026
3 checks passed
@rasmusbe
rasmusbe deleted the bump-dependencies branch October 5, 2026 07:43
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