eventsource-stub-store 1.0.1 → 1.0.2
raw patch · 6 files changed
+18/−9 lines, 6 filesdep +aesondep ~eventsource-apidep ~protoludePVP ok
version bump matches the API change (PVP)
Dependencies added: aeson
Dependency ranges changed: eventsource-api, protolude
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- eventsource-stub-store.cabal +5/−3
- library/EventSource/Store/Stub.hs +2/−2
- package.yaml +4/−2
- stack.yaml +2/−1
- test-suite/Test/EventSource/Event.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,7 @@+1.0.2+=====+ = Fix Stackkage build+ 1.0.1 ===== * Support changes in api.
eventsource-stub-store.cabal view
@@ -1,9 +1,9 @@--- This file has been generated from package.yaml by hpack version 0.15.0.+-- This file has been generated from package.yaml by hpack version 0.17.1. -- -- see: https://github.com/sol/hpack name: eventsource-stub-store-version: 1.0.1+version: 1.0.2 synopsis: An in-memory stub store implementation. description: An in-memory stub store implementation. category: Eventsourcing@@ -35,7 +35,7 @@ build-depends: base >=4.9 && <5 , eventsource-api >=1.1- , protolude >=0.1.10 && <0.2+ , protolude >=0.1.10 && <0.3 , containers , mtl , stm@@ -56,6 +56,8 @@ , tasty , tasty-hspec , protolude+ , aeson+ , eventsource-api other-modules: Test.EventSource.Event Test.EventSource.Store.Stub
library/EventSource/Store/Stub.hs view
@@ -176,12 +176,12 @@ return nextNum - readBatch StubStore{..} name (Batch from _) = liftIO $ async $ atomically $ do+ readBatch StubStore{..} name (Batch start _) = liftIO $ async $ atomically $ do streamMap <- readTVar _streams case M.lookup name streamMap of Nothing -> return $ ReadFailure StreamNotFound Just stream -> do- let events = S.filter ((>= from) . eventNumber) $ streamEvents stream+ let events = S.filter ((>= start) . eventNumber) $ streamEvents stream slice = Slice { sliceEvents = toList events , sliceEndOfStream = True , sliceNextEventNumber = streamNextNumber stream
package.yaml view
@@ -17,7 +17,7 @@ dependencies: - base >=4.9 && <5 - eventsource-api >=1.1- - protolude >=0.1.10 && <0.2+ - protolude >=0.1.10 && <0.3 - containers - mtl - stm@@ -37,10 +37,12 @@ - tasty - tasty-hspec - protolude+ - aeson+ - eventsource-api ghc-options: - -rtsopts - -threaded - -with-rtsopts=-N main: Main.hs source-dirs: test-suite-version: '1.0.1'+version: '1.0.2'
stack.yaml view
@@ -15,7 +15,8 @@ # resolver: # name: custom-snapshot # location: "./custom-snapshot.yaml"-resolver: lts-7.14+resolver: nightly-2017-08-15+compiler: ghc-8.2.1 # User packages to be built. # Various formats can be used as shown in the example below.
test-suite/Test/EventSource/Event.hs view
@@ -14,9 +14,9 @@ module Test.EventSource.Event where ---------------------------------------------------------------------------------import ClassyPrelude import Data.Aeson.Types import EventSource+import Protolude -------------------------------------------------------------------------------- newtype TestEvent = TestEvent Int deriving (Eq, Show)