korio v2.0.0-rc2 Release Notes

Release Date: 2020-10-31 // about 1 year ago
  • v1.11.13...v2.0.0-rc2

    ⬆️ Bumps:

    • Kotlin 1.4.20-M1
    • Coroutines 1.4.0
    • Now depends on krypto

    Optimizations:

    • ⚡️ Json now supports optimizing numeric lists by building and returning a DoubleArrayList instead of a plain ArrayList with boxed Double
    • ⚡️ Optimized some stream readings
    • ⚡️ Greatly optimized asynchronous reading by not using AsyncThread

    ➕ Additions:

    • ➕ Added runBlockingNoJs
    • ➕ Added Signal2 to create a signal that receives two parameters
    • ➕ Added PathInfo.relativePathTo
    • ➕ Added VfsFile.relativePathTo
    • ➕ Added VfsFileFromData as a simplification for MemoryVfs with a single file
    • ↔ Integrate krypto hashing functions with korio Streams
    • Cancellable is now a functional interface
    • ➕ Added Environment.expand to expand %param% and ~
    • ➕ Added Resources, ResourcesContainer and Resourceable
    • ➕ Added AsyncOutputStream.writeTempBytes
    • ➕ Added high level AsyncInputStream.consume
    • 👌 Improved FastByteArrayInputStream with slicing support and more
    • ➕ Added redirect delegate using either RedirectMutableField or RedirectField

    🛠 Fixes:

    • 🛠 Some YAML fixes

    🔦 Expose:

    • 🔒 Lock class

    💥 Breaking changes:

    • TimeSpan.NULL -> TimeSpan.NIL (problem with K/N on mobile)
    • Vfs.listFlow (Flow) and Vfs.listSimple (List)
    • VfsFile.list, VfsFile.listRecursive -> Flow, VfsFile.listSimple -> List
    • ✂ Removed VfsFile.set functions
    • 🔄 Changed VfsFile.readLines from List to Sequence
    • Some changes to FastByteArrayInputStream
    • ✂ Removed Base64 and Hex utilities from Korio since now it includes krypto that already provide those utilities in other package