Skip to content

Commit f2630c7

Browse files
committed
chore(release): v3.0.0-alpha.13
1 parent 5c91fc4 commit f2630c7

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,57 @@
11
# Changelog
22

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+
355
## v3.0.0-alpha.12
456

557
[compare changes](https://github.com/tmlmt/cooklang-parser/compare/v3.0.0-alpha.11...v3.0.0-alpha.12)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tmlmt/cooklang-parser",
3-
"version": "3.0.0-alpha.12",
3+
"version": "3.0.0-alpha.13",
44
"description": "Cooklang parsers and utilities",
55
"author": "Thomas Lamant <tom@tmlmt.com>",
66
"packageManager": "pnpm@10.21.0",

0 commit comments

Comments
 (0)