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

fix(deps): update module github.com/gohugoio/hugo to v0.114.0 #753

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 23, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
github.com/gohugoio/hugo require minor v0.111.3 -> v0.114.0

Release Notes

gohugoio/hugo

v0.114.0

Compare Source

The main new thing in this release is that we now support both major versions of the Dart Sass Embedded protocol, which means that you now can use the regular Dart Sass binary. We measured the new protocol to be faster with high concurrency:

name                             old time/op    new time/op    delta
Transpiler/SCSS-10                  114µs ± 0%     145µs ± 1%  +26.40%  (p=0.029 n=4+4)
Transpiler/Start_and_Execute-10    25.6ms ± 2%    26.0ms ± 3%     ~     (p=0.486 n=4+4)
Transpiler/SCSS_Parallel-10        89.0µs ± 2%    44.4µs ± 3%  -50.12%  (p=0.029 n=4+4)

name                             old alloc/op   new alloc/op   delta
Transpiler/SCSS-10                 1.33kB ± 1%    1.33kB ± 0%     ~     (p=1.000 n=4+4)
Transpiler/Start_and_Execute-10    22.4kB ± 1%    22.4kB ± 1%     ~     (p=0.886 n=4+4)
Transpiler/SCSS_Parallel-10        1.34kB ± 3%    1.33kB ± 1%     ~     (p=1.000 n=4+4)

name                             old allocs/op  new allocs/op  delta
Transpiler/SCSS-10                   18.0 ± 0%      18.0 ± 0%     ~     (all equal)
Transpiler/Start_and_Execute-10       144 ± 1%       150 ± 0%   +4.16%  (p=0.029 n=4+4)
Transpiler/SCSS_Parallel-10          18.0 ± 0%      18.0 ± 0%     ~     (all equal)

We have also moved to a new log library and added some new math functions and also revised the existing set to work better with a mix of scalars and slices.

