Skip to content

Releases: tmlmt/cooklang-parser

v2.1.4

28 Nov 22:39

Choose a tag to compare

compare changes

🩹 Fixes

  • scaleTo: Floating point inacurracies when proving a repeating decimal fraction (#68)

❤️ Contributors

v2.1.3

11 Nov 00:23

Choose a tag to compare

compare changes

📖 Documentation

  • guide-units: Add centiliters and deciliters (35ad521)

❤️ Contributors

v2.1.2

11 Nov 00:20

Choose a tag to compare

compare changes

🩹 Fixes

  • units: Add centiliters and deciliters (3ad9c5f)

❤️ Contributors

v2.1.1

01 Nov 00:02

Choose a tag to compare

compare changes

This version fixes a bug where the addition or multiplication of certain floating-point numbers led to inaccurate results e.g. 1.1 + 1.3 = 2.4000000000000004

🩹 Fixes

  • Addition and multiplication of floating-point quantities (#49)

❤️ Contributors

v2.1.0

30 Oct 23:06

Choose a tag to compare

compare changes

🚀 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. Use add_recipe(recipe: Recipe, scaling?: { factor: number } | { servings: number }) instead.

🤖 CI

  • release: Re-extract possibly edited changelog for use in release notes (4468cf9)

❤️ Contributors

v2.0.2

30 Oct 20:49

Choose a tag to compare

compare changes

🩹 Fixes

  • Non-quantified ingredients parsed with a quantityPartIndex of 0 (0c59df1)

📦 Build

🏡 Chore

  • README: Update future plans (4d1d229)

❤️ Contributors

v2.0.1

26 Oct 00:53

Choose a tag to compare

compare changes

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

26 Oct 00:42

Choose a tag to compare

compare changes

🚀 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

🏡 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: ⚠️ Rename value property to index (be4ff38)

⚠️ Breaking Changes

  • Ingredient: hidden, optional and recipe are now grouped into the flags ingredients array property instead of being ingredients individual boolean properties
  • CookwareItem: value is renamed into index and the item specific quantity of cookware is now an index quantityPartIndex referring 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 quantityPartIndex and are stored within the recipes ingredient list; the property containing the ingredient index is also renamed from value to index. See the updated API docs for the details.
  • TimerItem: value property renamed into index

❤️ Contributors

v1.4.4

08 Sep 14:47

Choose a tag to compare

👀 Highlights

This release smoothens out some edges, and increases test coverage to 100%

👉 Changelog

compare changes

🩹 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

  • parser_helper: Increase coverage (10cc9cd)
  • units: Increase coverage (18dc46f)

❤️ Contributors

v1.4.3

06 Sep 17:53

Choose a tag to compare

compare changes

🩹 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