Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update coil3 to v3.0.0-alpha08 #1496

Merged
merged 5 commits into from
Jul 19, 2024
Merged

Update coil3 to v3.0.0-alpha08 #1496

merged 5 commits into from
Jul 19, 2024

Conversation

slack-oss-bot
Copy link
Collaborator

@slack-oss-bot slack-oss-bot commented Jun 27, 2024

This PR contains the following updates:

Package Type Update Change
io.coil-kt.coil3:coil-test dependencies patch 3.0.0-alpha06 -> 3.0.0-alpha08
io.coil-kt.coil3:coil-network-okhttp dependencies patch 3.0.0-alpha06 -> 3.0.0-alpha08
io.coil-kt.coil3:coil-network-ktor dependencies patch 3.0.0-alpha06 -> 3.0.0-alpha08
io.coil-kt.coil3:coil-compose-core dependencies patch 3.0.0-alpha06 -> 3.0.0-alpha08
io.coil-kt.coil3:coil dependencies patch 3.0.0-alpha06 -> 3.0.0-alpha08

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

coil-kt/coil (io.coil-kt.coil3:coil-test)

v3.0.0-alpha08

Compare Source

  • BREAKING: Rename ImageRequest and ImageLoader dispatcher methods to coroutineContext. For instance, ImageRequest.Builder.dispatcher is now ImageRequest.Builder.coroutineContext. This was renamed as the method now accepts any CoroutineContext and no longer requires a Dispatcher.
  • Fix: Fix IllegalStateException: Reading a state that was created after the snapshot was taken or in a snapshot that has not yet been applied which could occur due to a race condition.
    • NOTE: This reintroduces a soft dependency on Dispatchers.Main.immediate. As a result you should re-add a dependency on kotlinx-coroutines-swing on JVM. If it's not imported then ImageRequests won't be dispatched immediately and will have one frame of delay before setting the ImageRequest.placeholder or resolving from the memory cache.

v3.0.0-alpha07

Compare Source

  • BREAKING: AsyncImagePainter no longer waits for onDraw by default and instead uses Size.ORIGINAL.
  • BREAKING: Refactor the multiplatform Image API. Notably, asCoilImage has been renamed to asImage.
  • BREAKING: AsyncImagePainter.state has been changed to StateFlow<AsyncImagePainter.State>. Use collectAsState to observe its value. This improves performance.
  • BREAKING: AsyncImagePainter.imageLoader and AsyncImagePainter.request have been combined into StateFlow<AsyncImagePainter.Inputs>. Use collectAsState to observe its value. This improves performance.
  • BREAKING: Remove support for android.resource://example.package.name/drawable/image URIs as it prevents resource shrinking optimizations.
  • New: Introduce AsyncImagePreviewHandler to support controlling AsyncImagePainter's preview rendering behavior.
    • Use LocalAsyncImagePreviewHandler to override the preview behavior.
    • As part of this change and other coil-compose improvements, AsyncImagePainter now attempts to execute execute the ImageRequest by default instead of defaulting to displaying ImageRequest.placeholder. Requests that use the network or files are expected to fail in the preview environment, however Android resources should work.
  • New: Support extracting video image by frame index. (#​2183)
  • New: Support passing CoroutineContext to any CoroutineDispatcher methods. (#​2241).
  • New: Support the weak reference memory cache on JS and WASM JS.
  • Don't dispatch to Dispatchers.Main.immediate in Compose. As a side-effect, kotlinx-coroutines-swing no longer needs to be imported on JVM.
  • Don't call async and create a disposable in Compose to improve performance (thanks @​mlykotom!). (#​2205)
  • Fix passing global ImageLoader extras to Options. (#​2223)
  • Fix crossfade(false) not working on non-Android targets.
  • Fix VP8X feature flags byte offset (#​2199).
  • Convert SvgDecoder on non-Android targets to render to a bitmap instead of render the image at draw-time. This improves performance.
    • This behavior can be controlled using SvgDecoder(renderToBitmap).
  • Move ScaleDrawable from coil-gif to coil-core.
  • Update Kotlin to 2.0.0.
  • Update Compose to 1.6.11.
  • Update Okio to 3.9.0.
  • Update Skiko to 0.8.4.
  • For the full list of important changes in 3.x, check out the upgrade guide.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


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

This PR has been generated by Renovate Bot.

@slack-oss-bot slack-oss-bot force-pushed the renovate/coil3 branch 6 times, most recently from 5ce9df3 to 20be11c Compare July 4, 2024 08:10
@slack-oss-bot slack-oss-bot force-pushed the renovate/coil3 branch 2 times, most recently from e2c42db to 98e69ba Compare July 9, 2024 08:12
@slack-oss-bot slack-oss-bot changed the title Update coil3 to v3.0.0-alpha07 Update coil3 to v3.0.0-alpha08 Jul 9, 2024
@slack-oss-bot slack-oss-bot force-pushed the renovate/coil3 branch 2 times, most recently from 99b5427 to 663e870 Compare July 12, 2024 08:13
@slack-oss-bot
Copy link
Collaborator Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@slack-oss-bot slack-oss-bot added this pull request to the merge queue Jul 19, 2024
Merged via the queue into main with commit 62853ca Jul 19, 2024
4 of 5 checks passed
@slack-oss-bot slack-oss-bot deleted the renovate/coil3 branch July 19, 2024 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants