Skip to content

Upgrade Dependencies to Resolve Deprecations, Conflicts, and Security Vulnerabilities #401

Description

@julioest

Overview

Our project is facing npm deprecation warnings, dependency conflicts, and security vulnerabilities. Resolving these issues is essential for maintaining stability, security, and long-term maintainability.

Issues Identified

Deprecation Warnings

  • querystring@0.2.0: Replace with URLSearchParams.
  • svgo@1.3.2: Upgrade to svgo@2.x.x.
  • chokidar@2.1.8: Upgrade to chokidar@3.x.x.
  • Additional Deprecated Packages: Includes urix, stable, uuid, and more.

Dependency Conflicts

  • Example: Conflicts between eslint@6.8.0 and @typescript-eslint/parser@1.13.0.
  • Impact: May cause unexpected behavior or build failures.

Security Vulnerabilities

  • Summary:
    • Low: 5
    • Moderate: 61
    • High: 35
    • Critical: 1
  • Recommendations:
    • Run npm audit fix for non-breaking fixes.
    • Use npm audit fix --force with caution for breaking changes.
    • Manually resolve remaining issues.

Proposed Actions

Upgrade Deprecated Dependencies

  • Replace querystring with URLSearchParams.
  • Upgrade to svgo@2.x.x and chokidar@3.x.x.
  • Update other deprecated packages as necessary.

Resolve Dependency Conflicts

  • Align @typescript-eslint/parser and eslint versions to avoid conflicts.
  • Address other dependency issues as identified.

Address Security Vulnerabilities

  • Apply automated fixes with npm audit fix.
  • Manually update or replace packages with unresolved vulnerabilities.
  • Test the application to ensure no regressions.

Acceptance Criteria

  • Deprecated packages are upgraded or replaced.
  • Conflicts are resolved with compatible dependencies.
  • Security vulnerabilities are significantly reduced.
  • The project builds and runs without warnings or issues.
  • All functionalities are tested and verified.
  • Documentation reflects updated dependencies and usage.

Additional Information

https://github.com/boostorg/website-v2-docs/actions/runs/13034378117/job/36361062783?pr=400#step:5:27

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions