Migrate express-request-id to an inline middleware

Proprietary

Replaces the express-request-id middleware with an equivalent inline middleware built on randomUUID() from node:crypto, then removes the dependency from each package.json that declares it, updating the lock file to match.

org.openrewrite.node.migrate.express-request-id.migrate-express-request-id-to-native
mod run . --recipe=org.openrewrite.node.migrate.express-request-id.migrate-express-request-id-to-native

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Replace express-request-id with an inline middleware
  2. Remove the express-request-id dependency