Releases: tmlmt/cooklang-parser
Releases · tmlmt/cooklang-parser
v3.0.0-alpha.9
⚠️ Breaking Changes
- types:
⚠️ Flatten And & Or groups by directly using and/or as property name (ec80478)
Before:
{
type: "or", // or "and"
entries: [ ... ]
}
After:
{
or: [ ... ] // or and: [ ... ]
}
🚀 Enhancements
- Recipe: New universal
getIngredientQuantitiesmethod to filter by section, step and/or user choices (04e61f6) - ShoppingList: Enhance ingredient handling with AND groups and ensure choices are provided for recipes with alternatives (f5ef123)
- Helpers: Add isAlternativeSelected function to determine selected ingredient alternatives (2c5af2a)
📖 Documentation
- Recipe: Fix description of
choicesproperty (b9169ac) - playground: Dynamically render user choices for alternatives ingredients (2eea3c0)
🎨 Styles
- types:
⚠️ Flatten And & Or groups by directly using and/or as property name (ec80478)
❤️ Contributors
- Thomas Lamant (@tmlmt)
v3.0.0-alpha.10
🚀 Enhancements
-
Add multiple type-guard and render helper functions (05584f5)
List of functions introduced:
- isAlternativeSelected
- isGroupedItem
- formatNumericValue
- formatSingleValue
- formatQuantity
- formatUnit
- formatQuantityWithUnit
- formatExtendedQuantity
- formatItemQuantity
- isAndGroup
- isSimpleGroup
- hasAlternatives
🩹 Fixes
- isAlternativeSelected: Return true for first alternative when selected index is 0 (4e9b1dd)
- docs, v3: Link to playground in top menubar (361a676)
🏡 Chore
- CHANGELOG: Fix missing end of code block (00f27b3)
🎨 Styles
- types: Remove unnecessary ComputedIngredient type (f35f2f0)
- types: Make IngredientQuantityAndGroup extend AndGroup (6647039)
❤️ Contributors
- Thomas Lamant (@tmlmt)
v3.0.0-alpha.8
v3.0.0-alpha.7
v3.0.0-alpha.6
v3.0.0-alpha.5
🚀 Enhancements
🩹 Fixes
- numeric: Lack of rounding due to incorrect detection of long decimal as a fraction (cbd4f5e)
- scaling: Default servings 1 if no servings defined (13efe7a)
📖 Documentation
- Add links to playground (186d254)
- Fix link in banner and refactor version links (5302155)
- extensions: Refine wording and update ingredient alias example (#93)
- playground: Add page title and description (322b6bb)
🏡 Chore
- pull_requests_template: Various improvements (79bfa9a)
🎨 Styles
- types: Remove unnecessary layer 'groupQuantity' and rename alternativeQuantities into 'quantities' (#91)
- docs-v3: Fix banner and header overlap on mobile (94227bf)
❤️ Contributors
- Thomas Lamant (@tmlmt)
v2.1.8
🩹 Fixes
- scaling: Default servings 1 if no servings defined (5d93797)
📖 Documentation
- playground (v3): Use absolute urls to enable navigation between major version in production (d8eb80d)
- Generate and deploy for both v2 and v3 (#85)
- Fix build by moving constants to a separate file and avoid bundler crash (backport) (6145071)
🏡 Chore
- README: Bump year to 2026 (b45e021)
- ci: Remove obsolete git-checks config from .npmrc (37968e8)
- gitignore: Ignore playground on main/v2 branch (e10cc51)
🤖 CI
- publish-npm: Add pre-release tag when publishing pre-releases on npm (e087376)
- Add deployment of playground (a4d79a1)
- deploy-playground: Add base url via env variable (9aa0efb)
- publish-npm: Disable git checks to enable publishing from any branch or tag (2e80685)
❤️ Contributors
- Thomas Lamant (@tmlmt)
v3.0.0-alpha.4
🩹 Fixes
- playground: Use absolute url on pre-release banner too (4719ff9)
📖 Documentation
- playground: Add color mode and improve header style (844a00c)
- playground: Improve color palette for dark mode (0e4127c)
- playground: Propose better showcase recipe (01c9032)
- playground: Various rendering fixes (7d46ece)
- Fix build by moving constants to a separate file and avoid bundler crash (5a51c06)
❤️ Contributors
- Thomas Lamant (@tmlmt)
v3.0.0-alpha.3
🩹 Fixes
- playground: Use absolute urls to enable navigation between major version in production (bbcadfa)
💅 Refactors
- types: Replace IngredientQuantities type with explicit union (17454b6)
📖 Documentation
- playground: Get version number from parser package (cc945e0)
🏡 Chore
- playground: Remove package version and add description (e56ed20)
🤖 CI
- deploy-playground: Add base url via env variable (ffde4d5)
- publish-npm: Disable git checks to enable publishing from any branch or tag (6ac3594)
❤️ Contributors
- Thomas Lamant (@tmlmt)