- Breaking change (npm): Set
enginesto 20.11.0+ - Breaking change: Add
type: 'module'andexportstopackage.json; change internal CJS path - Breaking change: avoid serving hidden files by default (reenable with
--serve-hidden/serveHidden) - Breaking change:
cache: falsenow setsno-cache(as do 0 or negative values). Set tonullinstead to reproduce old behavior - Security: Fix dependency vulnerabilities by switching from
optimisttocommand-line-basics(@brettz9) - Security: Update
mimeandcolors(@fidian) and pincolors(@mannyluvstacos) - Security Update/fix: Use
URLconstructor over deprecatedurl.parse; should fix Open Redirect issue https://www.npmjs.com/advisories/1207 - Security Update/fix: Protect
fs.statcalls from bad path arguments; fixes Denial of Service issue https://www.npmjs.com/advisories/1208 (@brpvieira) - Security fix?: The Unauthorized File Access issue https://www.npmjs.com/advisories/1206 does not appear to be an issue per testing (if it ever was); if you can provide a test case where it fails, please report
- Fix: Support
bytes=0-0Range header (@prajwalkman) - Fix: Avoid octal (@bgao / @Ilrilan)
- Fix: For
spa, allow dots after path (@gjuchault) - Fix: ensure query string on directory request is passed on
- Fix: Ensure package
versionstays up to date - Fix: path should be more generous in unescaping anything valid in a path (such as a hash)
- Fix: Avoid logging range errors to console
- Fix: ensure
--default-extensionand--server-infoare settable by CLI - Fix: change
fs.createReadStream()mode to integer (@pixcai) - Enhancement: TypeScript support
- Enhancement: Add
directoryCallbackoption - Enhancement: Emit warning if gzipped file is older than source file
- Enhancement: add
gzipOnlyoption - Enhancement: Allow access with local ip (@flyingsky)
- Enhancement: Allow
serverInfoto benull(@martindale) - Enhancement: Time display logging with leading 0 (@mauris)
- Enhancement: Respect static
--cache 0(@matthew-andrews) - Enhancement: New option:
defaultExtension(@fmalk) - Enhancement: Added glob matching for setting cache headers (@lightswitch05)
- Update: Switch from deprecated
requesttonode-fetch - Optimization: 'use strict' directive
- Refactoring: Switch to ESM
- Docs: For examples (and internally) avoid
staticreserved word - Docs: Fix header example (@emmanouil)
- Docs: Sp. (@EdwardBetts)
- Docs: Make install section more visible, make defaults visible in semantically marked-up headings and add CLI options
- Docs: Add
CHANGES.md - Docs: Add ESM file-server example
- Linting: Prefer const, no-var, fix indent, comment-out unused,
prefer
startsWithandincludes - Refactoring: Use safer non-prototype version of
colors - Maintenance: Add
.editorconfig - Testing: Full test coverage
- Testing: Add checks for supposed direct
node-staticvulnerabilities - Testing: Allow tests to end (@fmalk)
- Testing: Switch to
mocha/chai/c8 - Testing: Add CI workflow
- Testing: Begin binary file coverage
- npm: Add eslint devDep. and script
- npm: Add lock file