Releases: cyruzin/golang-tmdb
v1.9.1
v1.9.0
What's Changed
fix: remove deprecated person tagged images endpoint by @cyruzin in #88
- Remove
PersonTaggedImagesandPersonTaggedImagesAppendstructs - Remove deprecated
GetPersonTaggedImagesfunction - Remove associated test cases:
- TestGetPersonTaggedImages
- TestGetPersonTaggedImagesFail
- TestGetPersonTaggedImagesWithOptions
- Fix TestGetTVSeasonDetailsWithOptions test
The /person/{id}/tagged_images endpoint has been deprecated by TMDB and is no longer functional. This change removes all related code to maintain a clean and functional codebase.
BREAKING CHANGE: The GetPersonTaggedImages function and related types have been removed as the underlying TMDB API endpoint is no longer available. Users should use alternative endpoints for similar functionality.
v1.8.2
What's Changed
- Add vote_average and vote_count to new VoteMetrics struct by @adricorse in #77
- Fix/videos by @adricorse in #79
- Add MediaType field for collection parts by @csmith in #83
- Fix/images by @adricorse in #78
- Add watch providers struct by @adricorse in #80
- Add AlternativeTitle struct by @adricorse in #81
- updated readme by @cyruzin in #84
- Improved testing by @adricorse in #85
- Fix certifications by @adricorse in #86
- add adult flag to tv show results. by @james-lawrence in #87
New Contributors
- @adricorse made their first contribution in #77
- @csmith made their first contribution in #83
- @james-lawrence made their first contribution in #87
Full Changelog: v1.8.1...v1.8.2
v1.8.1
What's Changed
feat: migrate from json-iterator/json to goccy/go-json by @cyruzin in #76
- switched to goccy/go-json for better long-term support, compatibility, performance, and consistency
- json-iterator is no longer a fully compatible replacement for encoding/json and its updates have slowed down
Full Changelog: v1.8.0...v1.8.1
v1.8.0
What's Changed
Feat/ctx improvements by @cyruzin in #75
- improvements in the context of the
getandrequestfunctions. these functions now usecontext.withtimeoutto ensure that http requests have a timeout, preventing them from hanging indefinitely. a default timeout of 10 seconds is applied ifc.http.timeoutis not configured. - the
interface{}type has been replaced withanyin some parts of the code (functions and structs). this change aims to modernize the code and take advantage of the new keyword introduced in go 1.18, which is an alias forinterface{}. this improves code readability without altering functionality for go versions >= 1.18. for compatibility with earlier versions, the go code must be compiled with a version prior to 1.18.
Full Changelog: v1.7.1...v1.8.0
v1.7.1
v1.7.0
What's Changed
Refactor data structures for improved clarity and consistency by @cyruzin in #73
- Updated GenreMovieList to use a dedicated Genre type for better structure.
- Upgraded Go version in go.mod to 1.24 and updated dependencies, including testify to v1.10.0.
- Upgraded Go version in build.yml to 1.24
- Removed redundant fields from GuestSessionRatedMovies, GuestSessionRatedTVShows, and GuestSessionRatedTVEpisodes, replacing them with PaginatedResultsMeta.
- Simplified KeywordMovies by using PaginatedResultsMeta instead of individual pagination fields.
- Refactored MovieDetails to utilize structured types for genres, production companies, and spoken languages.
- Introduced new types for MovieResult and TVShowResult to streamline search and discovery results.
- Consolidated translation structures across various types for consistency.
- Enhanced TVDetails structure with specific types for created by, last and next episodes, and networks.
- Updated all search and trending response types to use PaginatedResultsMeta for pagination.
- Added a new types.go file to centralize common data structures used across the application.
Full Changelog: v1.6.9...v1.7.0
v1.6.9
v1.6.8
v1.6.7
What's Changed
- fix typo in tv and movie external IDs by @djeddi-yacine in #70
Full Changelog: v1.6.6...v1.6.7