Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-http-api-data for 
openSUSE:Factory checked in at 2026-11-24 12:30:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-http-api-data (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-http-api-data.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-http-api-data"

Tue Nov 24 12:30:20 2026 rev:37 rq:1399212 version:0.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-http-api-data/ghc-http-api-data.changes      
2026-06-10 16:04:44.101515029 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-http-api-data.new.1340718/ghc-http-api-data.changes
 2026-11-24 12:36:36.775330512 +0100
@@ -1,0 +2,9 @@
+Thu Mar 12 19:32:12 UTC 2026 - Peter Simons <[email protected]>
+
+- Update http-api-data to version 0.7 revision 1.
+  0.7
+
+  * Change Form representation to use Map (from `containers`) instead of 
`HashMap`.
+    This prevents possible HashDOS attacks.
+
+-------------------------------------------------------------------

Old:
----
  http-api-data-0.6.3.tar.gz

New:
----
  http-api-data-0.7.tar.gz
  http-api-data.cabal

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-http-api-data.spec ++++++
--- /var/tmp/diff_new_pack.3D8yCi/_old  2026-11-24 12:36:38.949422646 +0100
+++ /var/tmp/diff_new_pack.3D8yCi/_new  2026-11-24 12:36:38.951422731 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-http-api-data
 #
-# Copyright (c) 2026 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,50 +17,54 @@
 
 
 %global pkg_name http-api-data
-%global pkgver %{pkg_name}-%{version}
+%bcond_with ghc_prof
 %bcond_with tests
-Name:           ghc-%{pkg_name}
-Version:        0.6.3
+Name:           ghc-%pkg_name
+Version:        0.7
 Release:        0
+%global pkgver %pkg_name-%{version}
 Summary:        Converting to/from HTTP API data like URL pieces, headers and 
query parameters
 License:        BSD-2-Clause
-URL:            https://hackage.haskell.org/package/%{pkg_name}
-Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+URL:            https://hackage.haskell.org/package/%pkg_name
+Source0:        
https://hackage.haskell.org/package/%pkg_name-%{version}/%pkg_name-%{version}.tar.gz
+Source1:        
https://hackage.haskell.org/package/%pkg_name-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-devel
-BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-bytestring-devel
-BuildRequires:  ghc-bytestring-prof
 BuildRequires:  ghc-containers-devel
-BuildRequires:  ghc-containers-prof
 BuildRequires:  ghc-cookie-devel
-BuildRequires:  ghc-cookie-prof
 BuildRequires:  ghc-hashable-devel
-BuildRequires:  ghc-hashable-prof
 BuildRequires:  ghc-http-types-devel
-BuildRequires:  ghc-http-types-prof
-BuildRequires:  ghc-rpm-macros
+BuildRequires:  ghc-rpm-macros >= 2.9.2
 BuildRequires:  ghc-tagged-devel
-BuildRequires:  ghc-tagged-prof
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-text-iso8601-devel
+BuildRequires:  ghc-time-compat-devel
+BuildRequires:  ghc-uuid-types-devel
+ExcludeArch:    %{ix86}
+%if %{with ghc_prof}
+BuildRequires:  ghc-base-prof
+BuildRequires:  ghc-bytestring-prof
+BuildRequires:  ghc-containers-prof
+BuildRequires:  ghc-cookie-prof
+BuildRequires:  ghc-hashable-prof
+BuildRequires:  ghc-http-types-prof
+BuildRequires:  ghc-tagged-prof
 BuildRequires:  ghc-text-iso8601-prof
 BuildRequires:  ghc-text-prof
-BuildRequires:  ghc-time-compat-devel
 BuildRequires:  ghc-time-compat-prof
-BuildRequires:  ghc-unordered-containers-devel
-BuildRequires:  ghc-unordered-containers-prof
-BuildRequires:  ghc-uuid-types-devel
 BuildRequires:  ghc-uuid-types-prof
-ExcludeArch:    %{ix86}
+%endif
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
-BuildRequires:  ghc-QuickCheck-prof
 BuildRequires:  ghc-hspec-devel
-BuildRequires:  ghc-hspec-prof
 BuildRequires:  ghc-quickcheck-instances-devel
+%if %{with ghc_prof}
+BuildRequires:  ghc-QuickCheck-prof
+BuildRequires:  ghc-hspec-prof
 BuildRequires:  ghc-quickcheck-instances-prof
 %endif
+%endif
 
 %description
 This package defines typeclasses used for converting Haskell data types to and
@@ -78,24 +82,28 @@
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-%package -n ghc-%{pkg_name}-doc
+%package -n ghc-%pkg_name-doc
 Summary:        Haskell %{pkg_name} library documentation
 Requires:       ghc-filesystem
 BuildArch:      noarch
 
-%description -n ghc-%{pkg_name}-doc
+%description -n ghc-%pkg_name-doc
 This package provides the Haskell %{pkg_name} library documentation.
 
-%package -n ghc-%{pkg_name}-prof
+%if %{with ghc_prof}
+%package -n ghc-%pkg_name-prof
 Summary:        Haskell %{pkg_name} profiling library
-Requires:       ghc-%{pkg_name}-devel = %{version}-%{release}
-Supplements:    (ghc-%{pkg_name}-devel and ghc-prof)
+Requires:       ghc-%pkg_name-devel = %{version}-%{release}
+Supplements:    (ghc-%pkg_name-devel and ghc-prof)
 
-%description -n ghc-%{pkg_name}-prof
+%description -n ghc-%pkg_name-prof
 This package provides the Haskell %{pkg_name} profiling library.
+%endif
+
 
 %prep
-%autosetup -n %{pkg_name}-%{version}
+%autosetup -p1 -n %pkg_name-%{version}
+cp -p %{SOURCE1} %pkg_name.cabal
 
 %build
 %ghc_lib_build
@@ -118,8 +126,10 @@
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.md README.md
 
-%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%files -n ghc-%pkg_name-doc -f ghc-%pkg_name-doc.files
 %license LICENSE
 
-%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+%if %{with ghc_prof}
+%files -n ghc-%pkg_name-prof -f ghc-%pkg_name-prof.files
+%endif
 

++++++ http-api-data-0.6.3.tar.gz -> http-api-data-0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-api-data-0.6.3/CHANGELOG.md 
new/http-api-data-0.7/CHANGELOG.md
--- old/http-api-data-0.6.3/CHANGELOG.md        2001-09-09 03:46:40.000000000 
+0200
+++ new/http-api-data-0.7/CHANGELOG.md  2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,8 @@
+0.7
+
+* Change Form representation to use Map (from `containers`) instead of 
`HashMap`.
+  This prevents possible HashDOS attacks.
+
 0.6.3
 
 * Add To/FromForm instances for () and Void
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-api-data-0.6.3/http-api-data.cabal 
new/http-api-data-0.7/http-api-data.cabal
--- old/http-api-data-0.6.3/http-api-data.cabal 2001-09-09 03:46:40.000000000 
+0200
+++ new/http-api-data-0.7/http-api-data.cabal   2001-09-09 03:46:40.000000000 
+0200
@@ -1,6 +1,6 @@
 cabal-version:   1.12
 name:            http-api-data
-version:         0.6.3
+version:         0.7
 
 synopsis:        Converting to/from HTTP API data like URL pieces, headers and 
query parameters.
 category:        Web
@@ -56,7 +56,6 @@
                    , text-iso8601          >= 0.1.1    && < 0.2
                    , tagged                >= 0.8.8    && < 0.9
                    , time-compat           >= 1.9.5    && < 1.10
-                   , unordered-containers  >= 0.2.20   && < 0.3
                    , uuid-types            >= 1.0.6    && < 1.1
 
     if flag(use-text-show)
@@ -90,7 +89,7 @@
                    , http-api-data
                    , text
                    , time-compat
-                   , unordered-containers
+                   , containers
                    , uuid-types
 
     build-depends:   hspec                >= 2.7.1    && <2.12
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-api-data-0.6.3/src/Web/Internal/FormUrlEncoded.hs 
new/http-api-data-0.7/src/Web/Internal/FormUrlEncoded.hs
--- old/http-api-data-0.6.3/src/Web/Internal/FormUrlEncoded.hs  2001-09-09 
03:46:40.000000000 +0200
+++ new/http-api-data-0.7/src/Web/Internal/FormUrlEncoded.hs    2001-09-09 
03:46:40.000000000 +0200
@@ -25,14 +25,11 @@
 import qualified Data.Foldable              as F
 import           Data.Functor.Identity      (Identity(Identity))
 import           Data.Hashable              (Hashable)
-import           Data.HashMap.Strict        (HashMap)
-import qualified Data.HashMap.Strict        as HashMap
+import qualified Data.Map.Strict            as Map
 import           Data.Int                   (Int16, Int32, Int64, Int8)
 import           Data.IntMap                (IntMap)
 import qualified Data.IntMap                as IntMap
 import           Data.List                  (intersperse, sortBy)
-import           Data.Map                   (Map)
-import qualified Data.Map                   as Map
 import           Data.Monoid                (All (..), Any (..), Dual (..),
                                              Product (..), Sum (..))
 import           Data.Ord                   (comparing)
@@ -205,7 +202,7 @@
 -- | The contents of a form, not yet URL-encoded.
 --
 -- 'Form' can be URL-encoded with 'urlEncodeForm' and URL-decoded with 
'urlDecodeForm'.
-newtype Form = Form { unForm :: HashMap Text [Text] }
+newtype Form = Form { unForm :: Map.Map Text [Text] }
   deriving (Eq, Read, Generic, Semigroup, Monoid)
 
 instance Show Form where
@@ -216,8 +213,8 @@
 -- For a stable conversion use 'toListStable'.
 instance IsList Form where
   type Item Form = (Text, Text)
-  fromList = Form . HashMap.fromListWith (flip (<>)) . fmap (\(k, v) -> (k, 
[v]))
-  toList = concatMap (\(k, vs) -> map ((,) k) vs) . HashMap.toList . unForm
+  fromList = Form . Map.fromListWith (flip (<>)) . fmap (\(k, v) -> (k, [v]))
+  toList = concatMap (\(k, vs) -> map ((,) k) vs) . Map.toList . unForm
 
 -- | A stable version of 'toList'.
 toListStable :: Form -> [(Text, Text)]
@@ -275,17 +272,14 @@
 -- |
 --
 -- @since 0.6.3
-instance ToForm () where toForm _ = Form HashMap.empty
+instance ToForm () where toForm _ = Form Map.empty
 
 instance (ToFormKey k, ToHttpApiData v) => ToForm [(k, v)] where
   toForm = fromList . map (toFormKey *** toQueryParam)
 
-instance (ToFormKey k, ToHttpApiData v) => ToForm (Map k [v]) where
+instance (ToFormKey k, ToHttpApiData v) => ToForm (Map.Map k [v]) where
   toForm = fromEntriesByKey . Map.toList
 
-instance (ToFormKey k, ToHttpApiData v) => ToForm (HashMap k [v]) where
-  toForm = fromEntriesByKey . HashMap.toList
-
 instance ToHttpApiData v => ToForm (IntMap [v]) where
   toForm = fromEntriesByKey . IntMap.toList
 
@@ -294,7 +288,7 @@
 -- >>> fromEntriesByKey [("name",["Nick"]),("color",["red","blue"])]
 -- fromList [("color","red"),("color","blue"),("name","Nick")]
 fromEntriesByKey :: (ToFormKey k, ToHttpApiData v) => [(k, [v])] -> Form
-fromEntriesByKey = Form . HashMap.fromListWith (<>) . map (toFormKey *** map 
toQueryParam)
+fromEntriesByKey = Form . Map.fromListWith (<>) . map (toFormKey *** map 
toQueryParam)
 
 data Proxy3 a b c = Proxy3
 
@@ -437,12 +431,9 @@
 instance (FromFormKey k, FromHttpApiData v) => FromForm [(k, v)] where
   fromForm = fmap (concatMap (\(k, vs) -> map ((,) k) vs)) . toEntriesByKey
 
-instance (Ord k, FromFormKey k, FromHttpApiData v) => FromForm (Map k [v]) 
where
+instance (Ord k, Eq k, Hashable k, FromFormKey k, FromHttpApiData v) => 
FromForm (Map.Map k [v]) where
   fromForm = fmap (Map.fromListWith (<>)) . toEntriesByKey
 
-instance (Eq k, Hashable k, FromFormKey k, FromHttpApiData v) => FromForm 
(HashMap k [v]) where
-  fromForm = fmap (HashMap.fromListWith (<>)) . toEntriesByKey
-
 instance FromHttpApiData v => FromForm (IntMap [v]) where
   fromForm = fmap (IntMap.fromListWith (<>)) . toEntriesByKey
 
@@ -451,7 +442,7 @@
 -- _NOTE:_ this conversion is unstable and may result in different key order
 -- (but not values). For a stable encoding see 'toEntriesByKeyStable'.
 toEntriesByKey :: (FromFormKey k, FromHttpApiData v) => Form -> Either Text 
[(k, [v])]
-toEntriesByKey = traverse parseGroup . HashMap.toList . unForm
+toEntriesByKey = traverse parseGroup . Map.toList . unForm
   where
     parseGroup (k, vs) = (,) <$> parseFormKey k <*> traverse parseQueryParam vs
 
@@ -678,7 +669,7 @@
 -- >>> lookupAll "name" [("name", "Oleg"), ("name", "David")]
 -- ["Oleg","David"]
 lookupAll :: Text -> Form -> [Text]
-lookupAll key = F.concat . HashMap.lookup key . unForm
+lookupAll key = F.concat . Map.lookup key . unForm
 
 -- | Lookup an optional value for a key.
 -- Fail if there is more than one value.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-api-data-0.6.3/src/Web/Internal/HttpApiData.hs 
new/http-api-data-0.7/src/Web/Internal/HttpApiData.hs
--- old/http-api-data-0.6.3/src/Web/Internal/HttpApiData.hs     2001-09-09 
03:46:40.000000000 +0200
+++ new/http-api-data-0.7/src/Web/Internal/HttpApiData.hs       2001-09-09 
03:46:40.000000000 +0200
@@ -28,11 +28,10 @@
 import           Data.Functor.Identity        (Identity(Identity))
 import           Data.Int                     (Int16, Int32, Int64, Int8)
 import           Data.Kind                    (Type)
-import qualified Data.Map                     as Map
+import qualified Data.Map.Strict              as Map
 import           Data.Monoid                  (All (..), Any (..), Dual (..),
                                                First (..), Last (..),
                                                Product (..), Sum (..))
-import           Data.Semigroup               (Semigroup (..))
 import qualified Data.Semigroup               as Semi
 import           Data.Tagged                  (Tagged (..))
 import           Data.Text                    (Text)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-api-data-0.6.3/test/Web/Internal/FormUrlEncodedSpec.hs 
new/http-api-data-0.7/test/Web/Internal/FormUrlEncodedSpec.hs
--- old/http-api-data-0.6.3/test/Web/Internal/FormUrlEncodedSpec.hs     
2001-09-09 03:46:40.000000000 +0200
+++ new/http-api-data-0.7/test/Web/Internal/FormUrlEncodedSpec.hs       
2001-09-09 03:46:40.000000000 +0200
@@ -4,7 +4,7 @@
 
 import Control.Monad ((<=<))
 import qualified Data.ByteString.Lazy.Char8 as BSL
-import qualified Data.HashMap.Strict as HashMap
+import qualified Data.Map.Strict            as Map
 import Data.Text (Text, unpack)
 import Test.Hspec
 import Test.QuickCheck
@@ -27,13 +27,13 @@
 
     it "contains the record names" $ property $ \(x :: SimpleRec) -> do
       let f = unForm $ toForm x
-      HashMap.member "rec1" f `shouldBe` True
-      HashMap.member "rec2" f `shouldBe` True
+      Map.member "rec1" f `shouldBe` True
+      Map.member "rec2" f `shouldBe` True
 
     it "contains the correct record values" $ property $ \(x :: SimpleRec) -> 
do
       let f = unForm $ toForm x
-      HashMap.lookup "rec1" f `shouldBe` Just [rec1 x]
-      (parseQueryParams <$> HashMap.lookup "rec2" f) `shouldBe` Just (Right 
[rec2 x])
+      Map.lookup "rec1" f `shouldBe` Just [rec1 x]
+      (parseQueryParams <$> Map.lookup "rec2" f) `shouldBe` Just (Right [rec2 
x])
 
   context "FromForm" $ do
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-api-data-0.6.3/test/Web/Internal/TestInstances.hs 
new/http-api-data-0.7/test/Web/Internal/TestInstances.hs
--- old/http-api-data-0.6.3/test/Web/Internal/TestInstances.hs  2001-09-09 
03:46:40.000000000 +0200
+++ new/http-api-data-0.7/test/Web/Internal/TestInstances.hs    2001-09-09 
03:46:40.000000000 +0200
@@ -8,9 +8,9 @@
    , NoEmptyKeyForm(..)
    ) where
 
