Skip to content

v3.0.0-alpha.12

Pre-release
Pre-release

Choose a tag to compare

@tmlmt tmlmt released this 03 Feb 23:05
· 12 commits to main since this release

compare changes

⚠️ Breaking Changes

The IngredientAlternative type (cf IngredientItem.alternatives: IngredientAlternative[]) no longer has an
itemQuantity property. The quantity, unit, scalable, and equivalents
fields are now directly on the IngredientAlternative object.

Before:

  • alternative.itemQuantity?.quantity
  • alternative.itemQuantity?.unit
  • alternative.itemQuantity?.scalable
  • alternative.itemQuantity?.equivalents

After:

  • alternative.quantity
  • alternative.unit
  • alternative.scalable
  • alternative.equivalents

When an alternative has no quantity, these fields are undefined/absent
rather than itemQuantity being undefined.

💅 Refactors

  • types: ⚠️ Flatten IngredientItemQuantity into IngredientAlternative (2ff869d)

📖 Documentation

  • reference-units: Correct values in units configuration table (55c2914)

❤️ Contributors