Hello community, here is the log from the commit of package ghc-cookie for openSUSE:Leap:15.2 checked in at 2020-02-19 18:38:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/ghc-cookie (Old) and /work/SRC/openSUSE:Leap:15.2/.ghc-cookie.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-cookie" Wed Feb 19 18:38:24 2020 rev:11 rq:771268 version:0.4.5 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/ghc-cookie/ghc-cookie.changes 2020-01-15 15:01:57.193795331 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.ghc-cookie.new.26092/ghc-cookie.changes 2020-02-19 18:38:40.237975669 +0100 @@ -1,0 +2,13 @@ +Tue Nov 12 09:57:04 UTC 2019 - [email protected] + +- Update cookie to version 0.4.5. + ## 0.4.5 + + * Added `SameSite=None` + +------------------------------------------------------------------- +Fri Nov 8 16:13:30 UTC 2019 - Peter Simons <[email protected]> + +- Drop obsolete group attributes. + +------------------------------------------------------------------- Old: ---- cookie-0.4.4.tar.gz New: ---- cookie-0.4.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-cookie.spec ++++++ --- /var/tmp/diff_new_pack.Zbbwyw/_old 2020-02-19 18:38:40.505976231 +0100 +++ /var/tmp/diff_new_pack.Zbbwyw/_new 2020-02-19 18:38:40.505976231 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-cookie # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,11 +19,10 @@ %global pkg_name cookie %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.4.4 +Version: 0.4.5 Release: 0 Summary: HTTP cookie parsing and rendering License: MIT -Group: Development/Libraries/Haskell URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel @@ -47,7 +46,6 @@ %package devel Summary: Haskell %{pkg_name} library development files -Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} ++++++ cookie-0.4.4.tar.gz -> cookie-0.4.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cookie-0.4.4/ChangeLog.md new/cookie-0.4.5/ChangeLog.md --- old/cookie-0.4.4/ChangeLog.md 2018-03-11 07:06:16.000000000 +0100 +++ new/cookie-0.4.5/ChangeLog.md 2019-11-10 15:05:56.000000000 +0100 @@ -1,3 +1,7 @@ +## 0.4.5 + +* Added `SameSite=None` + ## 0.4.4 * Dropped dependency on blaze-builder diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cookie-0.4.4/Web/Cookie.hs new/cookie-0.4.5/Web/Cookie.hs --- old/cookie-0.4.4/Web/Cookie.hs 2018-03-11 07:06:16.000000000 +0100 +++ new/cookie-0.4.5/Web/Cookie.hs 2019-11-10 15:05:56.000000000 +0100 @@ -15,6 +15,7 @@ , SameSiteOption , sameSiteLax , sameSiteStrict + , sameSiteNone -- ** Functions , parseSetCookie , renderSetCookie @@ -124,13 +125,14 @@ , setCookieDomain :: Maybe S.ByteString -- ^ The domain for which the cookie should be sent. Default value: @Nothing@ (The browser defaults to the current domain). , setCookieHttpOnly :: Bool -- ^ Marks the cookie as "HTTP only", i.e. not accessible from Javascript. Default value: @False@ , setCookieSecure :: Bool -- ^ Instructs the browser to only send the cookie over HTTPS. Default value: @False@ - , setCookieSameSite :: Maybe SameSiteOption -- ^ Marks the cookie as "same site", i.e. should not be sent with cross-site requests. Default value: @Nothing@ + , setCookieSameSite :: Maybe SameSiteOption -- ^ The "same site" policy of the cookie, i.e. whether it should be sent with cross-site requests. Default value: @Nothing@ } deriving (Eq, Show) -- | Data type representing the options for a <https://tools.ietf.org/html/draft-west-first-party-cookies-07#section-4.1 SameSite cookie> data SameSiteOption = Lax | Strict + | None deriving (Show, Eq) instance NFData SameSiteOption where @@ -144,6 +146,13 @@ sameSiteStrict :: SameSiteOption sameSiteStrict = Strict +-- | +-- Directs the browser to send the cookie for cross-site requests. +-- +-- @since 0.4.5 +sameSiteNone :: SameSiteOption +sameSiteNone = None + instance NFData SetCookie where rnf (SetCookie a b c d e f g h i) = a `seq` @@ -211,6 +220,7 @@ Nothing -> mempty Just Lax -> byteStringCopy "; SameSite=Lax" Just Strict -> byteStringCopy "; SameSite=Strict" + Just None -> byteStringCopy "; SameSite=None" ] parseSetCookie :: S.ByteString -> SetCookie @@ -228,6 +238,7 @@ , setCookieSameSite = case lookup "samesite" flags of Just "Lax" -> Just Lax Just "Strict" -> Just Strict + Just "None" -> Just None _ -> Nothing } where diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cookie-0.4.4/cookie.cabal new/cookie-0.4.5/cookie.cabal --- old/cookie-0.4.4/cookie.cabal 2018-03-11 07:06:16.000000000 +0100 +++ new/cookie-0.4.5/cookie.cabal 2019-11-10 15:05:56.000000000 +0100 @@ -1,5 +1,5 @@ name: cookie -version: 0.4.4 +version: 0.4.5 license: MIT license-file: LICENSE author: Michael Snoyman <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cookie-0.4.4/test/Spec.hs new/cookie-0.4.5/test/Spec.hs --- old/cookie-0.4.4/test/Spec.hs 2018-03-11 07:06:16.000000000 +0100 +++ new/cookie-0.4.5/test/Spec.hs 2019-11-10 15:05:56.000000000 +0100 @@ -55,7 +55,7 @@ arbitrary = fmap (Char' . toEnum) $ choose (62, 125) newtype SameSiteOption' = SameSiteOption' { unSameSiteOption' :: SameSiteOption } instance Arbitrary SameSiteOption' where - arbitrary = fmap SameSiteOption' (elements [sameSiteLax, sameSiteStrict]) + arbitrary = fmap SameSiteOption' (elements [sameSiteLax, sameSiteStrict, sameSiteNone]) propParseRenderSetCookie :: SetCookie -> Bool propParseRenderSetCookie sc =