-import           Control.Applicative
+import           Control.Applicative  -- for ghc < 9.6
 import           Data.Char
-import qualified Data.HashMap.Strict  as HashMap
+import qualified Data.Map.Strict      as Map
 import qualified Data.Text            as T
 import           Data.Time.Compat
 import           GHC.Exts             (fromList)
@@ -63,4 +63,4 @@
 instance Arbitrary NoEmptyKeyForm where
   arbitrary = NoEmptyKeyForm . removeEmptyKeys <$> arbitrary
     where
-      removeEmptyKeys (Form m) = Form (HashMap.delete "" m)
+      removeEmptyKeys (Form m) = Form (Map.delete "" m)

++++++ http-api-data.cabal ++++++
cabal-version:   1.12
name:            http-api-data
version:         0.7
x-revision: 1

synopsis:        Converting to/from HTTP API data like URL pieces, headers and 
query parameters.
category:        Web
description:
  This package defines typeclasses used for converting Haskell data types to 
and from HTTP API data.
  .
  Please see README.md

license:         BSD3
license-file:    LICENSE
author:          Nickolay Kudasov <[email protected]>
maintainer:      Nickolay Kudasov <[email protected]>
homepage:        http://github.com/fizruk/http-api-data
stability:       unstable
build-type:      Simple

extra-source-files:
  test/*.hs
  CHANGELOG.md
  README.md

tested-with:
  GHC==8.6.5,
  GHC==8.8.4,
  GHC==8.10.7,
  GHC==9.0.2,
  GHC==9.2.8,
  GHC==9.4.8,
  GHC==9.6.7,
  GHC==9.8.4,
  GHC==9.10.1,
  GHC==9.12.2

flag use-text-show
  description: Use text-show library for efficient ToHttpApiData 
implementations.
  default: False
  manual: True

library
    hs-source-dirs: src/

    -- GHC bundled
    build-depends:   base                  >= 4.12.0.0 && < 4.23
                   , bytestring            >= 0.10.8.2 && < 0.13
                   , containers            >= 0.6.0.1  && < 0.9
                   , text                  >= 1.2.3.0  && < 1.3 || >=2.0 && <2.2

    -- other-dependencies
    build-depends:
                     cookie                >= 0.5.1    && < 0.6
                   , hashable              >= 1.4.4.0  && < 1.6
                   , http-types            >= 0.12.4   && < 0.13
                   , text-iso8601          >= 0.1.1    && < 0.2
                   , tagged                >= 0.8.8    && < 0.9
                   , time-compat           >= 1.9.5    && < 1.10
                   , uuid-types            >= 1.0.6    && < 1.1

    if flag(use-text-show)
      cpp-options: -DUSE_TEXT_SHOW
      build-depends: text-show        >= 3.10.5 && <3.12

    exposed-modules:
      Web.HttpApiData
      Web.FormUrlEncoded
      Web.Internal.FormUrlEncoded
      Web.Internal.HttpApiData
    ghc-options:     -Wall
    default-language: Haskell2010

test-suite spec
    type:          exitcode-stdio-1.0
    main-is:       Spec.hs
    other-modules:
      Web.Internal.FormUrlEncodedSpec
      Web.Internal.HttpApiDataSpec
      Web.Internal.TestInstances
    hs-source-dirs: test
    ghc-options:   -Wall
    default-language: Haskell2010
    build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.12
    -- inherited  depndencies
    build-depends:
                     base
                   , bytestring
                   , cookie
                   , http-api-data
                   , text
                   , time-compat
                   , containers
                   , uuid-types

    build-depends:   hspec                >= 2.7.1    && <2.12
                   , QuickCheck           >= 2.13.1   && <2.16
                   , quickcheck-instances >= 0.3.25.2 && <0.4

source-repository head
  type:     git
  location: https://github.com/fizruk/http-api-data

Reply via email to