Skip to content

2.0.0

Compare
Choose a tag to compare
@LeonardoCardoso LeonardoCardoso released this 19 Jan 16:09
· 125 commits to main since this release
e00e1d4

Changed

  • Fully asynchronous (DispatchQueue).
  • Removed global state
  • Better response dictionary subscription via Enum
  • Configurable via constructor (URLSession, Work Queue, Response Queue)

Added

  • Caching support (InMemoryCache, but can be extended to other types)

API breaking changes

  • Subscriptions via Enum require changes in current code
  • preview method returns a Cancellable object with cancel method. This allows reusing of single configured SLP instance for multiple requests. cancel method removed from SwiftLinkPreview class.