Skip to content

Commit fc5893a

Browse files
committed
deprecate checkoutApi, avoid breaking
1 parent bdfe3a2 commit fc5893a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example/convex/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const {
6464

6565
// Cancels the current subscription.
6666
cancelCurrentSubscription,
67-
} = polar.checkoutApi();
67+
} = polar.api();
6868

6969
// In a real app you'll set up authentication, we just use a
7070
// fake user for the example.

src/client/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ export class Polar<
301301
}),
302302
};
303303
}
304-
// Deprecated: use api() instead
304+
/**
305+
* @deprecated: use api() instead
306+
*/
305307
checkoutApi() {
306308
return this.api();
307309
}

0 commit comments

Comments
 (0)