Skip to content

v0.6.0

Compare
Choose a tag to compare
@rattrayalex rattrayalex released this 18 Jul 21:21
· 668 commits to main since this release

Breaking changes

The ability to pass an API Key as a positional argument to client instantiation, which was previous deprecated, has been removed.

Where previously you could do this:

const lithic = new Lithic('my api key'); // this won't work anymore!

You must now do either this:

const lithic = new Lithic({ apiKey: 'my api key' });

Or add an environment variable called LITHIC_API_KEY, and instantiate with no required arguments, eg;

const lithic = new Lithic();

For more, see the commit: [breaking] Remove deprecated apiKey positional argument to client instantiation

Headline changes

Add client.cards.getEmbedURL() and client.cards.getEmbedHTML().

Other changes

Guard against unresolvable package.json.

Guard against infinite recursion in pagination.