Releases: moviecollection/the-movie-database
Releases · moviecollection/the-movie-database
v2.0.0-preview.2
- The
Newtonsoft.Json
package has been updated to the latest version. - Fixed the issue where the assembly version didn't match the package version.
Full Changelog: v2.0.0-preview.1...v2.0.0-preview.2
v2.0.0-preview.1
Breaking changes:
- The default values for
Language
,ImageFallbackLanguages
andIsAdultIncluded
options has been changed tonull
. - The
IsAdultIncluded
option is now nullable.
To keep the previous behavior, you should set the following values:
var options = new TheMovieDatabaseOptions
{
// ...
Language = "en-US",
ImageFallbackLanguages = "en,null",
IsAdultIncluded = false,
};
- The result classes now inherit from the
Response
class.
If you set the options.UseEnsureSuccessStatusCode
to false
(see new features below), you can check for errors via the Success
, StatusCode
and StatusMessage
properties.
Important
This means some classes that previously inherited from another base class (for simplicity), now implements the previous base class properties explicitly.
New features:
- A new
SearchMoviesAsync
overload has been added:
var search = new NewSearchMovie
{
Query = "three colors",
PrimaryReleaseYear = 1994,
// ...
};
var result = await service.SearchMoviesAsync(search);
- A new
SearchTVShowsAsync
overload has been added:
var search = new NewSearchTVShow
{
Query = "frasier",
FirstAirDateYear = 1993,
// ...
};
var result = await service.SearchTVShowsAsync(search);
- You can now set the
Language
(or override the 'options.Language') per request:
var search = new NewSearchMovie
{
// ...
// This overrides the 'options.Language' if exists.
Language = "fr",
// ...
};
- You can now set your user-agent via the
ProductInformation
option:
var options = new TheMovieDatabaseOptions
{
// ...
// Overrides the default request headers if exists.
ProductInformation = new ProductHeaderValue("your-app-name", "your-app-version"),
};
- You can now disable the
EnsureSuccessStatusCode
via theUseEnsureSuccessStatusCode
option:
var options = new TheMovieDatabaseOptions
{
// ...
// This option is set to 'true' by default.
UseEnsureSuccessStatusCode = false,
};
v1.0.0-preview.8
Changes:
- The
Newtonsoft.Json
package has been updated to the latest version. #2
v1.0.0-preview.7
Breaking changes:
- The target framework has been changed to
net48
(See: #1).
Internal changes:
- The unnecessary url encodes has been removed.
- The unnecessary async/awaits has been removed.
v1.0.0-preview.6
Breaking Changes:
- The account related methods has been added.
- The
GetTVShowEpisodeGroups
method has been renamed toGetTVShowEpisodeGroupsAsync
.
You can review the changes via FuGet API diff.
v1.0.0-preview.5
- Added new filters to the discover methods
- The debug symbols are now embedded.
v1.0.0-preview.4
- Added the
GetPersonCombinedCreditsAsync
method. - Added new
DiscoverMoviesAsync
andDiscoverTVShowsAsync
overloads. - Added a generic credits class.
The new discover overloads will help adding more query parameters to these methods in the future.
var discover = new NewDiscoverMovie
{
PrimaryReleaseYear = 2021,
};
_ = await service.DiscoverMoviesAsync(discover);
v1.0.0-preview.3
Breaking Changes:
- Added the missing async suffix to the person credits methods.
v1.0.0-preview.2
- Add person credits methods.
- Add
GenerateDocumentationFile
to the project.
v1.0.0-preview.1
- First preview release 🎉