v0.159.0

gohugoio/hugov0.159.0Mar 23, 2026by bep

AI Summary

Significantly improves Node.js/npm dependency management in multi-module setups and updates deprecated methods in tests.

Key Highlights

  • Improve Node.js/npm dependency management using workspaces.
  • Replace deprecated `site.Data` with `hugo.Data` in tests.
  • Replace deprecated `excludeFiles`/`includeFiles` with `files`.
  • Return error instead of panic when page not found.

New Features

  • Simplified npm module management using workspaces.

Full Release Notes

This release greatly improves and simplifies management of Node.js/npm dependencies in a multi-module setup. See [this page](https://gohugo.io/hugo-modules/nodejs-dependencies/) 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