Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 25, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.squareup.okio:okio 2.10.0 -> 3.6.0 age adoption passing confidence

Release Notes

square/okio (com.squareup.okio:okio)

v3.6.0

2023-10-01

  • Fix: Don't leak file handles when using metadata functions on ZipFileSystem. We had a bug
    where we were closing the .zip file, but not a stream inside of it. We would have prevented
    this bug if only we’d used FakeFileSystem.checkNoOpenFiles() in our tests!
  • Fix: Don't build an index of a class loader's resources in ResourceFileSystem.read(). This
    operation doesn't need this index, and building it is potentially expensive.
  • New: Experimentally support Linux on ARM64 for Kotlin/Native targets (linuxArm64). Note that
    we haven't yet added CI test coverage for this platform.
  • Upgrade: [Kotlin 1.9.10][kotlin_1_9_10].

v3.5.0

2023-08-02

  • New: Support the WebAssembly (WASM) platform. Okio's support for WASM is experimental, but
    improving, just like Kotlin's own support for WASM.
  • New: Adapt WebAssembly System Interface (WASI) API's as an Okio FileSystem using
    WasiFileSystem. This is in the new okio-wasifilesystem module. It requires the [preview1]
    WASI API. We’ll make backwards-incompatible upgrades to new WASI API versions as they become
    available.
  • Fix: Return relative paths in the NIO adapter FileSystem when required. FileSystem.list()
    had always returned absolute paths, even when the target directory was supplied as a relative
    path.
  • Fix: Don't crash when reading into an empty array using FileHandle on Kotlin/Native.
  • Upgrade: [Kotlin 1.9.0][kotlin_1_9_0].

v3.4.0

2023-07-07

  • New: Adapt a Java NIO FileSystem (java.nio.file.FileSystem) as an Okio FileSystem using
    fileSystem.asOkioFileSystem().
  • New: Adapt Android’s AssetManager as an Okio FileSystem using AssetFileSystem. This is in the
    new okio-assetfilesystem module. Android applications should prefer this over
    FileSystem.RESOURCES as it’s faster to load.
  • Fix: Don't crash decoding GZIP files when the optional extra data (XLEN) is 32 KiB or larger.
  • Fix: Resolve symlinks in FakeFileSystem.canonicalize().
  • Fix: Report the correct createdAtMillis in NodeJsFileSystem file metadata. We were
    incorrectly using ctimeMs, where c means changed, not created.
  • Fix: UnsafeCursor is now Closeable.

v3.3.0

2023-01-07

  • Fix: Don't leak resources when use {} is used with a non-local return. We introduced this
    performance and stability bug by not considering that non-local returns execute neither the
    return nor catch control flows.
  • Fix: Use a sealed interface for BufferedSink and BufferedSource. These were never intended
    for end-users to implement, and we're happy that Kotlin now allows us to express that in our API.
  • New: Change internal locks from synchronized to ReentrantLock and Condition. We expect this
    to improve help when using Okio with Java virtual threads ([Project Loom][loom]).
  • Upgrade: [Kotlin 1.8.0][kotlin_1_8_0].

v3.2.0

2022-06-26

  • Fix: Configure the multiplatform artifact (com.squareup.okio:okio:3.x.x) to depend on the
    JVM artifact (com.squareup.okio:okio-jvm:3.x.x) for Maven builds. This should work-around an
    issue where Maven doesn't interpret Gradle metadata.
  • Fix: Change CipherSource and CipherSink to recover if the cipher doesn't support streaming.
    This should work around a crash with AES/GCM ciphers on Android.
  • New: Enable compatibility with non-hierarchical projects.

v3.1.0

2022-04-19

  • Upgrade: [Kotlin 1.6.20][kotlin_1_6_20].
  • New: Support [Hierarchical project structure][hierarchical_projects]. If you're using Okio in a
    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 that
    are available on most Okio platforms but not all of them.
  • New: ForwardingSource is now available on all platforms.
  • New: The watchosX64 platform is now supported.
  • Fix: Don't crash in `NSData.toByteString()' when the input is empty.
  • Fix: Support empty ZIP files in FileSystem.openZip().
  • Fix: Throw in canonicalize() of ZIP file systems if the path doesn't exist.
  • Fix: Don't require ZIP files start with a local file header.
  • New: okio.ProtocolException is a new exception type for multiplatform users. (It is aliased to
    java.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 Gradle
dependencies.

  • New: Remove @ExperimentalFileSystem. This annotation is no longer necessary as the file system
    is no longer experimental!

  • New: Path no longer aggressively normalizes .. segments. Use Path.normalize() to apply these
    based on the content of the path, or FileSystem.canonicalize() to do it honoring any symlinks
    on 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.

    dependencies {
       api(platform("com.squareup.okio:okio-bom:3.0.0"))
       api("com.squareup.okio:okio")                // No version!
       api("com.squareup.okio:okio-fakefilesystem") // No version!
    }
  • New: FileSystem.delete() silently succeeds when deleting a file that doesn't exist. Use
    the new mustExist parameter to trigger an exception instead.

  • New: FileSystem.createDirectories() silently succeeds when creating a directory that already
    exists. Use the new mustCreate parameter to trigger an exception instead.

  • New: FileSystem offers Java-language overloads where appropriate. Previously functions that
    had default parameters were potentially awkward to invoke from Java.

  • New: Timeout.intersectWith() returns a value instead of Unit. This is a binary-incompatible
    change. 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 -. Previously
    Okio 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch 2 times, most recently from d8a35ed to 87c3a87 Compare May 27, 2023 20:49
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch from 87c3a87 to 1bed7b4 Compare June 11, 2023 21:56
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch 5 times, most recently from 3f7dc5e to efe0c0e Compare July 7, 2023 16:37
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch from efe0c0e to d277d3a Compare July 12, 2023 16:34
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch from d277d3a to 9879cee Compare July 22, 2023 13:18
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch 3 times, most recently from 8183a52 to 6492aa9 Compare August 4, 2023 09:42
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch 2 times, most recently from b5002d3 to 32bc235 Compare August 29, 2023 12:35
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch 2 times, most recently from a94e853 to 30e4bd6 Compare September 10, 2023 15:56
@renovate renovate bot changed the title Update dependency com.squareup.okio:okio to v3 fix(deps): update dependency com.squareup.okio:okio to v3 Sep 16, 2023
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch 12 times, most recently from dd8ee59 to 4b658f6 Compare September 19, 2023 22:15
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch 7 times, most recently from 80bfde8 to fb4cf47 Compare September 20, 2023 21:08
@renovate renovate bot force-pushed the renovate/com.squareup.okio-okio-3.x branch from fb4cf47 to 8f6e42c Compare October 2, 2023 03:29
@tobiasjungmann
Copy link
Contributor

Done in this PR to update all dependencies at once

@renovate
Copy link
Contributor Author

renovate bot commented Oct 11, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 3.x releases. But if you manually upgrade to 3.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/com.squareup.okio-okio-3.x branch October 11, 2023 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant