This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
fix(deps): update dependency com.squareup.okio:okio to v3 #1578
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.10.0
->3.6.0
Release Notes
square/okio (com.squareup.okio:okio)
v3.6.0
2023-10-01
metadata
functions onZipFileSystem
. We had a bugwhere we were closing the
.zip
file, but not a stream inside of it. We would have preventedthis bug if only we’d used
FakeFileSystem.checkNoOpenFiles()
in our tests!ResourceFileSystem.read()
. Thisoperation doesn't need this index, and building it is potentially expensive.
linuxArm64
). Note thatwe haven't yet added CI test coverage for this platform.
v3.5.0
2023-08-02
improving, just like Kotlin's own support for WASM.
WasiFileSystem
. This is in the newokio-wasifilesystem
module. It requires the [preview1]WASI API. We’ll make backwards-incompatible upgrades to new WASI API versions as they become
available.
FileSystem.list()
had always returned absolute paths, even when the target directory was supplied as a relative
path.
FileHandle
on Kotlin/Native.v3.4.0
2023-07-07
java.nio.file.FileSystem
) as an Okio FileSystem usingfileSystem.asOkioFileSystem()
.AssetManager
as an Okio FileSystem usingAssetFileSystem
. This is in thenew
okio-assetfilesystem
module. Android applications should prefer this overFileSystem.RESOURCES
as it’s faster to load.XLEN
) is 32 KiB or larger.FakeFileSystem.canonicalize()
.createdAtMillis
inNodeJsFileSystem
file metadata. We wereincorrectly using
ctimeMs
, wherec
means changed, not created.UnsafeCursor
is nowCloseable
.v3.3.0
2023-01-07
use {}
is used with a non-local return. We introduced thisperformance and stability bug by not considering that non-local returns execute neither the
return
norcatch
control flows.BufferedSink
andBufferedSource
. These were never intendedfor end-users to implement, and we're happy that Kotlin now allows us to express that in our API.
synchronized
toReentrantLock
andCondition
. We expect thisto improve help when using Okio with Java virtual threads ([Project Loom][loom]).
v3.2.0
2022-06-26
com.squareup.okio:okio:3.x.x
) to depend on theJVM artifact (
com.squareup.okio:okio-jvm:3.x.x
) for Maven builds. This should work-around anissue where Maven doesn't interpret Gradle metadata.
CipherSource
andCipherSink
to recover if the cipher doesn't support streaming.This should work around a crash with AES/GCM ciphers on Android.
v3.1.0
2022-04-19
multiplatform project please upgrade your project to Kotlin 1.6.20 (or newer) to take advantage
of this. With hierarchical projects it's easier to use properties like
FileSystem.SYSTEM
thatare available on most Okio platforms but not all of them.
ForwardingSource
is now available on all platforms.watchosX64
platform is now supported.FileSystem.openZip()
.canonicalize()
of ZIP file systems if the path doesn't exist.okio.ProtocolException
is a new exception type for multiplatform users. (It is aliased tojava.net.ProtocolException
on JVM platforms).v3.0.0
2021-10-28
This is the first stable release of Okio 3.x. This release is strongly backwards-compatible with
Okio 2.x, and the new major version signifies new capabilities more than it does backwards
incompatibility.
Most users should be able to upgrade from 2.x by just changing the version. If you're using Okio
in a Kotlin Multiplatform project, you'll need to drop the
-multiplatform
suffix in your Gradledependencies.
New: Remove
@ExperimentalFileSystem
. This annotation is no longer necessary as the file systemis no longer experimental!
New: Path no longer aggressively normalizes
..
segments. UsePath.normalize()
to apply thesebased on the content of the path, or
FileSystem.canonicalize()
to do it honoring any symlinkson a particular file system.
New: Publish a [bill of materials (BOM)][bom] for Okio. Depend on this from Gradle or Maven to
keep all of your Okio artifacts on the same version, even if they're declared via transitive
dependencies. You can even omit versions when declaring other Okio dependencies.
New:
FileSystem.delete()
silently succeeds when deleting a file that doesn't exist. Usethe new
mustExist
parameter to trigger an exception instead.New:
FileSystem.createDirectories()
silently succeeds when creating a directory that alreadyexists. Use the new
mustCreate
parameter to trigger an exception instead.New:
FileSystem
offers Java-language overloads where appropriate. Previously functions thathad default parameters were potentially awkward to invoke from Java.
New:
Timeout.intersectWith()
returns a value instead ofUnit
. This is a binary-incompatiblechange. We expect that this public API is very rarely used outside of Okio itself.
Fix: Change
BufferedSource.readDecimalLong()
to fail if the input value is just-
. PreviouslyOkio incorrectly returned
0
for this.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.