Skip to content

Releases: lukepistrol/Pexels-Swift

0.7.4

19 May 17:56
Compare
Choose a tag to compare

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 and macOS 10.15

0.7.1

  • updated DocC documentation

0.7.0

Breaking Changes:

  • renamed external parameter: result: to count: in searchVideos()

New Features:

  • added localization: parameter to searchPhotos() and searchVideos()

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

19 May 07:59
Compare
Choose a tag to compare

0.7.3

  • updated documentation

0.7.2

  • added backwards compatibility for iOS 13.0 and macOS 10.15

0.7.1

  • updated DocC documentation

0.7.0

Breaking Changes:

  • renamed external parameter: result: to count: in searchVideos()

New Features:

  • added localization: parameter to searchPhotos() and searchVideos()

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

16 May 23:45
Compare
Choose a tag to compare

0.7.2

  • added backwards compatibility for iOS 13.0 and macOS 10.15

0.7.1

  • updated DocC documentation

0.7.0

Breaking Changes:

  • renamed external parameter: result: to count: in searchVideos()

New Features:

  • added localization: parameter to searchPhotos() and searchVideos()

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

16 May 14:30
Compare
Choose a tag to compare

0.7.1

  • updated DocC documentation

0.7.0

Breaking Changes:

  • renamed external parameter: result: to count: in searchVideos()

New Features:

  • added localization: parameter to searchPhotos() and searchVideos()

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

16 May 14:08
Compare
Choose a tag to compare

Breaking Changes:

  • renamed external parameter: result: to count: in searchVideos()

New Features:

  • added localization: parameter to searchPhotos() and searchVideos()

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

16 May 00:29
Compare
Choose a tag to compare

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

15 May 22:22
Compare
Choose a tag to compare

Breaking Changes:

  • renamed setAPIKey(_:) to setup(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

14 May 10:48
Compare
Choose a tag to compare

0.4.1

  • updated docs

0.4.0

Breaking Changes:

  • renamed PSCollectionCategory to PSCollection
  • renamed getCategories() to getCollections()
  • 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 for URLSession instead of Combine
  • renamed enum PSURL to API

0.4.0

14 May 10:34
Compare
Choose a tag to compare

Breaking Changes:

  • renamed PSCollectionCategory to PSCollection
  • renamed getCategories() to getCollections()
  • 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 for URLSession instead of Combine
  • renamed enum PSURL to API

0.3.0: Breaking: renamed `getPhotos(search:)` to `searchPhotos(_:)`

13 May 13:28
Compare
Choose a tag to compare

Breaking: renamed getPhotos(search:) to searchPhotos(_:)

Added videos endpoints