|
| 1 | +# deprecation.d |
| 2 | + |
| 3 | +This directory contains deprecation notices for Vector. |
| 4 | + |
| 5 | +Each file describes a feature, configuration option, or behavior that is being deprecated. |
| 6 | +These notices are collected during the release process and rendered into two sections of the |
| 7 | +release notes: |
| 8 | + |
| 9 | +- **`deprecation_announcements`** – items deprecated in this release (announced for the first time). |
| 10 | +- **`planned_deprecations`** – items deprecated in an earlier release. |
| 11 | + |
| 12 | +## File format |
| 13 | + |
| 14 | +Each file must be named `<unique_slug>.md` and begin with YAML frontmatter: |
| 15 | + |
| 16 | +````markdown |
| 17 | +--- |
| 18 | +what: "`legacy_auth` configuration option" |
| 19 | +deprecated_since: "0.57.0" |
| 20 | +--- |
| 21 | + |
| 22 | +The `legacy_auth` option has been replaced by the new `auth` block. |
| 23 | + |
| 24 | +Migrate by replacing: |
| 25 | + |
| 26 | +```yaml |
| 27 | +legacy_auth: "my_token" |
| 28 | +``` |
| 29 | +
|
| 30 | +with: |
| 31 | +
|
| 32 | +```yaml |
| 33 | +auth: |
| 34 | + token: "my_token" |
| 35 | +``` |
| 36 | +```` |
| 37 | +
|
| 38 | +### Frontmatter fields |
| 39 | +
|
| 40 | +| Field | Required | Description | |
| 41 | +| ----- | -------- | ----------- | |
| 42 | +| `what` | Yes | Short one-line description of what is deprecated. | |
| 43 | +| `deprecated_since` | Yes | The release version in which this deprecation was first announced. Accepts a semver string (`0.56`, `0.56.0`). | |
| 44 | + |
| 45 | +### Body |
| 46 | + |
| 47 | +The body of the file is an optional Markdown explanation: migration instructions, rationale, |
| 48 | +or links to further documentation. It is rendered verbatim in the release notes. |
| 49 | + |
| 50 | +## Lifecycle |
| 51 | + |
| 52 | +1. **Announce** – a PR adds a file to this directory when the deprecation is first introduced. |
| 53 | +2. **Planned** – every subsequent release lists the entry under `planned_deprecations`. |
| 54 | +3. **Removed** – when a deprecated feature is finally removed, the PR deletes the file from this directory. |
| 55 | + |
| 56 | +## Validation |
| 57 | + |
| 58 | +Run `cargo vdev check deprecations` to validate all files in this directory. |
| 59 | + |
| 60 | +To preview the current deprecation state, run `cargo vdev deprecation show`. |
0 commit comments