Releases: alexthemaster/sharex-server
Releases · alexthemaster/sharex-server
v3.0.0
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
v2.4.6
Fixes
- Forgot to properly handle Express' shenanigans for
this.#handleSxcuandthis.#checkAuthand for uploading files - Make sure SXCU and file listing route has priority over the catch-all for the uploaded files
- URL return had spaces
Don't ask me about the other patch versions, I'm an idiot lmfao
Full Changelog: v2.4.0...v2.4.6
v2.4.0
Features
-
Docker:
- Dockerfile now installs the published npm package instead of building locally
- Added Dockerfile.dev for testing local changes inside Docker without publishing
- Dynamically load production or local build of sharex-server into docker/index.js based on DEV environment variable
-
Implement Content-Length header to support scrobbling files
Fixes
- Videos stop mid-stream and don’t resume
- (Docker) Check if
forceHttpsis undefined and remove automatically assigned false
Chore
- Update dependencies
- Move
@types/expressto dev dependencies - Rename
CI.yml->continuous-integration.yml - Extract code into functions and constants for readability
- Use
res.jsoninstead ofJSON.stringify
Docs
- Add badges to README
- Clarify how the safeguard works and how generated filenames are handled
Full Changelog: v2.3.0...v2.4.0
v2.3.0
v2.2.0
Feat
- Use original filename (even no extension)
Fix
- Properly parse booleans in Dockerfile
v2.1.0
Feat:
- Add forceHttps option
Fix:
- sxcu endpoint was linked in / when disabled
V2.0.1
Fix
- sxcu endpoint was always enabled (do an explicit check)
V2.0.0
⚠️ Breaking changes, read README for new configuration
- Rewrite to Express and TypeScript
- Add ability to upload any type of file
- Add files directory listing
- Add debugging option
- Add Continuous Integration for linting and building
- Endpoint for downloading .sxcu file for ShareX (/api/sxcu)
- Update Docker documentation and build from source, instead of installing from NPM
- Update Docker image to LTS
v1.1.3
- Updated dependencies
- README changes
v1.1.2
Bug Fixes
- Use the user provided fileLength property