Skip to content

chore: run npm deprecate on eds-tokens 2.x at 3.0.0 graduation #5193

Description

@pomfrida

Description

When the new token structure graduates from beta and ships as the stable 3.0.0 major, run npm deprecate on the old @equinor/eds-tokens 2.x range so consumers get an explicit signal at install time:

npm deprecate @equinor/eds-tokens@"<3.0.0" "eds-tokens 2.x still works and has no known issues, but is no longer maintained. It is superseded by the new token structure in 3.0.0 — migrate at your own pace: <migration guide URL>"

The message wording matters: it is the only thing consumers see in their install logs, and an alarming or vague message causes unnecessary escalations (compliance tooling flags deprecated dependencies automatically). Keep it factual and reassuring, with a direct link.

Context

This was deliberately deferred when the old token systems were marked "do not use" in #5191 (published as 2.3.2): deprecating the 2.x range while it is still the supported stable line would print install warnings for every consumer, including transitively via @equinor/eds-core-react 2.x which requires these tokens. The right time is when 3.0.0 ships and 2.x is genuinely superseded.

See the closing comment on #5120 for the full transition state.

Definition of Done

The order below is deliberate — the install warning should never be the first time a team hears about the transition:

  • 3.0.0 is released as stable (latest)
  • Migration guide published (2.x variable names → new token structure)
  • Transition announced (Slack / docs / release notes), including a heads-up that a deprecation warning will start appearing and what it means (nothing breaks, no security issue, migrate at your own pace)
  • npm deprecate applied to the 2.x range with a factual, reassuring message linking the migration guide
  • Verified that npm install @equinor/eds-tokens@2 shows the deprecation warning

Note: deprecation is reversible (npm deprecate <pkg>@<range> "" clears it), so this is low-risk to apply.

Timeline: blocked until 3.0.0 graduation (stable major not planned this year).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions