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
priorityproperty fromhttp2.connect()call options - Removes the
priorityproperty fromsession.request()call options - Removes entire
stream.priority()method call statements - Removes the
priorityproperty fromclient.settings()call options - Handles both CommonJS (
require()) and ESM (import) imports
Examples
Before:
js
After:
js