tauri-plugin-better-auth 0.1.0 → 0.2.0-alpha.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # tauri-plugin-better-auth
2
2
 
3
- [Better Auth](https://better-auth.com) for [Tauri 2](https://tauri.app). Users
3
+ [Better Auth](https://better-auth.com) for [Tauri 3](https://tauri.app). Users
4
4
  sign in through the system browser with PKCE. The session lives in Rust, and
5
5
  webview code never sees a token.
6
6
 
@@ -46,5 +46,6 @@ const authClient = asTauriClient(
46
46
  await requestAuth();
47
47
  ```
48
48
 
49
- Requires `better-auth` >= 1.7.4 and, for `/client`, `@tauri-apps/api` >= 2.11.
49
+ Requires `better-auth` >= 1.7.4 and, for `/client`, `@tauri-apps/api` 3 (alpha). For Tauri 2,
50
+ use `0.1.x`.
50
51
  MIT licensed.
@@ -114,7 +114,7 @@ interface TauriTokenResponse {
114
114
  * Package version. Released in lockstep with the Rust crate; CI fails when this
115
115
  * constant, `package.json` and `Cargo.toml` disagree.
116
116
  */
117
- declare const VERSION = "0.1.0";
117
+ declare const VERSION = "0.2.0-alpha.0";
118
118
  //#endregion
119
119
  //#region src/index.d.ts
120
120
  /** What `init` needs from Better Auth's context. */
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as PROTOCOL_VERSION, c as isValidScheme, d as TauriOptions, l as TAURI_ERROR_CODES, n as VERSION, o as TauriConfigError, r as TauriTokenResponse, s as isLoopbackRedirectUri, t as tauri, u as ResolvedTauriOptions } from "./index-DYZxnm2f.js";
1
+ import { a as PROTOCOL_VERSION, c as isValidScheme, d as TauriOptions, l as TAURI_ERROR_CODES, n as VERSION, o as TauriConfigError, r as TauriTokenResponse, s as isLoopbackRedirectUri, t as tauri, u as ResolvedTauriOptions } from "./index-DfaAtWTX.js";
2
2
  export { PROTOCOL_VERSION, type ResolvedTauriOptions, TAURI_ERROR_CODES, TauriConfigError, type TauriOptions, type TauriTokenResponse, VERSION, isLoopbackRedirectUri, isValidScheme, tauri };
package/dist/index.js CHANGED
@@ -156,7 +156,7 @@ const createTokenEndpoint = (opts) => createAuthEndpoint("/tauri/token", {
156
156
  * Package version. Released in lockstep with the Rust crate; CI fails when this
157
157
  * constant, `package.json` and `Cargo.toml` disagree.
158
158
  */
159
- const VERSION = "0.1.0";
159
+ const VERSION = "0.2.0-alpha.0";
160
160
  //#endregion
161
161
  //#region src/index.ts
162
162
  function resolveOptions(options = {}) {
package/dist/proxy.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as CallbackTarget, t as tauri } from "./index-DYZxnm2f.js";
1
+ import { i as CallbackTarget, t as tauri } from "./index-DfaAtWTX.js";
2
2
  import { BetterFetch, BetterFetchOption } from "@better-fetch/fetch";
3
3
  //#region src/proxy.d.ts
4
4
  /** Options of {@link tauriProxyClient}. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tauri-plugin-better-auth",
3
- "version": "0.1.0",
4
- "description": "Better Auth for Tauri 2: browser sign-in with PKCE, a Rust-held session and a token-free webview.",
3
+ "version": "0.2.0-alpha.0",
4
+ "description": "Better Auth for Tauri 3: browser sign-in with PKCE, a Rust-held session and a token-free webview.",
5
5
  "keywords": [
6
6
  "auth",
7
7
  "authentication",
@@ -49,7 +49,8 @@
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public",
52
- "provenance": true
52
+ "provenance": true,
53
+ "tag": "next"
53
54
  },
54
55
  "scripts": {
55
56
  "build": "tsdown",
@@ -65,7 +66,7 @@
65
66
  "@arethetypeswrong/cli": "0.18.5",
66
67
  "@better-auth/core": "1.7.11",
67
68
  "@better-fetch/fetch": "1.3.2",
68
- "@tauri-apps/api": "2.12.4",
69
+ "@tauri-apps/api": "3.0.0-alpha.3",
69
70
  "@types/node": "24.19.2",
70
71
  "@types/pg": "8.23.1",
71
72
  "better-auth": "1.7.11",
@@ -80,7 +81,7 @@
80
81
  "peerDependencies": {
81
82
  "@better-auth/core": ">=1.7.4 <2",
82
83
  "@better-fetch/fetch": "^1.3.1",
83
- "@tauri-apps/api": ">=2.11.0 <3",
84
+ "@tauri-apps/api": ">=3.0.0-alpha.0 <4",
84
85
  "better-auth": ">=1.7.4 <2",
85
86
  "better-call": "^1.4.0"
86
87
  },