stoplightio / spectral

A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI (v3.1, v3.0, and v2.0), Arazzo v1.0, as well as AsyncAPI v2.x.
https://stoplight.io/spectral
Apache License 2.0
2.48k stars 233 forks source link

`sourcemap-codec` is deprecated #2374

Open silverwind opened 1 year ago

silverwind commented 1 year ago

Chore summary

$ npm install @stoplight/spectral-cli
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead

Tasks

Additional context

Depdendency tree:

└─┬ @stoplight/spectral-cli@6.6.0
  └─┬ @stoplight/spectral-ruleset-bundler@1.5.0
    └─┬ @rollup/plugin-commonjs@22.0.2
      └─┬ magic-string@0.25.9
        └── sourcemap-codec@1.4.8
silverwind commented 1 year ago

Or even better, remove the commonjs plugin as per https://github.com/stoplightio/spectral/issues/2363#issuecomment-1339809269.