Skip to content

Commit

Permalink
Target FsCodec 2.0.0-rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Jan 31, 2020
1 parent b46c9f5 commit 6996dfb
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The `Unreleased` section name is replaced by the expected version of next releas
### Changed

- `SqlStreamStore`.*: Target `SqlStreamStore` v `1.2.0-beta.8`
- Target `FsCodec` v `2.0.0-rc2`
- Target `FsCodec` v `2.0.0-rc3`
- Target `Microsoft.SourceLink.GitHub`, `Microsoft.NETFramework.ReferenceAssemblies` v `1.0.0`
- Samples etc target `Argu` v `6.0.0`
- `eqx dump`'s `-J` switch now turns off JSON rendering
Expand Down
4 changes: 2 additions & 2 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ A final consideration to mention is that, even when correct idempotent handling
type Service(log, resolve, ?maxAttempts) =
let streamFor (clientId: string) =
let aggregateId = Equinox.AggregateId("Favorites", clientId)
let stream = resolve aggregateId
let streamName = FsCodec.StreamName.create "Favorites" clientId
let stream = resolve streamName
Equinox.Stream(log, stream, defaultArg maxAttempts 3)
let execute clientId command : Async<unit> =
Expand Down
2 changes: 1 addition & 1 deletion samples/Store/Domain/Domain.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' == 'net461' " />
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />

<PackageReference Include="FsCodec.NewtonsoftJson" Version="2.0.0-rc2" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="2.0.0-rc3" />
<PackageReference Include="FSharp.UMX" Version="1.0.0" />
</ItemGroup>

Expand Down
1 change: 1 addition & 0 deletions samples/Tutorial/AsAt.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#r "Serilog.dll"
#r "Serilog.Sinks.Console.dll"
#r "Newtonsoft.Json.dll"
#r "FSharp.UMX.dll"
#r "FsCodec.dll"
#r "Equinox.Core.dll"
#r "Equinox.dll"
Expand Down
1 change: 1 addition & 0 deletions samples/Tutorial/Cosmos.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#r "TypeShape.dll"
#r "Equinox.dll"
#r "Equinox.Core.dll"
#r "FSharp.UMX.dll"
#r "FsCodec.dll"
#r "FsCodec.NewtonsoftJson.dll"
#r "FSharp.Control.AsyncSeq.dll"
Expand Down
1 change: 1 addition & 0 deletions samples/Tutorial/Counter.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#r "Equinox.dll"
#r "Equinox.MemoryStore.dll"
#r "TypeShape.dll"
#r "FSharp.UMX.dll"
#r "FsCodec.dll"
#r "FsCodec.NewtonsoftJson.dll"

Expand Down
9 changes: 5 additions & 4 deletions samples/Tutorial/Favorites.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#r "Serilog.Sinks.Console.dll"
#r "Equinox.dll"
#r "Equinox.MemoryStore.dll"
#r "FSharp.UMX.dll"
#r "FSCodec.dll"

(*
Expand Down Expand Up @@ -86,8 +87,8 @@ open Serilog
let log = LoggerConfiguration().WriteTo.Console().CreateLogger()

// related streams are termed a Category; Each client will have it's own Stream.
let categoryName = "Favorites"
let clientAFavoritesStreamId = Equinox.AggregateId(categoryName,"ClientA")
let categoryId = "Favorites"
let clientAFavoritesStreamId = FsCodec.StreamName.create categoryId "ClientA"

// For test purposes, we use the in-memory store
let store = Equinox.MemoryStore.VolatileStore()
Expand Down Expand Up @@ -133,8 +134,8 @@ handler.Read |> Async.RunSynchronously
type Service(log, resolve) =
(* See Counter.fsx and Cosmos.fsx for a more compact representation which makes the Handler wiring less obtrusive *)
let streamFor (clientId: string) =
let aggregateId = Equinox.AggregateId("Favorites", clientId)
let stream = resolve aggregateId
let streamName = FsCodec.StreamName.create "Favorites" clientId
let stream = resolve streamName
Handler(log, stream)

member __.Favorite(clientId, sku) =
Expand Down
1 change: 1 addition & 0 deletions samples/Tutorial/Todo.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#r "TypeShape.dll"
#r "Equinox.Core.dll"
#r "Equinox.dll"
#r "FSharp.UMX.dll"
#r "FsCodec.dll"
#r "FsCodec.NewtonsoftJson.dll"
#r "FSharp.Control.AsyncSeq.dll"
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.Cosmos/Equinox.Cosmos.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' != 'netstandard2.0' " />
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />

<PackageReference Include="FsCodec.NewtonsoftJson" Version="2.0.0-rc2" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="2.0.0-rc3" />
<PackageReference Include="FSharp.Control.AsyncSeq" Version="2.0.21" />
<PackageReference Include="Microsoft.Azure.DocumentDB" Version="2.2.0" Condition=" '$(TargetFramework)' != 'netstandard2.0' " />
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.2.0" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.EventStore/Equinox.EventStore.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />

<PackageReference Include="EventStore.Client" Version="5.0.1" />
<PackageReference Include="FsCodec" Version="2.0.0-rc2" />
<PackageReference Include="FsCodec" Version="2.0.0-rc3" />
<PackageReference Include="FSharp.Control.AsyncSeq" Version="2.0.21" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.MemoryStore/Equinox.MemoryStore.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />

<!-- only uses FsCodec.Box, which happens to be houses in the NewtonsoftJson package-->
<PackageReference Include="FsCodec.NewtonsoftJson" Version="2.0.0-rc2" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="2.0.0-rc3" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Equinox.SqlStreamStore/Equinox.SqlStreamStore.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' == 'net461' " />
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />

<PackageReference Include="FsCodec" Version="2.0.0-rc2" />
<PackageReference Include="FsCodec" Version="2.0.0-rc3" />
<PackageReference Include="FSharp.Control.AsyncSeq" Version="2.0.21" />
<PackageReference Include="SqlStreamStore" Version="1.2.0-beta.8" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<ItemGroup>
<PackageReference Include="FsCheck.xUnit" Version="2.14.0" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="2.0.0-rc2" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="2.0.0-rc3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="Serilog.Sinks.Seq" Version="4.0.0" />
<Reference Include="System.Runtime.Caching" Condition=" '$(TargetFramework)' != 'netstandard2.0'" />
Expand Down

0 comments on commit 6996dfb

Please sign in to comment.