发布日期: 2026-03-23
版本号: v0.159.0

本次更新重点改进了多模块环境下Node.js/npm依赖的管理简化与优化,具体包括:废弃API替换(如site.Data改为hugo.Data)、多项功能改进(如页面未找到时返回错误而非崩溃、使用npm工作空间简化依赖打包),以及修复了Vimeo短代码测试等问题。此外更新了多个依赖库版本并修正了相关文档。

更新内容 (中文)

此版本大幅改进并简化了多模块项目中 Node.js/npm 依赖的管理。更多信息请参阅此页面

注意事项

  • 在测试中将已弃用的 site.Data 替换为 hugo.Data(提交 a8fca598 @bep)
  • 在测试中将已弃用的 excludeFilesincludeFiles 替换为 files(提交 182b1045 @bep)
  • 在永久链接测试中将已弃用的 :filename 替换为 :contentbasename(提交 eb11c3d0 @bep)

错误修复

  • 模板/模板实现:修复 Vimeo 简码测试(提交 eaf4c751 @jmooring #14649)

改进

  • 创建:页面未找到时返回错误而非 panic(提交 807cae1d @mango766 #14112)
  • 命令:在转换输出中保留非内容文件(提交 c4fb61d9 @xndvaz #4621)
  • npm:使用工作区简化 hugo mod npm pack(提交 d88a29e0 @bep)
  • 命令:当 CPU 性能分析启动失败时关闭性能分析文件(提交 9dd9c760 @buley)
  • 暂移除 AI 监控工作流(提交 3315a86d @bep)
  • 从 PR 用户登录跳过列表中移除 ‘bep’(提交 38244842 @bep)
  • 模板/模板实现:注释掉 Vimeo 简码简化测试(提交 7813c5c8 @bep #14649)

依赖更新

  • 构建依赖:将 github.com/olekukonko/tablewriter 从 1.1.3 升级到 1.1.4(#14641)(提交 3ff9b7f8 @dependabot[bot])
  • 构建依赖:将 github.com/yuin/goldmark 从 1.7.16 升级到 1.7.17(提交 be93ccd3 @dependabot[bot])
  • 构建依赖:将 github.com/magefile/mage 从 1.15.0 升级到 1.16.1(提交 2669bca6 @dependabot[bot])
  • 构建依赖:将 golang.org/x/image 从 0.36.0 升级到 0.37.0(提交 753d447f @dependabot[bot])
  • 构建依赖:将 google.golang.org/grpc 从 1.78.0 升级到 1.79.3(提交 4f39d724 @dependabot[bot])

文档

  • 文档:更新 docs.yaml(提交 d2043cfa @bep)
  • 命令:更新 Node.js 文档链接(提交 4f3c3989 @bep)

更新内容 (原始)

This release greatly improves and simplifies management of Node.js/npm dependencies in a multi-module setup. See this page for more information.

Note

  • Replace deprecated site.Data with hugo.Data in tests a8fca598 @bep
  • Replace deprecated excludeFiles and includeFiles with files in tests 182b1045 @bep
  • Replace deprecated :filename with :contentbasename in the permalinks test eb11c3d0 @bep

Bug fixes

  • tpl/tplimpl: Fix Vimeo shortcode test eaf4c751 @jmooring #14649

Improvements

  • create: Return error instead of panic when page not found 807cae1d @mango766 #14112
  • commands: Preserve non-content files in convert output c4fb61d9 @xndvaz #4621
  • npm: Use workspaces to simplify hugo mod npm pack d88a29e0 @bep
  • commands: Close cpu profile file when StartCPUProfile fails 9dd9c760 @buley
  • Remove the AI Watchdog workflow for now 3315a86d @bep
  • Remove ‘bep’ from PR user logins skip list 38244842 @bep
  • tpl/tplimpl: Comment out the Vimeo simple shortcode tests 7813c5c8 @bep #14649

Dependency Updates

  • build(deps): bump github.com/olekukonko/tablewriter from 1.1.3 to 1.1.4 (#14641) 3ff9b7f8 @dependabot[bot]
  • build(deps): bump github.com/yuin/goldmark from 1.7.16 to 1.7.17 be93ccd3 @dependabot[bot]
  • build(deps): bump github.com/magefile/mage from 1.15.0 to 1.16.1 2669bca6 @dependabot[bot]
  • build(deps): bump golang.org/x/image from 0.36.0 to 0.37.0 753d447f @dependabot[bot]
  • build(deps): bump google.golang.org/grpc from 1.78.0 to 1.79.3 4f39d724 @dependabot[bot]

Documentation

  • docs: Update docs.yaml d2043cfa @bep
  • commands: Update docs linke to Node.js docs 4f3c3989 @bep

下载链接