Notes

  • We have removed the flags --log, --verboseLog, added the new flag --logLevel and deprecated --verbose and ----debug` See #​11088
  • This release contains a security fix in the upstream Go HTML template library disallowing JavaScript inside backticks by default. See https://github.com/golang/go/issues/59234 If you really need this and are sure this isn't a security risk in your case, you can revert to the old behaviour:
[security]
[security.gotemplates]
allowActionJSTmpl = true

Bug fixes

Improvements

Dependency Updates

Documentation

Build Setup

v0.113.0

Compare Source

This release adds TLS/HTTPS support to hugo server (see cf38c73 and #​11064 for details) entirely backed by mkcert. We still default to http which is recommended and good enough for 99% of the Hugo use, but there are some situations where you really need it.

We have added a new sub command and some new flags to hugo server to enable this:

### Installs a local CA in the system root store. You only need to do this once.
hugo server trust
###  Generates locally-trusted certificates (if not already created) and starts the server with TLS/HTTPS enabled.
hugo server --tlsAuto

Note that we just delegate to mkcert using its default settings, so all of their documentation is relevant.

Also note that this is currently only supported for Linux, MacOS and Windows. And if you install on Linux using Snap, you will currently get an access denied error when running hugo server trust. A workaround for that, or if you need to use some of mkcert's advanced options, is to use mkcert directly to install the local CA:

go install filippo.io/mkcert@latest
mkcert -install

You can then start the server with hugo server --tlsAuto.

If you have obtained the TLS certificate and key file by other means, you can use the --tlsCertFile and --tlsKeyFile flags. When --tlsAuto or --tlsCertFile and --tlsKeyFile is set and no --baseURL is provided as a flag, the server is started with TLS and https as the protocol.

v0.112.7

Compare Source

What's Changed

v0.112.6

Compare Source

v0.112.5

Compare Source

What's Changed

v0.112.4

Compare Source

Documentation

v0.112.3

Compare Source

What's Changed

v0.112.2

Compare Source

What's Changed

v0.112.1

Compare Source

What's Changed

Also see the main release: https://github.com/gohugoio/hugo/releases/tag/v0.112.0

v0.112.0

Compare Source

Note: There's a patch release out already, see https://github.com/gohugoio/hugo/releases/tag/v0.112.1

Proper TailwindCSS v3.x support, much improved language config merge, consolidation of all Hugo config (check out hugo config), rewritten commands package (CLI) using SimpleCobra, Goldmark's typographer extension (quotation marks per language), and more.

Headlines

TailwindCSS v3.x Support, new cache buster configuration

See https://github.com/bep/hugo-starter-tailwind-basic for a running example.

TailwindCSS 3 has been out for a while now, and unfortunately their new build strategy didn't work very well with Hugo. But this release adds a new build.cachebusters config option for the resource cache that allows more fine grained control over when to trigger a new Tailwind build. This is a generally useful feature, so if you're having issues not seeing your resource changes (e.g. change to a JS file) on change, you could try to tweak the defaults. A tip is to run the server with hugo server --debug and watch out for log messages prefixed with cachebuster: on file changes.

There are several possible setups here, but one that we have tested and that works well is outlined in the config below. The basic concept is to add hugo_stats.json to the server watcher list in Hugo and trigger a new TailwindCSS build only whenever either this file or the main CSS file changes.

[module]
  [[module.mounts]]
    source = "assets"
    target = "assets"
  [[module.mounts]]
    source = "hugo_stats.json"
    target = "assets/watching/hugo_stats.json"

[build]
  writeStats = true
  [[build.cachebusters]]
    source = "assets/watching/hugo_stats\\.json"
    target = "styles\\.css"
  [[build.cachebusters]]
    source = "(postcss|tailwind)\\.config\\.js"
    target = "css"
  [[build.cachebusters]]
    source = "assets/.*\\.(js|ts|jsx|tsx)"
    target = "js"
  [[build.cachebusters]]
    source = "assets/.*\\.(.*)$"
    target = "$1"

And then in tailwind.config.js:

module.exports = {
	content: ['./hugo_stats.json'],
};
Reconsolidated all configuration handling

For this release we have collected all configuration into one big Go struct and rewritten the command line API using SimpleCobra. All of this makes the source code easier to maintain and understand, but the original motivation for this was to get a complete and autogenerated API reference for Hugo (we're working on getting that done), but this also have some less technical upsides:

'hugo config' is now complete

What you get when running hugo config is a complete TOML representation (add --format json or --format yaml for alternative formats) of the effective configuration. As this will include default values and configuration merged in from themes, we don't recommend to copy and paste this into hugo.toml, as that would make your configuration very verbose.

Improved language config handling

See issue #​10620 for some details, but in general, the merge behaviour of sections from languages is much improved. In the example below for language en you will now get:

 "comments": {
    "color": "blue",
    "title": "English Comments Title",
}

In earlier versions of Hugo you would get:

 "comments": {
    "title": "English Comments Title",
}
title = "Base Title"
staticDir = "mystatic"
[params]
[params.comments]
color = "blue"
title = "Default Comments Title"
[languages]
[languages.en]
title = "English Title"
[languages.en.params.comments]
title = "English Comments Title"

Note that values in a given language will always have precedence over same keys in root (the section inside the language is the receiving side of any merge operation), so, if you want the old (and buggy) behaviour, you can add a merge strategy to one of the params sections, e.g:

[languages.en.params.comments]
_merge = "none"
title = "English Comments Title"

You can now also configure just about everything per language. One useful example would be the Goldmark typographer extension:

[languages.de]
languageCode = 'de-DE'
languageName = 'Deutsch'
weight = 2
[languages.de.markup.goldmark.extensions.typographer]
leftDoubleQuote = '«'   # default “
rightDoubleQuote = '»'  # default ”
More info in verbose build output

If you build flag with the -v, you will now get timing info for the core building steps in Hugo:

INFO 2023/05/16 09:53:55 process in 17 ms
INFO 2023/05/16 09:53:55 assemble in 345 ms
INFO 2023/05/16 09:53:55 render in 341 ms
INFO 2023/05/16 09:53:55 postProcess in 0 ms

Notes

Bug fixes

Improvements

Dependency Updates

Documentation


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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 force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 4e3b340 to bac1d37 Compare May 23, 2023 18:58
@renovate renovate bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.112.0 fix(deps): update module github.com/gohugoio/hugo to v0.112.1 May 23, 2023
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch 2 times, most recently from d317950 to ba3a1a4 Compare May 24, 2023 13:29
@renovate renovate bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.112.1 fix(deps): update module github.com/gohugoio/hugo to v0.112.2 May 24, 2023
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from ba3a1a4 to 9a3e3d1 Compare May 24, 2023 16:33
@renovate renovate bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.112.2 fix(deps): update module github.com/gohugoio/hugo to v0.112.3 May 24, 2023
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch 9 times, most recently from 94d2925 to 5d18039 Compare May 28, 2023 15:19
@renovate renovate bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.112.3 fix(deps): update module github.com/gohugoio/hugo to v0.112.4 May 28, 2023
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 5d18039 to 2957069 Compare May 29, 2023 09:43
@renovate renovate bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.112.4 fix(deps): update module github.com/gohugoio/hugo to v0.112.5 May 29, 2023
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch 5 times, most recently from 301eb58 to faa809a Compare June 1, 2023 01:15
@renovate renovate bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.112.5 fix(deps): update module github.com/gohugoio/hugo to v0.112.6 Jun 1, 2023
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch 3 times, most recently from 3ebc489 to eebdc68 Compare June 2, 2023 01:12
@renovate renovate bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.112.6 fix(deps): update module github.com/gohugoio/hugo to v0.112.7 Jun 2, 2023
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from eebdc68 to 76437ce Compare June 2, 2023 11:03
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch 10 times, most recently from 5f59e0d to ab9f412 Compare June 14, 2023 22:04
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch 10 times, most recently from 4951e41 to c784eac Compare June 19, 2023 20:41
@renovate renovate bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.113.0 fix(deps): update module github.com/gohugoio/hugo to v0.114.0 Jun 19, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 19, 2023

@github-actions github-actions bot temporarily deployed to pull request June 19, 2023 20:42 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 19, 2023 20:43 Inactive
@renovate renovate bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from c784eac to 09757f2 Compare June 20, 2023 05:12
@github-actions github-actions bot temporarily deployed to pull request June 20, 2023 05:13 Inactive
@renovate renovate bot merged commit 43ecfa2 into main Jun 20, 2023
@renovate renovate bot deleted the renovate/github.com-gohugoio-hugo-0.x branch June 20, 2023 05:14
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.

0 participants