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 coil #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update coil #176

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 26, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.coil-kt.coil3:coil-network-ktor 3.0.0-alpha06 -> 3.0.0-alpha08 age adoption passing confidence
io.coil-kt.coil3:coil-compose 3.0.0-alpha06 -> 3.0.0-alpha09 age adoption passing confidence
io.coil-kt.coil3:coil-core 3.0.0-alpha06 -> 3.0.0-alpha09 age adoption passing confidence

Release Notes

coil-kt/coil (io.coil-kt.coil3:coil-network-ktor)

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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jun 26, 2024
@renovate renovate bot requested a review from hoc081098 June 26, 2024 22:28
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.70%. Comparing base (c5437c1) to head (0f9da5e).

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #176   +/-   ##
======================================
  Coverage    2.70%   2.70%           
======================================
  Files          50      50           
  Lines        1440    1440           
  Branches      198     198           
======================================
  Hits           39      39           
  Misses       1400    1400           
  Partials        1       1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot changed the title Update coil to v3.0.0-alpha07 Update coil to v3.0.0-alpha08 Jul 9, 2024
| datasource | package                            | from          | to            |
| ---------- | ---------------------------------- | ------------- | ------------- |
| maven      | io.coil-kt.coil3:coil-network-ktor | 3.0.0-alpha06 | 3.0.0-alpha08 |
| maven      | io.coil-kt.coil3:coil-compose      | 3.0.0-alpha06 | 3.0.0-alpha09 |
| maven      | io.coil-kt.coil3:coil-core         | 3.0.0-alpha06 | 3.0.0-alpha09 |
@renovate renovate bot changed the title Update coil to v3.0.0-alpha08 Update coil Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file renovate-bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant