[PR #8139] [MERGED] fix(cookie): add deprecated options alias for backward compatibility #7773

Closed
opened 2026-03-13 13:48:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8139
Author: @himself65
Created: 2/25/2026
Status: Merged
Merged: 2/25/2026
Merged by: @himself65

Base: mainHead: fix/cookie-options-backward-compat


📝 Commits (1)

  • 533fd08 fix(cookie): add deprecated options alias for backward compatibility

📊 Changes

2 files changed (+26 additions, -12 deletions)

View changed files

📝 packages/better-auth/src/cookies/index.ts (+18 -11)
📝 packages/core/src/types/cookie.ts (+8 -1)

📄 Description

This is the breaking change since https://github.com/better-auth/better-auth/pull/7363, and I mistakenly cherry-picked it to 1.4.x.


🔄 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/8139 **Author:** [@himself65](https://github.com/himself65) **Created:** 2/25/2026 **Status:** ✅ Merged **Merged:** 2/25/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `fix/cookie-options-backward-compat` --- ### 📝 Commits (1) - [`533fd08`](https://github.com/better-auth/better-auth/commit/533fd083693de31b247cdb2772d1ae1a096822a3) fix(cookie): add deprecated `options` alias for backward compatibility ### 📊 Changes **2 files changed** (+26 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/cookies/index.ts` (+18 -11) 📝 `packages/core/src/types/cookie.ts` (+8 -1) </details> ### 📄 Description This is the breaking change since https://github.com/better-auth/better-auth/pull/7363, and I mistakenly cherry-picked it to 1.4.x. --- <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-03-13 13:48:46 -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#7773