Closed arjunyel closed 1 year ago
Using Deno's dnt build system, the SDK is now a Deno project that generates a cross-platform NPM distribution.
There are breaking changes:
client.createBillableMetric()
client.billableMetrics.createBillableMetric()
import { Client, getLagoError } from 'lago-javascript-client'; const lagoClient = Client('__YOUR_API_KEY__'); try { const { data } = await lagoClient.billableMetrics.createBillableMetric(billableMetric); } catch (error) { const lagoError = await getLagoError<typeof lagoClient.billableMetrics.createBillableMetric>(error); }
Closes https://github.com/getlago/lago-nodejs-client/issues/47
Using Deno's dnt build system, the SDK is now a Deno project that generates a cross-platform NPM distribution.
There are breaking changes:
client.createBillableMetric()
becomesclient.billableMetrics.createBillableMetric()
Closes https://github.com/getlago/lago-nodejs-client/issues/47