Skip to content

Releases: merge-api/merge-csharp-client

1.0.1

10 Feb 21:15
a6751b6
Compare
Choose a tag to compare

Note: This release affects all categories.

  • (fix): Fixes a bug where the OauthTokenProvider.cs was incorrectly referencing the endpoint method, causing code to fail to compile.
  • (fix): Fixes a bug where the ClientOptions would not compile due to incorrect Clone method generation.
  • (feat): Add support for calling HTTP endpoints and gRPC endpoints within the same service.
  • (chore): Update System.Text.Json dependency from 8.0.4 to 8.0.5 because a security patch was released to resolve this vulnerability
  • (feat): Generate a ProjectName.Custom.props file for you to configure any MSBuild properties for your project.
  • (fix): Generate the license NuGet properties inside the .csproj file correctly.
  • (feat): Generate a ProjectName.Test.Custom.props file for you to configure any MSBuild properties for your test project.
  • (feat): Only import ProjectName.Custom.props and ProjectName.Test.Custom.props if the file exists, so you can delete the file if you wish to.
  • (fix): Do not re-import the .NET SDK inside of ProjectName.Custom.props.
  • (feat): Add support for idempotency headers.

1.0.0

23 Jan 17:36
ced1437
Compare
Choose a tag to compare

This release impacts all categories.

  • Updated descriptions and code snippets
  • Add query parameters for multiple Common Model endpoints
  • async POST request support
  • [accounting] add GeneralLedgerTransactions
  • [accounting] add BankFeeds and BankFeedTransactions
  • updated RemoteData and RemoteFields objects to allow for better handling

0.2.1

27 Aug 14:41
69bc7d9
Compare
Choose a tag to compare

This release impacts all categories.

  • Feature: Add the CancellationToken parameter as the last parameter to every endpoint method.
    For example,

    /// <summary>
    /// Add a movie to the database
    /// </summary>
    public async Task<string> CreateMovieAsync(
        CreateMovieRequest request,
        RequestOptions? options = null,
        CancellationToken cancellationToken = default
    )
    {
        var response = await _client.MakeRequestAsync(
            new RawClient.JsonApiRequest
            {
                BaseUrl = _client.Options.BaseUrl,
                Method = HttpMethod.Post,
                Path = "/movies/create-movie",
                Body = request,
                Options = options,
            },
            cancellationToken
        );
        ...
    }

    This aligns with the code analysis quality rule CA1068 outlined in the official .NET documentation.
    For details, please see https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1068

  • Feature: Add support for sending the User-Agent header.

  • Feature: Generate snippets as example documentation, e.g.

      /// <example>
      /// <code>
      /// await client.Data.UploadAsync(
      ///     new UploadRequest
      ///     {
      ///         Columns = new List<Column>()
      ///         {
      ///             new Column
      ///             {
      ///                 Id = "id",
      ///                 Values = new List<float>() { 1.1f },
      ///             },
      ///         },
      ///     }
      /// );
      /// </code>
      /// </example>
      public async Task<UploadResponse> UploadAsync(
          UploadRequest request,
          RequestOptions? options = null,
          CancellationToken cancellationToken = default
      )
      {
          ...
      }

0.2.0

12 Aug 21:33
fce1a17
Compare
Choose a tag to compare

What's Changed

  • Add MergeClient Root Client by @fern-bot in #32
  • 🌿 Fern Regeneration -- August 12, 2024 by @fern-api in #34

Full Changelog: 0.1.0...0.2.0

0.1.0

26 Jul 18:57
04fb39a
Compare
Choose a tag to compare

Note: This change impacts all categories.

  • Sync the SDKs with the latest updates to the Merge API.
    • New common models, query parameters, and fields
  • Added ResponseValidation skipping to avoid breaking issues due to the SDK typing not matching the response types
  • [CRM + Ticketing] Improved typing on the RemoteFields object value field to avoid breakage when returning variable types.
  • Improvements to developer experience

0.0.12

01 Jul 15:54
c03fb33
Compare
Choose a tag to compare

Note: This change impacts all categories.

  • Fix enum serialization bug where enum value was being capitalized causing expand query parameters to not work.

0.0.11

27 Jun 16:19
a676365
Compare
Choose a tag to compare

Note this release impacts all categories.

  • Improvement: Query parameter and header parameters with optional datetimes are now ISO 8601 encoded before making a request.

0.0.10

31 May 11:53
4540e77
Compare
Choose a tag to compare

What's Changed

  • (fix): introduce custom serializers for OneOf by @fern-api in #18

Full Changelog: 0.0.9...0.0.10

0.0.9

28 May 13:25
a5198ec
Compare
Choose a tag to compare

What's Changed

  • (improvement): .NET 6 compatibility

Full Changelog: 0.0.8...0.0.9

0.0.8

27 May 17:49
652d73e
Compare
Choose a tag to compare

(fix): the base path to each endpoint has been added back in the API spec, and the SDK regenerated