Skip to content

Releases: remix-run/remix

lazy-file v4.1.0

25 Nov 23:19

Choose a tag to compare

  • Replaced mrmime dependency with @remix-run/mime for MIME type detection

headers v0.18.0

25 Nov 23:02

Choose a tag to compare

  • 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

headers v0.17.2

25 Nov 04:30

Choose a tag to compare

  • Fix secure property type in SetCookie to accept boolean instead of only true, making it consistent with httpOnly and partitioned

fs v0.2.0

25 Nov 23:20

Choose a tag to compare

  • Replaced mrmime dependency with @remix-run/mime for MIME type detection

file-storage v0.13.0

25 Nov 04:30

Choose a tag to compare

  • BREAKING CHANGE: LocalFileStorage class has been replaced with createFsFileStorage(directory)

  • BREAKING CHANGE: MemoryFileStorage class has been replaced with createMemoryFileStorage()

    // before
    import { LocalFileStorage } from '@remix-run/file-storage/local'
    import { MemoryFileStorage } from '@remix-run/file-storage/memory'
    let fsStorage = new LocalFileStorage('./files')
    let memoryStorage = new MemoryFileStorage()
    
    // after
    import { createFsFileStorage } from '@remix-run/file-storage/fs'
    import { createMemoryFileStorage } from '@remix-run/file-storage/memory'
    let fsStorage = createFsFileStorage('./files')
    let memoryStorage = createMemoryFileStorage()

fetch-router v0.12.0

25 Nov 04:34

Choose a tag to compare

  • BREAKING CHANGE: Moved all response helpers to @remix-run/response. Update your imports:

    // Before
    import * as res from '@remix-run/fetch-router/response-helpers'
    
    res.file(file, request)
    res.html(body)
    res.redirect(location, status, headers)
    
    // After
    import { createFileResponse } from '@remix-run/response/file'
    import { createHtmlResponse } from '@remix-run/response/html'
    import { createRedirectResponse } from '@remix-run/response/redirect'
    
    createFileResponse(file, request)
    createHtmlResponse(body)
    createRedirectResponse(location, status)
  • BREAKING CHANGE: Rename InferRequestHandler => BuildRequestHandler

  • Add exclude option to resource() and resources() route map helpers (#10858)

cookie v0.5.0

25 Nov 04:27

Choose a tag to compare

  • Add Cookie class. The createCookie function now returns an instance of the Cookie class.

    // You can now create cookies using either approach:
    import { createCookie, Cookie } from '@remix-run/cookie'
    
    // Factory function
    let cookie = createCookie('session')
    
    // Or use the class directly
    let cookie = new Cookie('session')

compression-middleware v0.1.0

25 Nov 22:58

Choose a tag to compare

Initial release of this package.

See the README for more details.

session v0.3.0

21 Nov 23:52

Choose a tag to compare

  • BREAKING CHANGE: Rename createFileStorage to createFileSessionStorage
  • BREAKING CHANGE: Rename createMemoryStorage to createMemorySessionStorage
  • BREAKING CHANGE: Rename createCookieStorage to createCookieSessionStorage

headers v0.17.1

21 Nov 23:48

Choose a tag to compare

  • Fix bug where Max-Age=0 did not show up in SetCookie header