@better-auth/core 1.4.19 → 1.4.20

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/core@1.4.19 build /home/runner/work/better-auth/better-auth/packages/core
2
+ > @better-auth/core@1.4.20 build /home/runner/work/better-auth/better-auth/packages/core
3
3
  > tsdown
4
4
 
5
5
  ℹ tsdown v0.17.2 powered by rolldown v1.0.0-beta.53
@@ -238,10 +238,10 @@
238
238
  ℹ dist/db/adapter/get-field-attributes.d.mts  0.78 kB │ gzip: 0.37 kB
239
239
  ℹ dist/db/schema/user.d.mts  0.74 kB │ gzip: 0.42 kB
240
240
  ℹ dist/db/schema/verification.d.mts  0.71 kB │ gzip: 0.38 kB
241
+ ℹ dist/types/cookie.d.mts  0.55 kB │ gzip: 0.29 kB
241
242
  ℹ dist/utils/db.d.mts  0.49 kB │ gzip: 0.32 kB
242
243
  ℹ dist/types/helper.d.mts  0.49 kB │ gzip: 0.29 kB
243
244
  ℹ dist/db/adapter/get-default-field-name.d.mts  0.43 kB │ gzip: 0.26 kB
244
- ℹ dist/types/cookie.d.mts  0.42 kB │ gzip: 0.22 kB
245
245
  ℹ dist/db/schema/rate-limit.d.mts  0.42 kB │ gzip: 0.27 kB
246
246
  ℹ dist/db/adapter/get-field-name.d.mts  0.41 kB │ gzip: 0.26 kB
247
247
  ℹ dist/db/adapter/get-default-model-name.d.mts  0.37 kB │ gzip: 0.24 kB
@@ -257,5 +257,5 @@
257
257
  ℹ dist/utils/json.d.mts  0.16 kB │ gzip: 0.15 kB
258
258
  ℹ dist/env/color-depth.d.mts  0.16 kB │ gzip: 0.14 kB
259
259
  ℹ dist/utils/id.d.mts  0.15 kB │ gzip: 0.14 kB
260
- ℹ 250 files, total: 860.23 kB
261
- ✔ Build complete in 5220ms
260
+ ℹ 250 files, total: 860.36 kB
261
+ ✔ Build complete in 5636ms
@@ -2,7 +2,7 @@
2
2
  const symbol = Symbol.for("better-auth:global");
3
3
  let bind = null;
4
4
  const __context = {};
5
- const __betterAuthVersion = "1.4.19";
5
+ const __betterAuthVersion = "1.4.20";
6
6
  /**
7
7
  * We store context instance in the globalThis.
8
8
  *
@@ -4,6 +4,10 @@ import { CookieOptions } from "better-call";
4
4
  type BetterAuthCookie = {
5
5
  name: string;
6
6
  attributes: CookieOptions;
7
+ /**
8
+ * @deprecated Use `attributes` instead. This alias is kept for backward compatibility.
9
+ */
10
+ options: CookieOptions;
7
11
  };
8
12
  type BetterAuthCookies = {
9
13
  sessionToken: BetterAuthCookie;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/core",
3
- "version": "1.4.19",
3
+ "version": "1.4.20",
4
4
  "description": "The most comprehensive authentication framework for TypeScript.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -1,6 +1,13 @@
1
1
  import type { CookieOptions } from "better-call";
2
2
 
3
- export type BetterAuthCookie = { name: string; attributes: CookieOptions };
3
+ export type BetterAuthCookie = {
4
+ name: string;
5
+ attributes: CookieOptions;
6
+ /**
7
+ * @deprecated Use `attributes` instead. This alias is kept for backward compatibility.
8
+ */
9
+ options: CookieOptions;
10
+ };
4
11
 
5
12
  export type BetterAuthCookies = {
6
13
  sessionToken: BetterAuthCookie;