Detects and reports deprecated packages in the dependency tree.
Checks the deprecated field from package metadata to warn
users about packages that should be replaced.
Summary
Functions
Checks a lockfile against registry metadata for deprecation notices.
Checks if a package is deprecated.
Extracts the deprecation message from a package.json data map.
Formats a deprecation entry as a warning string.
Scans node_modules for deprecated packages.
Types
Functions
@spec check(map(), map()) :: [deprecation_entry()]
Checks a lockfile against registry metadata for deprecation notices.
Takes a map of %{package_name => %{deprecated: message | nil, ...}}.
Checks if a package is deprecated.
Extracts the deprecation message from a package.json data map.
@spec format_warning(deprecation_entry()) :: String.t()
Formats a deprecation entry as a warning string.
@spec scan(String.t()) :: [deprecation_entry()]
Scans node_modules for deprecated packages.