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..bf6ece9 100644 --- a/src/IpfsHttpClient.csproj +++ b/src/IpfsHttpClient.csproj @@ -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. @@ -77,7 +84,7 @@ Added missing IFileSystemApi.ListAsync. Doesn't fully replace the removed IFileS - +