-
v.1.6.0
Stablereleased this
2026-12-01 14:54:17 +01:00 | 15 commits to main since this releaseNew features
- CLI:
gram checknow matches editor diagnostics and adds automation options:--fixapplies safe fixes in place (~{15%min}→~{15 min}, spaced composites, deprecated frontmatter keys, missing blank lines).--format jsonoutputs a versioned JSON report for CI and AI agents.--strictnow also flags ingredients missing from the database (use--skip-dbto opt out).
- Parser & Kitchen: Common writing mistakes now raise actionable warnings with editor quick fixes (
REFERENCE_TO_INGREDIENTfor&flouron raw ingredients,%in~{15%min}/@flour{200%g}, and#oven{180°C}→^oven{180°C}). - Docs & Playground: Redesigned dark theme with a softer charcoal palette and improved contrast.
- Kitchen & Renderer: Unified frontmatter key registry (
FRONTMATTER_KEYS, includinglanguage), cleanerlastUpdateddisplay in HTML recipes, and newDEPRECATED_FRONTMATTER_KEYwarning. - Language Server: Configurable linting and new writing checks:
- Tune rules in
.gram/config.yaml(lint.rules) or silence per step with// gram-ignore CODE. - Adds
LOST_INGREDIENT,MERGED_STEP_LINE,SUSPECT_INGREDIENT_NAME, andUNREAD_FRONTMATTER, plus a quick fix to add unknown ingredients toingredients.yaml. - Exposes the shared lint layer via the experimental
@gram-lang/modules/lintentry point.
- Tune rules in
- Language Server: New editing aids across all LSP editors — frontmatter completion and hover, completion for existing cookware/timers/tracks (
#,^,~,~_),Ctrl+Clickand export completion on@use, and symbol occurrence highlighting. - Language Server & CLI: Standalone
gram-language-serverbinary andgram lspcommand for any LSP editor (Neovim, Helix, Emacs, Zed, Sublime Text), withinitializationOptions: { views: false }to disable preview rendering in editors without side panels. - Parser & Kitchen: Component aliases must now immediately follow
:(@dry white wine:wine{10ml});:is now ordinary punctuation instead of swallowing text, and spaced aliases raiseALIAS_AFTER_BLANK(auto-fixable with--fix). - Parser: Also ships
syntaxes/gram.tmLanguage(plist) so Sublime Text highlights.gramfiles out of the box. - CLI: New
gram view <file> --servecommand for live browser preview from any editor, reloading automatically on save (supports--port,--no-open, and--view).
Bug fixes and improvements
- Analyzer: With mass standardization off, percentages and ratios targeting mass-based ingredients now resolve and merge cleanly in sections and shopping lists (fixing false
RELATIVE_QUANTITY_UNKNOWN_MASSwarnings). - CLI: Multi-file commands (
check,format,build,shop,db sync,suggest --pattern) now accept folder paths, andgram suggestnow includes recipes without##sections. - Format: Multiple blank lines after the frontmatter now collapse to a single blank line.
- Parser: Frontmatter values now support YAML quote escapes (
'',\",\\) and commas inside quoted inline list items. - Kitchen:
@&flournow matches@Flour{100 g}case-insensitively instead of raisingUNDEFINED_REFERENCE. - Renderer: Baker's percentages in ingredient and shopping lists now render as subtle text with an explanatory tooltip.
- Modules, CLI & Language Server: Hardened
@usepaths across platforms — rejects backslashes (MODULE_SPECIFIER_INVALID) and null bytes, allows folders starting with..(e.g...notes/), and confines editor@usecompletion to the project.
Deprecated
@gram-lang/kitchen&@gram-lang/renderer: Frontmatter keysservings,yield, andyieldswill be removed in 2.0.0. Useportionsinstead ofservings, andmakesinstead ofyieldoryields.@gram-lang/language-server: OmittinginitializationOptions.viewsto receive legacygram/previewUpdatednotifications will be removed in 2.0.0. Passviews: trueorviews: falseexplicitly.
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download
- CLI: