Repository navigation
What's Changed
Full Changelog: v0.3.0...v0.3.1
🚀 Features
- Merge pull request #583 from Guoyin-Wen/feat/svg-logo-dark-mode-invert (c6dc10c)
- feat: support SVG site logo with dark mode color inversion (a57334f)
- Merge pull request #562 from libo1248/main (cb122ec)
- feat:关于页面不显示"上一篇/下一篇"按钮 (5d75619)
- feat(deploy): 添加 FRONTEND_URL 环境变量配置 (c48f665)
- feat: 添加 sitemap/robots 服务与 FRONTEND_URL 配置 (c7d37c7)
- feat: add markdown editor toolbar (3b16c2b)
- feat: add guest comment support (#515) (869ddf2)
- feat: add guest comment support (#514) (f6b99b3)
- feat: add latest and popular sorting switch in hashtags page (#489) (9a26053)
🐛 Bug Fixes
- Merge pull request #592 from zhangmuchangqing/fix-first-visitor-uv (c3f6ccb)
- fix: include first visitor in feed UV statistics (6f47103)
- Merge pull request #588 from zuhairkhalid229/fix/585-refuse-comments-when-disabled (6a7ce76)
- fix: refuse new comments on the server when comments are turned off (0f59806)
- fix(server): harden OAuth redirects, uploads, blobs, friends, and comments (80cebb2)
- Merge pull request #568 from shali10/fix/cjk-search-r2-cors (9d253a7)
- fix(search,storage): escape LIKE wildcards in feed search & add default CORS/Cache-Control headers to storage responses (bd3764c)
- fix: safely repair feeds top migration (6c5dd60)
- Merge pull request #566 from openRin/fix/feeds-top-migration-565 (ae46d33)
- fix: restore missing feeds.top column via new 0012 migration (e7f672a)
- Merge pull request #559 from openRin/fix/rss-canonical-public-sitemap-tags (4ca3d34)
- fix: normalize RSS URLs and filter sitemap tags (fea2d95)
- fix: 规范 sitemap、robots 与 RSS 的 canonical URL 缓存策略 (a83436f)
- Merge pull request #558 from openRin/fix/toc-scroll-557 (33e7371)
- fix: keep TOC scroll position on article page (closes #557) (d7cab90)
- Merge pull request #556 from FaintFlower/fix/star-history-chart (bb20313)
- fix: update star history chart to working domain (740174f)
- fix(sitemap): 避免首页URL出现末尾斜杠及处理baseUrl为空 (0f1916f)
- fix(sitemap): 为聚合页面添加lastmod并移除listed过滤 (93467d6)
- fix(sitemap): 限制查询数量以优化性能 (0a44350)
- fix: 修复 FRONTEND_URL 环境变量代码风格 (49231e6)
- Merge pull request #519 from FreeL00P/main (28665f1)
- Merge pull request #526 from leeon666/upstream/stability-content-fixes (6abad19)
- fix: persist feed alias cache invalidation (#529) (651d495)
- fix: resolve feed edit lookup by numeric id (e0a46dc)
- fix: strip reasoning tags from AI summaries (efda4b5)
- fix: harden content rendering against missing data (7f8a09c)
- fix: add remark-breaks to client dependencies for CI (4239233)
- fix: preserve line breaks in feed summary and article detail page (ca21c6a)
- fix: resolve iframe rendering, source code in summary, and missing cover images (282a660)
- fix: show cover image on feed cards when image has no metadata (90176de)
- fix: resolve iframe rendering, source code in feed summary, and missing cover images (426beae)
- fix: rebuild comments table in 0010.sql to make user_id nullable (cefb384)
- fix(deploy): improve URL extraction logic in deployment script (#508) (5eb6a3b)
- fix: refactor AI config handling in summary tests to use createAIConfigReader (#507) (f442c14)
- fix(docs): correct GitHub OAuth callback URL in docs and error messages (#502) (017e1a4)
- fix: invalidate unchanged alias cache when updating feeds (#492) (8cd58e5)
- fix(ui): apply dynamic theme color to loading animation (#491) (48f7636)
- fix: correct translation key for hashtag total count (#490) (1ad778a)
⚡ Performance
- perf(sitemap): 移除无用排序以优化查询性能 (5584899)
♻️ Refactoring
- Merge pull request #560 from openRin/refactor/staged-architecture-cleanup (bdcd375)
- refactor: stabilize data routes and UI boundaries (151942f)
📚 Documentation
- docs: add v0.3.1 changelog entry (257571a)
- docs: add security policy, low-maintenance notice, and remove unused rehype-sanitize (07e5edb)
📝 Other Changes
- chore(release): v0.3.1 (a1b0c50)
- Merge pull request #541 from MarshaveYang/main (308a542)
- Revert "Merge pull request #566 from openRin/fix/feeds-top-migration-565" (3fcfb37)
- test: unify repository on Bun test runner (016cdcb)
- Merge pull request #545 from hohouman/main (e181ead)
- test: make TOC regression test Bun-compatible (6326aa3)
- style: 移除外部加载的 Noto Serif SC 并改用本地无衬线 CJK 字体回退 (82f906f)
- Merge branch 'openRin:main' into main (ec79521)
- 去掉 c.req.raw.headers, 传递 file.type (4bcfe4d)
- Merge pull request #537 from c-c-epr/issues (9efc4fd)
- chore: issue 模板優化 (f520a90)
- Merge remote-tracking branch 'origin/main' into pr-519 (b620227)
- Merge pull request #528 from openRin/agent/developer/ce3e3728 (02674ae)
- Merge origin/main into FRO-3 branch (b4a08e1)
- Merge pull request #530 from openRin/agent/developer/9d6a84d5 (83ea541)
- Revert "feat: add guest comment support (#514)" (2b49076)
- Revert "chore: i18n + test fixture + guest comment tests" (c278aef)
- Revert "fix: rebuild comments table in 0010.sql to make user_id nullable" (c00d9ff)
- chore: i18n + test fixture + guest comment tests (1be4d7d)
- chore: migrate Bun lockfile format (#506) (b0de3bb)
📋 Detailed Changelog
Overview
This release adds guest comments, a Markdown editor toolbar, and more control over site branding and discovery. It also improves article rendering and visit counts, repairs D1 upgrades, and hardens server-side authentication, storage, and comment handling.
Added
- Visitors can comment without signing in when comments are enabled. A display name is required, and email and website are optional.
- The Markdown editor toolbar provides shortcuts for common formatting and inserting links and images.
- SVG site logos support dark-mode color inversion by default. Append
#no-invertto the logo URL to opt out. - The Worker serves
/sitemap.xmland/robots.txt. SetFRONTEND_URLto use a canonical site URL for generated links in both endpoints and RSS. Without it, links use the request origin. - The hashtag page offers sorting by latest or popular.
Changed
- Unified client and server tests on Bun's native test runner.
- Added a low-maintenance notice to both READMEs.
- Removed the unused
rehype-sanitizeclient dependency.
Fixed
- Counted the first visitor in an article's unique visitor (UV) statistics.
- Enforced the comments setting on the server. When comments are disabled, only administrators can submit new comments.
- Preserved the table of contents scroll position when the active heading changes.
- Fixed content rendering for embedded iframes, source code appearing in summaries, missing cover images, and line breaks in summaries and articles.
- Escaped SQL
LIKEwildcards in article search so literal%and_characters match as typed. - Repaired the D1 migration to restore a missing
feeds.topcolumn and rebuild the article visibility and ordering index.
Security
- Hardened OAuth in
80cebb2by restricting redirects to the same origin, comparing state tokens in constant time, and clearing the one-time state cookie on callback. - Restricted storage uploads to administrators and hardened public blob responses with passive content types and download headers for active content, MIME sniffing protection, and a sandboxing Content Security Policy.
- Validated friend-link URLs on creation and update, requiring an absolute HTTP or HTTPS URL with a host.
- Limited public comment responses to approved comments and omitted the
guestEmailfield. - Added
SECURITY.mdwith the project's security policy and a private vulnerability reporting link in the GitHub issue chooser.
中文版
概览
此版本新增游客评论和 Markdown 编辑器工具栏,改进了站点标识和搜索引擎收录支持,同时修复了文章渲染、访问统计与 D1 数据库升级问题,并加强了服务端认证、存储和评论处理的安全性。
新增
- 开启评论后,游客无需登录即可发表评论。昵称为必填项,邮箱和网站为选填项。
- Markdown 编辑器工具栏提供常用格式以及插入链接和图片的快捷操作。
- SVG 站点标志默认在深色模式下反色,可在标志 URL 末尾加上
#no-invert关闭反色。 - Worker 提供
/sitemap.xml和/robots.txt。设置FRONTEND_URL后,这两个端点和 RSS 生成的链接会使用站点的规范地址。未设置时,使用请求的来源地址。 - 标签页支持按最新或热门排序。
变更
- 前端和服务端测试统一使用 Bun 原生测试运行器。
- 在中英文 README 中加入低活跃维护状态说明。
- 移除了客户端未使用的
rehype-sanitize依赖。
修复
- 将文章的首位访客纳入独立访客数(UV)统计。
- 在服务端执行评论开关设置。关闭评论后,仅管理员可以提交新评论。
- 当前标题切换时,保留文章目录的滚动位置。
- 修复了 内容渲染问题,包括嵌入式 iframe 显示异常、摘要中出现源代码、封面图缺失,以及摘要和正文丢失换行。
- 在文章搜索中转义 SQL
LIKE通配符,使%和_按原字符匹配。 - 修复 D1 数据库迁移,补齐缺失的
feeds.top列并重建用于文章可见性筛选和排序的索引。
安全
- 在
80cebb2中加固 OAuth,将重定向限制在同源范围内,以恒定时间比较state令牌,并在回调时清除一次性的stateCookie。 - 仅允许管理员上传文件。公共 Blob 响应通过响应头将主动内容以非执行类型作为附件下载,同时禁用 MIME 嗅探并应用沙箱内容安全策略。
- 在创建和更新友情链接时验证地址,仅接受带有主机名的 HTTP 或 HTTPS 绝对 URL。
- 公开评论接口仅返回已审核通过的评论,并省略
guestEmail字段。 - 新增
SECURITY.md说明项目安全政策,并在 GitHub Issue 模板选择页添加私密漏洞报告入口。
📦 Build Artifact
This release includes the attached file build-v0.3.1-cloudflare.tar.gz.
Use the release asset URL as artifact_url when triggering deploy.yml manually.
🆙 Upgrade Guide
For users who have forked this repository:
- Go to your forked repository on GitHub
- Click "Sync fork" to get the latest changes
- Review the CHANGELOG.md for migration steps
- Update your environment variables if needed
- The deployment will run automatically