Skip to content

Releases: softwaremill/sttp

sttp-client v2.0.0

24 Feb 16:03
Compare
Choose a tag to compare

Major changes

  • renamed the group id from com.softwaremill.sttp to com.softwaremill.sttp.client (organization)
  • renamed the main package from com.softwaremill.sttp to sttp.client (see #288)
  • renamed initial request from sttp to basicRequest
  • reworked response-as (see #284)
    • asString now is an Either[String, String] not a String (no assumptions as to the error type)
    • all json integrations return an Either[ResponseError, B] body
  • added websocket support

See also:

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 type
  • Header is a proper type
  • Multipart renamed to Part and generified
  • asFile(overwrite) - removed the overwire parameter
  • QueryFragment(Encoding) in Uri renamed to QuerySegment(Encoding)
  • Uri.parse, Uri.apply removed, replaced with safeApply
  • uri"..." without scheme throws exception
  • SttpBackendStub: instantiated using .stub on "real" backend companion object, instead of using an instance of the "real" backend

sttp client v2.0.0-RC1

09 Nov 20:33
Compare
Choose a tag to compare

Major changes

  • renamed the group id from com.softwaremill.sttp to com.softwaremill.sttp.client (organization)
  • renamed the main package from com.softwaremill.sttp to sttp.client (see #288)
  • renamed initial request from sttp to basicRequest
  • reworked response-as (see #284)
    • asString now is an Either[String, String] not a String (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 type
  • Header is a proper type
  • Multipart renamed to Part and generified
  • asFile(overwrite) - removed the overwire parameter
  • QueryFragment(Encoding) in Uri renamed to QuerySegment(Encoding)
  • Uri.parse, Uri.apply removed, replaced with safeApply

v1.6.0

18 Jun 19:35
Compare
Choose a tag to compare

This release contains three major changes:

  1. 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

  2. one of the overload of the RequestT.cookies method now accepts a Iterable[Cookie] instead of a Seq[Cookie].

  3. the async-http-client-cats backend now requires an additional ContextShift[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 after send().

v1.3.0-RC2

24 Jul 12:35
Compare
Choose a tag to compare

v1.2.0-RC1

29 May 18:14
Compare
Choose a tag to compare

Release 0.0.1

20 Jul 13:00
Compare
Choose a tag to compare
v0.0.1

New reformatter