[PR #5839] [MERGED] chore: re-export third party types #23167

Closed
opened 2026-04-15 21:31:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5839
Author: @himself65
Created: 11/7/2025
Status: Merged
Merged: 11/7/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/11/07/re-export


📝 Commits (7)

📊 Changes

72 files changed (+142 additions, -136 deletions)

View changed files

📝 demo/nextjs/package.json (+2 -2)
📝 docs/package.json (+1 -1)
📝 packages/better-auth/package.json (+1 -1)
📝 packages/better-auth/src/api/middlewares/origin-check.test.ts (+1 -1)
📝 packages/better-auth/src/api/routes/account.ts (+1 -1)
📝 packages/better-auth/src/api/routes/callback.ts (+1 -1)
📝 packages/better-auth/src/api/routes/email-verification.ts (+1 -1)
📝 packages/better-auth/src/api/routes/reset-password.ts (+1 -1)
📝 packages/better-auth/src/api/routes/session.ts (+1 -1)
📝 packages/better-auth/src/api/routes/sign-in.ts (+1 -1)
📝 packages/better-auth/src/api/routes/sign-up.ts (+1 -1)
📝 packages/better-auth/src/api/routes/update-user.ts (+1 -1)
📝 packages/better-auth/src/api/to-auth-endpoints.test.ts (+1 -1)
📝 packages/better-auth/src/call.test.ts (+1 -1)
📝 packages/better-auth/src/client/test-plugin.ts (+1 -1)
📝 packages/better-auth/src/cookies/session-store.ts (+1 -1)
📝 packages/better-auth/src/db/to-zod.ts (+1 -1)
📝 packages/better-auth/src/index.ts (+6 -0)
📝 packages/better-auth/src/oauth2/state.ts (+1 -1)
📝 packages/better-auth/src/plugins/admin/admin.ts (+1 -1)

...and 52 more files

📄 Description

Summary by cubic

Re-exported jose and zod types from the @better-auth entrypoint to simplify consumer imports. You can now import JSONWebKeySet, JWTPayload, and all zod types (including v4) directly from @better-auth.

  • Dependencies
    • Upgraded zod to 4.1.12 and switched internal code to named imports (import { z } from "zod").

Written for commit 2ec9485637. Summary will update automatically on new commits.


🔄 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/5839 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/7/2025 **Status:** ✅ Merged **Merged:** 11/7/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/07/re-export` --- ### 📝 Commits (7) - [`36c19a8`](https://github.com/better-auth/better-auth/commit/36c19a82e9745d0c73582c3c320df85abaf472b5) chore: re-export third party types - [`ca7afbe`](https://github.com/better-auth/better-auth/commit/ca7afbe68390e2ae88f1d23a92e19eb64ac2c23c) chore: re-export third party types - [`769fa39`](https://github.com/better-auth/better-auth/commit/769fa39ae97e54e4a52f0f41ab5f64a2357a93ee) fix: zod type - [`c30ee1f`](https://github.com/better-auth/better-auth/commit/c30ee1fca17cbb1be4b3379ec2415e90daa4b1cf) chore: zod - [`c57b459`](https://github.com/better-auth/better-auth/commit/c57b459e06ce8f2593b20c09d81728d6f59804bc) chore: fix lock - [`1f8bf00`](https://github.com/better-auth/better-auth/commit/1f8bf00a938aecab0be1d86c2278b037a0f3b6d3) fix: export - [`2ec9485`](https://github.com/better-auth/better-auth/commit/2ec9485637b38d8e69c57e8c6c8b9373c372e71b) fix: export ### 📊 Changes **72 files changed** (+142 additions, -136 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/package.json` (+2 -2) 📝 `docs/package.json` (+1 -1) 📝 `packages/better-auth/package.json` (+1 -1) 📝 `packages/better-auth/src/api/middlewares/origin-check.test.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/account.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/callback.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/email-verification.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/reset-password.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/session.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/sign-in.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/sign-up.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/update-user.ts` (+1 -1) 📝 `packages/better-auth/src/api/to-auth-endpoints.test.ts` (+1 -1) 📝 `packages/better-auth/src/call.test.ts` (+1 -1) 📝 `packages/better-auth/src/client/test-plugin.ts` (+1 -1) 📝 `packages/better-auth/src/cookies/session-store.ts` (+1 -1) 📝 `packages/better-auth/src/db/to-zod.ts` (+1 -1) 📝 `packages/better-auth/src/index.ts` (+6 -0) 📝 `packages/better-auth/src/oauth2/state.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/admin/admin.ts` (+1 -1) _...and 52 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Re-exported jose and zod types from the @better-auth entrypoint to simplify consumer imports. You can now import JSONWebKeySet, JWTPayload, and all zod types (including v4) directly from @better-auth. - **Dependencies** - Upgraded zod to 4.1.12 and switched internal code to named imports (import { z } from "zod"). <sup>Written for commit 2ec9485637b38d8e69c57e8c6c8b9373c372e71b. Summary will update automatically on new commits.</sup> <!-- 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-15 21:31:42 -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#23167