# deprecations.yaml — Universal lifecycle and deprecation registry for Gram # This file tracks all deprecated features, scheduled removals, and migration paths. # Machine-readable and verified by: bun run deprecations (report) / deprecations:check (CI gate). # # An active `syntax` entry (the only layer reached through users' own .gram files) must also set # warningCode the compiler warning that flags the old form (must exist in a WarningCode enum) # migration the `gram migrate` codemod id, or `manual` when no rewrite is possible # # An `internal: true` entry is a removal chore users never see (not allowed on syntax, ast, # compiled-json or analyzed-json): it is tracked and gated like the others, but not announced. # # status: # planned agreed for targetRemoval but not yet deprecated in code: no deprecatedIn, no markers. # active deprecated since deprecatedIn: every file listed must carry a marker for the id # (JSDoc "@deprecated ... (Ref: )" or "// @remove-in: X.Y.Z []"). # removed gone from the code: kept as migration history; any remaining marker fails the check. schemaVersion: 1 deprecations: - id: kitchen-step-timings layer: compiled-json deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "steps[].timings is deprecated in favor of the blocks of the schedule" replacement: "The step blocks of recipe.schedule.blocks (or of layout(recipe.tasks, options).schedule.blocks for another choice of mise en place and rests)" files: - "packages/kitchen/src/types.ts" - "packages/kitchen/src/legacy-timings.ts" - id: kitchen-step-background-tasks layer: compiled-json deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "steps[].backgroundTasks is deprecated in favor of the blocks of the schedule" replacement: "The passive blocks of recipe.schedule.blocks (or of layout(recipe.tasks, options).schedule.blocks)" files: - "packages/kitchen/src/types.ts" - "packages/kitchen/src/legacy-timings.ts" - id: kitchen-metrics-times layer: compiled-json deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "metrics.totalTime and metrics.idleTime are deprecated in favor of the totals of the schedule" replacement: "recipe.schedule.totalTime and recipe.schedule.idleTime" files: - "packages/kitchen/src/types.ts" - "packages/kitchen/src/core.ts" - id: kitchen-metrics-active-time layer: compiled-json deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "metrics.activeTime counts a timer written as a range as its average; the schedule plans an active range on its longest figure" replacement: "recipe.schedule.activeTime" files: - "packages/kitchen/src/types.ts" - "packages/kitchen/src/core.ts" - id: kitchen-metrics-breakdowns layer: compiled-json deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "metrics.activeBreakdown, prepBreakdown, and totalBreakdown are deprecated" replacement: "recipe.miseEnPlace[].items for the preparation, recipe.schedule.blocks for the rest" files: - "packages/kitchen/src/types.ts" - "packages/kitchen/src/core.ts" - id: kitchen-legacy-schedule-fallback layer: api deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "Fallback in scheduleTimes() supporting compiled JSON produced before 1.4.0" replacement: "Recompile recipes with Gram >= 1.4.0 to generate the tasks and the schedule" files: - "packages/kitchen/src/schedule-mode.ts" - id: renderer-active-breakdown-tooltip layer: renderer deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active internal: true description: "HTML renderer active time tooltip reads metrics.activeBreakdown instead of schedule blocks" replacement: "Derive active duration tooltip directly from the schedule's blocks" files: - "packages/renderer/src/views/recipe/html.ts" - id: kitchen-prep-time-breakdown-signature layer: api deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "calculatePreparationTime() returns a breakdown of text-encoded labels (ingredients_overhead, cookware_overhead, prep_) alongside total" replacement: "Read the items of computeMiseEnPlace() (kind gather or prepare); calculatePreparationTime() keeps returning { total } in 2.0.0" files: - "packages/kitchen/src/metrics.ts" - id: renderer-gantt layer: renderer deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "The Gantt chart (toGanttHTML, attachGanttInteractivity, formatTime, formatAxisTime, the Gantt* types and gantt.css) is replaced by the run sheet: no surface of Gram draws it any more" replacement: "runSheetToHTML / runSheetToText / runSheetToMarkdown on the RunSheet of runSheet() (@gram-lang/scheduler), or a view of your own built from that data (how-to/build-custom-ui)" files: - "packages/renderer/src/gantt/render.ts" - "packages/renderer/src/gantt/interactivity.ts" - "packages/renderer/src/gantt/layout.ts" - "packages/renderer/src/gantt/types.ts" - id: i18n-gantt-keys layer: api deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "The gantt_* strings of playground.views, used only by the Gantt chart" replacement: "None: the run sheet uses the runSheet* strings of the renderer dictionary" files: - "packages/i18n/src/locales/en.ts" - "packages/i18n/src/locales/fr.ts" - id: i18n-playground-view-labels layer: api deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "The labels of the playground's old view selector: playground.viewLabel and, in playground.views, json, ast, jsonTree, markdown, preview and runSheet. The playground shows the views of the renderer as tabs and its inspectors in a menu instead" replacement: "renderer.outputs (by output id: recipe, runSheet, ast, json, json-tree), renderer.formats (html, markdown, text, print) and playground.output.views / inspect" files: - "packages/i18n/src/locales/en.ts" - "packages/i18n/src/locales/fr.ts" - id: lsp-gantt-notification layer: api deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "The language server still sends the gram/ganttUpdated notification (the Gantt chart as HTML); the VS Code extension no longer reads it" replacement: "The gram/viewUpdated notification of the views protocol (outputId runSheet), or the data of the compiled recipe (schedule, tasks) for a view of your own" files: - "packages/language-server/src/server.ts" - id: lsp-legacy-view-notifications layer: api deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "The language server sends gram/previewUpdated (the preview as HTML, or an error card) to a client that does not declare the views protocol, rendering every view of every open document whether it is shown or not" replacement: "Declare initializationOptions.views, say which outputs are open with gram/setOpenViews and read gram/viewUpdated (outputId recipe; state paused when the recipe has an error)" files: - "packages/language-server/src/server.ts" - id: vscode-show-gantt layer: cli deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "The gram.showGantt command (Gram: Gantt Chart) now opens the run sheet and says so once" replacement: "The gram.showRunSheet command (Gram: Run Sheet)" files: - "packages/vscode-extension/src/extension.ts" - id: json-snake-case-keys layer: compiled-json targetRemoval: "2.0.0" status: planned description: "8 snake_case keys in compiled/analyzed JSON (shopping_list, retro_planning, intermediate_preparation, default_unit, is_composite, is_intermediate, is_module_synthetic, variable_entries); _usageId/_usageIds are tracked separately in json-internal-usage-ids" replacement: "Normalized camelCase keys (shoppingList, retroPlanning, etc.)" files: - "packages/kitchen/src/types.ts" - "packages/analyzer/src/types.ts" - id: json-internal-usage-ids layer: compiled-json targetRemoval: "2.0.0" status: planned description: "_usageId and _usageIds exposed in public JSON without formal API contract" replacement: "Explicit token kind/discriminant on StepToken and public usage references" files: - "packages/kitchen/src/types.ts" - id: renderer-interactive-scaling layer: api deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "The interactiveScaling option of the renderer draws a portions stepper in the HTML recipe that works only where the host page wires its buttons; the recipe view shows the portions and the scale factor and leaves setting them to the surface. Its strings (decreasePortions, increasePortions, editPortions) go with it" replacement: "Scale the recipe before rendering it (applyScale() of @gram-lang/kitchen, or the surface's own controls, such as the playground's Portions & Scale settings): the view shows the scaled portions and the factor (×1.5) by itself" files: - "packages/renderer/src/types.ts" - "packages/renderer/src/shared/icons.ts" - "packages/renderer/src/views/recipe/html.ts" - "packages/i18n/src/locales/en.ts" - "packages/i18n/src/locales/fr.ts" - id: renderer-interactive-nutrition layer: api deprecatedIn: "1.4.0" targetRemoval: "2.0.0" status: active description: "The interactiveNutrition option of the renderer no longer has any effect: the HTML recipe shows every nutrition basis side by side in a table" replacement: "None: remove the option (nutritionBasis still shows a single basis)" files: - "packages/renderer/src/types.ts"