Releases: gphotosuploader/google-photos-api-client-go
Releases · gphotosuploader/google-photos-api-client-go
v3.0.6
v3.0.5
Changed
- Updated supported
Go
versions to1.20
-1.21
. - Updated
github.com/go-chi/chi/v5
to version 5.0.12. - Updated
github.com/gphotosuploader/googlemirror
to version 0.5.0. - Updated
github.com/hashicorp/go-retryablehttp
to version 0.7.5. - Updated
google.golang.org/api
to version 0.167.0. - [CI] Updated
golangci
to 'v1.56.2'.
v3.0.4
Changed
- Bump
google.golang.org/api
to version 0.155.0 - Bump
github.com/hashicorp/go-retryablehttp
to version 0.7.5 - Bump
github.com/go-chi/chi/v5
to version 5.0.11
v3.0.3
v3.0.2
Fixed
- The missing mapping for
MediaItem.Description
, leaving all Descriptions empty when retrieving from the API. Thanks, @timjonischkat (#105)
Changed
v3.0.1
Changed
- Bump
google.golang.org/api
dependency. - Fix typo in
PaginatedList
in media.items.
v2.4.2
DEPRECATE v2.x in favor of v3.x
v3.0.0
Note: This is a major version update and is NOT BACKWARDS COMPATIBLE.
// New module path
import gphotos "github.com/gphotosuploader/google-photos-api-client-go/v3"
Added
albums.PaginatedList
retrieves a specific page of albums, allowing for efficient retrieval of albums in pages. (#65)media_items.PaginatedList
retrieves a specific page of media items, allowing for efficient retrieval of media items in pages. (#65)- Possibility to set custom
BaseURL
andUserAgent
inalbums
andmedia_items
services. - Possibility to set custom
BaseURL
inalbums
andmedia_items
services using theNewClientWithBaseURL
. - The
MockedGooglePhotosService
implements the Google Photos API for testing purposes. - A new
ErrDailyQuotaExceeded
error has been implemented to detect errors when the Google Photos 'All request' daily quota has been exceeded. (#62)
Changed
- [BREAKING CHANGE] Updated constructors for
albums.Service
andmedia_items.Service
to utilize the Config struct for customizations. - [BREAKING CHANGE] Google Photos 'All request' daily quota exceeded will not be retried. A
ErrDailyQuotaExceeded
will be raised instead. (#62) - [BREAKING CHANGE] Uploaders have been moved to
uploader.SimpleUplader
anduploader.ResumableUploader
. - [BREAKING CHANGE] The
uploader.NewResumableUploader
doesn't require auploader.Store
anymore. If it's not set, it will just work as anuploader.SimpleUploader
. - Reducing the number of retries for failed request to Google Photos API to 3,
- Simplified code in the
albums
andmedia_items
modules by removing the repository abstraction, resulting in improved code readability. - Module documentation has been improved adding examples of how to use this module.
Fixed
- [BREAKING CHANGE] Implemented a retry policy that excludes retries when the Google Photos quota per day has been reached. Instead, it returns an error
ErrDailyQuotaExceeded
. (#62) - Optimized the Albums Service to reduce the number of requests by fixing caching issues.
- The HTTP Client is now optional when the Album Manager, Media Item Manager, and Uploader are set.
Removed
- [BREAKING CHANGE] Removed the previous
CachedAlbumsService
service, which was not working properly. We encourage implementing caching strategies at consumer side. - [BREAKING CHANGE] Removed
gphotos.Client
optional options. Useghotos.Client
direct assignment to configure it after creation. - All services mock in favor of the
MockedGooglePhotosService
implementing Google Photos API for testing. - Unused OAuth scopes have been removed:
DrivePhotosReadonlyScope
andPhotoslibrarySharingScope
.
v3.0.0-rc.2
Version 3.0.0-rc.2
v3.0.0-rc.1
Note: This is a major version update and is NOT BACKWARDS COMPATIBLE.
// New module path
import gphotos "github.com/gphotosuploader/google-photos-api-client-go/v3"
Added
- Possibility to set custom
BaseURL
andUserAgent
inalbums
andmedia_items
services. - The
MockedGooglePhotosService
implements the Google Photos API for testing purposes. - A new
ErrDailyQuotaExceeded
error has been implemented to detect errors when the Google Photos 'All request' daily quota has been exceeded.
Changed
- [BREAKING CHANGE] Updated constructors for
albums.Service
andmedia_items.Service
to utilize the Config struct for customizations. - [BREAKING CHANGE] Google Photos 'All request' daily quota exceeded will not be retried. A
ErrDailyQuotaExceeded
will be raised instead. - [BREAKING CHANGE] Uploaders have been moved to
uploader.SimpleUplader
anduploader.ResumableUploader
. - [BREAKING CHANGE] The
uploader.NewResumableUploader
doesn't require auploader.Store
anymore. If it's not set, it will just work as anuploader.SimpleUploader
. - Reducing the number of retries for failed request to Google Photos API to 3,
- Simplified code in the
albums
andmedia_items
modules by removing the repository abstraction, resulting in improved code readability. - Module documentation has been improved adding examples of how to use this module.
Fixed
- [BREAKING CHANGE] Implemented a retry policy that excludes retries when the Google Photos quota per day has been reached. Instead, it returns an error
ErrDailyQuotaExceeded
. - Optimized the Albums Service to reduce the number of requests by fixing caching issues.
- The HTTP Client is now optional when the Album Manager, Media Item Manager, and Uploader are set.
Removed
- [BREAKING CHANGE] Removed the previous
CachedAlbumsService
service, which was not working properly. We encourage implementing caching strategies at consumer side. - [BREAKING CHANGE] Removed
gphotos.Client
optional options. Useghotos.Client
direct assignment to configure it after creation. - All service mocks in favor of the
MockedGooglePhotosService
implementing Google Photos API for testing. - Unused OAuth scopes have been removed:
DrivePhotosReadonlyScope
andPhotoslibrarySharingScope
.