Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-yesod-core for openSUSE:Factory checked in at 2021-04-26 16:39:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-yesod-core (Old) and /work/SRC/openSUSE:Factory/.ghc-yesod-core.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-yesod-core" Mon Apr 26 16:39:38 2021 rev:9 rq:888414 version:1.6.19.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-yesod-core/ghc-yesod-core.changes 2020-12-22 11:49:40.434018064 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-yesod-core.new.12324/ghc-yesod-core.changes 2021-04-26 16:40:36.894173174 +0200 @@ -1,0 +2,8 @@ +Fri Apr 9 08:54:53 UTC 2021 - psim...@suse.com + +- Update yesod-core to version 1.6.19.0. + ## 1.6.19.0 + + * Change order of priority in `languages`[#1721](https://github.com/yesodweb/yesod/pull/1721) + +------------------------------------------------------------------- Old: ---- yesod-core-1.6.18.8.tar.gz New: ---- yesod-core-1.6.19.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-yesod-core.spec ++++++ --- /var/tmp/diff_new_pack.tgYeAJ/_old 2021-04-26 16:40:37.298173838 +0200 +++ /var/tmp/diff_new_pack.tgYeAJ/_new 2021-04-26 16:40:37.298173838 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-yesod-core # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %global pkg_name yesod-core %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.6.18.8 +Version: 1.6.19.0 Release: 0 Summary: Creation of type-safe, RESTful web applications License: MIT ++++++ yesod-core-1.6.18.8.tar.gz -> yesod-core-1.6.19.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-core-1.6.18.8/ChangeLog.md new/yesod-core-1.6.19.0/ChangeLog.md --- old/yesod-core-1.6.18.8/ChangeLog.md 2020-12-14 10:28:49.000000000 +0100 +++ new/yesod-core-1.6.19.0/ChangeLog.md 2021-04-09 05:05:15.000000000 +0200 @@ -1,5 +1,9 @@ # ChangeLog for yesod-core +## 1.6.19.0 + +* Change order of priority in `languages`[#1721](https://github.com/yesodweb/yesod/pull/1721) + ## 1.6.18.8 * Fix test suite for wai-extra change around vary header diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-core-1.6.18.8/src/Yesod/Core/Handler.hs new/yesod-core-1.6.19.0/src/Yesod/Core/Handler.hs --- old/yesod-core-1.6.18.8/src/Yesod/Core/Handler.hs 2020-12-14 10:20:34.000000000 +0100 +++ new/yesod-core-1.6.19.0/src/Yesod/Core/Handler.hs 2021-04-09 05:05:15.000000000 +0200 @@ -1226,10 +1226,10 @@ -- Languages are determined based on the following (in descending order -- of preference): -- --- * The _LANG user session variable. --- -- * The _LANG get parameter. -- +-- * The _LANG user session variable. +-- -- * The _LANG cookie. -- -- * Accept-Language HTTP header. @@ -1238,11 +1238,12 @@ -- If a matching language is not found the default language will be used. -- -- This is handled by parseWaiRequest (not exposed). +-- +-- __NOTE__: Before version @1.6.19.0@, this function prioritized the session +-- variable above all other sources. +-- languages :: MonadHandler m => m [Text] -languages = do - mlang <- lookupSession langKey - langs <- reqLangs <$> getRequest - return $ maybe id (:) mlang langs +languages = reqLangs <$> getRequest lookup' :: Eq a => a -> [(a, b)] -> [b] lookup' a = map snd . filter (\x -> a == fst x) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-core-1.6.18.8/yesod-core.cabal new/yesod-core-1.6.19.0/yesod-core.cabal --- old/yesod-core-1.6.18.8/yesod-core.cabal 2020-12-14 10:30:03.000000000 +0100 +++ new/yesod-core-1.6.19.0/yesod-core.cabal 2021-04-09 05:05:15.000000000 +0200 @@ -1,5 +1,5 @@ name: yesod-core -version: 1.6.18.8 +version: 1.6.19.0 license: MIT license-file: LICENSE author: Michael Snoyman <mich...@snoyman.com>