better-auth-cookie-consent 0.3.0-dev.0 → 0.3.0

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.
package/dist/client.d.mts CHANGED
@@ -5,7 +5,7 @@ import { BetterFetch } from "better-auth/client";
5
5
  /**
6
6
  * Client-side consent state, kept in sync with the server.
7
7
  */
8
- interface ConsentState<TConsent extends Consent = Consent> {
8
+ export interface ConsentState<TConsent extends Consent = Consent> {
9
9
  consent: TConsent | null;
10
10
  consentVersion: string | null;
11
11
  versionMatch: boolean;
@@ -13,7 +13,7 @@ interface ConsentState<TConsent extends Consent = Consent> {
13
13
  /**
14
14
  * Inferred type from the default consent schema.
15
15
  */
16
- type DefaultConsentModel = z.infer<typeof defaultConsentSchema>;
16
+ export type DefaultConsentModel = z.infer<typeof defaultConsentSchema>;
17
17
  /**
18
18
  * Client plugin for cookie consent management.
19
19
  *
@@ -28,7 +28,9 @@ type DefaultConsentModel = z.infer<typeof defaultConsentSchema>;
28
28
  * });
29
29
  * ```
30
30
  */
31
- declare const cookieConsentClient: <TConsent extends Consent = Record<string, boolean>>() => {
31
+ export declare const cookieConsentClient: <TConsent extends Consent = {
32
+ [x: string]: boolean;
33
+ }>() => {
32
34
  id: "cookie-consent";
33
35
  $InferServerPlugin: ReturnType<typeof cookieConsentPlugin>;
34
36
  getAtoms(): {
@@ -103,5 +105,4 @@ declare const cookieConsentClient: <TConsent extends Consent = Record<string, bo
103
105
  };
104
106
  };
105
107
  //#endregion
106
- export { ConsentState, DefaultConsentModel, cookieConsentClient };
107
108
  //# sourceMappingURL=client.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-auth-cookie-consent",
3
- "version": "0.3.0-dev.0",
3
+ "version": "0.3.0",
4
4
  "description": "Better Auth Cookie Consent plugin for GDPR-compliant consent management",
5
5
  "homepage": "https://github.com/marcjulian/better-auth-plugins#readme",
6
6
  "bugs": {
@@ -25,16 +25,16 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "zod": "^4.4.3"
28
+ "zod": "4.6.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^25.6.2",
32
32
  "better-auth": "1.7.5",
33
- "bumpp": "^11.1.0",
33
+ "bumpp": "11.1.0",
34
34
  "nanostores": "^1.5.1",
35
- "tsdown": "^0.22.14",
36
- "typescript": "^7.0.2",
37
- "vitest": "^4.1.11"
35
+ "tsdown": "0.23.0",
36
+ "typescript": "7.0.2",
37
+ "vitest": "4.1.11"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "better-auth": "^1.7.5",