- Added
not_found
array property toMagicEmitter.waitForAll()
return. AddedMagicEmitter.notFound()
. Based on a PR by aSlug
- Changed
set_type
on Card objects to the type of Set objects'set_type
.
- Added some missing properties to the Card object.
- Thanks to a contribution from codetheweb, added support for the
bulk-data
endpoint.
- Updated all data interfaces to those described in Scryfall's Docs.
- Including two updates by kasorin. Thanks!
- Added support for getting
CardIdentifier
s by their oracle and illustration IDs. - Normalised all "null or missing" properties to actually be
null
or missing.
- Updated axios to fix a security issue.
- Thanks to a contribution from somkun, the Scryfall SDK now uses Axios instead of Request Promise
- Added
Scry.setRetry
- There was heavy refactoring in this update. You may notice some d.ts changes, most of that is updating interfaces as per the Scryfall documentation and not exporting some interfaces/enums.
- Added
Cards.collection(...identifiers: CardIdentifier[])
- Added
Cards.byTcgPlayerId(id: number)
- Added
Sets.byId(id: string)
- Added
Sets.byTcgPlayerId(id: number)
- Added
Rulings.byArenaId(id: number)
- Added
Catalog.artistNames()
- Added
"done"
event to theMagicEmitter
, which is fired when the emitter ends, errors, or is cancelled. - Fixed a potential security issue (low severity; Scryfall would have to intentionally have served corrupted data or an attacker would have to intercept the data from Scryfall).
- Fixed
RelatedUris
andPurchaseUris
throwing errors in some configurations.
- Added support for filtering
Cards.byName()
by set. #10 Thanks dantolini!
- Added an optional
page
parameter toCards.all()
, defaulting to1
. To get only the one page, you can callcancelAfterPage()
on the resultingMagicEmitter
. - Added an optional
lang
parameter toCards.bySet()
. See the Scryfall Documentation for a list of valid languages. - Added support for
/cards/arena/:id
Fixed waitForAll
throwing an uncatchable promise rejection error.
Misc updates. Now using a Typescript Gulp file and [email protected]
New features:
- Search options
MagicEmitter.all()
- Updated
IScry.ts
with new/updated card fields.
New features:
Fixed an issue that caused the first page of results to be duplicated. How did I miss that for so long?
Fixed broken tests, some code cleanup
Initial release