Skip to content

Commit 0a79b7b

Browse files
committed
chore(release): v3.0.0-alpha.12
1 parent e749d36 commit 0a79b7b

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
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)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)