Releases: lukepistrol/Pexels-Swift
Releases · lukepistrol/Pexels-Swift
0.7.4
0.7.4
- added
PSLogger.log(_ message:)
method - updated documentation
Previous Changes
0.7.3
- updated documentation
0.7.2
- added backwards compatibility for
iOS 13.0
andmacOS 10.15
0.7.1
- updated
DocC
documentation
0.7.0
Breaking Changes:
- renamed external parameter:
result:
tocount:
insearchVideos()
New Features:
- added
localization:
parameter tosearchPhotos()
andsearchVideos()
Internal Changes:
- enhanced API endpoint URL generation
- moved parameter string literals to
QueryParameter
enum - updated folder structure
- added shadow types
CategoryID
,ErrorDescription
- updated documentation
0.7.3
0.7.3
- updated documentation
0.7.2
- added backwards compatibility for
iOS 13.0
andmacOS 10.15
0.7.1
- updated
DocC
documentation
0.7.0
Breaking Changes:
- renamed external parameter:
result:
tocount:
insearchVideos()
New Features:
- added
localization:
parameter tosearchPhotos()
andsearchVideos()
Internal Changes:
- enhanced API endpoint URL generation
- moved parameter string literals to
QueryParameter
enum - updated folder structure
- added shadow types
CategoryID
,ErrorDescription
- updated documentation
0.7.2
0.7.2
- added backwards compatibility for
iOS 13.0
andmacOS 10.15
0.7.1
- updated
DocC
documentation
0.7.0
Breaking Changes:
- renamed external parameter:
result:
tocount:
insearchVideos()
New Features:
- added
localization:
parameter tosearchPhotos()
andsearchVideos()
Internal Changes:
- enhanced API endpoint URL generation
- moved parameter string literals to
QueryParameter
enum - updated folder structure
- added shadow types
CategoryID
,ErrorDescription
- updated documentation
0.7.1
0.7.1
- updated
DocC
documentation
0.7.0
Breaking Changes:
- renamed external parameter:
result:
tocount:
insearchVideos()
New Features:
- added
localization:
parameter tosearchPhotos()
andsearchVideos()
Internal Changes:
- enhanced API endpoint URL generation
- moved parameter string literals to
QueryParameter
enum - updated folder structure
- added shadow types
CategoryID
,ErrorDescription
- updated documentation
0.7.0
Breaking Changes:
- renamed external parameter:
result:
tocount:
insearchVideos()
New Features:
- added
localization:
parameter tosearchPhotos()
andsearchVideos()
Internal Changes:
- enhanced API endpoint URL generation
- moved parameter string literals to
QueryParameter
enum - updated folder structure
- added shadow types
CategoryID
,ErrorDescription
- updated documentation
0.6.0
New Features:
- added closure versions of
get
methods:
// fetch images metadata using completion handlers
pexels.getCuratedPhotos() { result in
switch result {
case .failure(let error):
print(error.description)
case .success(let photos):
// access photos
}
}
Internal Changes:
- moved methods for
Photos
,Videos
,Collections
to their own separate files - disabled logging in tests
- updated docs
0.5.0
Breaking Changes:
- renamed
setAPIKey(_:)
tosetup(apiKey:logLevel:)
// access the singleton instance
let pexels = PexelsSwift.shared
// set your API key
pexels.setup(apiKey: "YOUR_API_KEY", logLevel: .debug)
New Features:
- added
PSLogger
for logging events to the console on runtime. - see Ratelimit statistics in logs.
- see fetched data as
JSON
in logs. - see errors in logs.
Internal Changes:
- refactored
fetch
methods
0.4.1
0.4.1
- updated docs
0.4.0
Breaking Changes:
- renamed
PSCollectionCategory
toPSCollection
- renamed
getCategories()
togetCollections()
- results now get returned in a
Result<T, Error>
format:
let result = await pexels.getCuratedPhotos()
switch result {
case .failure(let error):
// handle error
case .success(let photos):
// access photos
}
Internal changes:
- using
async/await
syntax forURLSession
instead ofCombine
- renamed enum
PSURL
toAPI
0.4.0
Breaking Changes:
- renamed
PSCollectionCategory
toPSCollection
- renamed
getCategories()
togetCollections()
- results now get returned in a
Result<T, Error>
format:
let result = await pexels.getCuratedPhotos()
switch result {
case .failure(let error):
// handle error
case .success(let photos):
// access photos
}
Internal changes:
- using
async/await
syntax forURLSession
instead ofCombine
- renamed enum
PSURL
toAPI
0.3.0: Breaking: renamed `getPhotos(search:)` to `searchPhotos(_:)`
Breaking: renamed getPhotos(search:)
to searchPhotos(_:)
Added videos endpoints