Skip to content

Commit

Permalink
v5.0.1, add colourless mana to Card.produced_mana
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Aug 11, 2024
1 parent 9040452 commit 97b0613
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v5.0.1 (August 11th, 2024)
- Add the potentiality of colourless mana (`"C"`) to `Card.produced_mana`.

# v5.0.0 (August 8th, 2024)
- Added support for setting the agent name due to [Scryfall's new requirements](https://scryfall.com/blog/user-agent-and-accept-header-now-required-on-the-api-225) via `Scry.setAgent(name, version)`(./DOCUMENTATION.md#scrysetagent-agent-string-version-string-void-). All applications using scryfall-sdk that are not running on clientside in the browser must provide an agent name & version.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scryfall-sdk",
"version": "5.0.0",
"version": "5.0.1",
"main": "./out/Scry.js",
"types": "./out/Scry.d.ts",
"description": "A Node.js SDK for https://scryfall.com/docs/api written in Typescript.",
Expand Down
1 change: 1 addition & 0 deletions src/IScry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ enum Colors {
}

export type Color = keyof typeof Colors;
export type ColorOrColorless = keyof typeof Colors | "C";

export namespace IScry {
export let fuzzySearch: (<T>(search: string, targets: T[], key: keyof T) => T | undefined) | undefined;
Expand Down
4 changes: 2 additions & 2 deletions src/api/Cards.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Color, RESOURCE_GENERIC_CARD_BACK, SYMBOL_COST, SYMBOL_PRINTS, SYMBOL_RULINGS, SYMBOL_SET, SYMBOL_TEXT } from "../IScry";
import { Color, ColorOrColorless, RESOURCE_GENERIC_CARD_BACK, SYMBOL_COST, SYMBOL_PRINTS, SYMBOL_RULINGS, SYMBOL_SET, SYMBOL_TEXT } from "../IScry";
import Cached from "../util/Cached";
import MagicEmitter from "../util/MagicEmitter";
import MagicQuerier, { ApiCatalog, List, TOrArrayOfT } from "../util/MagicQuerier";
Expand Down Expand Up @@ -428,7 +428,7 @@ export class Card implements CardFaceMethods {
oracle_text?: string | null;
penny_rank?: number | null;
power?: string | null;
produced_mana?: Color[] | null;
produced_mana?: ColorOrColorless[] | null;
reserved: boolean;
toughness?: string | null;
type_line: string;
Expand Down

0 comments on commit 97b0613

Please sign in to comment.