@better-auth/stripe 1.4.0-beta.25 → 1.4.0-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @better-auth/stripe@1.4.0-beta.25 build /home/runner/work/better-auth/better-auth/packages/stripe
2
+ > @better-auth/stripe@1.4.0-beta.27 build /home/runner/work/better-auth/better-auth/packages/stripe
3
3
  > tsdown
4
4
 
5
5
  ℹ tsdown v0.16.5 powered by rolldown v1.0.0-beta.50
@@ -7,10 +7,10 @@
7
7
  ℹ entry: src/index.ts, src/client.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/index.mjs 37.59 kB │ gzip: 7.24 kB
10
+ ℹ dist/index.mjs 37.60 kB │ gzip: 7.25 kB
11
11
  ℹ dist/client.mjs  0.26 kB │ gzip: 0.20 kB
12
- ℹ dist/client.d.mts  0.62 kB │ gzip: 0.34 kB
12
+ ℹ dist/client.d.mts  0.62 kB │ gzip: 0.35 kB
13
13
  ℹ dist/index.d.mts  0.17 kB │ gzip: 0.13 kB
14
- ℹ dist/index-OuUympWt.d.mts 26.02 kB │ gzip: 5.01 kB
15
- ℹ 5 files, total: 64.66 kB
16
- ✔ Build complete in 11983ms
14
+ ℹ dist/index-aXzLoFtK.d.mts 26.02 kB │ gzip: 5.01 kB
15
+ ℹ 5 files, total: 64.67 kB
16
+ ✔ Build complete in 11950ms
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as stripe } from "./index-OuUympWt.mjs";
1
+ import { n as stripe } from "./index-aXzLoFtK.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  declare const stripeClient: <O extends {
@@ -366,7 +366,7 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
366
366
  stripeWebhook: better_call0.StrictEndpoint<"/stripe/webhook", {
367
367
  method: "POST";
368
368
  metadata: {
369
- isAction: boolean;
369
+ isAction: false;
370
370
  openapi: {
371
371
  operationId: string;
372
372
  };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as Subscription, n as stripe, r as StripePlan, t as StripePlugin } from "./index-OuUympWt.mjs";
1
+ import { i as Subscription, n as stripe, r as StripePlan, t as StripePlugin } from "./index-aXzLoFtK.mjs";
2
2
  export { StripePlan, StripePlugin, Subscription, stripe };
package/dist/index.mjs CHANGED
@@ -633,7 +633,7 @@ const stripe = (options) => {
633
633
  * incase we missed the event from stripe, we set it manually
634
634
  * this is a rare case and should not happen
635
635
  */
636
- if (!subscription.cancelAtPeriodEnd) await ctx.context.adapter.update({
636
+ if (!subscription.cancelAtPeriodEnd) await ctx.context.adapter.updateMany({
637
637
  model: "subscription",
638
638
  update: { cancelAtPeriodEnd: true },
639
639
  where: [{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@better-auth/stripe",
3
3
  "author": "Bereket Engida",
4
- "version": "1.4.0-beta.25",
4
+ "version": "1.4.0-beta.27",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
7
7
  "license": "MIT",
@@ -48,16 +48,16 @@
48
48
  "zod": "^4.1.12"
49
49
  },
50
50
  "peerDependencies": {
51
- "stripe": "^18 || ^19",
52
- "@better-auth/core": "1.4.0-beta.25",
53
- "better-auth": "1.4.0-beta.25"
51
+ "stripe": "^18 || ^19 || ^20",
52
+ "@better-auth/core": "1.4.0-beta.27",
53
+ "better-auth": "1.4.0-beta.27"
54
54
  },
55
55
  "devDependencies": {
56
- "better-call": "1.0.28",
57
- "stripe": "^19.1.0",
56
+ "better-call": "1.1.0",
57
+ "stripe": "^20.0.0",
58
58
  "tsdown": "^0.16.0",
59
- "@better-auth/core": "1.4.0-beta.25",
60
- "better-auth": "1.4.0-beta.25"
59
+ "@better-auth/core": "1.4.0-beta.27",
60
+ "better-auth": "1.4.0-beta.27"
61
61
  },
62
62
  "scripts": {
63
63
  "test": "vitest",
package/src/index.ts CHANGED
@@ -858,7 +858,7 @@ export const stripe = <O extends StripeOptions>(options: O) => {
858
858
  * this is a rare case and should not happen
859
859
  */
860
860
  if (!subscription.cancelAtPeriodEnd) {
861
- await ctx.context.adapter.update({
861
+ await ctx.context.adapter.updateMany({
862
862
  model: "subscription",
863
863
  update: {
864
864
  cancelAtPeriodEnd: true,