Skip to content

Discussion: Proposed Changes for expressjs/response-time Next Major Version #25

@carpasse

Description

@carpasse

This issue aims to discuss potential changes for the next major version of expressjs/response-time.

Key Areas to Consider:

  1. API Simplification - BREAKING CHANGE
  • Standardized Options Object: Remove the deprecated approach of passing a single number to the middleware. Going forward, users should provide options as an object:
    app.use(responseTime({ digits: 3 })); // Set digits to 3
  1. Node.js Version Support - BREAKING CHANGE
    Drop support for Node.js < 18: We propose discontinuing support for Node.js versions below 18 (LTS). This ensures alignment with the latest security patches and modern features of Node.js.

  2. Dependency Management
    Upgrade dependencies: Update all project dependencies to their latest compatible versions, ensuring access to bug fixes, security updates, and compatibility with Node.js 18+.

  3. Code Modernization - BREAKING CHANGE
    Migrate to new ES syntax: Consider refactoring the codebase to leverage modern ES syntax, improving maintainability and alignment with contemporary Node.js practices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions