Releases: remix-run/remix
multipart-parser v0.14.0
- Move
@remix-run/headerstopeerDependencies
lazy-file v4.2.0
- Move
@remix-run/mimetopeerDependencies
fs v0.3.0
static-middleware v0.4.0
-
BREAKING CHANGE: Replace
mrmimedependency with@remix-run/mimefor MIME type detection which is now a peer dependency. -
Add support for
acceptRangesfunction 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
-
BREAKING CHANGE: Now uses
@remix-run/responsefor file and HTML responses instead of@remix-run/fetch-router/response-helpers. The@remix-run/responsepackage is now a peer dependency. -
Add
listFilesoption to generate a directory listing when a directory is requested.staticFiles('./public', { listFiles: true })
session v0.4.0
-
Add
Sessionclass. ThecreateSessionfunction now returns an instance of theSessionclass.// 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
createFileSessionStoragetocreateFsSessionStorageand 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
-
BREAKING CHANGE: Add
@remix-run/mimeas a peer dependency. This package is used by thecreateFileResponse()response helper to determine if HTTP Range requests should be supported by default for a given MIME type. -
Add
compressResponsehelper -
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: bytesis present in response headers, thecompress()response helper andcompression()middleware will not compress the response.
response v0.1.0
Initial release with response helpers extracted from @remix-run/fetch-router.
See the README for more details.
mime v0.1.0
Initial release of this package.
See the README for more details.
method-override-middleware v0.1.1
- Re-use request methods from
fetch-router