github remix-run/remix headers@0.20.0
headers v0.20.0

latest releases: node-tsx@0.1.0, node-fetch-server@0.13.2, remix@3.0.0-beta.1...
5 hours ago

Minor Changes

  • Added SuperHeaders as the default and named export from @remix-run/headers. SuperHeaders extends the native Headers class and restores lazy, typed property accessors while keeping native Headers storage synchronized for platform APIs like Response.

    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, and X-Robots-Tag.

Patch Changes

  • Preserve literal + characters when decoding RFC 8187 filename* values for ContentDisposition.preferredFilename.

Don't miss a new remix release

NewReleases is sending notifications on new releases.