deprecate checkoutApi, avoid breaking

This commit is contained in:
Shawn Erquhart
2025-03-27 15:41:32 -04:00
parent 5ab68376b0
commit a3b6cbb1ce
2 changed files with 5 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ export const {
// Cancels the current subscription.
cancelCurrentSubscription,
} = polar.api();
} = polar.checkoutApi();
// In a real app you'll set up authentication, we just use a
// fake user for the example.

View File

@@ -301,6 +301,10 @@ export class Polar<
}),
};
}
// Deprecated: use api() instead
checkoutApi() {
return this.api();
}
registerRoutes(
http: HttpRouter,
{