Releases: JacobHearst/ScryfallKit
v5.2.0 Battles and Minigames
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
Add oracleId and cmc to card faces
v5.0.0 Reversible card support
Breaking Changes
- Make
cmc
andoracleId
optional on theCard
model to support reversible cards
v4.0.0: Namespace update + Documentation
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 thequery
andfilters
variants)getCardNameAutocomplete
- Method signatures using
backFace: Bool
andversion: 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
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
Merge branch 'main' of github.com:JacobHearst/ScryfallKit
Fixing mistakes
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
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 enumsHashable
andIdentifiable
conformance for a number of models
Add async methods
This release contains async api methods
v2.0.0 Make Purchase URIs optional to support Alchemy
With the release of Alchemy, which introduces digital-only versions of cards, cards are no longer guaranteed to have purchase URIs.