Skip to content

Releases: remix-run/remix

multipart-parser v0.14.0

26 Nov 00:05

Choose a tag to compare

  • Move @remix-run/headers to peerDependencies

lazy-file v4.2.0

26 Nov 00:05

Choose a tag to compare

  • Move @remix-run/mime to peerDependencies

fs v0.3.0

26 Nov 00:06

Choose a tag to compare

  • Move @remix-run/lazy-file and @remix-run/mime to peerDependencies

static-middleware v0.4.0

25 Nov 23:20

Choose a tag to compare

  • BREAKING CHANGE: Replace mrmime dependency with @remix-run/mime for MIME type detection which is now a peer dependency.

  • Add support for acceptRanges function to conditionally enable HTTP Range requests based on the file being served:

    // Enable ranges only for large files
    staticFiles('./public', {
      acceptRanges: (file) => file.size > 10 * 1024 * 1024,
    })
    
    // Enable ranges only for videos
    staticFiles('./public', {
      acceptRanges: (file) => file.type.startsWith('video/'),
    })

static-middleware v0.3.0

25 Nov 04:36

Choose a tag to compare

  • BREAKING CHANGE: Now uses @remix-run/response for file and HTML responses instead of @remix-run/fetch-router/response-helpers. The @remix-run/response package is now a peer dependency.

  • Add listFiles option to generate a directory listing when a directory is requested.

    staticFiles('./public', { listFiles: true })

session v0.4.0

25 Nov 04:27

Choose a tag to compare

  • Add Session class. The createSession function now returns an instance of the Session class.

    // You can now create sessions using either approach:
    import { createSession, Session } from '@remix-run/session'
    
    // Factory function
    let session = createSession()
    
    // Or use the class directly
    let session = new Session()
  • BREAKING CHANGE: Rename createFileSessionStorage to createFsSessionStorage and export from @remix-run/session/fs-storage

    // before
    import { createFileSessionStorage } from '@remix-run/session/file-storage'
    let storage = createFileSessionStorage('/tmp/sessions')
    
    // after
    import { createFsSessionStorage } from '@remix-run/session/fs-storage'
    let storage = createFsSessionStorage('/tmp/sessions')

response v0.2.0

25 Nov 23:02

Choose a tag to compare

  • BREAKING CHANGE: Add @remix-run/mime as a peer dependency. This package is used by the createFileResponse() response helper to determine if HTTP Range requests should be supported by default for a given MIME type.

  • Add compressResponse helper

  • The createFileResponse() response helper now only enables HTTP Range requests by default for non-compressible MIME types. This allows text-based assets to be compressed while still supporting resumable downloads for media files.

    To restore the previous behavior where all files support range requests:

    return createFileResponse(file, request, {
      acceptRanges: true,
    })

    Note: Range requests and compression are mutually exclusive. When Accept-Ranges: bytes is present in response headers, the compress() response helper and compression() middleware will not compress the response.

response v0.1.0

25 Nov 00:12

Choose a tag to compare

Initial release with response helpers extracted from @remix-run/fetch-router.

See the README for more details.

mime v0.1.0

25 Nov 22:53

Choose a tag to compare

Initial release of this package.

See the README for more details.

method-override-middleware v0.1.1

25 Nov 05:57

Choose a tag to compare

  • Re-use request methods from fetch-router