[4.0.0] - 2026-08-09
Breaking Changes
- 升级到 Astro 7,内容集合配置已迁移到
src/content.config.ts并使用新的 glob loader;自定义过内容集合的部署需要同步调整
Features
- 同步升级 MDX、RSS、Sitemap、Expressive Code、Compress 等集成
- 为文章页添加
BlogPostingJSON-LD,为其他页面添加WebSiteJSON-LD - 补全 Open Graph / Twitter Card 元信息,并为非文章页提供默认分享图
- 新增“跳到主要内容”的无障碍快捷链接
- CI 新增生产构建与依赖安全审计
Refactored
- 使用 Astro 渲染后的 HTML 生成 RSS,不再出现 MDX 源码或未渲染的数学公式
- 移除 GitHubStats 的随机假提交热力图,并清理无效 props
- 优化图片:
public/大图全部转 WebP 并压缩,构建体积从约 10MB 降至约 4.5MB - DaisyUI 仅打包当前使用的两个主题,按需加载 KaTeX 与 dayjs 语言包
- 统一 sharp 版本,消除构建期重复 libvips 警告
- 收紧 TypeScript 类型,移除大量
any
Fix
- 修复
pnpm run search:clean因缺少rimraf而失败的问题 - 修复 RSS 非法的
xmlns:version命名空间与发布日期偏移 - 修复博客卡片标题非法 ID、
BaseCard重复 ID、目录锚点在禁用 JS 时失效的问题 - 修复外部链接缺少
rel="noopener noreferrer"的问题 - 修复系统主题偏好首次访问后被固定、不再跟随系统变化的问题
- 修复
Makrdown标签拼写错误 - 修复 Vercel 构建时 pnpm 版本与 lockfile 不匹配、
@parcel/watcher构建脚本未授权的问题
Chore
- 移除大量未使用的依赖与死代码
- 更新 VS Code 配置、贡献指南与安全策略文档
EN
[4.0.0] - 2026-08-09
Breaking Changes
- Upgraded to Astro 7. Content collection configurations have been migrated to
src/content.config.tsusing the new glob loader; deployments with customized content collections need to be updated accordingly.
Features
- Synchronously upgraded integrations including MDX, RSS, Sitemap, Expressive Code, Compress, etc.
- Added
BlogPostingJSON-LD for article pages andWebSiteJSON-LD for other pages. - Completed Open Graph / Twitter Card metadata and provided a default share image for non-article pages.
- Added a "Skip to main content" accessibility shortcut link.
- Added production build and dependency security audit to CI.
Refactored
- Generated RSS feed using Astro's rendered HTML; MDX source code and unrendered math formulas no longer appear.
- Removed random mock commit heatmaps from GitHubStats and cleaned up unused props.
- Optimized images: converted all large images in
public/to WebP and compressed them, reducing the build size from ~10MB to ~4.5MB. - Configured DaisyUI to package only the two active themes, loading KaTeX and dayjs locale packages on demand.
- Unified
sharpversions to eliminate duplicatelibvipswarnings during build. - Tightened TypeScript types and removed numerous
anyusage.
Fix
- Fixed an issue where
pnpm run search:cleanfailed due to missingrimraf. - Fixed illegal
xmlns:versionnamespace and published date offset in RSS feed. - Fixed invalid IDs in blog card titles, duplicate IDs in
BaseCard, and table-of-contents anchors failing when JS is disabled. - Fixed missing
rel="noopener noreferrer"on external links. - Fixed system theme preference being locked after the first visit instead of following system changes.
- Fixed a typo in the
Makrdowntag. - Fixed pnpm version mismatch with lockfile during Vercel builds and unauthorized
@parcel/watcherbuild script issues.
Chore
- Removed a large number of unused dependencies and dead code.
- Updated VS Code configurations, contribution guidelines, and security policy documentation.
What's Changed
- fix: hide mobile TOC button when no headings exist by @fanzhuoAWA in #102
New Contributors
- @fanzhuoAWA made their first contribution in #102
Full Changelog: v3.3.3...v4.0.0