-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 0.6.0. See release note or expand full commit message for det…
…ails. [Breaking] Fixed WebRTC-Direct support added in Kubo 0.30.0. Removed the Object API completely, since Kubo replaced it with the DAG API and no longer offers it. Refactored the FileSystem API to: - Enable proper directory uploads via a new `AddAsync` method that takes File and Folder parts separately. - Bring `FileAddOptions` fully up-to-date with modern Kubo. - Remove `AddDirectoryAsync` (used missing Object API). Updated several types to use one of int, long or ulong for Size matching the Kubo API. MerkleNode no longer has a static internal IpfsClient, and several properties that performed async calls synchronously were adjusted or removed. Block.DataBytes was removed as it was unused by any known interface or implementation. [New] Added FilestoreApi and the corresponding types. [Improvements] FilesystemApi.AddAsync now uses chunked transfer encoding, enabling uploading of very large files or groups of files.
- Loading branch information
1 parent
d8b77d9
commit e43acf0
Showing
23 changed files
with
642 additions
and
868 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
using System.Runtime.Serialization; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
namespace Ipfs.Http | ||
{ | ||
/// <inheritdoc /> | ||
[DataContract] | ||
public class Block : IDataBlock | ||
public record Block : IBlockStat | ||
{ | ||
/// <summary> | ||
/// The data of the block. | ||
/// </summary> | ||
public byte[] DataBytes { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[DataMember] | ||
[JsonProperty("Key")] | ||
public required Cid Id { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[DataMember] | ||
public required long Size { get; set; } | ||
public required int Size { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.