Skip to content

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

Release v2.0.0

17 Dec 16:22
v2.0.0
35fe93e
Compare
Choose a tag to compare

Changes in this Release

This is a major version update, it means that is NOT BACKWARDS COMPATIBLE. New import path is in place.

Added

  • Cache is used to improve performance and reduce the number of calls to Google Photos API. See albums.Cache interface.
  • Improved testing of the whole module.
  • Added ListAlbums and ListAlbumsWithCallback, to get album list from library.
  • Added AddMediaToLibrary to upload media without assigning it to an album.
  • Added retries on HTTP Client. The default configuration will use Exponential Backoff with a maximum of 5 retries.

Changed

  • Import path includes v2: github.com/gphotosuploader/google-photos-api-client-go/v2.
  • Client call has changes to NewClient where you can customize with Options. See README for more information.

Fixed

  • Check for permission errors. (#25)
  • GetUploadToken should not be exposed. (#9)
  • Albums duplication, using mutex and cache. (#36)

Removed

  • Removed AlbumByName by FindAlbum.
  • Removed GetOrCreateAlbumByName by CreateAlbum.
  • Removed AddMediaItem by AddMediaToAlbum.
  • Removed NewOAuthConfig.
  • Removed the methods that were deprecated on v1.1.0. (#11)

See CHANGELOG for more details.

Release v2.0.0-rc-1

01 Dec 13:56
v2.0.0-rc-1
1374df8
Compare
Choose a tag to compare
Release v2.0.0-rc-1 Pre-release
Pre-release

Changes in this Release

This is a major version update, it means that is NOT BACKWARDS COMPATIBLE. New import path is in place.

Added

  • Cache is used to improve performance and reduce the number of calls to Google Photos API. See albums.Cache interface.
  • Improved testing of the whole module.
  • Added ListAlbums and ListAlbumsWithCallback, to get album list from library.
  • Added AddMediaToLibrary to upload media without assigning it to an album.

Changed

  • Import path includes v2: github.com/gphotosuploader/google-photos-api-client-go/v2.
  • Client call has changes to NewClient where you can customize with Options. See README for more information.

Fixed

  • Check for permission errors. (#25)
  • GetUploadToken should not be exposed. (#9)
  • Albums duplication, using mutex and cache. (#36)

Removed

  • Removed AlbumByName by FindAlbum.
  • Removed GetOrCreateAlbumByName by CreateAlbum.
  • Removed AddMediaItem by AddMediaToAlbum.
  • Removed NewOAuthConfig.
  • Removed the methods that were deprecated on v1.1.0. (#11)

See CHANGELOG for more details.

Release v2.0.0-alpha-2

09 Sep 00:33
v2.0.0-alpha-2
Compare
Choose a tag to compare
Pre-release

Add mutex to ensure unique albums on creation

Release v1.1.5

28 Feb 09:26
v1.1.5
bdfcf26
Compare
Choose a tag to compare

Changes in this Release

  • Update googlemirror dependencies to v0.3.5
    See CHANGELOG for more details.

Minor fix

27 Feb 11:11
v1.1.4
ee76873
Compare
Choose a tag to compare

Changed

  • Update required googlemirror package version to v0.3.4.

Minor fixes

13 Nov 15:07
v1.1.3
Compare
Choose a tag to compare

Added

Changed

  • README has been updated fixing some typos.
  • Module use an interface Logger to log activity. This allow to implement different logging systems. See internal/log/logger.go.

Deprecated

  • Once Go 1.13 has been published, previous Go 1.11 support is deprecated. This project will maintain compatibility with the last two major versions published.

Fix

  • Fix uploaded photos without a correct file name. (#32)

Removed

  • Remove progress information when uploading, if you want to have progress bars when upload a file, you should inject a reader to the Uploader().

Fix an important bug from previous version

12 Oct 16:58
v1.1.2
9791c40
Compare
Choose a tag to compare

Changed

  • Update golangci linter to version 1.20.0.

Fixed

  • Fix fatal error introduced in the last version. (#28)

Fix minor issue

12 Oct 05:55
v1.1.1
b7fabe2
Compare
Choose a tag to compare

NOTE: This version is not usable. There is a bug (#28) that make it non usable. Please use v1.1.2 instead.

Fixed

  • Fix race condition on GetOrCreateAlbumByName(). Google Photos API allow you to create several albums with the same name. (#26)

See CHANGELOG

Backward compatible version with a lot of new features

05 Oct 22:25
v1.1.0
618b86d
Compare
Choose a tag to compare

1.1.0

Added

  • New NewClientWithResumableUploads() function to create a Google Photos client with uploads that can be resumed.
  • New AddMediaItem() method to upload contents and make it available in Google Photos.
  • New uploader internal package implementing uploads to Google Photos.

Changed

  • Refactor how Google response is checked. It's following Google Photos best practices. (#10)
  • Updated README documentation and added examples.
  • Refactor how retries are handled by the code. See retryableMediaItemBatchCreateDo() method.

Deprecated

  • NewClient() function has been deprecated. Use NewClientWithResumableUploads() instead.
  • UploadFile() and UploadFileResumable() methods has been deprecated. Use AddMediaItem() instead.
  • noserver-gphotos package has been deprecated.

See CHANGELOG

Minor fix improving testing

21 Sep 19:26
v1.0.7
daa20f3
Compare
Choose a tag to compare

1.0.7

Added

  • A new Logger has been added to be shared across the whole package. See logger.go.
  • Tests for almost all the code, except uploads.go that needs a lot of refactor.
  • Package's documentation and examples of use.

Changed

  • xerrors is used instead of errors. Preparing code for Go 1.13 release.

Deprecated

  • Token() method has been deprecated. Current package implementation doesn't need to have OAuth token.

See CHANGELOG