124 lines
5.4 KiB
YAML
124 lines
5.4 KiB
YAML
# 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: <id>)" or "// @remove-in: X.Y.Z [<id>]").
|
|
# 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/formatters/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_<id>) 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: 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"
|