Skip to content

Releases: tmlmt/cooklang-parser

v3.0.0-alpha.9

22 Jan 03:50

Choose a tag to compare

v3.0.0-alpha.9 Pre-release
Pre-release

compare changes

⚠️ 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 getIngredientQuantities method 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 choices property (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

v3.0.0-alpha.10

22 Jan 23:45

Choose a tag to compare

v3.0.0-alpha.10 Pre-release
Pre-release

compare changes

🚀 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

v3.0.0-alpha.8

18 Jan 21:35

Choose a tag to compare

v3.0.0-alpha.8 Pre-release
Pre-release

compare changes

📖 Documentation

  • v3, home: Fix link to playground (08262a5)

❤️ Contributors

v3.0.0-alpha.7

18 Jan 21:30

Choose a tag to compare

v3.0.0-alpha.7 Pre-release
Pre-release

compare changes

🏡 Chore

❤️ Contributors

v3.0.0-alpha.6

18 Jan 21:25

Choose a tag to compare

v3.0.0-alpha.6 Pre-release
Pre-release

compare changes

📖 Documentation

  • playground: Fix missing display of units and equivalents (89b300e)
  • playground: Bump all deps (c143a28)
  • playground: Add Choices tab to play with scaling (1babbd5)
  • v3, home: Fix link to playground (89b9ae5)

❤️ Contributors

v3.0.0-alpha.5

16 Jan 01:26

Choose a tag to compare

v3.0.0-alpha.5 Pre-release
Pre-release

compare changes

🚀 Enhancements

  • Add arbitrary scalable quantities (#92)
  • playground: Add GitHub and docs links to header (#94)

🩹 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

v2.1.8

16 Jan 00:32

Choose a tag to compare

compare changes

🩹 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

v3.0.0-alpha.4

14 Jan 01:07

Choose a tag to compare

v3.0.0-alpha.4 Pre-release
Pre-release

compare changes

🩹 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

v3.0.0-alpha.3

13 Jan 23:08

Choose a tag to compare

v3.0.0-alpha.3 Pre-release
Pre-release

compare changes

🩹 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

v3.0.0-alpha.2

13 Jan 20:19

Choose a tag to compare

v3.0.0-alpha.2 Pre-release
Pre-release

compare changes

📖 Documentation

  • types: Include IngredientItemQuantity (c0573b2)

🏡 Chore

❤️ Contributors