Skip to content

v1.7.1

Latest

Choose a tag to compare

@CypherPotato CypherPotato released this 04 Dec 18:57

v1.7.1

Sisk 1.7.1 adds .NET 11 support to Sisk.HttpServer, introduces typed asynchronous route actions, and expands the API documentation and monitoring extensions.

HTTP server and Cadente

  • Added ZstandardContent for response compression on .NET 11. The existing target frameworks remain available.

  • Added RouteTask<T> for asynchronous route actions that return values without wrapping them in ValueResult<T>. For example, with a value handler registered for int:

    router.MapGet("/count", async RouteTask<int> () => {
        await Task.Yield();
        return 42;
    });
  • Added HttpRequest.RequestTimestamp, measured in Stopwatch ticks when the server received the request, and LogStream.BufferingTarget for decorators that delegate buffering to another stream.

  • Breaking: Route metadata keys are now case-insensitive. If a route used keys that differ only by case, rename the keys so they remain distinct.

  • Fixed file serving so HEAD requests send no media body (#61), and fixed OverrideHeaders so it replaces CORS and server headers (#62).

  • Fixed trailing-slash redirects so the Location stays on the current host, rejected control characters in response status descriptions, and preserved the original handler exception when it was handled by CallbackErrorHandler.

  • Request-body reads are now rejected once a response stream has started. Read the request body before opening the response stream.

  • Fixed Sisk.Cadente.CoreEngine so deferred route actions run after the response is sent, rather than delaying the response.

API documentation

  • Added ApiEndpointFlags for marking endpoints as Beta, Experimental, Preview, Deprecated, or Internal. The HTML exporter displays these flags as badges.
  • Added JsonContentTypeHandler(JsonOptions) and included XML documentation summaries in generated JSON schemas by default.
  • Fixed OpenAPI type mappings, JSON example escaping, and endpoint discovery when request handlers overload Execute or ExecuteAsync.
  • LlmsApiExporter now distinguishes endpoints by HTTP method and path. Without an explicit Hostname, it emits relative links instead of deriving the hostname from request headers. Set Hostname to keep absolute links.

Monitoring

  • Added an errors page that groups incidents into issues and lets operators inspect, copy, and resolve them. Applications can also report exceptions with MonitoringErrorConsole.TryInformException.
  • Added configurable meter periods, named series, aggregation modes, and axis formatting. By default, meters now offer 1-hour, 1-day, 7-day, and 30-day periods instead of a single 24-hour window.
  • Added ApplicationMonitor.AuthenticationHandler and RequestHandlers for customizing dashboard requests.
  • Improved snapshot persistence and metric windows. Fixed route-key cardinality growth when clients send unknown HTTP methods (#63).
  • Breaking: MonitoringSnapshot and MeterBucketSnapshot have new positional fields. Recompile consumers of these types and update any deconstruction to match the new signatures. Custom IMonitoringStore implementations should throw when a snapshot is temporarily unreadable; returning null means there is no snapshot and allows it to be replaced.

Other packages

  • Sisk.IniConfiguration, Sisk.JsonRpc, and Sisk.ModelContextProtocol centralize their internal messages.
  • Sisk.SslProxy remains discontinued and is not included in this release.