Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: reactiveui/refit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v15.1.0
Choose a base ref
...
head repository: reactiveui/refit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v15.2.0
Choose a head ref
  • 5 commits
  • 91 files changed
  • 2 contributors

Commits on Aug 18, 2026

  1. fix(generator): keep the analyzers loadable in Visual Studio (#2309)

    - Drop SourceLink from the Roslyn component projects. It pulls
      System.IO.Hashing, which floored System.Memory at assembly version
      4.0.2.0 for the whole restore graph.
    - Visual Studio's .NET Framework compiler host binds System.Memory only up
      to 4.0.1.2, so the generator threw FileNotFoundException on load and the
      build reported CS8784 with no generated clients. Refit.Analyzers had the
      same reference, silencing every RF diagnostic there too.
    - Command-line builds hid it: the .NET compiler host resolves the facade
      from the shared framework whatever version is asked for.
    - Add PackagedAnalyzerReferenceTests, which reads each shipped assembly's
      metadata and fails on a reference the compiler host cannot supply.
    
    Fixes #2308
    glennawatson authored Aug 18, 2026
    Configuration menu
    Copy the full SHA
    05c856a View commit details
    Browse the repository at this point in the history
  2. fix(headers): stop rewriting raw header values (#2310)

    - Check header presence through NonValidated instead of enumerating the
      collection. Enumerating forces the framework to parse every value already
      stored and write the parsed form back, so a value added verbatim was
      rewritten as soon as a second header was applied.
    - A method declaring "Accept: application/vnd.api.json;version=3.4.1"
      alongside any other header sent it with a space after the semicolon.
      Servers matching the media type as an exact string rejected it.
    - Fix both request paths at once by moving the check into HttpHeaderApplier,
      which the reflection builder and the generated runner already share. The
      reflection builder was affected on every target framework; the generated
      runner only on net4x.
    - On net4x, where NonValidated does not exist, probe the single named header
      instead. It leaves every other stored value untouched.
    
    Fixes #2306
    glennawatson authored Aug 18, 2026
    Configuration menu
    Copy the full SHA
    1dc4377 View commit details
    Browse the repository at this point in the history
  3. chore(deps): update dependency roslynator.analyzers to 4.16.1 (#2312)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 18, 2026
    Configuration menu
    Copy the full SHA
    755b8c3 View commit details
    Browse the repository at this point in the history
  4. feat(body): compress request bodies (#2311)

    * feat(body): compress request bodies
    
    - Add `[Body(Compression = ...)]` so a method can send its body under a
      content coding. Refit compresses whatever the serializer produced and sets
      Content-Encoding, so the coding composes with every serialization method.
    - Add RefitSettings.RequestCompression for a client-wide default. A [Body]
      parameter naming its own coding overrides it, and None opts one method out.
    - Use the framework's GZipCompressedContent, BrotliCompressedContent and
      ZstandardCompressedContent on net11.0, and compress through GZipStream or
      BrotliStream below it.
    - Throw PlatformNotSupportedException for a coding this framework cannot
      produce rather than quietly sending the body uncompressed. gzip is always
      available, Brotli needs net8.0, Zstandard needs net11.0.
    
    Closes #2307
    
    * feat(body): configure the request compressor directly
    
    - Add RefitSettings.RequestCompressionOptions so a client can set the
      compressor's own knobs - window size, strategy, a Zstandard dictionary -
      which a CompressionLevel cannot express.
    - Options set for a coding replace the level for that coding; the codings
      left unset still compress by level.
    - The options types arrived with .NET 9.0, and Zstandard's with .NET 11.0,
      so the surface only exists from net9.0 onward.
    
    * test(body): cover the request compression paths
    
    - Add generator tests for the coding and level a [Body] parameter declares,
      including the None case that emits no call and a level declared without a
      coding.
    - Add direct tests for the coding-to-token map and for the wrap and the
      compressor refusing a value that names no coding.
    - Add options tests for Brotli and Zstandard, so every coding that accepts
      its own compressor settings is exercised on the targets that have them.
    - Read an erroneous named argument through its TypedConstant kind rather
      than its value, so a value the compiler already rejected leaves the
      defaults in place instead of being read as an int.
    glennawatson authored Aug 18, 2026
    Configuration menu
    Copy the full SHA
    1643323 View commit details
    Browse the repository at this point in the history
  5. fix(debugging): stop debugger displays rendering as a bare null (#2315)

    - Give every debugger display literal text alongside its placeholder. A
      display made of nothing but one member rendered as a bare `null` the
      moment that member was null, which reads as though the object itself
      does not exist.
    - ApiResponse<T> was the reported case: hovering a response that came back
      without content showed `null`, sending the reader looking for a
      NullReferenceException that was never thrown. It now leads with the type
      and the status code.
    - Ten other shipped types carried the same shape and are fixed with it.
    - Add DebuggerDisplayTests, which walks the shipped assemblies and fails
      any display whose sole placeholder can be null, plus any placeholder
      naming a member that does not exist.
    
    Closes #2313
    glennawatson authored Aug 18, 2026
    Configuration menu
    Copy the full SHA
    96316a6 View commit details
    Browse the repository at this point in the history
Loading
⌂ 换网址