最新版本与更新日志
当前主线:4.10.5(见根目录
package.json)
4.10.5 发布要点
本版本新增基于 Notion 数据库的 NotionComments 评论插件,并合入 v4.10.4 之后主线上的主题修复、Notion 渲染增强、复制权限配置、SEO 和依赖更新。
NotionComments 评论插件
- 新增
NEXT_PUBLIC_COMMENT_NOTION_ENABLE评论开关,可与 Waline、Giscus、Valine、GitTalk、Utterance、Cusdis、Twikoo 等评论插件并存,通过文章底部评论区 Tab 切换体验。 - 新增
/api/notion-comments动态接口,评论数据写入用户自己的 Notion 数据库,支持文章维度查询、发表评论、回复评论、分页加载和失败重试。 - 新增评论区交互界面:加载中、空状态、错误重试、回复输入、收起回复、加载更多等基础状态都已覆盖。
- 新增 NotionComments 使用教程,包含 Notion Integration 创建、数据库字段配置、环境变量、部署方式、常见问题、使用效果截图,以及“独立评论数据库”和“Notion 页面原生评论”两种方案的取舍说明。
- 新增会员评论路线图文档,记录未来会员体系和评论能力继续结合 Notion 数据的可选方向。
主线功能与修复
- 支持文章级自定义版权模式,并补充
CAN_COPY复制权限配置文档和侧边栏入口。 - 改进 SEO canonical metadata,减少错误 canonical 地址对搜索收录的影响。
- 支持 Notion Heading 4 渲染。
- 支持应用 Notion Collection View 的排序规则。
- 修复分类和标签静态路径生成的保护逻辑。
- 同步 Endspace 主题更新。
- 修复 Claude 主题侧栏在 Adsense 场景下的高度问题。
- 修复 Fuwari 固定主题色不生效问题。
- 修复 Magzine 主题文章标签换行问题。
- 为分享按钮和右侧浮动区域补充鼠标悬停提示。
依赖与工作流更新
form-data从4.0.5升级到4.0.6。@babel/core从7.28.3升级到7.29.7。axios从1.17.0升级到1.18.1。@vercel/functions从3.6.2升级到3.7.5。actions/checkout从4升级到7。docker/metadata-action从5升级到6。
升级说明
- 如需启用 NotionComments,需要新增:
NEXT_PUBLIC_COMMENT_NOTION_ENABLE=trueNOTION_COMMENT_DATABASE_ID=你的评论数据库 IDNOTION_TOKEN=你的 Notion Integration Token
- NotionComments 依赖服务端 API Route,只支持 Vercel、Netlify、Node.js Server、Docker 等动态部署方式;使用
yarn export/ 纯静态导出的站点不支持该插件。 NOTION_TOKEN是敏感凭据,只应保存在服务端环境变量中,不要提交到仓库,也不要暴露在公开截图或前端配置里。
自 v4.10.4 以来的提交
feat: add Notion database comments plugindocs: add optional membership comments roadmapfix(endspace): sync upstream theme updatesfix: improve SEO canonical metadata (#4248)feat: support custom article copyright modefix(claude): keep sidebar height with adsense (#4247)fix: guard category/tag static pathsdocs: explain adding CAN_COPY in Notiondocs: expose copy permission guide in sidebardocs: add copy permission guide to config indexfeat: support per-post copy permissionsfix(fuwari): honor fixed theme hue (#4243)fix(magzine): keep post tags on one linedocs: fix post list style config comment (#4242)fix: support Notion heading 4 (#4241)fix: apply Notion collection view sorts (#4240)chore(share buttons): add tips for mouse hover (#4212)chore(right float area): add tips (#4213)chore: bump form-data from 4.0.5 to 4.0.6 (#4204)chore: bump @babel/core from 7.28.3 to 7.29.7 (#4211)chore: bump axios from 1.17.0 to 1.18.1 (#4222)chore: bump docker/metadata-action from 5 to 6 (#4228)chore: bump actions/checkout from 4 to 7 (#4229)chore: bump @vercel/functions from 3.6.2 to 3.7.5 (#4238)
验证
jest __tests__/lib/plugins/notionComments.test.js --runInBand:通过。next lint --file components/NotionComments.js --file lib/plugins/notionComments.js --file __tests__/lib/plugins/notionComments.test.js:通过。git diff --check:通过。yarn docs:site:build:通过。
4.10.3 发布要点
本版本重点优化 Magzine 主题、字体资源、构建缓存和 Notion 数据过滤,并合入社区站数据库、视图筛选、Heo / Fuwari / Hexo / Matery 主题体验与依赖安全更新。
性能与资源加载
- 优化 Magzine 首页首屏图片加载策略,减少 LCP 图片延迟。
- 调整 Magzine 首页图片、广告位与文章卡片布局,降低图片、广告和卡片内容加载时的布局抖动。
- Font Awesome 样式改为延后加载,并在用户有交互意图后再加载,减少首屏阻塞。
- 预留 Font Awesome 图标布局空间,修复延迟加载期间图标可见性和页面跳动问题。
- 将 Font Awesome 字体文件改为本地自托管,减少第三方字体 CDN 依赖。
- Web Font 仅在配置启用时加载,未配置自定义字体的站点不再请求额外字体资源。
Notion 数据与构建稳定性
- 稳定本地构建缓存文件锁,降低并发构建或重复读取缓存时的异常风险。
- 优化 filtered collection 数据处理,减少无关 Notion collection 数据进入页面数据。
- 保留空的 selected view 结果,避免空集合视图被误判为缺失数据。
- 增加 typed collection helper,统一集合数据读取路径。
主题与配置
- Fuwari 主题首次渲染时正确应用主题色相,并补充主题切换稳定性调整。
- Heo 信息卡 greeting 逻辑归一化,避免不同配置路径显示不一致。
- Hexo / Matery 主题新增 greeting words speed 配置,可控制首页问候语切换速度。
- 新增社区站数据库模板文档,补充 Notion 社区站点搭建入口。
文档与部署
- 文档站首页和导航加入最近更新提示能力,方便维护者发现新 changelog 与重要文档更新。
- 更新 Cloudflare Pages V3 build image 迁移说明。
- 更新开发者首页、愿景路线图与性能优化计划,记录本轮性能优化和后续维护方向。
依赖更新
axios升级到1.17.0。@vercel/functions升级到3.6.2。ioredis升级到5.11.1。@supabase/supabase-js升级到2.107.0。
参与者
- @tangly1024:33 个提交。
- @qianzhu / Lucien:6 个提交。
- @dependabot:4 个提交。
- @88lin:1 个提交。
- @expoli:1 个提交。
- @githubdudu:1 个提交。
提交范围
从 v4.10.2 到 v4.10.3:
5a1017a7fix: filter embedded Notion collection views6ec30f99chore(release): bump package.json to 4.10.19c793e3cfix: handle sync_block with content ID array782a35bffix: render quote blocks without properties.title6b24adc9fix: respect view-level filters in database page resolutionf837e3d9fix: apply Fuwari theme hue on initial render1a6b2263fix: preserve giscus oauth callback token8f685096docs: surface changelog unread updates1aeac547merge: release v4.10.2 hotfixee1043eefix: limit docs unread dots to sidebara0c9970cfix: mark latest docs unread in sidebar2eee510dfix: record docs reads for every route07ccff5bfix: render sidebar unread dots as nodes3815bda6fix: keep sidebar unread leaf dots visible302feebbfix: normalize Heo infocard greetings5252770erefactor: add typed collection helpers61b8c774docs: add community site database template4fb658befix: preserve empty selected view results88e03cc1chore: bump @supabase/supabase-js to 2.107.0e747d117chore: bump ioredis to 5.11.18e11d730chore: bump @vercel/functions to 3.6.2186b3e3achore: bump axios to 1.17.09922643fOptimize Font Awesome stylesheet loading3abb4a83Merge Font Awesome loading optimization35f332d5Improve magzine homepage performance6ccd2b86Merge magzine homepage performance improvements560d04e2Optimize magzine LCP image loadingc9373041Merge magzine LCP image optimization1e34875bStabilize build cache locks and filtered collection data7d431f12Merge build cache stability updatescb4c065ddocs: add Cloudflare Pages V3 build image migration941cf310Improve magzine image and ad layout stabilitye3d91b9eMerge magzine image layout stabilitya9525fffDefer Font Awesome from critical pathf96fecd5Merge Font Awesome critical path deferral2362c9c2Load web fonts only when configured8d783e33Merge deferred web font loadingff2c5073Load Font Awesome after user intent8da1cf29Merge Font Awesome intent loader1e4e2de4Reserve Font Awesome icon layout33ad83bfMerge Font Awesome layout reservation2a1dda67Fix delayed Font Awesome visibilityad5e32b2Merge Font Awesome visibility fixdf71ae22Self-host Font Awesome for menu icons256a2363Merge self-hosted Font Awesome performance fix512524a7feat: add configurable greeting words speed
适用场景
- 使用 Magzine、Fuwari、Heo、Hexo 或 Matery 主题的站点。
- 希望减少 Font Awesome / Web Font 对首屏渲染影响的站点。
- 使用 Notion collection view、Cloudflare Pages 或依赖构建缓存的站点。
升级说明
- 正常升级无需新增环境变量。
- 如果站点依赖 Font Awesome 图标,请升级后确认图标显示正常。
- 如果使用自定义 Web Font,请确认相关字体配置仍按预期启用。
- 如果使用 Hexo / Matery 主题,可按需配置 greeting words speed。
验证
git diff --check:通过。node -e "const p=require('./package.json'); if (p.version !== '4.10.3') process.exit(1)":通过。yarn docs:site:build:通过。
如何升级
- 站长升级:见 版本升级指引。
- 构建性能与 Notion API 限流:见 构建性能与 Notion API 限流。
- GitHub Release:NotionNext Releases。
