Skip to content

Releases: JacobHearst/ScryfallKit

v5.2.0 Battles and Minigames

01 Apr 14:47
Compare
Choose a tag to compare

Aside from some automation updates for the project, this release contains new enum values for Card.Layout, Card.FrameEffect and MTGSet.Type. It also adds an unknown type for each of these to prevent everything from crashing whenever Scryfall adds another value for any of these types.

Full Changelog: v5.1.1...v5.2.0

v5.1.1 Add OracleID and CMC to card face structs

17 Feb 14:37
Compare
Choose a tag to compare
Add oracleId and cmc to card faces

v5.0.0 Reversible card support

25 Jan 14:17
Compare
Choose a tag to compare

Breaking Changes

v4.0.0: Namespace update + Documentation

21 Oct 17:56
Compare
Choose a tag to compare

The largest change coming in this update is the new namespacing. All structs and enums related to the cards have been moved into extensions of the Card struct.

Breaking Changes

Renamed structs:

  • CardFace -> Card.Face
  • ImageURIs -> Card.ImageURIs
  • CardLegality -> Card.Legalities
  • ManaCost -> Card.ManaCost
  • Preview -> Card.Preview
  • CardPrices -> Card.Prices
  • RelatedCard -> Card.RelatedCard
  • Ruling -> Card.Ruling
  • CardSymbol -> Card.Symbol

Renamed enums:

  • CardColor -> Card.Color
  • Layout -> Card.Layout
  • Legality -> Card.Legality
  • BorderColor -> Card.BorderColor
  • Frame -> Card.Frame
  • FrameEffect -> Card.FrameEffect

Modified method signatures:

  • All method signatures using snake_case parameters have been updated to use camelCase. These functions are:
    • searchCards (both the query and filters variants)
    • getCardNameAutocomplete
  • Method signatures using backFace: Bool and version: Card.ImageType or similar have been modified to remove those parameters. These parameters are only relevant when requesting an image instead of a json object for a card which is not supported as of now. These functions are:
    • getRandomCard
    • getCard
    • Both variants of getCardByName

Documentation

Also included in this release is DocC style documentation for all public symbols! A web version of these will hopefully be available within the week

v3.0.0 Change type names

09 Aug 14:43
af55cb5
Compare
Choose a tag to compare

There was some overlap between the terminology used in Scryfall's API and some built in types of Swift/SwiftUI. These types have been renamed to make it clearer what is being referenced.

Renamed types:

  • Color -> CardColor
  • List -> ObjectList
  • Set -> MTGSet

Other improvements:

  • Rarities are now comparable
    • bonus < special < common < uncommon < rare < mythic
  • Colors are now comparable
    • W < U < B < R < G < C

v2.6.0 Add Filter Negation

26 Jul 14:14
Compare
Choose a tag to compare
Merge branch 'main' of github.com:JacobHearst/ScryfallKit

Fixing mistakes

16 Jul 00:49
Compare
Choose a tag to compare

I decided it would be a good idea to squish the last 3 minor versions into a single version. Unfortunately I decided to mess with the tags and now the project I'm using this for is using some cached version. This release version is what the next minor version would have been. Hopefully I'll release again before anyone has to read this

v2.2.0 Add helpers, initializers, and conformance

15 Jul 15:41
Compare
Choose a tag to compare

This release contains a number of quality of life updates including:

  • Public initializers for all models
  • Helper functions
    • Card.getAttributeForFace (Makes retrieving attributes of double faced cards easier)
    • Card.getLegality
  • CaseIterable conformance for a number of enums
  • Hashable and Identifiable conformance for a number of models

Add async methods

01 Jul 19:47
Compare
Choose a tag to compare

This release contains async api methods

v2.0.0 Make Purchase URIs optional to support Alchemy

04 Mar 15:57
93e21e0
Compare
Choose a tag to compare

With the release of Alchemy, which introduces digital-only versions of cards, cards are no longer guaranteed to have purchase URIs.