Bump yesod-core version, update ChangeLog
This commit is contained in:
parent
b9fbdb3950
commit
04683ca58b
@ -1,5 +1,13 @@
|
|||||||
# ChangeLog for yesod-core
|
# 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
|
## 1.6.22.1
|
||||||
|
|
||||||
+ Remove sometimes failing superfluous test. [#1756](https://github.com/yesodweb/yesod/pull/1756)
|
+ Remove sometimes failing superfluous test. [#1756](https://github.com/yesodweb/yesod/pull/1756)
|
||||||
|
|||||||
@ -252,6 +252,8 @@ setDescriptionI msg = do
|
|||||||
-- times will result in only a single description meta tag in the head.
|
-- times will result in only a single description meta tag in the head.
|
||||||
--
|
--
|
||||||
-- Source: https://www.advancedwebranking.com/blog/meta-tags-important-in-seo/
|
-- Source: https://www.advancedwebranking.com/blog/meta-tags-important-in-seo/
|
||||||
|
--
|
||||||
|
-- @since 1.6.23
|
||||||
setDescriptionIdemp :: MonadWidget m => Text -> m ()
|
setDescriptionIdemp :: MonadWidget m => Text -> m ()
|
||||||
setDescriptionIdemp description = tell $ GWData mempty mempty (Last $ Just $ Description description) mempty mempty mempty mempty mempty
|
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
|
-- Unlike 'setDescriptionI', this version is *idempotent* - calling it multiple
|
||||||
-- times will result in only a single description meta tag in the head.
|
-- times will result in only a single description meta tag in the head.
|
||||||
|
--
|
||||||
|
-- @since 1.6.23
|
||||||
setDescriptionIdempI
|
setDescriptionIdempI
|
||||||
:: (MonadWidget m, RenderMessage (HandlerSite m) msg)
|
:: (MonadWidget m, RenderMessage (HandlerSite m) msg)
|
||||||
=> msg -> m ()
|
=> msg -> m ()
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-core
|
name: yesod-core
|
||||||
version: 1.6.22.1
|
version: 1.6.23
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user