[PR #3457] [CLOSED] Usage Based Billing Change Log #13080

Closed
opened 2026-04-13 08:44:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3457
Author: @dagmawibabi
Created: 7/19/2025
Status: Closed

Base: feat/v1.3-anoucement-changelogHead: changelog13


📝 Commits (7)

  • 577ad2a fix(organization): allow org owner to update their own roles (#3426)
  • f521d7b docs: organization option for cancelPendingInvitationsOnReInvite (#3440)
  • 5242d82 fix(open-api): include additional fields (#3439)
  • 847fc9b feat(drizzle): support camel case schema generation (#2550)
  • 3cd2943 fix(social-providers): twitch provider not returning if email is valid (#3453)
  • 59b647a Merge branch 'better-auth:main' into changelog13
  • 8ca7dab usage based billing

📊 Changes

12 files changed (+356 additions, -38 deletions)

View changed files

📝 docs/content/changelogs/1-3.mdx (+67 -10)
📝 docs/content/docs/plugins/organization.mdx (+1 -1)
📝 packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts (+7 -0)
📝 packages/better-auth/src/adapters/kysely-adapter/test/state.txt (+1 -1)
📝 packages/better-auth/src/plugins/open-api/generator.ts (+41 -15)
📝 packages/better-auth/src/plugins/open-api/open-api.test.ts (+32 -0)
📝 packages/better-auth/src/plugins/organization/has-permission.ts (+9 -0)
📝 packages/better-auth/src/plugins/organization/organization.test.ts (+172 -0)
📝 packages/better-auth/src/plugins/organization/routes/crud-members.ts (+11 -6)
📝 packages/better-auth/src/plugins/organization/types.ts (+1 -1)
📝 packages/better-auth/src/social-providers/twitch.ts (+8 -1)
📝 packages/cli/src/generators/drizzle.ts (+6 -3)

📄 Description

Summary by cubic

Added usage-based billing support to the Stripe plugin, improved OpenAPI schema generation, and enhanced organization role management and documentation.

  • New Features

    • Usage-based billing with plan-level usage limits, daily aggregation, and enforcement in the Stripe plugin.
    • OpenAPI generator now includes additional user fields and better type handling.
    • Drizzle schema generator supports camelCase option.
    • Twitch provider now returns correct email verification status.
  • Bug Fixes

    • Organization owners can now update their own roles.
    • Fixed default for cancelPendingInvitationsOnReInvite to false in docs and types.
    • Improved permission checks and test coverage for organization roles.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3457 **Author:** [@dagmawibabi](https://github.com/dagmawibabi) **Created:** 7/19/2025 **Status:** ❌ Closed **Base:** `feat/v1.3-anoucement-changelog` ← **Head:** `changelog13` --- ### 📝 Commits (7) - [`577ad2a`](https://github.com/better-auth/better-auth/commit/577ad2a97fc636d3a28ba37eb531158012d9f66e) fix(organization): allow org owner to update their own roles (#3426) - [`f521d7b`](https://github.com/better-auth/better-auth/commit/f521d7bf110270fb91553a7233e02869ce407324) docs: organization option for cancelPendingInvitationsOnReInvite (#3440) - [`5242d82`](https://github.com/better-auth/better-auth/commit/5242d82aa8ede7980ebd044cbba5a23a0c5657ce) fix(open-api): include additional fields (#3439) - [`847fc9b`](https://github.com/better-auth/better-auth/commit/847fc9bfda368e24b25462c30c46115e0ccb00f6) feat(drizzle): support camel case schema generation (#2550) - [`3cd2943`](https://github.com/better-auth/better-auth/commit/3cd2943135440172e83cf127842e43f033489786) fix(social-providers): twitch provider not returning if email is valid (#3453) - [`59b647a`](https://github.com/better-auth/better-auth/commit/59b647a9b1b21ebe6dec5ac47cc2cf080e89ff16) Merge branch 'better-auth:main' into changelog13 - [`8ca7dab`](https://github.com/better-auth/better-auth/commit/8ca7dab2115c76eeafd4ad98f9b5987765c12817) usage based billing ### 📊 Changes **12 files changed** (+356 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/changelogs/1-3.mdx` (+67 -10) 📝 `docs/content/docs/plugins/organization.mdx` (+1 -1) 📝 `packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts` (+7 -0) 📝 `packages/better-auth/src/adapters/kysely-adapter/test/state.txt` (+1 -1) 📝 `packages/better-auth/src/plugins/open-api/generator.ts` (+41 -15) 📝 `packages/better-auth/src/plugins/open-api/open-api.test.ts` (+32 -0) 📝 `packages/better-auth/src/plugins/organization/has-permission.ts` (+9 -0) 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+172 -0) 📝 `packages/better-auth/src/plugins/organization/routes/crud-members.ts` (+11 -6) 📝 `packages/better-auth/src/plugins/organization/types.ts` (+1 -1) 📝 `packages/better-auth/src/social-providers/twitch.ts` (+8 -1) 📝 `packages/cli/src/generators/drizzle.ts` (+6 -3) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added usage-based billing support to the Stripe plugin, improved OpenAPI schema generation, and enhanced organization role management and documentation. - **New Features** - Usage-based billing with plan-level usage limits, daily aggregation, and enforcement in the Stripe plugin. - OpenAPI generator now includes additional user fields and better type handling. - Drizzle schema generator supports camelCase option. - Twitch provider now returns correct email verification status. - **Bug Fixes** - Organization owners can now update their own roles. - Fixed default for `cancelPendingInvitationsOnReInvite` to `false` in docs and types. - Improved permission checks and test coverage for organization roles. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 08:44:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#13080