Skip to content

chore(deps): update dev dependencies, Tailwind v4, fix npm audit - #119

Merged
romanoroth merged 4 commits into
mainfrom
chore/npm-dev-deps-audit
Oct 26, 2026
Merged

romanoroth merged 4 commits into
mainfrom
chore/npm-dev-deps-audit

Conversation

@romanoroth

Copy link
Copy Markdown
Collaborator

Updates the npm dev dependencies and fixes all npm audit findings. Please don't merge without Romano's OK.

Changes

  • Tailwind CSS 3.4 → 4.3, migrated with the official @tailwindcss/upgrade tool:
    • assets/css/tailwind.css: @import 'tailwindcss' + @config (keeps tailwind.config.js), plus a compat rule that keeps the v3 default border color
    • build:css/watch:css now use @tailwindcss/cli. postcss.config.js uses @tailwindcss/postcss, and autoprefixer was removed because v4 handles prefixing itself
    • Renamed utilities in the templates: flex-shrink-0→shrink-0, shadow-sm→shadow-xs, shadow→shadow-sm, bg-gradient-to-t→bg-linear-to-t
  • sharp 0.34 → 0.35, canvas 3.2.3, html-validate 8 → 11, postcss 8.5.31
  • xlsx: the npm registry version (0.18.5) has unfixed CVEs, so it now comes from the SheetJS CDN (xlsx-0.20.3.tgz). It is used by scripts/update-program.js, and the API is unchanged.
  • @lhci/cli is removed from devDependencies. The whole lighthouse/puppeteer tree was behind all the remaining findings, and even 0.15.1 (the latest) is still vulnerable. npm run lighthouse now runs npx -y @lhci/cli@0.15.1 autorun on demand. It isn't used in CI.

npm audit

  • Before: 20 (10 high, 5 moderate, 5 low)
  • After: 0 vulnerabilities

Tests (local, Node 20 / npm 11, Hugo extended 0.168.0)

  • npm ci, npm run prebuild (CSS + banner) and hugo --minify all OK, with no warnings: 89 pages / 83 HTML files, the same as on main
  • Tailwind CSS is 18.6 KB → 27.6 KB. That is expected, because v4 emits theme CSS variables. All classes used on main are present, apart from the renamed ones.

Breaking changes

  • Node ≥ 20.9 is required (sharp 0.35), and html-validate 11 needs Node 22+. CI already uses Node 22.
  • Tailwind v4 differences: hover: only applies on devices that support hover, and buttons get cursor: default. Please check visually in the preview.

- Tailwind CSS v3 -> v4 (@tailwindcss/cli, @tailwindcss/postcss; official upgrade tool, renamed utilities, v3 border-color compat)
- sharp 0.35, canvas 3.2.3, html-validate 11, postcss 8.5.31
- xlsx from SheetJS CDN (0.20.3), npm registry version has unfixed CVEs
- @lhci/cli removed from devDependencies, run on demand via npx (whole lighthouse/puppeteer tree was the remaining audit findings)
@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview-pr-119.devopsdays-ch.pages.dev


Updated for commit 673d8fb

- Heading color and article spacing rules in custom.css moved to @layer base
  so utilities (text-white, mb-*) win again, as with v3 specificity
- Restore v3 font stack (ui-sans-serif, system-ui) via @theme
- Constrain iframes in prose (location map overflowed to 616px at 390px)
- Wrap long URLs in prose links (workshop page overflow)
@romanoroth
romanoroth merged commit 56b597e into main Oct 26, 2026
1 check passed
@romanoroth
romanoroth deleted the chore/npm-dev-deps-audit branch October 26, 2026 07:09
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