Skip to content

Version 0.22

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Apr 15:02
  • #289 Add endpoint routing for remote services.

    • Add extension methods IServiceCollection.AddBoleroRemoting() in Bolero.Server, with the same overloads as the existing AddRemoting(), to register remote services for endpoint routing.

    • Add extension method IEndpointRouteBuilder.MapBoleroRemoting(?buildEndpoint) that sets up endpoint routing for all registered services.
      The function buildEndpoint configures the endpoint for a given method.
      The returned IEndpointConventionBuilder configures all the endpoints.

    • Add typed version of IEndpointRouteBuilder.MapBoleroRemoting<_>(?buildEndpoint) to set up a specific remote service.

    • Make IServiceCollection.AddRemoting() and IApplicationBuilder.UseRemoting() obsolete, and add IServiceCollection.AddBoleroRemoting() in Bolero.Client as equivalent of AddRemoting().

  • #280 Add typed version of IServiceCollection.AddBoleroRemoting<_>() in Bolero.Client to configure the HttpClient and serialization of a given remote service separately.

  • #288 Update Elmish to version 4.

  • #296 Add CSS isolation for Bolero components.
    Files ending in .bolero.css are treated as component-specific styles which can be applied to a component type with the following property:

    override _.CssScope = CssScopes.MyApp

    where CssScopes is a compiler-generated module and MyApp is the name of the style file without .bolero.css extension.

    The MSBuild item BoleroScopedCss can be used to add component-specific CSS files.
    Its metadata ScopeName determines the name of the corresponding value in the CssScopes module.

  • #290 Add support for HTML element references in HTML templates.
    In a template, an attribute ref="MyRef" will generate a method .MyRef() taking an HtmlRef as argument.

  • #269 Add a Zero method to the HTML builders to allow raising exceptions in the body.