The big new thing and the motivation behind this release is the upgrade to a more modern YAML library in @goccy 's github.com/goccy/go-yaml. It's been a surprisingly long and winding road to get here. Note that this upgrade comes with some minor breaking changes, most notably that the old YAML 1.1 spec listed a set of strings that, when unquoted, were treated as boolean true or false. So if you're using any of the values in the table below as booleans, you need to adjust your YAML, but I suspect that fixing this very surprising behavior will fix more issues than it introduces. A big new thing with this new YAML library is the support for YAML anchors and aliases which helps to reduce duplication in e.g. your configuration. There are some examples in Hugo's release build configuration and in the Hugo's CI release setup.
| Values | Old meaning | New meaning |
|---|---|---|
yes, Yes, YES, y, Y, on, On, ON
| true (bool)
| yes, Yes, YES, y, Y, on, On, ON (string)
|
no, No, NO, n, N, off, Off, OFF
| false (bool)
| no, No, NO, n, N, off, Off, OFF (string)
|
Note
Improvements
- config: Clone language map entries before modifying them a130770 @bep #14072
- Skip flaky test for now 9425b93 @bep #14072
- Misc YAML adjustments bd50c9c @bep #14067
- hugofs: Make sure that non-project module mounts are local paths a8e0ca9 @bep #14069
- langs/i18n: Improve reserved key error message 559a029 @jmooring #14061
- langs: Add test case using a "reserved" i18n code 5bad0d5 @bep #14061
Dependency Updates
- deps: Upgrade github.com/gohugoio/go-i18n/v2 184b10e @bep
- build(deps): bump github.com/tdewolff/minify/v2 from 2.24.3 to 2.24.4 9e344bb @dependabot[bot]