Releases: jollytoad/deno_http_fns
Releases · jollytoad/deno_http_fns
v0.25.0
Changed
- Update to Deno 2.1.3
- Update to latest
@std
deps - [@http/route] allow
asURLPattern
to accept a full URL pattern string, by
attempting to parse the pattern directly withnew URLPattern
before falling
back to treating it aspathname
of aURLPatternInit
- [@http/route] allow
byPattern
,bySubPattern
,cascade
andlazy
handlers
to return something other than aResponse
if desired
Fixed
- [@http/discovery] remove use of
@std/url
in tests - [@http/host-deno-local], [@http/host-deno-deploy] fix
Deno.serve
related
types - [@http/response] allow
prependDocType
to acceptIterable<Uint8Array>
which
is now a valid type ofBodyInit
- fix caught error types to be explicitly
unknown
v0.24.0
v0.23.1
v0.23.0
v0.22.0
v0.21.1 (@http/fs only)
Changed
- [@http/fs] remove dependency on
npm:bun-types
v0.21.0
v0.20.1
v0.20.0
Changed
- [@http/route] introduced a cross-runtime
staticRoute()
- [@http/route-deno] is now deprecated
Added
- [@http/fs] new package for filesystem based functions
- [@http/fs] added
fileBody()
as a cross-runtime way to turn a file into a
Response body - [@http/fs] added
serveDir()
/serveFile()
, adapted from
@std/http/file-server
- [@http/response] add responses required by
serveDir
/serveFile
v0.19.0
Changed
- [@http/interceptor] rethrow an error if a valid Response is not available to
return after all error interceptors have been called - [@http/assert] strip
assert-
from sub-modules (to align with@std/assert
) - Update deps to latest v1.* pre-releases of
@std
lib