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):最佳化 regex @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 full tag @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