richardschneider / net-ipfs-http-client

InterPlanetary File System client for .Net (C#, VB, F# ...)
MIT License
158 stars 52 forks source link

Updated PubSub to align with 0.11.0 #70

Open Arlodotexe opened 2 years ago

Arlodotexe commented 2 years ago

This PR updates the PubSub APIs to work with the recent 0.11.0 release.

The biggest change in this PR is the removal of support for .NET Framework 4.5 and .NET Standard 1.4. Pubsub now makes heavy use of multibase encoding, which APIs are bare to nonexistent in most of .NET.

Instead of rolling my own, I used the IPFS recommended cs-multibase library, This library is only available on .NET Standard 2.0. For my purposes, this works more than fine. netstandard 1.4 is starting to show its age and .NET Framework supports netstandard2.0 starting in 4.6.1. Additionally, net45 read EOL as of April 22nd, 2022.

This does mean that the rest of the IPFS libraries that use this package will need to be updated before merging upstream.

Edit: I don't expect this PR to get merged any time soon. I'm working with the IPFS team to get this repo imported into the IPFS shipyard so the community can maintain it again.