Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency gohugoio/hugo to v0.121.1 #656

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 13, 2023

Mend Renovate

This PR contains the following updates:

Package Update Change
gohugoio/hugo minor v0.83.1 -> v0.121.1

Release Notes

gohugoio/hugo (gohugoio/hugo)

v0.121.1

Compare Source

The only change in this release is that the release binaries are compiled with Go 1.21.5 which contains some security fixes that are relevant for Hugo.

v0.121.0

Compare Source

There are some minor new features in this release, but it's mostly a release with bug fixes and dependency updates. One notable dependency update is libweb v1.3.2 which comes with a security fix for the Webp decoder (chromium: #​1479274, CVE-2023-4863). Hugo only uses the encoder (we use Go's native Webp decoder) so we're not affected by this, but we have been contacted by some corporate Hugo users who's eager to have a clean security report.

Notes

  • kin-openapi v0.122.0 has some minor breaking API changes which, from Hugo's side of it, can be adapted by using the new .Map accessors if you get an error.

Bug fixes and enhancements

Dependency Updates

Documentation

v0.120.4

Compare Source

The only change in this release is that the release binaries are compiled with Go 1.21.4 which comes with a security fix for Windows that may be relevant for Hugo. See:

What's Changed

v0.120.3

Compare Source

What's Changed

v0.120.2

Compare Source

What's Changed

v0.120.1

Compare Source

What's Changed

v0.120.0

Compare Source

This is a full dependency refresh and a couple of new cool features:

A new Padding image filter, and a new debug.Timer template func. The new debug.Timer is useful for finding performance bottle necks in templates:

{{ $timer := debug.Timer "slowTemplate" }}
// ...
{{ $timer.Stop }}

If you then run hugo --logLevel info you should see timer info logged at the end of the build. You can have as many timers as you want and if you don't stop them, they will be stopped at the end of build.

Hugo now also builds release binaries for Solaris now that a long-living issue in the upstream ƒsnotify library has been fixed, thanks to @​nshalman.

Notes

  • The enableEmoji flag now only works for Markdown content. This is unfortunate, but the old solution has some known issues and it was too hard to make it work properly as a general thing across all formats. See #​11598
  • site.DisqusShortname is deprecated 2eca1b3
  • site.GoogleAnalytics is deprecated a692278
  • site.Author is deprecated d4016dd
  • site.Social is deprecated 4910312

Also, we have changed the string type for some of the fields and methods:

  • .Fragments.ToHTML now returns template.HTML
  • $resource.Data.Integrity now returns a string and not a template.HTMLAttr
  • delimit now returns a string and not a template.HTML See #​10876 #​11502.
  • the URL functions now returns a string, see #​11536
  • The paginator Pager now returns a string.
  • site.BaseURL now returns a string.

The above should both solve some issues and make the above types more useful and easer to reason about. But if you use the delimit function to process HTML and see some unexpected escaping after this release, e.g.:

{{ $s := slice "<i>foo</i>" }}
{{ delimit $s "," }}

Then you need to mark the type with safeHTML:

{{ $s := slice "<i>foo</i>" }}
{{ delimit $s "," | safeHTML }}

Bug fixes

Improvements

Dependency Updates

Documentation

v0.119.0

Compare Source

This version is built with Go 1.21.1 which contains some relevant security fixes for the html/template package, see Issue 62196 and Issue 62197. This is the main reason Hugo 0.119.0 is released sooner rather than later. But this release also comes with a dependency refresh and some useful image processing improvements:

  • A new general-purpose Process method and filter.
  • A new Opacity filter.

Process support all of the existing scaling operations, but it can also be used do simple format conversions (e.g. from JPG to PNG). A before/after example:

{{ $watermark := resources.Get "logo.jpg" | images.Filter  
       (images.GaussianBlur 6) 
       (images.Opacity 0.5) 
}}
{{ $watermark = $watermark.Resize (printf "%dx%d png" $watermark.Width $watermark.Height )

There are some issues with the above:

  1. The source image does not support transparency, so the transparency pixels will be filled with the configured background colour.
  2. The image will be decoded and encoded twice with a potential loss in quality.
  3. It's clumsy.

With Hugo 0.119.0 the above can be written as:

{{ $watermark := resources.Get "logo.jpg" | images.Filter  
       (images.GaussianBlur 6) 
       (images.Opacity 0.5) 
       (images.Process "png") 
}}

Bug fixes

Improvements

Dependency Updates

Documentation

v0.118.2

Compare Source

What's Changed

v0.118.1

Compare Source

Note: There still seem to be an issue on Vercel.


This release only fixes a GLIBC_xxx not found issue with the Linux AMD64 binary when running on older Linux versions, which is the situation when building on Netlify/Vercel etc. 7e9092e @​bep #​11414

There's no functional changes in this release. See v0.118.0.

v0.118.0

Compare Source

Note: Hugo 0.118.2 fixes an issue with the Linux binaries when building on Netlify/Vercel/etc.


Hugo 0.118.0 now builds with Go 1.21. This version also comes with:

  • Proper CJK support in Markdown:
  [markup.goldmark]
    [markup.goldmark.extensions]
      [markup.goldmark.extensions.cjk]

### Whether to enable CJK support.
        enable = false

### Whether softline breaks between east asian wide characters should be ignored.
        eastAsianLineBreaks = false    

###  Whether a '\' escaped half-space(0x20) should not be rendered.
        escapedSpace = false
  • A revamped implementation of hugo new site and hugo new theme. See details.

Bug fixes

Improvements

Dependency Updates

Documentation

Build Setup

v0.117.0

Compare Source

This is a release on the small side, but. especially the new Page.RenderShortcodes method is so useful, especially for bigger sites, that we decided to get it out sooner rather than later. This method renders all the shortcodes in the content, preserving the surrounding markup (e.g. Markdown) as is. See the Hugo Documentation for more information.

Improvements

Dependency Updates

Documentation

v0.116.1

Compare Source

What's Changed

v0.116.0

Compare Source

There are two notable changes in this release. For one, we have changed the default location of the cacheDir (where Hugo stores all its file caches). Having the cache stored in a /tmp folder has had its issues, especially for the module cache and especially on MacOS. The current new default should be better and more stable. See See Configure CacheDir for more info.

Also in this release: The where template func finally supports regular expressions with the new like operator.

Note

Bug fixes

Improvements

Dependency Updates

Documentation

Build Setup

v0.115.4

Compare Source

Bug fixes

Improvements

v0.115.3

Compare Source

What's Changed

v0.115.2

Compare Source

Bug fixes

Improvements

Build Setup

[v0.115.1](


Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner December 13, 2023 17:40
@garethahealy garethahealy merged commit 2ab1333 into master Dec 13, 2023
1 check passed
@garethahealy garethahealy deleted the renovate/gohugoio-hugo-0.x branch December 13, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant