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

Bump peniko from 0.2.0 to 0.3.1 #784

Merged
merged 4 commits into from
Feb 7, 2025
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 27, 2025

Bumps peniko from 0.2.0 to 0.3.1.

Release notes

Sourced from peniko's releases.

v0.3.1

Crates.io | Docs

This release has an MSRV of 1.82.

Changed

Full Changelog: linebender/peniko@v0.3.0...v0.3.1

v0.3.0

Crates.io | Docs

This release has an [MSRV] of 1.82.

Added

  • Gradient, Image, Brush now have with_alpha and Gradient also gets a multiply_alpha (#67 by @​waywardmonkeys)
  • Gradient now tracks a hue direction and interpolation color space (#71 by @​waywardmonkeys)
  • Compose, Extend, Fill, and Mix now optionally impl bytemuck traits (#72 by @​waywardmonkeys)
  • Add x/y extend modes and quality hint to images, rename Format to ImageFormat (#77 by @​dfrg)

Changed

Removed

  • Removed the deprecated Gradient::with_alpha_factor in favor of Gradient::multiply_alpha (#82 by @​waywardmonkeys)

Color Changes

The old code behind peniko::Color has been removed and color functionality is now provided by the [color] crate.

This leads to a number of breaking changes:

  • peniko::Color is now a type alias for AlphaColor<Srgb> from the color crate.
  • AlphaColor does not, at this time, impl Default, PartialOrd, or Hash.
  • ColorStop no longer impls Default or PartialOrd.
  • Brush, BrushRef, and ColorStop can be constructed from a variety of color types, although, for now, Brush and BrushRef convert this internally into an unclipped AlphaColor<Srgb>.
  • ColorStops is now a newtype wrapper, rather than a type alias for SmallVec. This allows it to be used with CacheKey from Color.
  • The color crate is re-exported as peniko::color, so access to functionality from there is easy.
  • The various pre-defined color constants like peniko::Color::YELLOW are no longer available. Instead, use the CSS palette provided within color: peniko::color::palette::css::YELLOW.
  • Similarly, parsing a color string is now provided by the color crate.

... (truncated)

Changelog

Sourced from peniko's changelog.

[0.3.1][] (2025-01-20)

This release has an [MSRV] of 1.82.

Changed

[0.3.0][] (2024-12-18)

This release has an [MSRV] of 1.82.

Added

  • Gradient, Image, Brush now have with_alpha and Gradient also gets a multiply_alpha (#67[] by [@​waywardmonkeys][])
  • Gradient now tracks a hue direction and interpolation color space (#71[] by [@​waywardmonkeys][])
  • Compose, Extend, Fill, and Mix now optionally impl bytemuck traits (#72[] by [@​waywardmonkeys][])
  • Add x/y extend modes and quality hint to images, rename Format to ImageFormat (#77[] by [@​dfrg][])

Changed

Removed

  • Removed the deprecated Gradient::with_alpha_factor in favor of Gradient::multiply_alpha (#82[] by [@​waywardmonkeys][])

Color Changes

The old code behind peniko::Color has been removed and color functionality is now provided by the [color] crate.

This leads to a number of breaking changes:

  • peniko::Color is now a type alias for AlphaColor<Srgb> from the color crate.
  • AlphaColor does not, at this time, impl Default, PartialOrd, or Hash.
  • ColorStop no longer impls Default or PartialOrd.
  • Brush, BrushRef, and ColorStop can be constructed from a variety of color types, although, for now, Brush and BrushRef convert this internally into an unclipped AlphaColor<Srgb>.
  • ColorStops is now a newtype wrapper, rather than a type alias for SmallVec. This allows it to be used with CacheKey from Color.
  • The color crate is re-exported as peniko::color, so access to functionality from there is easy.
  • The various pre-defined color constants like peniko::Color::YELLOW are no longer available. Instead, use the CSS palette provided within color: peniko::color::palette::css::YELLOW.
  • Similarly, parsing a color string is now provided by the color crate.

This is the first step towards providing better support for richer color functionality throughout the Linebender stack.

Commits

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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 27, 2025
Bumps [peniko](https://github.com/linebender/peniko) from 0.2.0 to 0.3.1.
- [Release notes](https://github.com/linebender/peniko/releases)
- [Changelog](https://github.com/linebender/peniko/blob/main/CHANGELOG.md)
- [Commits](linebender/peniko@v0.2.0...v0.3.1)

---
updated-dependencies:
- dependency-name: peniko
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/peniko-0.3.1 branch from a716f0d to aa7f1cd Compare January 27, 2025 07:51
@jaytaph jaytaph merged commit 31895d8 into main Feb 7, 2025
10 checks passed
@jaytaph jaytaph deleted the dependabot/cargo/peniko-0.3.1 branch February 7, 2025 11:56
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant