Skip to content

v3.0.0

Latest

Choose a tag to compare

@alexthemaster alexthemaster released this 18 Dec 20:05
· 6 commits to master since this release
824d693

Feat

  • Add .start() and .stop() functions
  • this.port gets reassigned if user provides port 0 (automatically assigns an open port)
  • Properly implement streaming by implementing Range logic
  • Add testing, this was way more tedious than I imagined but it should catch problems that might occur down the line so I won't push 5 patch updates in the timespan of 1 hour again

BREAKING CHANGE: Server no longer starts automatically; you need to call the .start() function

Fixes

  • baseUrl normalization uses replaceAll to handle nested paths
  • Throw Error instead of exiting the process when no password is provided

Build

  • rm -rf dist folder before building

Chore

  • Update dependencies
  • Add prepublishOnly script that runs lint, build and test
  • Update Docker index.js to use new .start() function

Internal

  • Moved route registration to #setupRoutes()
  • #serverListener now explicitly allows null

Full Changelog: v2.4.6...v3.0.0