Skip to content

v1.1.0-M2

Pre-release
Pre-release
Compare
Choose a tag to compare
@mpilquist mpilquist released this 06 Sep 05:03

This is the second milestone release for FS2 1.1.0. The fs2-core project is almost fully backwards compatible with the previous releases in the 1.0.x series but it depends on cats-effect 2.0.0-RC2, which has a few small API changes.

Most importantly, this release revamps the bracketing/scoping mechanism to more closely align with expectations. Specifically, resources are now promptly released immediately after the bracket in which they were acquired -- for example, Stream.bracket(r)(f) ++ s now guarantees that f is run before s is evaluated. As a result of this change, the scope method on Stream has been removed. When upgrading, it can safely be deleted. For (much) more detail, see #1574.

This release is built for Scala 2.11, 2.12, and 2.13. The milestone cycle will be very short, with a final release coming right after cats-core 2.0 and cats-effect 2.0, likely in about a week.

The following notable changes are included:

  • Changed resource finalization behavior to be as eager as possible (#1574)
  • Added Stream.evals and Stream.evalSeq (#1582)
  • Added significant new functionality to fs2.io.file package (#1540 #1541)
  • Added support for new socket options (#1549)
  • Changed Chunk#scanLeft to match stdlib behavior (#1544)
  • Improved type inference of Stream.fromIterator (#1536)
  • More type class instances for Chunk (#1517)
  • Added combinators for working with scodec-bits (#1514)
  • Changed Pull#stream to require result to to be Unit (#1512)
  • Added fs2.io.file.tail for tailing a file (#1506)
  • Added Stream#compile.toMap for compiling a stream to a map (#1509)
  • Changed internals of Stream for memory efficiency (#1528)

For a full list of changes in 1.1.0, see: https://github.com/functional-streams-for-scala/fs2/pulls?q=is%3Apr+milestone%3A1.1.0+is%3Aclosed

Thanks to the following contributors:

git shortlog -sn --no-merges "v1.1.0-M1".."v1.1.0-M2"
    15  Scala Steward
    14  Michael Pilquist
    12  Diego E. Alonso-Blas
     7  shn-amn
     5  Ikrom
     4  Jakub Kozłowski
     4  Luka Jacobowitz
     4  Yannick Heiber
     4  GabrielAsman
     2  Fabio Labella
     2  Tim Fisken
     2  Diego E. Alonso Blas
     2  zakolenko
     1  Luis Miguel Mejía Suárez
     1  Georgi Krastev
     1  Lucas Satabin
     1  Andrew Bushmin