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