Releases: lukeed/sirv
v1.0.1
v1.0.0
Breaking
Both sirv
and sirv-cli
now require at least Node v10.x to function (19061be).
This is the oldest LTS version of Node.js that's still possesses the "ACTIVE" label.
Features
-
(
sirv-cli
) Added--gzip
and--brotli
flags (#3) -
(
sirv-cli
) Allow--single
to accept custom fallback: fd55eca -
(
sirv-cli
) Added--ignores
option to escapesingle
: 918102e -
(
sirv
) Addedsingle
option, with customizable fallback: f13fbb8, fd55eca -
(
sirv
) Allow serving of precompiled gzip and/or brotli files: 3d34763 -
(
sirv
): Ships separate"module"
(ESM) and"main"
(CJS) entries: 9754302
Patches
- (
sirv
) Prevent server crash with malformed URLs (#54): 1757b26 - (
sirv
) Allow dotfiles option in "dev" mode (#51) - (
sirv
) Allow requests to/.well-known/*
files (#50): 0a04d66 - (
sirv
) ForceCache-Control: no-store
value for "dev" mode (#45): 604f926 - (
sirv
) Respect any previousContent-Type
on response (#38): c08ac50, 5ef168f - (
sirv
) Ignore deeply-nested dotfiles (default): 84d4f33
Chores
- (
sirv
) Refactor: Consolidate "dev" & "prod" handlers: f1bcc43 - (
sirv
): Refactor: Extractlist
utility intototalist
: 535b2c2 - Update benchmarks, include directly: a346382
- Update documentation: 8e9cb49
- Add multiple test suites for 99% code coverage: cbe0a47, 461b8de, 5953004, 07c65ac, 3cfb51e, 4608c92, b3b89cb, f6b1e72, 5f583e5, bdfc9b0, 3009ae0, 5d555d2
v0.4.6
NOTICE
This version patches a directory-traversal security vulnerability that exists indev
mode only. All users should update immediately, even if they don't think they're using--dev
oropts.dev
on live servers. There are no other changes in this release.
Patches
-
Fixes
dev
mode security vulnerability (#63): 1e0bac5
Thank you @marvinhagemeister~!As Marvin describes:
This allows an attacker to traverse the file system outside of the specified directory.
Let's say
sirv
was initialized to serve files from /foo/bar:sirv("/foo/bar");
...and an attacker makes a request to:
GET /../../etc/passwd
...then they are able to download the contents of that file.
Chores
v0.4.4
v0.4.3
Patches
-
(
sirv-cli
): Add missing--host
flag to change hostname (#29): 210302e -
(
sirv-cli
): Add missing support forPORT
andHOST
environment variables: 04ea942$ PORT=3000 sirv public $ HOST=0.0.0.0 sirv public $ sirv public --host 10.0.0.1
Chores
- Add
--dev
flag to README docs (#28): 11cc39a
Thank you @paulocoghi
v0.4.2
v0.4.1
v0.4.0
Breaking
- (
sirv
) Changeopts.onNoMatch
from(res)
to(req, res)
: abe9d69
Allowing the callback to consume the original request & response is more expected and flexible.
Patches
- Fix(
sirv-cli
) MaintainRange
/partial requests during--dev
mode: abe9d69
By sending an empty object, the original request's headers were all lost.