Fixes an issue in the API Gateway v2 adapter where the call to headers.raw() throws the following error:
TypeError: nodeResponse.headers.raw is not a function
As described in remix-run/remix#4354, the headers.raw() method is not available in the Headers class in Node.js. This change replaces the headers.raw() method with headers.getSetCookie() from the Fetch API to fix the issue.
This also updates the dependencies to modern versions of TypeScript and remix-run.
Fixes an issue in the API Gateway v2 adapter where the call to
headers.raw()
throws the following error:As described in remix-run/remix#4354, the
headers.raw()
method is not available in theHeaders
class in Node.js. This change replaces theheaders.raw()
method withheaders.getSetCookie()
from the Fetch API to fix the issue.This also updates the dependencies to modern versions of TypeScript and remix-run.