Releases: softwaremill/sttp
Releases · softwaremill/sttp
v2.2.6
What’s Changed
- Update zipkin-sender-okhttp3 to 2.15.1 (#663) @scala-steward
- Update monix-nio to 0.0.9 (#664) @scala-steward
- Update sbt-projectmatrix to 0.6.0 (#667) @scala-steward
- Fix handling of utf-8 responses in scala-native (#669) @sujeet
- Update finagle-http to 20.8.1 (#670) @scala-steward
- Update scalatest to 3.2.2 (#665) @scala-steward
v2.2.5
What’s Changed
- Add a ZIO-style Service type for idiomaticity points (#661) @kitlangton
- Update zio, zio-streams to 1.0.1 (#662) @scala-steward
- Update sbt-jsdependencies to 1.0.2 (#660) @scala-steward
- Update sbt-mdoc to 2.2.5 (#658) @scala-steward
- Update finagle-http to 20.8.0 (#655) @scala-steward
- Update http4s-blaze-client to 0.21.7 (#654) @scala-steward
- Update sbt-mdoc to 2.2.4 (#653) @scala-steward
v2.2.4
What’s Changed
- Upgrade ZIO dependencies to 1.0.0 (#648) @ghostdogpr
- Update zio-opentracing to 0.7.0 (#647) @scala-steward
- Update okhttp to 4.8.1 (#652) @scala-steward
sttp-client v2.0.0
Major changes
- renamed the group id from
com.softwaremill.sttp
tocom.softwaremill.sttp.client
(organization) - renamed the main package from
com.softwaremill.sttp
tosttp.client
(see #288) - renamed initial request from
sttp
tobasicRequest
- reworked response-as (see #284)
asString
now is anEither[String, String]
not aString
(no assumptions as to the error type)- all json integrations return an
Either[ResponseError, B]
body
- added websocket support
See also:
- migrating to sttp client 2.x and tapir 2.x
- sttp2: an overview of proposed changes
- Websockets in Scala using sttp
Minor changes
- removed Request.parseResponseIf
- removed Response.unsafeBody
- redirect loops now throw an exception
- reduce import conflicts with cats:
- rename Id to Identity (to make working w/ cats easier)
- move MonadError to another package
- cats, zio, monix, scalaz backends now return results wrapped in IO/Task when creating a backend
- backend.close returns a
F[Unit]
- watch out if you are using lazy wrappers! StatusCode
is a proper typeHeader
is a proper typeMultipart
renamed to Part and generifiedasFile(overwrite)
- removed theoverwire
parameterQueryFragment(Encoding)
inUri
renamed toQuerySegment(Encoding)
Uri.parse
,Uri.apply
removed, replaced withsafeApply
uri"..."
without scheme throws exceptionSttpBackendStub
: instantiated using .stub on "real" backend companion object, instead of using an instance of the "real" backend
sttp client v2.0.0-RC1
Major changes
- renamed the group id from
com.softwaremill.sttp
tocom.softwaremill.sttp.client
(organization) - renamed the main package from
com.softwaremill.sttp
tosttp.client
(see #288) - renamed initial request from
sttp
tobasicRequest
- reworked response-as (see #284)
asString
now is anEither[String, String]
not aString
(no assumptions as to the error type)- all json integrations return an
Either[ResponseError, B]
body
- added websocket support
See also: sttp2: an overview of proposed changes and Websockets in Scala using sttp
Minor changes
- removed Request.parseResponseIf
- removed Response.unsafeBody
- redirect loops now throw an exception
- reduce import conflicts with cats:
- rename Id to Identity (to make working w/ cats easier)
- move MonadError to another package
- cats, zio, monix, scalaz backends now return results wrapped in IO/Task when creating a backend
- backend.close returns a
F[Unit]
- watch out if you are using lazy wrappers! StatusCode
is a proper typeHeader
is a proper typeMultipart
renamed to Part and generifiedasFile(overwrite)
- removed theoverwire
parameterQueryFragment(Encoding)
inUri
renamed toQuerySegment(Encoding)
Uri.parse
,Uri.apply
removed, replaced withsafeApply
v1.6.0
This release contains three major changes:
-
some modules are now published for 2.13:
core
(jvm & js),akka-http-backend
,scalaz
,async-http-client-future-backend
,async-http-client-scalaz-backend
,okhttp-backend
,json-common
,circe
,json4s
,spray-json
,play-json
,brave-backend
,prometheus-backend
-
one of the overload of the
RequestT.cookies
method now accepts aIterable[Cookie]
instead of aSeq[Cookie]
. -
the
async-http-client-cats
backend now requires an additionalContextShift[F]
. This is needed to shift to another threadpool after sending a request (see #217). Similarly, the-monix
backends now shift to the default threadpool aftersend()
.
v1.3.0-RC2
- scala-native backend by @pcejrowski, #73
- quick mode for REPLs by @lihaoyi, #125
- & of course bug fixes
v1.2.0-RC1
- Scala.JS support by @guymers, see the
FetchBackend
andFetchMonixBackend
: http://sttp.readthedocs.io/en/latest/backends/javascript/fetch.html - in case of an error response, it's not deserialized to a
String
by default. SeeResponse.rawErrorBody
andResponse.body
- to include a file in a multipart body, use the
multipartFile
builder method instead ofmultipart
Release 0.0.1
v0.0.1 New reformatter