Releases: ServerHubOrg/serverhub-mvc
Fix bugs when loading binary files
Fix
(From merge #18 )
- Type converting issues
When the original data is a binary file, the old functions tried to calltoString()
method on chunk (Buffer object) and pass it towrite()
method onhttp.ServerResponse
instances. This may cause a wrong calculation of data loaded and the client cannot parse the response data correctly. - Header name too strict
Old version of ServerHub only support setting HTTP header names like "Content-Type", but not everyone can remember that. So this merge contains update to that function that auto convert to lower-cases before actual comparison.
WebSocket Support
After several days of test, a new version of serverhub-mvc is released.
Add
- WebSocket (benefit from npmjs/ws).
Fix v1.5.0
Fix
- Version 1.5.0 will refuse HTTP requests coming to your server when no middleware defined.
All users are STRONGLY suggested to upgrade to v1.5.1 to avoid crashing your site.
Middleware Available
Add
- Middleware support
You can now easily filter request URL and execute some extra operations on them (or anonymous analysis).
Fix
- Error handling
Errors may crash serverhub-mvc previous versions when it is unable to connect to Internet.
Update
- Redesign default 404 page.
- Write all system errors to log file.
Internal Logger Being Used
A few updates since v1.3.0:
- Reduce frequency of creating new log files.
- Optimize runtime/compile-time log usage.
New route engine
Here is a major update to ServerHub's route engine: Runtime Route Algorithm v2.
Detailed introduction should be available along with ServerHub's new document site (late July, 2018).
Log service imported
You may access the log service like the following example:
global.LogService.Error('error', 'Cannot create connection to https://www.google.com.');
If you want to modify default log configuration, there is a LogConfig
property, which will be covered in our docs.
ServerHub official website release
Add
- ServerHub Open Source is our official site.
Fix
- Unable to resolve query string in top level route request.
- Unstable HTTP->HTTPS redirection
HTTP -> HTTPS Auto Redirect with Fix
As v1.1.0
has an fatal bug that could crash your website, we immediately released v1.1.1
to fix that issue.
This release contains auto HTTP to HTTPS redirect feature (when you opened at least one TLS secured port).
[DEPRECATED] HTTP Traffic Redirected to HTTPS
Please upgrade to v1.1.1
which fixed the fatal issue in v1.1.0
.
This release is very helpful to those who has set up TLS support for their website. All traffic to your HTTP ports will be redirected to HTTPS once you start at least one TLS secured port.
Add
Redirects HTTP to HTTPS.
Update
ServerHub supports multiple property names to configure TLS/SSL support.