Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated PubSub to align with 0.11.0 #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Arlodotexe
Copy link

@Arlodotexe Arlodotexe commented Dec 16, 2021

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.

@Arlodotexe Arlodotexe mentioned this pull request Dec 16, 2021
@@ -48,7 +48,7 @@ public Task PublishAsync(string topic, byte[] message, CancellationToken cancel
url.Append("/api/v0/pubsub/pub");
url.Append("?arg=");
url.Append(System.Net.WebUtility.UrlEncode(topic));
url.Append("&arg=");
url.Append("&data=");
Copy link
Author

@Arlodotexe Arlodotexe Dec 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit does not conform to the 0.0.11 API changes and should be disregarded entirely. See eec74ba instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant