Hexo v6 需要 Node.js 12.13+。请使用 Node.js 12+。
要升级到 Hexo v6,请在你的 package.json 中更改以下行:
- "hexo": "^5.4.1", |
重大变更
- 放弃 Node 10 @stevenjoezhang #4779 #4691
安全
请查看更多详情: 公告:关于 CVE-2021-25987
新功能
- feat: 在主题的 package.json 中加载 hexo 插件 @stevenjoezhang #4771
- feat(open_graph):
og:image
和twitter:image
使用不同的 URL @KentarouTakeda #4748
性能
- perf(tag/helper): 记忆化 @SukkaW #4789
- perf(external_link): 优化正则表达式 @SukkaW #4790
- refactor/perf: 使用 nanocolors @SukkaW #4788
- 切换到 picocolors @tomap #4825
- perf: 避免使用 delete 运算符 @SukkaW #4711
- perf: 全面改进 @SukkaW #4783
- refactor/perf(post): 使用状态机转义 swig 标签 @SukkaW #4780
- refactor: 重构分页 - paginatorHelper - pagenasionPartShow @CroMarmot #4662
修复
- fix(post): 转义带参数的 swig 全标签 @stevenjoezhang #4824
- fix(processor): 删除竞争条件安全机制 @SukkaW #4791
- fix(#4780): 大括号 @SukkaW #4784
- fix(#4780): 空标签名称修正 @SukkaW #4786
- 在草稿模式下生成草稿资产 @darekkay #4563
重构
文档
- doc: 添加 homebrew 安装 @chenrui333 #4724
- doc(extend/console): 添加 jsdoc @SukkaW #4500
依赖项
- 清理 dependabot @tomap #4820
- chore: 将 actions/stale 从 3 升级到 4 @dependabot #4828
- chore: 将 sinon 从 11.1.2 升级到 12.0.1 @dependabot #4810
- chore: 将 eslint 从 7.32.0 升级到 8.0.0 @dependabot #4799
- chore: 将 hexo-log 从 2.0.0 升级到 3.0.0 @dependabot #4794
- chore: 将 husky 从 4.3.8 升级到 7.0.2 @dependabot #4763
- chore: 将 sinon 从 10.0.1 升级到 11.1.2 @dependabot #4747
- chore: 将 mocha 从 8.4.0 升级到 9.1.1 @dependabot #4765
- chore: 将 lint-staged 从 10.5.4 升级到 11.0.0 @dependabot #4697
- 升级到 GitHub 原生 Dependabot @dependabot-preview #4689
- chore(deps-dev): 将 sinon 从 9.2.4 升级到 10.0.0 @dependabot-preview #4670
- chore(deps-dev): 将 hexo-renderer-marked 从 3.3.0 升级到 4.0.0 @dependabot-preview #4649
新贡献者
- @CroMarmot 在 https://github.com/hexojs/hexo/pull/4662 中做出了他们的第一次贡献
- @darekkay 在 https://github.com/hexojs/hexo/pull/4563 中做出了他们的第一次贡献
- @chenrui333 在 https://github.com/hexojs/hexo/pull/4724 中做出了他们的第一次贡献
完整变更日志: https://github.com/hexojs/hexo/compare/5.4.0...6.0.0