Conversation
Co-authored-by: dvinakur <dvinakur@netflix.com>
Co-authored-by: dvinakur <dvinakur@netflix.com>
* feat: replace request.connection with request.socket * feat: replace request.abort() with request.destroy() * feat: replace deprecated new Buffer() and Bufffer() functions --------- Co-authored-by: dvinakur <dvinakur@netflix.com>
* feat!: support Node.js 26 * feat: remove Node.js 20 from CI matrix * feat: add Node.js 22 to CI matrix * feat: update actions/checkout version to v7 --------- Co-authored-by: dvinakur <dvinakur@netflix.com>
…#2001) Co-authored-by: dvinakur <dvinakur@netflix.com>
* feat: remove production vulnerabilities * feat: replace uuid for crypto --------- Co-authored-by: dvinakur <dvinakur@netflix.com>
Co-authored-by: dvinakur <dvinakur@netflix.com>
#1996) * feat: replace deprecated url.resolve() and url.parse() with WHATWG URL * fix: replace parseUrlQuery and formatUrl for URL * fix: change finalUri.query generation * fix: fix redirect logic * feat: update dependencies (#2002) * feat: remove production vulnerabilities * feat: replace uuid for crypto --------- Co-authored-by: dvinakur <dvinakur@netflix.com> * fix: update comments * feat: add caching for absoluteUri --------- Co-authored-by: dvinakur <dvinakur@netflix.com>
* feat!: upgrade qs * feat: add arrayLimit option for bodyParser plugin * feat: add throwOnLimitExceeded option for queryParser and bodyParser plugins * feat: update documentation --------- Co-authored-by: dvinakur <dvinakur@netflix.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-Submission Checklist
make prepushIssues
Closes:
Summary
This PR updates restify for Node.js 26 support and modernizes deprecated Node.js APIs and dependencies. It raises the supported runtime baseline to Node.js 22+, updates CI to test Node.js 22/24/26, removes deprecated SPDY support, and replaces legacy URL/request APIs with modern platform APIs.
Changes
Node.js 26 support
engines.nodefrom>=10.0.0to>=22.0.0.Removed deprecated SPDY support
spdydependency.Deprecated Node.js API replacements
request.connectionusage withrequest.socket.request.abort()usage withrequest.destroy().new Buffer()/Buffer()usage.module.parentchecks in benchmarks/test helpers withrequire.main === module.uuiddependency usage withcrypto.randomUUID().URL API modernization
url.resolve()andurl.parse()paths with WHATWGURL.req.getUrl()to return/cache aURLinstance.req.getQuery().URL/URLSearchParams.OPTIONS *.Dependency updates
find-my-wayto^9.6.0.qsto^6.15.2.sendto^1.2.1.inquirerto^8.2.7.uuid.Query/body parsing
arrayLimitoption support for URL-encoded body parsing.throwOnLimitExceededsupport for query parsing and URL-encoded body parsing.qslimit errors asInvalidContentError.Routing
useSemicolonDelimiteroption to preserve optional semicolon-delimited path segment behavior with newerfind-my-way.useSemicolonDelimiter.Tests and docs
req.getUrl(),req.absoluteUri(), redirects, duplicate query params,OPTIONS *, and semicolon-delimited routing.next()from handlers.Breaking Changes
spdydependency.find-my-way@9; semicolon-delimited path segment stripping now requiresuseSemicolonDelimiter: true.qs@6.15.2, including optional limit-error behavior.Validation