Skip to content

Releases: kartikk221/hyper-express

4.0.0

29 Sep 02:02
Compare
Choose a tag to compare
  • Implemented most ExpressJS component properties/methods to allow for potential compatibility with existing ExpressJS middlewares in the community.
  • Implemented Route.expect_body option to parse incoming body into Request.body property in order to mimic ExpressJS functionality.
  • Moved Request.query to Request.path_query property to allow for ExpressJS-like behavior for the Request.query parameters property.
  • Implemented Response.attachment() and Response.download()
  • Added callback to Response.file() method in order to expose underlying cache pool for cache manipulation/expiry.

3.3.0

28 Sep 14:25
Compare
Choose a tag to compare
  • Implemented Promise iteration based middlewares
  • Fixed .file() method encoding problems due to string conversion causing loss of encoding.

3.2.0

25 Sep 17:30
Compare
Choose a tag to compare
  • Implemented WebsocketRoute.constructor.messageType parameter allowing specification incoming data format. By default websocket messages were parsed into Strings and then passed to handlers but now this behavior can be changed.
  • Migrated WebsocketRoute.handle() -> WebsocketRoute.on() to improve API readability. This change was backwards compatible as WebsocketRoute.handle() is now simply an undocumented alias of WebsocketRoute.on() method for binding websocket events.

3.1.0

23 Sep 23:19
Compare
Choose a tag to compare
  • Implemented response hooks to allow for cleanup operations at different points of a request's lifecycle.
  • Implemented sign/unsign method for request object to allow for better control of session engine.
  • Improved JSDoc types and notations for various methods to significantly improve intellisense.

3.0.0

18 Sep 23:08
Compare
Choose a tag to compare
  • Completely re-structured Session API
  • Simplified session engine methods usage
  • Included direct access to Session object on each handler invocation for more context
  • Note! The SessionEngine/Session API has changed thus this version is not backwards compatible with older implementations.

2.5.1

16 Sep 20:33
Compare
Choose a tag to compare
  • Implemented flexible http status and header writing system.
  • Upgraded uWebsockets.js to 19.4.0 -> uWS 19.6.0

2.4.0

11 Sep 20:35
Compare
Choose a tag to compare
  • Implemented efficient request chaining and handling flow.
  • Implemented route specific middlewares with global error handler catching support.
  • Implemented file serving for supported mime-types with intermediate caching.

2.2.0

03 Sep 17:02
Compare
Choose a tag to compare
  • Implemented Body Pre-Buffering
  • Increased global error handler range to catch middleware errors
  • Implemented Route/Method specific middlewares

2.0.0

21 May 01:15
6f98b3f
Compare
Choose a tag to compare
  • Completely re-factored codebase.
  • Implemented getters for most Request information parsing methods.
  • Restructured README for more organized method/parameter descriptions.
  • Optimized request handling logic.
  • Implemented tests for all components to ensure future consistency in functionality.

1.0.7

19 Apr 20:23
2aec90e
Compare
Choose a tag to compare

This release adds various optimizations to the signing/unsigning process for sessions along with various getter/setter methods for session ids in the Session object.