v0.140.0

gohugoio/hugov0.140.0Dec 17, 2024by bep

AI Summary

A major release introducing JavaScript bundle grouping and new configuration options.

Key Highlights

  • New `js.Batch` function for JavaScript bundle groups
  • New `disableDefaultLanguageRedirect` config option
  • Upgrade to Go 1.23.4

New Features

  • New `js.Batch` function
  • New `disableDefaultLanguageRedirect` configuration option

Full Release Notes

The big new feature in this release is [js.Batch](https://gohugo.io/functions/js/batch/) – this enables JavaScript bundle groups (e.g. scripts per section) with global code splitting and flexible hooks/runners setup.

## Bug fixes

* Fix panic on server rebuilds when using both base templates and template.Defer a5e5be234 @bep #12963 
* js: Fix js.Batch for multihost setups 565c30eac @bep #13151 
* parser/pageparser: Fix Org Mode summary delimiter assignment 48dd6a918 @jmooring #13152 
* Fix a rebuild on resource rename case 744b8566e @bep 
* tpl/tplimpl: Fix title attribute in details shortcode a32c889a7 @jmooring 
* Fix Sass imports on the form index.{scss,sass} 5ab38de36 @bep #13123 
* markup/goldmark: Fix blockquote render hook text parsing 34373407b @jmooring #12913 #13119 

## Improvements

* js/esbuild: Add missing es2024 target 5c80cb0d2 @bep 
* js/esbuild: Add runners after scripts 7de5317ae @bep 
* js/esbuild: Batch: Avoid nil Instances slice 4cbd4ef99 @bep 
* tpl/tplimpl: Update youtube shortcode 852d86854 @jmooring 
* tpl/tplimpl: Update details shortcode 1e34e5b26 @jmooring 
* tpl/collections: Allow querify to accept a map argument 641d2616c @jmooring #13131 
* js/esbuild: Build groups in order of their ID a834bb9f7 @bep 
* tpl/tplimpl: Add details shortcode 4f130f6e4 @racehd 
* Write all logging (INFO, WARN, ERROR) to stderr 9dfa11261 @bep #13074 
* js/esbuild: Add platform option ec1933f79 @bep #13136 
* Add config option disableDefaultLanguageRedirect 75ad9cdaa @bep #13133 
* Add js.Batch e293e7ca6 @bep #12626 #7499 #9978 #12879 #13113 #13116 
* Upgrade to Go 1.23.4 6be253000 @bep #13130 
* Remove some old and unused shell scripts 989b299b5 @bep 

## Dependency Updates

* build(deps): bump golang.org/x/crypto from 0.30.0 to 0.31.0 157d86414 @dependabot[bot] 
* build(deps): bump golang.org/x/tools from 0.27.0 to 0.28.0 947e4e66b @dependabot[bot] 
* build(deps): bump github.com/hairyhenderson/go-codeowners 5f897868c @dependabot[bot] 
* build(deps): bump golang.org/x/net from 0.31.0 to 0.32.0 7b6921848 @dependabot[bot]