Twitter Util v19.11.0 Release Notes

Release Date: 2019-11-06 // over 4 years ago
  • ๐Ÿ†• New Features

    
    * ๐Ÿ‘ util: Add initial support for JDK 11 compatibility. ``PHAB_ID=D365075``
    
    * util-core: Created public method Closable.stopCollectClosablesThread that stops CollectClosables
    thread. ``PHAB_ID=D382800``
    
    * util-core: Introduced `Reader.fromIterator` to create a Reader from an iterator. It is not
    recommended to call `iterator.next()` after creating a `Reader` from it. Doing so will affect the
    behavior of `Reader.read()` because it will skip the value returned from `iterator.next`.
    ``PHAB_ID=D391769``
    
    โš™ Runtime Behavior Changes
    
    • โฌ†๏ธ util: Upgrade to caffeine 2.8.0 PHAB_ID=D384592

    • util-jvm: Stop double-exporting postGC stats under both jvm and jvm/mem. These are now only exported under jvm/mem/postGC. PHAB_ID=D392230

    ๐Ÿ’ฅ Breaking API Changes

    
    * util-stats: abstract methods of StatsReceiver now take Schemas. The old APIs
      are now final and cannot be overriden. For custom implementations, define
      schema based methods (eg, counter(verbosity, name) is now
      counter(CounterSchema)). NB: users can continue to call the old interface;
      only implementors must migrate.``PHAB_ID=D385068``
    
    * ๐Ÿšš util-core: Removed `c.t.io.Pipe.copyMany` (was `Reader.copyMany`). Use `AsyncStream.foreachF`
      link to `Pipe.copy` for substitution. ``PHAB_ID=D396590``
    
    * util-core: Add `c.t.io.BufReader.readAll` to consume a `Reader[Buf]` and concat values to a Buf.
      Replace `c.t.io.Reader.readAll` with `Reader.readAllItems`, the new API consumes a generic Reader[T],
      and return a Seq of items. ``PHAB_ID=D391346``
    
    * ๐Ÿšš util-core: Moved `c.t.io.Reader.chunked` to `c.t.io.BufReader.chunked`, and `Reader.framed` to
      `BufReader.framed`. ``PHAB_ID=D392198``
    
    * ๐Ÿšš util-core: Moved `c.t.io.Reader.copy` to `c.t.io.Pipe.copy`, and `Reader.copyMany` to
      `Pipe.copyMany`. ``PHAB_ID=D393650``
    
    ๐Ÿ—„ Deprecations
    ~~~~~~~~~~~~
    
    * util-core: Mark `c.t.io.BufReaders`, `c.t.io.Bufs`, `c.t.io.Readers`, and `c.t.io.Writers` as
      Deprecated. These classes will no longer be needed, and will be removed, after 2.11 support is
      dropped. ``PHAB_ID=D393913``
    
    * ๐Ÿšš util-stats: Removed deprecated methods `stat0` and `counter0` from `StatsReceiver`. ``PHAB_ID=D393063``