Releases: tmlmt/cooklang-parser
Releases · tmlmt/cooklang-parser
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
🚀 Enhancements
- ShoppingList: Add a recipe with either a factor or a number of servings for scaling (#45)
🕰️ Deprecations
- ShoppingList: the call signature
add_recipe(recipe: Recipe, factor?: number)is now deprecated and will be removed in v3. Useadd_recipe(recipe: Recipe, scaling?: { factor: number } | { servings: number })instead.
🤖 CI
- release: Re-extract possibly edited changelog for use in release notes (4468cf9)
❤️ Contributors
- Thomas Lamant (@tmlmt)
v2.0.2
🩹 Fixes
- Non-quantified ingredients parsed with a quantityPartIndex of 0 (0c59df1)
📦 Build
- Bump pnpm to v10.20.0 (5b6425c)
🏡 Chore
- README: Update future plans (4d1d229)
❤️ Contributors
- Thomas Lamant [email protected]
v2.0.1
This release is due to a version conflict caused by the faulty release of v1.2.0 a couple of month ago which was accidentally published as 2.0.0 on npm
The opportunity was taken to update all dependencies to their latest patch versions.
v2.0.0
🚀 Enhancements
- spec:
⚠️ Fixed quantities (#30) ⚠️ Allow multiple flags for ingredients and cookware (#36)- Referencing other recipes as per spec (4923725)
🩹 Fixes
- Test for complex scaling metadata and improve associated docs (4f51f62)
- build: Correctly setup pinned version of pnpm in proto (8d4bbc3)
- Quantities of referenced cookware are not added up (#31)
- Non numeric scaling metadata scales due to parseFloat capturing a number (e956df2)
💅 Refactors
⚠️ Use indexes for cookware quantities and quantity parts (#34)
📖 Documentation
- guide-extensions: Adjust to latest API changes (d1fc4f9)
- scaling: Clarify which quantities are scaled (7aab5ad)
- Expose IngredientFlag, IngredientExtras and CookwareFlag in the API reference (0af8175)
📦 Build
- Bump pnpm to v10.19.0 (b6ac5e3)
🏡 Chore
- Configure Renovate (#12)
✅ Tests
- Maximize coverage by ignoring else path when irrelevant (f99b59c)
🎨 Styles
- Do not refer to single unit as units in the plural (a7a2c6d)
- TimerItem:
⚠️ Renamevalueproperty toindex(be4ff38)
⚠️ Breaking Changes
- Ingredient:
hidden,optionalandrecipeare now grouped into theflagsingredients array property instead of being ingredients individual boolean properties - CookwareItem:
valueis renamed intoindexand the item specific quantity of cookware is now an indexquantityPartIndexreferring to the array of quantity parts added to the overall cookware list. - IngredientItem: specific quantities are no longer included in whole, but referred to by a new index in property
quantityPartIndexand are stored within the recipes ingredient list; the property containing the ingredient index is also renamed fromvaluetoindex. See the updated API docs for the details. - TimerItem:
valueproperty renamed intoindex
❤️ Contributors
- Thomas Lamant (@tmlmt)
v1.4.4
👀 Highlights
This release smoothens out some edges, and increases test coverage to 100%
👉 Changelog
🩹 Fixes
- docs: Broken links in top-right corner menu (20ae0ff)
- Range quantities incorrectly parsed as text (4799fcc)
💅 Refactors
- Do not try to reuse previously added timer with same values and simply push new timers as they are defined (ba46320)
📖 Documentation
- Make sidebar items collapsible (e7f335c)
- Add link to npm package webpage (b5a6b28)
- Add link to personal homepage (22b3d1a)
- Add aria labels to social links (6228aa6)
🏡 Chore
- README: Update readme (354e4ba)
- README: Make API link point to Recipe class doc (3a912b9)
- Remove unused import (aa9621d)
✅ Tests
❤️ Contributors
- Thomas Lamant (@tmlmt)
v1.4.3
🩹 Fixes
- docs: ScaleBy and scaleTo actually return a new Recipe (1ce6e58)
- scaling: Preserve fractions when multipier is integer or inverse of one (84ff940)
📖 Documentation
- Add details and examples to the guide about extensions (7a8e27a)
- Add explanation and examples for scaling recipes (7daa10c)
- Add explanation and examples for shopping lists (364bcfa)
- Add toc to extensions guide (8c468eb)
🏡 Chore
- scripts: Change default prompt answer to continuing the release process (1ef7318)
- test: Remove unnecessary initialization of recipe properties in recipe_scaling tests (3e05f31)
- test: Remove unnecessary categorize() calls (5725e24)
- test: Remove unnecessary initialization of shopping_list tests (0048151)
✅ Tests
- simplifyFraction: Add test when the numerator is < 1 (9c71acd)
- scaling: Add check for fraction and range values (0ced2da)
🤖 CI
- scripts: Make yes as default answer to prompts for confirmation (eabc017)
- release: Check that lint, test and docs:build run without error before releasing (d467a31)
❤️ Contributors
- Thomas Lamant (@tmlmt)