Releases: remix-run/remix
Releases · remix-run/remix
lazy-file v4.1.0
- Replaced
mrmimedependency with@remix-run/mimefor MIME type detection
headers v0.18.0
- Add
Varysupport
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(), andAcceptLanguage.getPreferred()are now generic, preserving the union type of the input array in the return type
headers v0.17.2
- Fix
secureproperty type inSetCookieto acceptbooleaninstead of onlytrue, making it consistent withhttpOnlyandpartitioned
fs v0.2.0
- Replaced
mrmimedependency with@remix-run/mimefor MIME type detection
file-storage v0.13.0
-
BREAKING CHANGE:
LocalFileStorageclass has been replaced withcreateFsFileStorage(directory) -
BREAKING CHANGE:
MemoryFileStorageclass has been replaced withcreateMemoryFileStorage()// 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
-
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
excludeoption toresource()andresources()route map helpers (#10858)
cookie v0.5.0
-
Add
Cookieclass. ThecreateCookiefunction now returns an instance of theCookieclass.// 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
Initial release of this package.
See the README for more details.
session v0.3.0
- BREAKING CHANGE: Rename
createFileStoragetocreateFileSessionStorage - BREAKING CHANGE: Rename
createMemoryStoragetocreateMemorySessionStorage - BREAKING CHANGE: Rename
createCookieStoragetocreateCookieSessionStorage
headers v0.17.1
- Fix bug where
Max-Age=0did not show up inSetCookieheader