Repository navigation
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.jsto use new.start()function
Internal
- Moved route registration to
#setupRoutes() #serverListenernow explicitly allows null
Full Changelog: v2.4.6...v3.0.0