Skip to content

Releases: gphotosuploader/google-photos-api-client-go

v3.0.6

23 Sep 11:11
v3.0.6
3bcf500
Compare
Choose a tag to compare

Changed

  • Updated supported Go versions to 1.21-1.23.
  • [CI] Updated golangci to 'v1.61.0'.
  • Updated github.com/go-chi/chi/v5 to version 5.1.0.
  • Updated github.com/hashicorp/go-retryablehttp to version 0.7.7.
  • Updated google.golang.org/api to version 0.198.0.

v3.0.5

24 Feb 08:06
v3.0.5
123b13d
Compare
Choose a tag to compare

Changed

  • Updated supported Go versions to 1.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

13 Jan 10:33
v3.0.4
23accfa
Compare
Choose a tag to compare

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

24 Oct 09:32
v3.0.3
2c509dc
Compare
Choose a tag to compare

Fixed

  • Filename metadata field in Google Photos UI was not set properly (#116)

Changed

  • Bump google.golang.org/api from 0.145.0 to 0.148.0

v3.0.2

07 Oct 04:30
v3.0.2
720a571
Compare
Choose a tag to compare

Fixed

  • The missing mapping for MediaItem.Description, leaving all Descriptions empty when retrieving from the API. Thanks, @timjonischkat (#105)

Changed

  • Update supported Go versions to 1.19, 1.20 and 1.21.
  • Bump github.com/go-chi/chi/v5 from 5.0.8 to 5.0.10 (#102)
  • Bump google.golang.org/api from 0.130.0 to 0.143.0 (#113)
  • [CI] Bump actions/checkout from 3 to 4 (#110)
  • [CI] Bump golangci from 1.53.1 to 1.54.2

v3.0.1

10 Jul 12:54
v3.0.1
a1e2458
Compare
Choose a tag to compare

Changed

  • Bump google.golang.org/api dependency.
  • Fix typo in PaginatedList in media.items.

v2.4.2

10 Jul 07:16
v2.4.2
075e0f7
Compare
Choose a tag to compare

DEPRECATE v2.x in favor of v3.x

v3.0.0

07 Jul 13:19
v3.0.0
e2d1ce1
Compare
Choose a tag to compare

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 and UserAgent in albums and media_items services.
  • Possibility to set custom BaseURL in albums and media_items services using the NewClientWithBaseURL.
  • 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 and media_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 and uploader.ResumableUploader.
  • [BREAKING CHANGE] The uploader.NewResumableUploader doesn't require a uploader.Store anymore. If it's not set, it will just work as an uploader.SimpleUploader.
  • Reducing the number of retries for failed request to Google Photos API to 3,
  • Simplified code in the albums and media_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. Use ghotos.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 and PhotoslibrarySharingScope.

v3.0.0-rc.2

23 Jun 12:22
v3.0.0-rc.2
71f3ce5
Compare
Choose a tag to compare
Version 3.0.0-rc.2

v3.0.0-rc.1

20 Jun 06:52
v3.0.0-rc.1
76812a2
Compare
Choose a tag to compare
v3.0.0-rc.1 Pre-release
Pre-release

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 and UserAgent in albums and media_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 and media_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 and uploader.ResumableUploader.
  • [BREAKING CHANGE] The uploader.NewResumableUploader doesn't require a uploader.Store anymore. If it's not set, it will just work as an uploader.SimpleUploader.
  • Reducing the number of retries for failed request to Google Photos API to 3,
  • Simplified code in the albums and media_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. Use ghotos.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 and PhotoslibrarySharingScope.