Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-cookie for openSUSE:Factory checked in at 2023-01-18 13:09:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-cookie (Old) and /work/SRC/openSUSE:Factory/.ghc-cookie.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-cookie" Wed Jan 18 13:09:45 2023 rev:14 rq:1059060 version:0.4.6 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-cookie/ghc-cookie.changes 2020-12-22 11:38:00.885412914 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-cookie.new.32243/ghc-cookie.changes 2023-01-18 13:09:55.976509002 +0100 @@ -1,0 +2,9 @@ +Wed Jan 4 11:24:18 UTC 2023 - Peter Simons <psim...@suse.com> + +- Update cookie to version 0.4.6. + ## 0.4.6 + + * Resolve redundant import of Data.Monoid [#26](https://github.com/snoyberg/cookie/pull/26) + * Added `renderSetCookieBS` and `renderCookiesBS` + +------------------------------------------------------------------- Old: ---- cookie-0.4.5.tar.gz New: ---- cookie-0.4.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-cookie.spec ++++++ --- /var/tmp/diff_new_pack.uhcHgm/_old 2023-01-18 13:09:56.484511920 +0100 +++ /var/tmp/diff_new_pack.uhcHgm/_new 2023-01-18 13:09:56.488511943 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-cookie # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 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 cookie %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.4.5 +Version: 0.4.6 Release: 0 Summary: HTTP cookie parsing and rendering License: MIT ++++++ cookie-0.4.5.tar.gz -> cookie-0.4.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cookie-0.4.5/ChangeLog.md new/cookie-0.4.6/ChangeLog.md --- old/cookie-0.4.5/ChangeLog.md 2019-11-10 15:05:56.000000000 +0100 +++ new/cookie-0.4.6/ChangeLog.md 2023-01-04 11:55:45.000000000 +0100 @@ -1,3 +1,8 @@ +## 0.4.6 + +* Resolve redundant import of Data.Monoid [#26](https://github.com/snoyberg/cookie/pull/26) +* Added `renderSetCookieBS` and `renderCookiesBS` + ## 0.4.5 * Added `SameSite=None` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cookie-0.4.5/Web/Cookie.hs new/cookie-0.4.6/Web/Cookie.hs --- old/cookie-0.4.5/Web/Cookie.hs 2019-11-10 15:05:56.000000000 +0100 +++ new/cookie-0.4.6/Web/Cookie.hs 2023-01-04 11:55:45.000000000 +0100 @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} module Web.Cookie ( -- * Server to client @@ -19,12 +20,14 @@ -- ** Functions , parseSetCookie , renderSetCookie + , renderSetCookieBS , defaultSetCookie , def -- * Client to server , Cookies , parseCookies , renderCookies + , renderCookiesBS -- ** UTF8 Version , CookiesText , parseCookiesText @@ -37,10 +40,13 @@ import qualified Data.ByteString as S import qualified Data.ByteString.Char8 as S8 +import qualified Data.ByteString.Lazy as L import Data.Char (toLower, isDigit) -import Data.ByteString.Builder (Builder, byteString, char8) +import Data.ByteString.Builder (Builder, byteString, char8, toLazyByteString) import Data.ByteString.Builder.Extra (byteStringCopy) +#if !(MIN_VERSION_base(4,8,0)) import Data.Monoid (mempty, mappend, mconcat) +#endif import Data.Word (Word8) import Data.Ratio (numerator, denominator) import Data.Time (UTCTime (UTCTime), toGregorian, fromGregorian, formatTime, parseTimeM, defaultTimeLocale) @@ -101,6 +107,10 @@ renderCookies :: Cookies -> Builder renderCookies = renderCookiesBuilder . map (byteString *** byteString) +-- | @since 0.4.6 +renderCookiesBS :: Cookies -> S.ByteString +renderCookiesBS = L.toStrict . toLazyByteString . renderCookies + -- | Data type representing the key-value pair to use for a cookie, as well as configuration options for it. -- -- ==== Creating a SetCookie @@ -223,6 +233,10 @@ Just None -> byteStringCopy "; SameSite=None" ] +-- | @since 0.4.6 +renderSetCookieBS :: SetCookie -> S.ByteString +renderSetCookieBS = L.toStrict . toLazyByteString . renderSetCookie + parseSetCookie :: S.ByteString -> SetCookie parseSetCookie a = SetCookie { setCookieName = name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cookie-0.4.5/cookie.cabal new/cookie-0.4.6/cookie.cabal --- old/cookie-0.4.5/cookie.cabal 2019-11-10 15:05:56.000000000 +0100 +++ new/cookie-0.4.6/cookie.cabal 2023-01-04 12:22:11.000000000 +0100 @@ -1,5 +1,5 @@ name: cookie -version: 0.4.5 +version: 0.4.6 license: MIT license-file: LICENSE author: Michael Snoyman <mich...@snoyman.com> @@ -8,12 +8,13 @@ description: Hackage documentation generation is not reliable. For up to date documentation, please see: <https://www.stackage.org/package/cookie>. category: Web, Yesod stability: Stable -cabal-version: >= 1.8 +cabal-version: >= 1.10 build-type: Simple homepage: http://github.com/snoyberg/cookie extra-source-files: README.md ChangeLog.md library + default-language: Haskell2010 build-depends: base >= 4 && < 5 , bytestring >= 0.10.2 , time >= 1.5 @@ -24,6 +25,7 @@ ghc-options: -Wall test-suite test + default-language: Haskell2010 hs-source-dirs: test main-is: Spec.hs type: exitcode-stdio-1.0