Skip to content

Releases: brianlaclair/gm-http

v1.1.0

03 Jan 02:14
4a3dd95
Compare
Choose a tag to compare

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!

v1.0.1

31 Dec 03:43
Compare
Choose a tag to compare

That's right - a whole release, including an easy to download and import GameMaker Package for bringing gm-http into your project.

Since the initial announcement of this project (it seems like just yesterday...) there have been a variety of enhancements and bug fixes - let's take a look:

  • By default, gm-http now uses a Keep-Alive header to speed up subsequent requests
  • Request bodies are now correctly compiled from multiple requests if the body is over the 64kb limit
  • Connections now how a unique ID per-server-instance, meaning that even when the socket is gone, you can still identify the connection
  • Connections now have a boolean flag called connected indicating whether or not the connection is still active
  • Connections now flush their request struct by default when it's been responded to
  • Bug Fix: Incorrectly set custom headers could cause crashes + updated documentation to make the system more clear
  • Bug Fix: Fixed bug where certain processes would delete items from arrays and not recalculate the array index

If you've already been playing with this library, these changes should be non-breaking to what you've cooked up so far 🍲 Happy coding!

Full Changelog: https://github.com/brianlaclair/gm-http/commits/v1.0.1