github remix-run/remix headers@0.18.0
headers v0.18.0

latest releases: fs@0.3.0, multipart-parser@0.14.0, lazy-file@4.2.0...
3 hours ago
  • Add Vary support
import { Vary } from '@remix-run/headers'

let header = new Vary('Accept-Encoding')
header.add('Accept-Language')
header.headerNames // ['accept-encoding', 'accept-language']
header.toString() // 'accept-encoding, accept-language'
  • Accept.getPreferred(), AcceptEncoding.getPreferred(), and AcceptLanguage.getPreferred() are now generic, preserving the union type of the input array in the return type

Don't miss a new remix release

NewReleases is sending notifications on new releases.