官方插件 hexo-generator-alias 1.0.0、hexo-cli 4.2.0、hexo-front-matter 2.0.0 和 hexo-generator-feed 3.0.0 发布

hexo-generator-alias 1.0.0

重大变更

  • 需要 Node 10.13+ #54

特性

  • feat: 'redirect' 选项 #48
    • 有关使用方法,请参阅 本节
  • feat: 使用 slug 重定向到帖子 #55
    • 有关使用方法,请参阅 本节
    • 工作方式类似于 post_path 标签插件。

修复

hexo-cli 4.2.0

变更

  • feat(init): 支持 pnpm 并放弃 yarn 2 #227
  • fix(init): 显示在哪里运行 npm #228

依赖项

  • chore(deps-dev): 将 mocha 从 8.0.1 升级到 8.1.1 #231
  • chore(deps-dev): 将 eslint 从 7.5.0 升级到 7.6.0 #230

hexo-front-matter 2.0.0

重大变更

  • chore: 放弃 node 8 #32

  • 现在必须声明特定函数,而不是声明对象

    - const yfm = require('hexo-front-matter');
    + const { parse: yfm } = require('hexo-front-matter');

重构

  • refactor: forEach() #21
  • refactor/perf: 正则表达式和拆分简写 #34

维护

  • chore(deps-dev): 将 mocha 从 7.2.0 升级到 8.0.1 #33
  • chore(deps-dev): 将 mocha 从 6.2.2 升级到 7.1.1 #30
  • chore(deps-dev): 将 eslint 从 6.8.0 升级到 7.1.0 #32
  • chore(deps-dev): 将 eslint-config-hexo 从 3.0.0 升级到 4.0.0 #24

hexo-generator-feed 3.0.0

重大变更

  • 放弃 Node 8 #153

修复

  • 与 Hexo 5 兼容 #117
  • 利用 full_url_for() #143 #149
    • 这样可以避免手动连接 root 前缀,这可能会导致 url 中出现不希望的双斜杠。
  • fix(template): 删除多余的空格 #128

依赖项

  • chore(deps-dev): 将 hexo 从 4.0.0 升级到 5.0.0 #117
  • chore(deps-dev): 将 mocha 从 7.2.0 升级到 8.0.1 #146
  • chore(deps): 将 hexo-util 从 1.9.0 升级到 2.1.0 #139
  • chore(deps-dev): 将 eslint 从 6.8.0 升级到 7.0.0 #141
  • chore(deps-dev): 将 camaro 从 4.2.0 升级到 5.0.0 #137