YB.ParseLiveQueryDotNet 3.4.0

dotnet add package YB.ParseLiveQueryDotNet --version 3.4.0
                    
NuGet\Install-Package YB.ParseLiveQueryDotNet -Version 3.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YB.ParseLiveQueryDotNet" Version="3.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YB.ParseLiveQueryDotNet" Version="3.4.0" />
                    
Directory.Packages.props
<PackageReference Include="YB.ParseLiveQueryDotNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add YB.ParseLiveQueryDotNet --version 3.4.0
                    
#r "nuget: YB.ParseLiveQueryDotNet, 3.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=YB.ParseLiveQueryDotNet&version=3.4.0
                    
Install YB.ParseLiveQueryDotNet as a Cake Addin
#tool nuget:?package=YB.ParseLiveQueryDotNet&version=3.4.0
                    
Install YB.ParseLiveQueryDotNet as a Cake Tool

v3.4.0: Enhanced Subscription Management and Refined Error Handling ✨

This release focuses on improving the subscription process and making error handling more informative and consistent. We've refined internal workings to provide a smoother, more predictable LiveQuery experience. This version builds cleanly with no warnings, ensuring a smoother development experience. - Finally! 🫡

Key Improvements:

  • Streamlined Subscription Creation: The ISubscriptionFactory has been updated. The CreateSubscription method now includes an unsubscribeAction parameter. This allows for more robust and reliable cleanup when subscriptions are no longer needed. This is a breaking change for anyone with a custom ISubscriptionFactory implementation.

    // Updated interface:
    Subscription<T> CreateSubscription<T>(int requestId, ParseQuery<T> query, Action<Subscription> unsubscribeAction) where T : ParseObject;
    
  • Simplified Unsubscription: The Subscribe method within ParseLiveQueryClient now expertly handles the creation of the unsubscribeAction. This simplifies the subscription process and guarantees correct resource management. Added SubscriptionExtensions providing utility methods for easy unsubscription: UnsubscribeNow() and UnsubscribeAfter(long timeInMinutes).

  • More Informative Error Reporting:

    • Improved error handling in ParseObject and ParseUser now includes detailed exception messages, making it easier to diagnose issues.
    • Error logging in WebSocketClient during connection closure has been enhanced, providing better insights into connection problems.
    • The DidEncounter method within Subscription<T> benefits from improved error handling, passing the error to the subscription to provide error to users.
  • Internal Enhancements:

    • TaskQueue has been refined:
      • TaskQueue.Tail is now guaranteed to be non-nullable.
      • TaskQueue.Enqueue now returns a non-nullable Task<ParseUser>.
    • ParseCurrentUserController.currentUser is now non-nullable, reflecting its expected state more accurately.

Breaking Changes:

  • ISubscriptionFactory Interface: As mentioned above, the CreateSubscription method signature has changed. Custom implementations must be updated to include the Action<Subscription> unsubscribeAction parameter.

Upgrade Notes:

  • If you have implemented a custom ISubscriptionFactory, you must update its CreateSubscription method to match the new signature.
  • While this release primarily focuses on internal improvements, thorough testing of your application after upgrading is always recommended.
  • Enjoy a more streamlined and informative LiveQuery experience!

Happy Coding! 👍

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.4.0 200 a month ago
3.3.0 460 a month ago
3.2.0 205 a month ago
3.1.0 135 2 months ago
3.0.2 101 3 months ago
3.0.1 91 3 months ago
3.0.0 96 4 months ago
2.0.4 107 4 months ago
2.0.3 99 4 months ago
2.0.1 99 4 months ago
1.0.0 102 4 months ago

See detailed release notes in ReleaseNotes.md