Skip to content

4.1.0

Latest

Choose a tag to compare

@EveSunMaple EveSunMaple released this 09 Oct 10:41
· 2 commits to main since this release
a48ecaa

[4.1.0] - 2026-10-09

Breaking Changes

  • 迁移到 Tailwind CSS v4(@tailwindcss/postcss)与 daisyUI 5,移除已废弃的 @astrojs/tailwind 并删除 tailwind.config.mjs;daisyUI 主题列表改由 src/integration/updateConfig.ts 根据 frosti.config.yaml 自动生成(src/styles/daisyui-themes.css,已加入 .gitignore),自定义过 Tailwind / daisyUI 配置的部署需要同步迁移

Features

  • 外链样式升级:使用 astro-smart-links 替换 rehype-external-links,外部链接显示图标,失效的内部链接以波浪下划线高亮
  • daisyUI 主题列表自动生成,切换 frosti.config.yaml 中的主题名后无需再修改任何 CSS
  • 主题兜底:浅色主题作为 daisyUI --default,未知的 data-theme 也能正常渲染

Refactored

  • MDX 提示组件(Info / Success / Warning / Error)改为内联实现,类名全部静态化,移除 AlertBase 模板与 Tailwind safelist
  • 移除未使用的依赖(prettier、shiki、@iconify/json、@iconify-json/logos、@iconify-json/mdi、@iconify/tailwind 等)

Fix

  • 修复标签路由 getStaticPaths 中多余的 encodeURIComponent 导致的预渲染路径不匹配 #103
  • 修复分页第 1 页链接指向 .../1 而非基础路径的问题
  • 修复视图过渡(View Transitions)后主题未恢复为系统偏好的问题
  • 修复切换主题名后旧 localStorage 主题残留导致的页面失样式:无效的已存主题会被忽略并清除
  • 修复 CI 中恒失败的 Biome 格式检查步骤;补充显式 astro-check 脚本
  • 升级 astro、sharp、js-yaml 等依赖并更新 pnpm overrides,修复 CI 中 pnpm audit 的安全审计失败(braces 暂无上游补丁,已加入审计忽略名单)

Chore

  • 统一换行符为 LF 并添加 .gitattributes
  • 更新安全策略版本表、贡献指南与已过时的文档链接

EN

[4.1.0] - 2026-10-09

Breaking Changes

  • Migrated to Tailwind CSS v4 (@tailwindcss/postcss) and daisyUI 5: removed the deprecated @astrojs/tailwind and deleted tailwind.config.mjs. The daisyUI theme list is now generated from frosti.config.yaml by src/integration/updateConfig.ts (src/styles/daisyui-themes.css, gitignored); deployments with customized Tailwind/daisyUI configuration need to migrate accordingly.

Features

  • Upgraded external link handling with astro-smart-links (replacing rehype-external-links): external links now display an icon, and broken internal links are highlighted with a wavy underline.
  • The daisyUI theme list is generated automatically, so changing the theme names in frosti.config.yaml no longer requires editing any CSS.
  • Added a theme fallback: the light theme is marked as daisyUI's --default, so an unknown data-theme still renders correctly.

Refactored

  • Inlined the MDX alert components (Info / Success / Warning / Error) with static class names, removing the AlertBase template and the Tailwind safelist.
  • Removed unused dependencies (prettier, shiki, @iconify/json, @iconify-json/logos, @iconify-json/mdi, @iconify/tailwind, etc.).

Fix

  • Fixed a prerender path mismatch caused by the redundant encodeURIComponent in getStaticPaths for tag routes (#103).
  • Fixed page 1 of pagination linking to .../1 instead of the base URL.
  • Fixed the theme not being restored to the system preference after view transitions.
  • Fixed unstyled pages caused by a stale localStorage theme after changing theme names; invalid stored themes are now ignored and cleared.
  • Fixed the always-failing Biome formatting check in CI and added an explicit astro-check script.
  • Upgraded dependencies including astro, sharp, and js-yaml and refreshed pnpm overrides to fix the pnpm audit failure in CI (braces has no patched release upstream and is ignored in the audit config).

Chore

  • Normalized line endings to LF and added .gitattributes.
  • Updated the security policy version table, contribution guide, and outdated documentation links.

What's Changed

  • fix: remove encodeURIComponent in getStaticPaths to prevent prerender mismatch by @TanKimzeg in #103

Full Changelog: v4.0.0...v4.1.0