Bump yesod-core version, update ChangeLog

This commit is contained in:
Isaac van Bakel 2022-04-20 13:01:26 +01:00
parent b9fbdb3950
commit 04683ca58b
3 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,13 @@
# ChangeLog for yesod-core
## 1.6.23
* Add idempotent versions of `setDescription`, `setDescriptionI`. These functions
have odd behaviour when called multiple times, so they are now warned against.
This can't be a silent change - if you want to switch to the new functions, make
sure your layouts are updated to use `pageDescription` as well as `pageTitle`.
[#1765](https://github.com/yesodweb/yesod/pull/1765)
## 1.6.22.1
+ Remove sometimes failing superfluous test. [#1756](https://github.com/yesodweb/yesod/pull/1756)

View File

@ -252,6 +252,8 @@ setDescriptionI msg = do
-- times will result in only a single description meta tag in the head.
--
-- Source: https://www.advancedwebranking.com/blog/meta-tags-important-in-seo/
--
-- @since 1.6.23
setDescriptionIdemp :: MonadWidget m => Text -> m ()
setDescriptionIdemp description = tell $ GWData mempty mempty (Last $ Just $ Description description) mempty mempty mempty mempty mempty
@ -261,6 +263,8 @@ setDescriptionIdemp description = tell $ GWData mempty mempty (Last $ Just $ Des
--
-- Unlike 'setDescriptionI', this version is *idempotent* - calling it multiple
-- times will result in only a single description meta tag in the head.
--
-- @since 1.6.23
setDescriptionIdempI
:: (MonadWidget m, RenderMessage (HandlerSite m) msg)
=> msg -> m ()

View File

@ -1,5 +1,5 @@
name: yesod-core
version: 1.6.22.1
version: 1.6.23
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>