From 2a0468b76f5e27b754528adacbae01ecad697857 Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Sat, 14 Sep 2024 00:33:18 -0500 Subject: [PATCH 1/2] Added support for MfsWriteOptions.Flush in MfsApi.WriteAsync. --- src/CoreApi/MfsApi.cs | 2 ++ src/IpfsHttpClient.csproj | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CoreApi/MfsApi.cs b/src/CoreApi/MfsApi.cs index 4a29ee9..147855b 100644 --- a/src/CoreApi/MfsApi.cs +++ b/src/CoreApi/MfsApi.cs @@ -211,6 +211,8 @@ public async Task WriteAsync(string path, Stream data, MfsWriteOptions options, opts.Add($"raw-leaves={options.RawLeaves.ToString().ToLower()}"); if (options.Hash != null && options.Hash != MultiHash.DefaultAlgorithmName) opts.Add($"hash=${options.Hash}"); + if (options.Flush.HasValue) + opts.Add($"flush={options.Flush.ToString().ToLower()}"); if (string.IsNullOrEmpty(path) || !path.StartsWith("/")) throw new ArgumentException("Argument path is required and must start with '/'."); diff --git a/src/IpfsHttpClient.csproj b/src/IpfsHttpClient.csproj index 82bef48..c57cd3e 100644 --- a/src/IpfsHttpClient.csproj +++ b/src/IpfsHttpClient.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 @@ -77,7 +77,7 @@ Added missing IFileSystemApi.ListAsync. Doesn't fully replace the removed IFileS - + From bd78def7d9ce33b681ed9dcacbdf07c8376dcc3b Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Sat, 14 Sep 2024 00:33:33 -0500 Subject: [PATCH 2/2] Update version to 0.5.1, added release notes. --- src/IpfsHttpClient.csproj | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/IpfsHttpClient.csproj b/src/IpfsHttpClient.csproj index c57cd3e..bf6ece9 100644 --- a/src/IpfsHttpClient.csproj +++ b/src/IpfsHttpClient.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 @@ -9,7 +9,7 @@ true - 0.5.0 + 0.5.1 $(Version) 12.0 @@ -41,6 +41,13 @@ snupkg .pdb;$(AllowedOutputExtensionsInPackageBuildOutputFolder) +--- 0.5.1 --- +[New] +Added support for MfsWriteOptions.Flush in MfsApi.WriteAsync. + +[Improvements] +Updated to IpfsShipyard.Ipfs.Core 0.6.1. + --- 0.5.0 --- [Breaking] Inherited breaking changes from IpfsShipyard.Ipfs.Core 0.6.0. See release notes for details.