Skip to content

Build(deps): Bump com.patrykandpatrick.vico:compose-m3 from 2.0.0-beta.3 to 2.1.0#81

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/gradle/com.patrykandpatrick.vico-compose-m3-2.1.0
Closed

Build(deps): Bump com.patrykandpatrick.vico:compose-m3 from 2.0.0-beta.3 to 2.1.0#81
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/gradle/com.patrykandpatrick.vico-compose-m3-2.1.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 17, 2025

Bumps com.patrykandpatrick.vico:compose-m3 from 2.0.0-beta.3 to 2.1.0.

Release notes

Sourced from com.patrykandpatrick.vico:compose-m3's releases.

v2.1.0

This release is effectively identical to version 2.1.0-beta.2. The following compares versions 2.1.0 and 2.0.0.

[!WARNING] The old, pre-1.6.2 Maven Central coordinates are being discontinued. Those using them will receive deprecation warnings.

Overview

core

  • Various performance-related optimizations have been made.
  • DefaultCartesianMarker.LabelPosition.BelowPoint has been introduced. This positions the label below the bottommost marked point.
  • The default dash and gap lengths for LineCartesianLayer.LineStroke.Dashed have been updated.
  • The host and Transaction ExtraStores have been decoupled: extras added via CartesianLayer.transform are now found in the new MeasuringContext.extraStore, not in CartesianChartModel.extraStore. This affects only custom animated CartesianLayer implementations.[^1] For standard usage, no action is required.
  • In HorizontalAxis, the protected CartesianMeasuringContext.getFullXRange function is deprecated. See the deprecation message for more.

compose

  • Various performance-related optimizations have been made.
  • In noninteractive Compose previews—which don’t support asynchronous execution—CartesianChartHost now handles CartesianChartModelProducer communication synchronously, enabling charts to display as expected. For this to work, the consumer must also move processing to the main thread—for example, by calling runTransaction from runBlocking rather than LaunchedEffect. This should be done only for previews.

multiplatform

This new module provides Compose Multiplatform support for Android, iOS, and desktop. It has two optional companion modules for Material theming: multiplatform-m2 and multiplatform-m3. These are equivalent to compose-m2 and compose-m3.

[versions]
vico = "2.1.0"
[libraries]
vico-multiplatform = { group = "com.patrykandpatrick.vico", name = "multiplatform", version.ref = "vico" }
vico-multiplatform-m2 = { group = "com.patrykandpatrick.vico", name = "multiplatform-m2", version.ref = "vico" }
vico-multiplatform-m2 = { group = "com.patrykandpatrick.vico", name = "multiplatform-m3", version.ref = "vico" }

The multiplatform API is based on the combination of the compose and core APIs, with adjustments for Compose Multiplatform and simplifications enabled by it being a dependency across the board. (In contrast, with compose and core, the former depends on Jetpack Compose, but the latter is framework-agnostic, using only lower-level android.graphics APIs.) There are only some minor differences in feature set:

  • A ComponentShader equivalent isn’t available yet. You can use ShaderBrush instead.
  • ShapeComponent doesn’t support shadows yet. This is due to Compose Multiplatform’s Paint lacking shadow functionality.

multiplatform is experimental; it will remain available, but breaking changes are more likely. While multiplatform is Jetpack Compose–compatible, compose support continues. In the distant future, compose will be removed in favor of multiplatform, which will then be renamed to compose.

Learn more about multiplatform in the guide and in the API reference; for examples, consult the multiplatform sample charts.

[^1]: This minor breaking change was allowed because (1) as discussed above, it affects only custom animated CartesianLayer implementations, which are rare; (2) addressing it is trivial; and (3) it enabled significant performance improvements for all setups. Deprecation was infeasible primarily because the key aspect here is the removal of CartesianLayer.transform-added extras from CartesianChartModel.extraStore, not merely their addition to CartesianMeasuringContext.extraStore. These extras are CartesianLayerDrawingModels, which are large and slow to hash. CartesianChartModel.extraStore, in turn, is hashed frequently; this enables the caching of the results of ExtraStore lambdas. Moving the CartesianLayerDrawingModels to a separate ExtraStore drastically decreased the time taken to hash CartesianChartModel.extraStore. It also made the caching more effective; now, only those extras that may actually be read in these lambdas are used as keys. These two factors significantly boosted drawing performance.

... (truncated)

Commits
  • eb72754 Update version name
  • 857b2b9 Update dependencies
  • 5b91f7d “Bug” issue form: Update version drop-down
  • d080b45 Update version name
  • 516a637 Add guide links to source code of Compose Multiplatform sample charts
  • 7d7a1d6 Add the remaining sample charts for Compose Multiplatform. Use an outline for...
  • dad20f5 Add additional configuration in CartesianValueFormatter and `DefaultValueFo...
  • 9666a8f Adapt arrows' and citation's color to the theme in the sample app
  • 735c927 multiplatform: Update selected defaults
  • e4dd4ea “Bug” issue form: Update version drop-down
  • Additional commits viewable in compare view

Dependabot compatibility score

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 <dependency name> 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.patrykandpatrick.vico:compose-m3](https://github.com/patrykandpatrick/vico) from 2.0.0-beta.3 to 2.1.0.
- [Release notes](https://github.com/patrykandpatrick/vico/releases)
- [Commits](patrykandpatrick/vico@v2.0.0-beta.3...v2.1.0)

---
updated-dependencies:
- dependency-name: com.patrykandpatrick.vico:compose-m3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Mar 17, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 24, 2025

Superseded by #82.

@dependabot dependabot bot closed this Mar 24, 2025
@dependabot dependabot bot deleted the dependabot/gradle/com.patrykandpatrick.vico-compose-m3-2.1.0 branch March 24, 2025 11:15
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 java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants