packages feed

eventium-postgresql 0.6.1 → 0.7.0

raw patch · 3 files changed

+16/−7 lines, 3 filesdep ~eventium-coredep ~eventium-sql-commonPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: eventium-core, eventium-sql-common

API changes (from Hackage documentation)

- Eventium.ProjectionCache.Postgresql: postgresqlGlobalProjectionCache :: forall (m :: Type -> Type). MonadIO m => ProjectionName -> ProjectionCache () SequenceNumber JSONString (SqlPersistT m)
+ Eventium.ProjectionCache.Postgresql: postgresqlGlobalProjectionCache :: forall (m :: Type -> Type). MonadIO m => ProjectionName -> ProjectionCache () SequenceNumber (SqlPersistT m) JSONString
- Eventium.ProjectionCache.Postgresql: postgresqlVersionedProjectionCache :: forall (m :: Type -> Type). MonadIO m => ProjectionName -> ProjectionCache UUID EventVersion JSONString (SqlPersistT m)
+ Eventium.ProjectionCache.Postgresql: postgresqlVersionedProjectionCache :: forall (m :: Type -> Type). MonadIO m => ProjectionName -> ProjectionCache UUID EventVersion (SqlPersistT m) JSONString
- Eventium.Store.Postgresql: sqlGlobalProjectionCache :: forall (m :: Type -> Type). MonadIO m => ProjectionName -> ProjectionCache () SequenceNumber JSONString (SqlPersistT m)
+ Eventium.Store.Postgresql: sqlGlobalProjectionCache :: forall (m :: Type -> Type). MonadIO m => ProjectionName -> ProjectionCache () SequenceNumber (SqlPersistT m) JSONString
- Eventium.Store.Postgresql: sqlVersionedProjectionCache :: forall (m :: Type -> Type). MonadIO m => ProjectionName -> ProjectionCache UUID EventVersion JSONString (SqlPersistT m)
+ Eventium.Store.Postgresql: sqlVersionedProjectionCache :: forall (m :: Type -> Type). MonadIO m => ProjectionName -> ProjectionCache UUID EventVersion (SqlPersistT m) JSONString

Files

CHANGELOG.md view
@@ -1,5 +1,14 @@ # eventium-postgresql Changelog +## 0.7.0++### Breaking changes++- `ProjectionCache` type parameters reordered to put the monad before the payload+  (`ProjectionCache key position m encoded`; `GlobalProjectionCache m encoded`,+  `VersionedProjectionCache m encoded`), following the `eventium-core` change —+  behaviour unchanged, update explicit type signatures.+ ## 0.6.1  - Raise `base` lower bound to `>= 4.20` (GHC 9.10) to match the supported toolchain.
eventium-postgresql.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           eventium-postgresql-version:        0.6.1+version:        0.7.0 synopsis:       Postgres implementations for eventium description:    Eventium-postgresql provides a PostgreSQL-based event store implementation for the Eventium event                 sourcing framework. It uses the Persistent library for type-safe database access and provides@@ -49,8 +49,8 @@       aeson >=1.5 && <2.3     , base >=4.20 && <5     , bytestring >=0.10 && <0.13-    , eventium-core >=0.6.1 && <0.7.0-    , eventium-sql-common >=0.6.1 && <0.7.0+    , eventium-core >=0.7.0 && <0.8.0+    , eventium-sql-common >=0.7.0 && <0.8.0     , mtl >=2.2 && <2.4     , persistent >=2.14 && <2.18     , text >=1.2 && <2.2@@ -82,8 +82,8 @@     , aeson >=1.5 && <2.3     , base >=4.20 && <5     , bytestring >=0.10 && <0.13-    , eventium-core >=0.6.1 && <0.7.0-    , eventium-sql-common >=0.6.1 && <0.7.0+    , eventium-core >=0.7.0 && <0.8.0+    , eventium-sql-common >=0.7.0 && <0.8.0     , eventium-testkit     , hspec     , mtl >=2.2 && <2.4
src/Eventium/ProjectionCache/Postgresql.hs view
@@ -21,7 +21,7 @@ postgresqlVersionedProjectionCache ::   (MonadIO m) =>   ProjectionName ->-  ProjectionCache UUID EventVersion JSONString (SqlPersistT m)+  ProjectionCache UUID EventVersion (SqlPersistT m) JSONString postgresqlVersionedProjectionCache = sqlVersionedProjectionCache  -- | PostgreSQL-backed 'ProjectionCache' for global blob snapshots.@@ -29,7 +29,7 @@ postgresqlGlobalProjectionCache ::   (MonadIO m) =>   ProjectionName ->-  ProjectionCache () SequenceNumber JSONString (SqlPersistT m)+  ProjectionCache () SequenceNumber (SqlPersistT m) JSONString postgresqlGlobalProjectionCache = sqlGlobalProjectionCache  -- | PostgreSQL-backed 'CheckpointStore' for tracking subscription position.