Fix: Don't crash decoding GZIP files when the optional extra data (XLEN) is 32 KiB or larger.
Version 3.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].
Version 3.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.
Version 3.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
Most Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions |
| --- | --- |
| com.squareup.okio:okio | [>= 3.a, < 4] |
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps com.squareup.okio:okio from 1.17.6 to 2.10.0.
Changelog
Sourced from com.squareup.okio:okio's changelog.
... (truncated)
Commits
b0f78aa
Prepare for release 2.10.0.0dca6d8
Merge pull request #873 from square/jwilson.0106.strip_filesystem5986320
Strip all filesystem code from the 2.x branch1977d3b
Merge pull request #872 from square/jwilson.0106.java_sugar701634b
Make Path.toFile() work for Java callersa8ccc12
Merge pull request #871 from square/jwilson.0105.sugarc60f820
Syntactic sugar for writing files61913ce
Merge pull request #870 from square/jwilson.0105.closeablecc815b8
Add a multiplatform okio.Closeable interfaceadf7a85
Merge pull request #869 from square/jwilson.0104.expect_pathMost Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions | | --- | --- | | com.squareup.okio:okio | [>= 3.a, < 4] |Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show