|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## v3.0.0-alpha.13 |
| 4 | + |
| 5 | +[compare changes](https://github.com/tmlmt/cooklang-parser/compare/v3.0.0-alpha.12...v3.0.0-alpha.13) |
| 6 | + |
| 7 | +#### ⚠️ Breaking Changes |
| 8 | + |
| 9 | +- **Metadata interface restructured.** |
| 10 | + |
| 11 | +Source attribution: |
| 12 | + |
| 13 | + - metadata["source.name"] → metadata.source?.name (when source is object) |
| 14 | + - metadata["source.url"] → metadata.source?.url (when source is object) |
| 15 | + - metadata["source.author"] → metadata.source?.author (when source is object) |
| 16 | + |
| 17 | +Simple string source remains: metadata.source (when string) |
| 18 | + |
| 19 | +Time information: |
| 20 | + |
| 21 | + - metadata["prep time"] / metadata["time.prep"] → metadata.time?.prep |
| 22 | + - metadata["cook time"] / metadata["time.cook"] → metadata.time?.cook |
| 23 | + |
| 24 | +- **ShoppingList public API renamed to camelCase.** |
| 25 | + |
| 26 | +Migrate by updating method calls: |
| 27 | + |
| 28 | + .add_recipe() → .addRecipe() |
| 29 | + .remove_recipe() → .removeRecipe() |
| 30 | + .set_category_config() → .setCategoryConfig() |
| 31 | + .category_config → .categoryConfig |
| 32 | + |
| 33 | +### 🚀 Enhancements |
| 34 | + |
| 35 | +- Allow custom metadata fields ([bd40101](https://github.com/tmlmt/cooklang-parser/commit/bd40101)) |
| 36 | + |
| 37 | +### 🩹 Fixes |
| 38 | + |
| 39 | +- **convertTo:** Keep old primary quantity when an equivalent was used to convert, in 'replace' mode ([c1be26e](https://github.com/tmlmt/cooklang-parser/commit/c1be26e)) |
| 40 | + |
| 41 | +### 💅 Refactors |
| 42 | + |
| 43 | +- ⚠️ Harmonize method naming to camelCase ([327a2c2](https://github.com/tmlmt/cooklang-parser/commit/327a2c2)) |
| 44 | +- ⚠️ Restructure Metadata interface with nested source and time objects ([1b239e7](https://github.com/tmlmt/cooklang-parser/commit/1b239e7)) |
| 45 | + |
| 46 | +### 🏡 Chore |
| 47 | + |
| 48 | +- **test:** Maximize coverage ([210006a](https://github.com/tmlmt/cooklang-parser/commit/210006a)) |
| 49 | +- Remove unused import ([5c91fc4](https://github.com/tmlmt/cooklang-parser/commit/5c91fc4)) |
| 50 | + |
| 51 | +### ❤️ Contributors |
| 52 | + |
| 53 | +- Thomas Lamant ([@tmlmt](https://github.com/tmlmt)) |
| 54 | + |
3 | 55 | ## v3.0.0-alpha.12 |
4 | 56 |
|
5 | 57 | [compare changes](https://github.com/tmlmt/cooklang-parser/compare/v3.0.0-alpha.11...v3.0.0-alpha.12) |
|
0 commit comments