Hexo 7.0.0 (RC1) 發佈

GitHub 發佈說明:v7.0.0 (RC1)

遷移指南

一些內建標籤已被移除(例如:gistyoutubejsfiddlevimeo)。如果您在現有的部落格文章中使用這些標籤,您可以安裝 hexo-tag-embed,以便在 Hexo 7.0.0 中繼續使用它們。

$ npm i hexo-tag-embed

注意

如果您在文章或頁面中沒有使用(或將不會使用)gistyoutubejsfiddlevimeo 標籤,則無需安裝。

重大變更

  • chore:要求 node14+,由 @yoshinorin#5061 中提出
  • 已移除標籤功能。請參閱「遷移指南」章節。
  • 已移除功能
    • refactor:移除 external_link 布林值類型,由 @yoshinorin#5063 中提出
    • refactor:移除 updated_optionuse_date_for_updated 選項,由 @yoshinorin#5062 中提出

重大變更

新功能

  • feat(tags/post_link):同時搜尋 slug 和標題,由 @stevenjoezhang#5114 中提出
  • feat(open_graph):移除 google_plus,由 @stevenjoezhang#5115 中提出
  • feat(tags/img):支援在 img 標題和 alt 中使用引號,由 @stevenjoezhang#5112 中提出
  • feat(console-new):支援從路徑取得預設標題,由 @xu-song#4714 中提出
  • feat:新增選項以停用文章中的標題大小寫轉換,由 @renbaoshuo#5156 中提出

修正

  • fix(#1099):當變更配置時,hexo 伺服器錯誤,由 @D-Sketon#5055 中提出
  • fix:exclude_languages 在程式碼區塊中無法運作,由 @stevenjoezhang#5088 中提出
  • 當進行 Promise 化時,store 不會保留 disableNunjucks 屬性,由 @tcr#2670 中提出
  • fix(post):在非文章上跳過 before_post_render 和 after_post_render,由 @stevenjoezhang#5118 中提出
  • fix:無法建立具有特殊字元標題的文章,由 @D-Sketon#5149 中提出
  • fix(box):檢查無效檔案,由 @stevenjoezhang#5173 中提出

效能

重構

  • refactor highlight:為 highlight 新增擴展 API,由 @stevenjoezhang#5095 中提出
  • refactor:使用 WHATWG URL API 取代 url.resolve,由 @yoshinorin#5136 中提出

相依性

  • chore:將 sinon 從 13.0.2 升級至 14.0.0,由 @dependabot 在 #4965 中提出
  • chore:將 lint-staged 從 11.2.6 升級至 13.0.3,由 @dependabot 在 #5008 中提出
  • chore:將 husky 從 7.0.4 升級至 8.0.1,由 @dependabot 在 #4966 中提出
  • chore:將 hexo-fs 從 3.1.0 升級至 4.0.0,由 @dependabot 在 #5077 中提出
  • chore:將 hexo-renderer-marked 從 5.0.0 升級至 6.0.0,由 @dependabot 在 #5081 中提出
  • chore:將 hexo-front-matter 從 3.0.0 升級至 4.0.0,由 @dependabot 在 #5087 中提出
  • chore:將 abbrev 從 1.1.1 升級至 2.0.0,由 @dependabot 在 #5093 中提出
  • chore:將 hexo-i18n 從 1.0.0 升級至 2.0.0,由 @dependabot 在 #5099 中提出
  • chore:將 hexo-util 從 2.7.0 升級至 3.0.1,由 @dependabot 在 #5107 中提出
  • chore:將 warehouse 從 4.0.2 升級至 5.0.0,由 @dependabot 在 #5101 中提出
  • chore(deps):將 hexo-log3.2.0 更新至 4.0.1,由 @yoshinorin#5096 中提出
  • chore:將 sinon 從 14.0.2 升級至 15.0.0,由 @dependabot 在 #5121 中提出

測試

  • test(benchmark):更新 hexo-many-posts 儲存庫,由 @SukkaW#5128 中提出
  • test(list_route):提高覆蓋率,由 @stevenjoezhang#5097 中提出

新貢獻者

完整變更日誌