Skip to content

Security: Upgrade TypeScript and dev dependencies #16

@sammons-mechanic

Description

@sammons-mechanic

Summary

Several dev dependencies require major version upgrades to address security vulnerabilities and maintain compatibility with modern Node.js.

Current vs Latest Versions

Package Current Latest Breaking?
typescript 3.0.3 5.9.3 Yes
mocha 5.2.0 11.7.5 Yes
@types/mocha 5.2.5 10.0.10 Yes
tslint 5.11.0 5.20.1 No (but deprecated)

Notable Breaking Changes (TypeScript 3.x → 5.x)

  • Awaited type changes affecting Promise handling
  • Import elision behavior changes
  • Stricter type checking with --useUnknownForCatchVariables
  • Template string concatenation uses .concat() instead of +
  • See TypeScript Breaking Changes

Recommended Actions

  1. TSLint → ESLint migration: TSLint is deprecated. Consider migrating to ESLint with @typescript-eslint.
  2. Update TypeScript: Upgrade to 5.x and fix any type errors
  3. Update Mocha: Upgrade to 11.x (requires Node.js 18+)
  4. Update Node.js engine requirement: Current "node": "8.x.x" is extremely outdated. Recommend Node.js 18+ or 20+.

Security Vulnerabilities Addressed

  • minimist prototype pollution (critical)
  • diff DoS vulnerability
  • minimatch ReDoS vulnerability
  • Various other vulnerabilities in transitive dependencies

🤖 Generated by automated security sweep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions