Nnodejs

nodejs/http2-priority-signaling

Handle DEP0194 via removing HTTP/2 priority-related options and methods.

transformationmigrationhttp2deprecation
Public
1 executions
Run locally
npx codemod @nodejs/http2-priority-signaling
Documentation

HTTP/2 Priority Signaling Removal - DEP0194

This recipe removes HTTP/2 priority-related options and methods since priority signaling has been deprecated.

See DEP0194.

What this codemod does

  • Removes the priority property from http2.connect() call options
  • Removes the priority property from session.request() call options
  • Removes entire stream.priority() method call statements
  • Removes the priority property from client.settings() call options
  • Handles both CommonJS (require()) and ESM (import) imports

Examples

Before:

js

After:

js

Ready to contribute?

Build your own codemod and share it with the community.