Releases: gphotosuploader/google-photos-api-client-go
Releases · gphotosuploader/google-photos-api-client-go
Release v2.0.0
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
andListAlbumsWithCallback
, 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 withOptions
. 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
byFindAlbum
. - Removed
GetOrCreateAlbumByName
byCreateAlbum
. - Removed
AddMediaItem
byAddMediaToAlbum
. - Removed
NewOAuthConfig
. - Removed the methods that were deprecated on v1.1.0. (#11)
See CHANGELOG for more details.
Release v2.0.0-rc-1
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
andListAlbumsWithCallback
, 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 withOptions
. 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
byFindAlbum
. - Removed
GetOrCreateAlbumByName
byCreateAlbum
. - Removed
AddMediaItem
byAddMediaToAlbum
. - Removed
NewOAuthConfig
. - Removed the methods that were deprecated on v1.1.0. (#11)
See CHANGELOG for more details.
Release v2.0.0-alpha-2
Add mutex to ensure unique albums on creation
Release v1.1.5
Changes in this Release
- Update
googlemirror
dependencies to v0.3.5
See CHANGELOG for more details.
Minor fix
Changed
- Update required
googlemirror
package version to v0.3.4.
Minor fixes
Added
- CONTRIBUTING guide line has been 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
Fix minor issue
Backward compatible version with a lot of new features
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. UseNewClientWithResumableUploads()
instead.UploadFile()
andUploadFileResumable()
methods has been deprecated. UseAddMediaItem()
instead.noserver-gphotos
package has been deprecated.
See CHANGELOG
Minor fix improving testing
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 oferrors
. 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