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

Update support libraries #44

Merged
merged 10 commits into from
Dec 19, 2023
Merged

Update support libraries #44

merged 10 commits into from
Dec 19, 2023

Conversation

Zastai
Copy link
Owner

@Zastai Zastai commented Dec 19, 2023

This updates MetaBrainz.Build.Sdk to version 3.1.2, MetaBrainz.Common to version 3.0.0 and MetaBrainz.Common.Json to version 6.0.1.

QueryException has been dropped in favour of the HttpError class provided by MetaBrainz.Common.
The API docs now list it (and HttpRequestException) as potential exceptions for methods that issue web service requests.

This adjusts the link aliases and adds a section linking to the GitHub
release notes.
This drops `QueryException` in favor of `HttpError` from that library.

All uses of the obsolete `UnixTime` class have been replaced with
corresponding functionality of `DateTimeOffset`.
These include:

- use of `is [not] null` instead of `==/!= null` or `.HasValue`
- target-typed `new`
- expression-valued method bodies
- patterns
In the case of `ErrorInfo`, they were dropped entirely (the constructor
sets them); in all other cases they were changed from `set` to `init`.
In particular, the region with `IDisposable` handling has been moved out
of the `Internals` region (it includes public API so is not internal).
All methods that issue web request are now properly documented as
potentially throwing `HttpRequestException` or `HttpError`.
@Zastai Zastai added dependencies Updates to dependencies breaking An incompatible change to a feature or API (requires a bump of the major version) documentation Improvements or additions to documentation maintenance Internal changes that do not impact functionality or API nuget Version updates for NuGet packages labels Dec 19, 2023
@Zastai Zastai self-assigned this Dec 19, 2023
@Zastai Zastai merged commit 8757823 into main Dec 19, 2023
2 checks passed
@Zastai Zastai deleted the update-support-libraries branch December 19, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking An incompatible change to a feature or API (requires a bump of the major version) dependencies Updates to dependencies documentation Improvements or additions to documentation maintenance Internal changes that do not impact functionality or API nuget Version updates for NuGet packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant