Releases: pureharm/pureharm-rest
Releases · pureharm/pureharm-rest
0.5.0-M3
0.5.0-M2
First release with CE3 support!
dependency upgrades
For cats-effect 3 compatible modules:
For cats-effect 2 compatible modules:
0.5.0-M1
⚠️ breaking changes :warning
remodularize everything
Mostly source compatible, depending on all modules should allow you to use
the library as before.
"com.busymachines" %% "pureharm-endpoint-tapir"- now contains everything
tapirrelated needed to defineEndpoints, sans dependency onhttp4s
- now contains everything
"com.busymachines" %% "pureharm-endpoint-docs-tapir"- contains a simple helper method to print out YAML representation of OpenAPI
"com.busymachines" %% "pureharm-route-http4s-tapir"- contains everything
http4srelated, and required to transformtapirendpoints intohttp4sroutes
- contains everything
"com.busymachines" %% "pureharm-server-http4s"- depends on
http4s-blaze-server, contains helpers to run the server and bind ports, etc.
- depends on
source changes
- remove
PureharmHttp4sCirceInstances.pureharmHttps4sEntityJsonDecoder, and drop dependency onhttp4s-circebecause it was essentially unused. - remove
Http4sRoutes,RestDefsfromPureharmRouteTypeAliases(formerlyPureharmRestHttp4sTypeAliases), see deprecations section
deprecations
- deprecate
PureharmRestHttp4sTypeAliasesin favor ofPureharmRouteTypeAliases - deprecate
RestDefsin favor ofHttp4sRoutes, they are source compatible.
new features
- add
PureharmRouteAllImplicitstrait topureharm-route-http4s-tapir - add
fromEnpointhelper function inRestDefs - add
PureharmEndpointAllTypeAliases,PureharmEndpointAllImplicitsmixin traits topureharm-endpoint-tapir
internals
- bump scalafmt to
3.0.1 - bump sbt to
1.5.5 - bump sbt-spiewak to
0.22.0 - bump sbt-scalafmt to
2.4.3 - bump sbt-scalajs-crossproject to
1.1.0 - bump sbt-scalajs to
1.7.0
0.4.0
dependency upgrades
- pureharm-testkit
0.3.0 - pureharm-effects-cats
0.4.0
0.3.0
dependency upgrades
- http4s
0.21.21 - pureharm-core-anomaly
0.2.0 - pureharm-core-sprout
0.2.0 - pureharm-effects-cats
0.2.0 - pureharm-json-circe
0.2.0 - pureharm-testkit
0.2.0
0.2.0
Binary imcompatible w/ version 0.1.0 when using the sprout codecs.
-
add implicit resolution for tapir
PlainCodecs forSprout, andSproutRefinedThrowtypes.
previously these have been removed because compilation was exponentially bad, and inference bad
as well. Turns out, the trick was to put theNewTypeinstance first in the implicit parameter list,
not second to greatly improve type inference. Which makes sense, there is only one such instance,
while there could be many otherPlainCodecones.implicit def pureharmSproutTypeGenericPlainCodec[Old, New](implicit p: NewType[Old, New], // here c: tapir.Codec.PlainCodec[Old], //not here ): tapir.Codec.PlainCodec[New] = c.map[New](p.newType _)(p.oldType)
Version upgrades:
- bump
pureharm-json-circeto0.1.1