Minor Changes
-
Added
SuperHeadersas the default and named export from@remix-run/headers.SuperHeadersextends the nativeHeadersclass and restores lazy, typed property accessors while keeping nativeHeadersstorage synchronized for platform APIs likeResponse.This restores the property accessor behavior that existed before it was removed in #10911.
Supported accessors include
Accept,Accept-Charset,Accept-Encoding,Accept-Language,Accept-Patch,Accept-Post,Accept-Ranges,Access-Control-Allow-Credentials,Access-Control-Allow-Headers,Access-Control-Allow-Methods,Access-Control-Allow-Origin,Access-Control-Expose-Headers,Access-Control-Max-Age,Access-Control-Request-Headers,Access-Control-Request-Method,Age,Allow,Authorization,Cache-Control,Connection,Content-Disposition,Content-Encoding,Content-Language,Content-Length,Content-Location,Content-Range,Content-Security-Policy,Content-Security-Policy-Report-Only,Content-Type,Cookie,Cross-Origin-Embedder-Policy,Cross-Origin-Embedder-Policy-Report-Only,Cross-Origin-Opener-Policy,Cross-Origin-Opener-Policy-Report-Only,Cross-Origin-Resource-Policy,Date,ETag,Expect,Expires,Forwarded,From,Host,Idempotency-Key,If-Match,If-Modified-Since,If-None-Match,If-Range,If-Unmodified-Since,Keep-Alive,Last-Modified,Link,Location,Max-Forwards,Origin,Permissions-Policy,Pragma,Prefer,Preference-Applied,Range,Referer,Referrer-Policy,Refresh,Retry-After,Server,Set-Cookie,Strict-Transport-Security,Traceparent,Tracestate,Upgrade-Insecure-Requests,User-Agent,Vary,Via,WWW-Authenticate,X-Content-Type-Options,X-Forwarded-For,X-Forwarded-Host,X-Forwarded-Proto,X-Frame-Options,X-Powered-By, andX-Robots-Tag.
Patch Changes
- Preserve literal
+characters when decoding RFC 8187filename*values forContentDisposition.preferredFilename.