Node.js added closed getter-only property to streams. This commit deprecates req.closed to avoid monkey-patching something that might be used in Node.js core or user-land libraries.
req.connectionState() === 'close' can be used to achieve the same result moving forward. req.closed will be removed on Restify 10 to open way to support Node.js v18.
Pre-Submission Checklist
[ ] Opened an issue discussing these changes before opening the PR
[ ] Ran the linter and tests via make prepush
[ ] Included comprehensive and convincing tests for changes
Node.js added
closed
getter-only property to streams. This commit deprecates req.closed to avoid monkey-patching something that might be used in Node.js core or user-land libraries.req.connectionState() === 'close'
can be used to achieve the same result moving forward. req.closed will be removed on Restify 10 to open way to support Node.js v18.Pre-Submission Checklist
make prepush
Issues
Closes:
Changes