Skip to content

Commit 5b626e5

Browse files
committed
FaCodec a15 Equinox a20
1 parent d626304 commit 5b626e5

File tree

9 files changed

+11
-13
lines changed

9 files changed

+11
-13
lines changed

src/Propulsion.CosmosStore/CosmosStoreSink.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module private Impl =
3232
#else
3333
module StreamSpan =
3434

35-
let toNativeEventBody (x: EventBody): Equinox.CosmosStore.Core.EncodedBody = FsCodec.SystemTextJson.Encoding.OfEncodedUtf8 x
35+
let toNativeEventBody (x: EventBody): Equinox.CosmosStore.Core.EncodedBody = FsCodec.SystemTextJson.Encoding.OfUtf8Encoded x
3636
#endif
3737

3838
module Internal =

src/Propulsion.CosmosStore/Propulsion.CosmosStore.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<ItemGroup>
2222
<PackageReference Include="MinVer" Version="5.0.0" PrivateAssets="All" />
2323

24-
<PackageReference Include="Equinox.CosmosStore" Version="4.1.0-alpha.19" />
25-
<PackageReference Include="FsCodec.SystemTextJson" Version="3.0.4-alpha.0.14" />
24+
<PackageReference Include="Equinox.CosmosStore" Version="4.1.0-alpha.20" />
25+
<PackageReference Include="FsCodec.SystemTextJson" Version="3.0.4-alpha.0.15" />
2626
</ItemGroup>
2727

2828
<ItemGroup>

src/Propulsion.CosmosStore3/Propulsion.CosmosStore3.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<PackageReference Include="MinVer" Version="5.0.0" PrivateAssets="All" />
4040

4141
<PackageReference Include="Equinox.CosmosStore" Version="[3.0.7, 3.99.0]" />
42-
<PackageReference Include="FsCodec" Version="3.0.4-alpha.0.14" />
42+
<PackageReference Include="FsCodec" Version="3.0.4-alpha.0.15" />
4343
<PackageReference Include="FSharp.Control.TaskSeq" Version="0.4.0" />
4444
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.27.0" ExcludeAssets="contentfiles" />
4545
</ItemGroup>

src/Propulsion.DynamoStore/Propulsion.DynamoStore.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<PackageReference Include="MinVer" Version="5.0.0" PrivateAssets="All" />
2828

2929
<PackageReference Include="Equinox.DynamoStore" Version="4.0.0" />
30-
<PackageReference Include="FsCodec.SystemTextJson" Version="3.0.4-alpha.0.14" />
30+
<PackageReference Include="FsCodec.SystemTextJson" Version="3.0.4-alpha.0.15" />
3131
</ItemGroup>
3232

3333
<ItemGroup>

src/Propulsion.MemoryStore/MemoryStoreSource.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ and MemoryStoreMonitor internal (log: Serilog.ILogger, positions: TranchePositio
125125

126126
/// Coordinates forwarding of a VolatileStore's Committed events to a supplied Sink
127127
/// Supports awaiting the (asynchronous) handling by the Sink of all Committed events from a given point in time
128-
type MemoryStoreSource(log, store: Equinox.MemoryStore.VolatileStore<FsCodec.EncodedBody>, categoryFilter, sink) =
129-
inherit MemoryStoreSource<FsCodec.EncodedBody>(log, store, categoryFilter, id, sink)
128+
type MemoryStoreSource(log, store: Equinox.MemoryStore.VolatileStore<FsCodec.Encoded>, categoryFilter, sink) =
129+
inherit MemoryStoreSource<FsCodec.Encoded>(log, store, categoryFilter, id, sink)
130130
new(log, store, categories, sink) =
131131
MemoryStoreSource(log, store, (fun x -> Array.contains x categories), sink)

src/Propulsion.SqlStreamStore/SqlStreamStoreSource.fs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
namespace Propulsion.SqlStreamStore
22

3-
module EncodedBody = let bytes ((_t, d): FsCodec.EncodedBody) = d.Length
4-
53
module private Impl =
64

75
let private toStreamEvent (dataJson: string) struct (sn, msg: SqlStreamStore.Streams.StreamMessage): Propulsion.Sinks.StreamEvent =
86
let c = msg.Type
97
let d = dataJson |> NotNull.map System.Text.Encoding.UTF8.GetBytes |> FsCodec.Encoding.OfBlob
108
let m = msg.JsonMetadata |> NotNull.map System.Text.Encoding.UTF8.GetBytes |> FsCodec.Encoding.OfBlob
11-
let sz = c.Length + EncodedBody.bytes d + EncodedBody.bytes m
9+
let sz = c.Length + FsCodec.Encoding.ByteCount d + FsCodec.Encoding.ByteCount m
1210
sn, FsCodec.Core.TimelineEvent.Create(msg.StreamVersion, c, d, m, msg.MessageId, timestamp = System.DateTimeOffset(msg.CreatedUtc), size = sz)
1311
let private readWithDataAsStreamEvent (struct (_sn, msg: SqlStreamStore.Streams.StreamMessage) as m) ct = task {
1412
let! json = msg.GetJsonData(ct)

src/Propulsion/Propulsion.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<ItemGroup>
3333
<PackageReference Include="MinVer" Version="5.0.0" PrivateAssets="All" />
3434

35-
<PackageReference Include="FsCodec" Version="3.0.4-alpha.0.14" />
35+
<PackageReference Include="FsCodec" Version="3.0.4-alpha.0.15" />
3636
<!-- NOTE this transitively implies a min FSharp.Core 6.0.1 dependency (was 6.0.0 before) -->
3737
<PackageReference Include="FSharp.Control.TaskSeq" Version="0.4.0" />
3838
<PackageReference Include="MathNet.Numerics" Version="4.15.0" />

src/Propulsion/Sinks.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ open Propulsion.Internal
55
open System
66

77
/// Canonical Data/Meta type supplied by the majority of Sources
8-
type EventBody = FsCodec.EncodedBody
8+
type EventBody = FsCodec.Encoded
99

1010
/// Timeline Event with Data/Meta in the default format
1111
type Event = FsCodec.ITimelineEvent<EventBody>

tests/Propulsion.MessageDb.Integration/Propulsion.MessageDb.Integration.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</ItemGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="FsCodec.SystemTextJson" Version="3.0.4-alpha.0.14" />
12+
<PackageReference Include="FsCodec.SystemTextJson" Version="3.0.4-alpha.0.15" />
1313
<PackageReference Include="TypeShape" Version="10.0.0" />
1414
</ItemGroup>
1515
<ItemGroup>

0 commit comments

Comments
 (0)