Skip to content

Commit

Permalink
Bump okio from 2.1.0 to 3.4.0 (facebook#429)
Browse files Browse the repository at this point in the history
Summary:
Bumps [okio](https://github.com/square/okio) from 2.1.0 to 3.4.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/square/okio/blob/master/CHANGELOG.md">okio's changelog</a>.</em></p>
<blockquote>
<h2>Version 3.4.0</h2>
<p><em>2023-07-07</em></p>
<ul>
<li>New: Adapt a Java NIO FileSystem (<code>java.nio.file.FileSystem</code>) as an Okio FileSystem using
<code>fileSystem.asOkioFileSystem()</code>.</li>
<li>New: Adapt Android’s <code>AssetManager</code> as an Okio FileSystem using <code>AssetFileSystem</code>. This is in the
new <code>okio-assetfilesystem</code> module. Android applications should prefer this over
<code>FileSystem.RESOURCES</code> as it’s faster to load.</li>
<li>Fix: Don't crash decoding GZIP files when the optional extra data (<code>XLEN</code>) is 32 KiB or larger.</li>
<li>Fix: Resolve symlinks in <code>FakeFileSystem.canonicalize()</code>.</li>
<li>Fix: Report the correct <code>createdAtMillis</code> in <code>NodeJsFileSystem</code> file metadata. We were
incorrectly using <code>ctimeMs</code>, where <code>c</code> means <em>changed</em>, not <em>created</em>.</li>
<li>Fix: <code>UnsafeCursor</code> is now <code>Closeable</code>.</li>
</ul>
<h2>Version 3.3.0</h2>
<p><em>2023-01-07</em></p>
<ul>
<li>Fix: Don't leak resources when <code>use {}</code> is used with a non-local return. We introduced this
performance and stability bug by not considering that non-local returns execute neither the
<code>return</code> nor <code>catch</code> control flows.</li>
<li>Fix: Use a sealed interface for <code>BufferedSink</code> and <code>BufferedSource</code>. These were never intended
for end-users to implement, and we're happy that Kotlin now allows us to express that in our API.</li>
<li>New: Change internal locks from <code>synchronized</code> to <code>ReentrantLock</code> and <code>Condition</code>. We expect this
to improve help when using Okio with Java virtual threads ([Project Loom][loom]).</li>
<li>Upgrade: [Kotlin 1.8.0][kotlin_1_8_0].</li>
</ul>
<h2>Version 3.2.0</h2>
<p><em>2022-06-26</em></p>
<ul>
<li>Fix: Configure the multiplatform artifact (<code>com.squareup.okio:okio:3.x.x</code>) to depend on the
JVM artifact (<code>com.squareup.okio:okio-jvm:3.x.x</code>) for Maven builds. This should work-around an
issue where Maven doesn't interpret Gradle metadata.</li>
<li>Fix: Change <code>CipherSource</code> and <code>CipherSink</code> to recover if the cipher doesn't support streaming.
This should work around a crash with AES/GCM ciphers on Android.</li>
<li>New: Enable compatibility with non-hierarchical projects.</li>
</ul>
<h2>Version 3.1.0</h2>
<p><em>2022-04-19</em></p>
<ul>
<li>Upgrade: [Kotlin 1.6.20][kotlin_1_6_20].</li>
<li>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 <code>FileSystem.SYSTEM</code> that</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/square/okio/commit/a161b07fb1b459371458ae6d9508ec31df280428"><code>a161b07</code></a> Prepare for release 3.4.0.</li>
<li><a href="https://github.com/square/okio/commit/c5f462b0b51979f0b23b08bff123011bb01045ea"><code>c5f462b</code></a> Copyright to files in build-support (<a href="https://redirect.github.com/square/okio/issues/1285">#1285</a>)</li>
<li><a href="https://github.com/square/okio/commit/f21714d492f054ae689b455284816721498775eb"><code>f21714d</code></a> Upgrade Gradle and JMH (<a href="https://redirect.github.com/square/okio/issues/1283">#1283</a>)</li>
<li><a href="https://github.com/square/okio/commit/5f5db4a0d2b1a3a0147c6bc18aeaba5a4ffa4037"><code>5f5db4a</code></a> Merge pull request <a href="https://redirect.github.com/square/okio/issues/1284">#1284</a> from square/renovate/com.google.jimfs</li>
<li><a href="https://github.com/square/okio/commit/8af8d2a87b0c71ced5d16c44daef20ab0c5d48c8"><code>8af8d2a</code></a> Update dependency com.google.jimfs:jimfs to v1.3.0</li>
<li><a href="https://github.com/square/okio/commit/b64c198b790804eea26a05f5409bffb1a4a2d8eb"><code>b64c198</code></a> Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.25.3 (<a href="https://redirect.github.com/square/okio/issues/1282">#1282</a>)</li>
<li><a href="https://github.com/square/okio/commit/ea827139afef064ddd0078607719d32d7c154c0f"><code>ea82713</code></a> Merge pull request <a href="https://redirect.github.com/square/okio/issues/1281">#1281</a> from square/renovate/gradle-7.x</li>
<li><a href="https://github.com/square/okio/commit/3569daa8b8d039a8989440abcc970b7f35171d49"><code>3569daa</code></a> Update dependency gradle to v7.6.2</li>
<li><a href="https://github.com/square/okio/commit/e937a50ffc482f9777b639d3399ba331b167107a"><code>e937a50</code></a> Merge pull request <a href="https://redirect.github.com/square/okio/issues/1277">#1277</a> from sifmelcara/fix-int-sign-conversion</li>
<li><a href="https://github.com/square/okio/commit/81bce1a30af244550b0324597720e4799281da7b"><code>81bce1a</code></a> Fix a bug where xlen larger than 0x7fff was rejected (<a href="https://redirect.github.com/square/okio/issues/1280">#1280</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/square/okio/compare/okio-parent-2.1.0...parent-3.4.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.squareup.okio:okio&package-manager=maven&previous-version=2.1.0&new-version=3.4.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/facebook-java-business-sdk/network/alerts).

</details>

Pull Request resolved: facebook#429

Reviewed By: mengxuanzhangz

Differential Revision: D47443937

Pulled By: stcheng

fbshipit-source-id: 4d5da8d4bacfadc5a4a39d49cef8ecded05b8cbd
  • Loading branch information
dependabot[bot] authored and facebook-github-bot committed Jul 13, 2023
1 parent f8199bb commit 935a9d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<url>https://github.com/facebook/facebook-java-business-sdk</url>
</scm>
<properties>
<kotlin.version>1.6.0</kotlin.version>
<kotlin.version>1.8.0</kotlin.version>
<mockk.version>1.9.3</mockk.version>
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down Expand Up @@ -144,7 +144,7 @@
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>2.1.0</version>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down

0 comments on commit 935a9d0

Please sign in to comment.