Skip to content

v2.0.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@MirkoZETA MirkoZETA released this 04 Mar 23:14
· 20 commits to master since this release

Added

  • New /run_simulation_stream endpoint for streaming simulation results in real-time:
    • Streaming responses include event types and structured JSON data.
  • Refactored backend code to reduce duplication and improve maintainability.
  • Added unit tests for the streaming endpoint.
  • Modified simulator.hpp to flush stdout after each line for better streaming support (see src/README.md).
  • Improved the \help endpoint with more concise documentation.
  • Enabled CORS only for the /run_simulation_stream endpoint to allow controlled API access.

Changed

  • Switched to Flex Net Sim v0.8.2.
  • Standardized API response format for better consistency:
    • Success responses now use status: "success" with data in a data field.
    • Error responses now use status: "error" with a message and detailed error fields.
  • Reorganized the test suite into separate files for better maintainability.
  • Improved parameter validation with descriptive error messages.
  • Changed the error response code from 500 to 400 for invalid parameters.
  • Moved parameter validation from C++ to the API layer for a better user experience.
  • Replaced the ExactFit algorithm with BestFit.
  • Enhanced algorithms

Full Changelog: v1.1.0...v2.0.0