Repository navigation
[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/tailwindand deletedtailwind.config.mjs. The daisyUI theme list is now generated fromfrosti.config.yamlbysrc/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(replacingrehype-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.yamlno longer requires editing any CSS. - Added a theme fallback: the light theme is marked as daisyUI's
--default, so an unknowndata-themestill renders correctly.
Refactored
- Inlined the MDX alert components (Info / Success / Warning / Error) with static class names, removing the
AlertBasetemplate 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
encodeURIComponentingetStaticPathsfor tag routes (#103). - Fixed page 1 of pagination linking to
.../1instead 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-checkscript. - Upgraded dependencies including
astro,sharp, andjs-yamland refreshed pnpm overrides to fix thepnpm auditfailure in CI (braceshas 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
encodeURIComponentingetStaticPathsto prevent prerender mismatch by @TanKimzeg in #103
Full Changelog: v4.0.0...v4.1.0