0.24.7
Potentially Breaking Changes
-
Set
main
to cjs version0.24.6
Potentially Breaking Changes
-
Use ts-up for bundling
0.24.5
Potentially Breaking Changes
-
Revert back to JavaScript module
0.24.4
-
Drop dependency on superagent
Potentially Breaking Changes
- Revert back to commonjs module
- Fix tsconfig for proper module bundling
Potentially Breaking Changes
- Changed export from
export =
toexport default
- Update symbols for:
{CB}
{CG}
{CP}
{CR}
{CU}
{CW}
{D}
{H}
{L}
{P}
{S}
Potentially Breaking Changes
- Drop support for Node < 22
- Require using
setUserAgent
when running package on a node server - Package is now specificed as a module in package.json
- Support passing Phyrexian mana in reverse order to
getSymbolUrl
(IE: passingPG
will give you the correct symbol url forGP
)
- Allow symbols that get passed in to
getSymbolUrl
to be flexible around ordering of WUBRG characters. (IE: passingWG
will give you the symbol url forGW
,W2
will give you the symbol url for2W
,GRP
will give you the symbol url forRGP
, and so on)
- Allow symbols that get passed in to
getSymbolUrl
to be flexible around/
usage
- Drop support for ES5 browsers
- Drop support for node v12
- Fix issue where some symbols would return incorrect value when calling
getSymbolUrl
- Fix typings for oracle id, where it may not be present at the top level in some circumstances
- Apply oracle id to card faces, so card face always has a record of the oracle id
- Add
flavor_name
to top level of card object for cards with more than one face
Potentially Breaking Changes
- Update
superagent
tov7
(see the changelog forsuperagent@v7
for details)
- Include documented
random
method in client module (#30)
- Add
finishes
attribute to Card object (#29)
- Remove use of Node's querystring module to support current versions of Webpack
- Fix issue where
getSybmolUrl
could not parse symbols longer than one character
- Fix back face constant for cards without a back face
- Fix
getSymbolUrl
to handle lowercase mana symbols
- Fix
getSymbolUrl
to return the correct url prefix
- Update img.scryfall.com domains to c1.scryfall.com
- Update prices type to be strings or null
- Provide types for models at
scryfall-client/dist/types/model
- Include
warnings
andnot_found
arrays in Lists resolved fromgetCollection
Breaking Changes
getCollection
returns an List of Card objects (reverting the previous releases breaking change)- Default
warnings
andnot_found
to empty arrays in Lists
- Automatically batch requests to the getCollection endpoint when identifiers exceed 75 entries
Breaking Changes
getCollection
returns an Array of Card objects instead of a List of Card objects
- Add keywords to card model type
- Add content_warning to card model type
- Provide default values for booster and content_warning properties in card model
Breaking Changes
- Drop getCards method because the /cards endpoint is deprecated in the Scryfall API
- Fix issue where extended-promise module was not in dependencies
- Fix paths to modules
- Add typescript types
- Add
setTextTransform
method to process text from request responses - Add
slackify
method to automatically convert mana symobls into slack emoji text - Add
discordify
method to automatically convert mana symobls into slack emoji text - Add
resetTextTransform
method to reset text transformation - Add
setApiRequestDelayTime
method to set delay time between requests - Add
resetApiRequestDelayTime
method to reset delay time between requests to default (100 milliseconds) - Add
search
method to make basic searches easier - Add
random
method to make random query easier - Add
autocomplete
method to make card name lookups easier - Add
getSets
method to make fetching all set objects easier - Add
getSet
method to make fetching a set object by set code or scryfall id easier - Add
getSetByTcgId
method to make fetching a set object by TCG Player id - Add
getCollection
method to make looking up numerous cards easier - Add
getCard
method to make looking up single card easier - Add
getCards
method to make looking up all cards easier - Add
getCardNamed
method to make looking up single card by name easier - Add
getCardBySetCodeAndCollectorNumber
method to make looking up single card by set code and collector number easier
Breaking Changes
- Switch from class style module to singleton object
- Rename
Set
model toMagicSet
to avoid collision with globalSet
object - No longer throws an error for missing or unrecognized legality win
Card.isLegal
method.
- Fallback to lookup tokens from other prints when card has no tokens but rules text mentions tokens
- Add
post
method (closes #9) - Add
getSymbolUrl
method to client (closes #11) - Fix error when calling
getTokens
on a card without multiple parts (closes #10)
Breaking Changes
- Remove
symbols
file in favor ofgetSymbolUrl
- Normalize card_faces so all card objects have a card_faces array
Breaking Changes
- meld cards are not considered double sided, and will not resolve in the
getBackImage
method getImage
returns syncronously and throws errors when image uris do not exist or an invalid image option is providedgetBackImage
returns a single value syncrounsly and throws errors when image uris do not exist or an invalid image option is provided
- Fix issue where request header was set incorrectly
- add
getTaggerUrl
method to card object - swap out request module for
superagent
for better browser support
Breaking Changes
- move
symbols
off of the main Scryfall object and put it at the base level:require('scryfall-client/symbols')
- Add
getPrice
method to card object - Add
getTokens
method to card object
- Fix issue where null values were not handled properly
- Fix issue where melded cards could not fetch the backside image
- Fix issue where
next
method was not available in browser contexts
- Add thrown error property when wrapping scryfall response to illuminate the problem when parsing the response
- Add svg urls for mana symbols
- Add
textTransformer
option to constructor
- Add
wrap
method
- All error properties are exposed on error object
Breaking Changes
- Error object now passes http status as
status
instead ofhttpStatus
- Put get method on prototype of ScryfallClient for easier stubbing in testing
- Support strings converting mana symbols ({m}) to Slack emoji syntax (:mana-m:)
- Support strings converting mana symbols ({m}) to Discord emoji syntax (:manam:)
Breaking Changes
- Module is now instantiated as an instance
Breaking Changes
- Requests that return a catalog now return an array like object directly, rather than having the array nested in a
data
attribute.
- Initial release