Skip to content

v1.0.0.0-RC24

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Feb 10:08
· 1067 commits to main since this release
4b760b4

Highlights

  • Websocket Client Support

      val url = "ws://localhost:8090/subscriptions"
      val app = Socket
        .collect[WebSocketFrame] {
          case WebSocketFrame.Text("BAZ") => ZStream.succeed(WebSocketFrame.close(1000))
          case frame                      => ZStream.succeed(frame)
        }
        .toSocketApp
        .connect(url) // creates a socket connection on the provided URL

💥 Breaking Changes

  • Drop toZIO and wrapZIO APIs

    private val app =
        Http.collectZIO[Request] {
          case Method.GET -> !! / "greet" / name  => UIO(Response.text(s"Greetings ${name}!"))
        }
  • Rename asString to encode in Scheme

    sealed trait Scheme { self =>
      def encode: String = Scheme.asString(self)
    }
  • Rename getHeaders to headers in ClientRequest

    final case class ClientRequest(
        method: Method,
        url: URL,
        headers: Headers = Headers.empty,
        data: HttpData = HttpData.empty,
        private val channelContext: ChannelHandlerContext = null,
      )
  • Remove get prefix from Public APIs

    Previous Current
    getBodyAsByteBuf bodyAsByteBuf
    getBodyAsString bodyAsString
    getBody body
    getHeaders headers
    getStatus status
    getStatus status
  • Rename asString to encode in URL

    def encode: String = ...
  • silent is removed from Http and HttpApp

Changes

🚀 Features

🐛 Bug Fixes

🧰 Maintenance

New Contributors

Full Changelog: v1.0.0.0-RC23...v1.0.0.0-RC24