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 Rust crate taffy to 0.7.0 #21899

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

Update Rust crate taffy to 0.7.0 #21899

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 12, 2024

This PR contains the following updates:

Package Type Update Change
taffy dependencies minor 0.4.3 -> 0.7.0

Release Notes

DioxusLabs/taffy (taffy)

v0.7.0

Compare Source

Changed
  • BREAKING: The cache_mut method on the LayoutPartialTree trait has been replaced with a separate CacheTree trait. This allows
    Taffy to be more easily used without caching or with a custom cache implementation.
  • BREAKING: the TaffyTree::set_children method now removes the children from their previous parent (if they have one).
Added
  • Helper methods to retrieve content-box sizes were added to Layout

v0.6.3

Compare Source

Fixes
  • Block: ignore margin collapsing when computing static position of abspos items (#​747)

v0.6.2

Compare Source

Fixes
  • Fix: clamp indefinite available space by min- and max- size as appropriate (#​742)

v0.6.1

Compare Source

Fixes
  • Fix calculation of auto-fill/auto-fit repetition count when container has a definite percentage size (#​722)
  • Fix min-size style not affecting intrinsic sizes (#​723)
  • Fix documentation of dirty and mark_dirty functions (#​724)
  • Fix intrinsic size of scroll containers that have a small explicit flex-basis (#​728)

v0.6.0

Compare Source

Highlights
  • The Style struct has been "traitified". This supports Taffy's integration in Servo and generally makes Taffy more flexible. The
    Style struct still exists and implements the new traits so existing uses of Taffy will continue to work as before.
  • The box-sizing style is supported
  • Computed margins are output in Layout
Fixes
  • Fix print_tree() when rounding is disabled (#​680)
  • Absolute Insets should be resolved against the container size minus border (#​666)
  • Fix flooring hypothetical_main_size by computed min size (#​689)
  • Fix flex line cross-size determination (#​690)
  • Fix panics in the grid algorithm (#​691)
  • Fix resolving flexible lengths (WPT css/flexbox-multiline-min-max test) (#​692)
  • Fix wrapping when a max main size style is present (#​694)
  • Fix case where Taffy allowed margins to collapse through an element when it shouldn't have (#​695)
Added
  • Legacy text align (for laying out <center> and <div align="..">) is supported
  • Add is_table for block items (#​701)
  • Impl Debug and Clone for Cache (#​688)
  • Implement Debug and PartialEq for tree types (#​697)

v0.5.2

Compare Source

  • Fix block stretch sizing (don't always apply stretch sizing to block containers) (#​674)
  • Fix computation of intrinsic main size when it depends on a child's known cross size (#​673)
  • Fix panic when GridLine 0 is specified (#​671)
  • Docs: Document feature flags and scrape examples (#​672)
  • Docs: Update cosmic-text example to cosmic-text 0.12 (#​670)

v0.5.1

Compare Source

  • Fix: Clamp block item stretch widths by their min and max width (#​664)
  • Fix: Auto margin computation in block layout (#​663)

v0.5.0

Compare Source

The changes in 0.5 are relatively small but the new measure function parameter is a breaking change so it requires a minor version bump.

  • Added: A style: &Style parameter has been added to measure functions.
  • Added: The MaybeMath, MaybeResolve, and ResolveOrZero traits have been made public.
  • Fix: use SizingMode::Inherent when sizing absolute children of flexbox nodes.

Configuration

📅 Schedule: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

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


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

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 12, 2024
@renovate renovate bot force-pushed the renovate/taffy-0.x branch from 57db22f to f628154 Compare December 12, 2024 05:04
@renovate renovate bot changed the title Update Rust crate taffy to 0.6.0 Update Rust crate taffy to 0.7.0 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants