I'm very excited to announce the release of gm-http v1.1.0! This update introduces several enhancements and important changes.
What's New in v1.1.0?
Feature Enhancements
- Improved Request Handling: Optimized the internal logic for processing HTTP requests, resulting in better performance and reliability.
- Query parameter and Multipart Form Parsing: The URI is now parsed and query parameters are placed in [connection].request.get, while multipart encoded forms and url-encoded inputs are now parsed and places in [connections].request.post. Both can be easily accessed by using
[connection].get("[method].[property]")
- see the README for examples! - Enhanced Logging: Introduced more detailed logging capabilities to assist in debugging and monitoring.
Breaking Changes
Please be aware of the following changes that may affect existing implementations:
- .listen() method now returns a real number OR
undefined
when the listener could not be started (as opposed to a real number less than zero when it could not be started) - .get() method now returns an empty string when the parameter could not be located, rather than
undefined
.
For a comprehensive list of changes and to review the code differences, please refer to the Full Changelog: v1.0.1...v1.1.0
We recommend reviewing these changes and testing your applications to ensure compatibility with the new version. If you encounter any issues or have questions, please open an issue on our GitHub repository.
Thank you for your support!