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