ZIO v1.0.0-RC14 Release Notes
Release Date: 2019-10-04 // over 4 years ago-
Notable changes
ZIO
- โ Add tests of serialization for all ZIO data types and make
Promise
serializable (#1771) by @jakubjanecek - Implement raceAll without folding with
race
(#1424) by @chikei - Parameterized environment on
zio.Canceler
(#1763) by @ajaychandran - ๐ฆ Expose
Executor
asExecutorService
(#1745) by @jczuchnowski - Suspend
ZIO.as
&ZStream.as
again (#1822) by @neko-kai - ๐ Fix #785, Fix #1441, prevent race condition on
interrupted
variable by movinginterrupted
into atomic state (#1792) by @neko-kai - โ Add
CancelableFuture
(#1655) by @fsvehla - Prevent
ZIO.option
from catching unchecked errors (#1870) by @darl - Implement
ZIO#timeoutFork
(#1856) by @adamgfraser - โ Add Meta Subtype to Cause (#1706) by @adamgfraser
- ๐ Make everything private that can / should be private (#1751) by @zezutom
- ๐ Allow custom behavior on inheritFiberRefs (#1879) by @mschuwalow
- ๐ Make sure that
FiberRef
s are inherited inZIO.raceAll
(#1902) by @mlangc
โ ZIO Test
๐ In this release the internal representation of
Spec
has been changed to make allSpec
s effectual. This allows for performing effects on groups of tests in additional to individual tests. We expect this will not require any changes from most users but may be breaking for code that relies on some methods onSpec
or the particular encoding ofZSpec
. Please report any issues you notice!- [Breaking] Moved package
zio.test.mock
tozio.test.environment
(#1830) by @ioleo - [Breaking] Renamed
MockConsole
,MockClock
,MockSystem
andMockRandom
toTest*
equivalents (within the moved package) (#1830) by @ioleo - โ Added mocking framework under
zio.test.mock
package (#1830) by @ioleo - ๐ Support shared managed resources (#1664) by @adamgfraser
- โ Added rendering of
zio.test.mock.MockException
defects inzio.test.DefaultTestReporter
(#1830) by @ioleo - โ
Make
failure
aTestAspect
(#1741) by @jaliss - โ Add interrupt deadline to
timeout
TestAspect (#1824) by @LGLO - โ
Simplify
TestAspect#around
(#1718) by @adamgfraser - ๐คก Harden
MockClock
(#1885) by @adamgfraser - โ Add fibertime to public api of
MockClock
(#1890) by @mschuwalow - Implement multiple parameter function generators (#1893) by @adamgfraser
- โ Add
Gen.anyUnicodeChar
(#1901) by @regiskuckaertz
ZIO Stream
- Port ZStream.fromInputStream to StreamEffect (#1772) by @jsilva
- ๐ Fix
Chunk.empty.toArray
throwsClassCastException
(#1797) by @wi101 - โ Add a method for converting
ZStream[Byte]
to aZManaged[java.io.InputStream]
(#1784) by @sideeffffect - โ Add
ZManaged.switchable
(#1810) by @iravid - Implement pure
ZSink.ignoreWhile
(#1820) by @vasilmkd - Clear up some
Chunk
hotspots(#1825) by @iravid - Back presssure in
ZStream.effectAsync*
(#1855) by @darl - โฌ๏ธ Reduce allocations in
ZStream#unTake
(#1861) by @vasilmkd - โ Add
ZStream#toQueueUnbounded
(#1860) by @vasilmkd - โ Add
ChunkN
toZStream
(#1795) by @LukaszByczynski - โก๏ธ Optimize
ChunkN
(#1881) by @mvv - โ Add ZStream combinators for dropping/sliding buffers (#1685) by @vasilmkd
- Align StreamChunk and Chunk's foldings methods with ZStream (#1778) by @kamilkloch
๐ Documentation
- โ Add tests of serialization for all ZIO data types and make