File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed
Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## v3.0.0-alpha.12
4+
5+ [ compare changes] ( https://github.com/tmlmt/cooklang-parser/compare/v3.0.0-alpha.11...v3.0.0-alpha.12 )
6+
7+ #### ⚠️ Breaking Changes
8+
9+ The ` IngredientAlternative ` type (cf ` IngredientItem.alternatives: IngredientAlternative[] ` ) no longer has an
10+ itemQuantity property. The quantity, unit, scalable, and equivalents
11+ fields are now directly on the IngredientAlternative object.
12+
13+ Before:
14+
15+ - alternative.itemQuantity?.quantity
16+ - alternative.itemQuantity?.unit
17+ - alternative.itemQuantity?.scalable
18+ - alternative.itemQuantity?.equivalents
19+
20+ After:
21+
22+ - alternative.quantity
23+ - alternative.unit
24+ - alternative.scalable
25+ - alternative.equivalents
26+
27+ When an alternative has no quantity, these fields are undefined/absent
28+ rather than itemQuantity being undefined.
29+
30+ ### 💅 Refactors
31+
32+ - ** types:** ⚠️ Flatten IngredientItemQuantity into IngredientAlternative ([ 2ff869d] ( https://github.com/tmlmt/cooklang-parser/commit/2ff869d ) )
33+
34+ ### 📖 Documentation
35+
36+ - ** reference-units:** Correct values in units configuration table ([ 55c2914] ( https://github.com/tmlmt/cooklang-parser/commit/55c2914 ) )
37+
38+ ### ❤️ Contributors
39+
40+ - Thomas Lamant ([ @tmlmt ] ( https://github.com/tmlmt ) )
41+
342## v3.0.0-alpha.11
443
544[ compare changes] ( https://github.com/tmlmt/cooklang-parser/compare/v3.0.0-alpha.10...v3.0.0-alpha.11 )
Original file line number Diff line number Diff line change 11{
22 "name" : " @tmlmt/cooklang-parser" ,
3- "version" : " 3.0.0-alpha.11 " ,
3+ "version" : " 3.0.0-alpha.12 " ,
44 "description" : " Cooklang parsers and utilities" ,
55 "author" : " Thomas Lamant <tom@tmlmt.com>" ,
66 "packageManager" : " pnpm@10.21.0" ,
You can’t perform that action at this time.
0 commit comments