http4s icon indicating copy to clipboard operation
http4s copied to clipboard

Replace deprecated `UnixSockets`, `SocketGroup` usages with `Network[F]` (Scala Native 0.5.x)

Open arashi01 opened this issue 1 month ago • 5 comments

  • Updates for fs2 3.13.x. Replaces deprecated fs2 UnixSockets, SocketGroup etc with Network[F] based APIs in all internal implementation code.
  • Replaces cats-effect deprecated Hotswap with NonEmptyHotswap
  • Deprecates public methods containing deprecated APIs in their signature

Blocked by #7708 (Requires Scala Native 0.5.x due to dependencies availability - was originally a 0.5.x support branch. Should wait until #7708 is merged, and will resolve conflicts)

arashi01 avatar Nov 04 '25 10:11 arashi01

Thanks! There's a topic/0.23/sn-0.5 branch in this repo that has the prior work to get onto Scala Native. Maybe this should target that branch. That gives a place to start resolving conflicts and make sure the pieces fit. And if we can keep that branch green, we'll be ready to merge it once its dependencies are stable.

rossabaker avatar Nov 10 '25 18:11 rossabaker

Maybe this should target that branch.

In fact, I think similar work was already done on that branch.

  • https://github.com/http4s/http4s/pull/7675

armanbilge avatar Nov 10 '25 18:11 armanbilge

I haven't studied how #7708 relates to that local topic branch, but I think that should be the target for all Scala Native preparation while it still has unstable dependencies.

rossabaker avatar Nov 10 '25 20:11 rossabaker

@armanbilge Looks like you're right. Hadn't noticed that branch either beforehand.

arashi01 avatar Nov 11 '25 10:11 arashi01

@rossabaker Given the above it probably makes sense to just close this pr then. If there are any useful additions here can isolate them into separate changes and target the correct branch.

arashi01 avatar Nov 11 '25 10:11 arashi01