Skip to content

compute_from suppresses deprecation warnings #1894

@jamesnw

Description

@jamesnw

Minimal nonsense reproduction, api.SVGAnimateColorElement is deprecated, html.elements.del is not.

name: deprecated
description: deprecated
compat_features:
  - api.SVGAnimateColorElement
  - html.elements.del

npm run dist -- path/to/file prints the warning:

warn: [feature id]: contains at least one deprecated compat feature and can never be Baseline. Was this intentional?

Adding a status.compute_from suppresses the deprecation warning.

name: deprecated
description: deprecated
status:
  compute_from: html.elements.del
compat_features:
  - api.SVGAnimateColorElement
  - html.elements.del

npm run dist -- path/to/file does not print a warning.

Ideally, it would also show the deprecated keys, but it looks like that is a bit harder to surface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tools and infrastructureProject internal tooling, such as linters, GitHub Actions, or repo settings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions