makeup icon indicating copy to clipboard operation
makeup copied to clipboard

build(deps): bump taffy from 0.3.18 to 0.4.3

Open dependabot[bot] opened this issue 1 year ago • 0 comments

Bumps taffy from 0.3.18 to 0.4.3.

Release notes

Sourced from taffy's releases.

v0.4.3

Fixes

  • Fix compilation error in evenly_sized_tracks style helper in recent versions of rustc caused by a change/regression in type inference (#643). Note that 3rd-party code that call style helpers that take an Into<f32> parameter may still be affected by this issue, but they should be able to fix on their side by clarifying the type passed in

v0.4.2

  • Fixed: single-line flex-container should clamp the line's cross-size (#638)
  • Reduced binary footprint of Taffy from around 300kb to around 150kb (#636)

v0.4.1

  • Fixed: CSS Grid track sizing not respecting growth limits in some circumstances (#624)

v0.4.0

Highlights

  • Support for CSS Block layout (display: block)
  • Support for the overflow property (+ scrollbar_width for overflow: scroll)
  • Improved measure function API
  • Completely refactored low-level API
  • Simplified module hierarchy (+ most types/functions are now exported from the crate root)
  • Expanded set of examples which better document integration with other layout systems (e.g. text layout)
  • Computed values for padding and border are now output into the Layout struct

Block layout

Support for CSS Block layout has been added. This can be used via the new Display::Block variant of the Display enum. Note that full flow layout: inline, inline-block and float layout have not been implemented. The use case supported is block container nodes which contain block-level children.

Overflow property

Support has been added for a new overflow style property with Visible, Clip, Hidden, and Scroll values (Auto is not currently implemented). Additionally a scrollbar_width property has been added to control the size of scrollbars for nodes with Overflow::Scroll set.

  • Overflow is settable indpendently in each axis.
  • Visible and Clip will produce layouts equivalent to the Taffy 0.3. Clip will affect the new content_size output by restricting it to the available space.
  • Hidden and Scroll affect layout by changing the automatic minimum size of Flexbox and Grid children
  • Scroll additionally reserves scrollbar_width pixels for a scrollbar in the opposite axis to which scrolling is enabled. Scroll with scrollbar_width set to zero is equivalent to Hidden.

Measure function changes

The "measure function" API for integrating Taffy with other measurement systems (such as text layout) has been changed to be more flexible and to interact better with borrow checking (you can now borrow external data in your measure function!).

  • There are no longer per-node measure functions.
  • There is now a single "global" measure function, and a per-node "context" of a user-defined type
  • The Taffy tree is now a generic TaffyTree<T> where T is the "context" type.
  • The measure function is now called for all leaf nodes (nodes without children). If you wish to maintain compatibility with the previous behaviour then your measure function should return Size::ZERO for leaf nodes whose context is None.

If you are not using measure functions, then the only change you will need to make is from:

</tr></table> 

... (truncated)

Changelog

Sourced from taffy's changelog.

0.4.3

Fixes

  • Fix compilation error in evenly_sized_tracks style helper in recent versions of rustc caused by a change/regression in type inference (#643). Note that 3rd-party code that call style helpers that take an Into<f32> parameter may still be affected by this issue, but they should be able to fix on their side by clarifying the type passed in

0.4.2

  • Fixed: single-line flex-container should clamp the line's cross-size (#638)
  • Reduced binary footprint of Taffy from around 300kb to around 150kb (#636)

0.4.1

  • Fixed: CSS Grid track sizing not respecting growth limits in some circumstances (#624)

0.4.0

Highlights

  • Support for CSS Block layout (display: block)
  • Support for the overflow property (+ scrollbar_width for overflow: scroll)
  • Improved measure function API
  • Completely refactored low-level API
  • Simplified module hierarchy (+ most types/functions are now exported from the crate root)
  • Expanded set of examples which better document integration with other layout systems (e.g. text layout)
  • Computed values for padding and border are now output into the Layout struct

Block layout

Support for CSS Block layout has been added. This can be used via the new Display::Block variant of the Display enum. Note that full flow layout: inline, inline-block and float layout have not been implemented. The use case supported is block container nodes which contain block-level children.

Overflow property

Support has been added for a new overflow style property with Visible, Clip, Hidden, and Scroll values (Auto is not currently implemented). Additionally a scrollbar_width property has been added to control the size of scrollbars for nodes with Overflow::Scroll set.

  • Overflow is settable indpendently in each axis.
  • Visible and Clip will produce layouts equivalent to the Taffy 0.3. Clip will affect the new content_size output by restricting it to the available space.
  • Hidden and Scroll affect layout by changing the automatic minimum size of Flexbox and Grid children
  • Scroll additionally reserves scrollbar_width pixels for a scrollbar in the opposite axis to which scrolling is enabled. Scroll with scrollbar_width set to zero is equivalent to Hidden.

Measure function changes

The "measure function" API for integrating Taffy with other measurement systems (such as text layout) has been changed to be more flexible and to interact better with borrow checking (you can now borrow external data in your measure function!).

  • There are no longer per-node measure functions.
  • There is now a single "global" measure function, and a per-node "context" of a user-defined type
  • The Taffy tree is now a generic TaffyTree<T> where T is the "context" type.

... (truncated)

Commits
  • 066949d Prepare for v0.4.3 release (#646)
  • 9f27870 evenly_sized_tracks - fix simple compile error (#643)
  • e8aef0c Prepare for v0.4.2 release (#641)
  • 8555ecd Bump DavidAnson/markdownlint-cli2-action from 15 to 16 (#640)
  • aad4f02 fix: single-line flex-container should clamp the line's cross-size (#638)
  • d43dd24 Deduplicate track_sizing_algorithm function (save ~150kb binary size) (#636)
  • b7a5a06 Prepare for v0.4.1 release (#633)
  • 1c11925 Grid: Respect growth limits when distributing space to base sizes (#632)
  • d920d5f Fix debug mode (#631)
  • b3ee315 fix: wordwrap calculation in measure example (#629)
  • 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)

dependabot[bot] avatar Apr 15 '24 12:04 dependabot[bot]