Update dependency unsplash-js to v7 #243
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.3.0
->^7.0.13
Release Notes
unsplash/unsplash-js
v7.0.13
Compare Source
9771a96
e4dd476
02a891b
v7.0.12
Compare Source
7029133
Endpoint
type43845af
405ded0
getPathname
s5dd244f
createRequestGenerator
for consistencyaf15af8
4795b9e
eee2b25
getPathname
functionsb173245
d53d99d
87ab6c7
9a96523
6bc23e3
v7.0.11
Compare Source
4017424
7449cec
07fe4c8
2021d1e
01ae77f
getRandom
response type3306f13
v7.0.10
Compare Source
2b434bb
v7.0.9
Compare Source
getRandom
: addcontentFilter
param4141ca3
v7.0.8
Compare Source
bc40e60
v7.0.7
Compare Source
cb743fb
c33ad9c
OmitStrict
f89f6c0
4bfa823
v7.0.6
Compare Source
f91f7d5
v7.0.5
Compare Source
v7.0.4
Compare Source
7f32e51
c7adee3
6fd3d73
7772f1c
v7.0.3
Compare Source
v7.0.2
Compare Source
dcaf9f6
(closes #154)v7.0.1
Compare Source
bf1266d
c86c7e9
9ea55c2
v7.0.0
Compare Source
This version includes a total TypeScript rewrite of the library, with many breaking changes. If upgrading from a previous version, read carefully. You will not be able to upgrade to v7 without making the necessary adjustments.
Breaking Changes
Unsplash
class
with a namedcreateApi
function:createApi
function does not recievesecret
,callbackUrl
orbearerToken
.Removes the following API methods (primarily due to removal of user authentication):
photos
:likePhoto
unlikePhoto
downloadPhoto
(deprecated in 6.3, replaced withtrackDownload
)users
:statistics
collections
:createCollection
updateCollection
deleteCollection
addPhotoToCollection
removePhotoFromCollection
auth
:getAuthenticationUrl
userAuthentication
setBearerToken
currentUser
:profile
updateProfile
stats
:total
toJson
(the library now takes care of converting the response to JSON).Renames all of the remaining API methods:
search
:photos
-->getPhotos
users
-->getUsers
collections
-->getCollections
photos
:listPhotos
-->list
getPhoto
-->get
getRandomPhoto
-->getRandom
getPhotoStats
-->getStats
users
:profile
-->get
photos
-->getPhotos
likes
-->getLikes
collections
-->getCollections
collections
:listCollections
-->list
getCollection
-->get
getCollectionPhotos
-->getPhotos
listRelatedCollections
-->listRelated
toJson
helper. Feeds have the "x-total" header added to the response. The library now also performs error-handling: expected errors are returned instead of thrown, along with a description of their source. Check the TypeScript types and the Response section of the docs for the new response format.Changes
Configuration
📅 Schedule: "before 7am on Tuesday" in timezone Australia/Sydney.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.