@vonall/auth 0.2.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vonall/auth
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - `@node-rs/argon2` is a peer dependency: a native module has to be a direct dependency of the Product, so its server bundle can leave it external and resolve it at runtime.
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -34,7 +34,8 @@ export const { handle: sessionHandle, apiHandler, providers } = registerAuth(aut
34
34
  Entry points: `@vonall/auth` (types, validation schemas, `ac`/`roles` for the admin plugins, `isAdmin`, `mayInvite`, the
35
35
  fresh-session helpers, the messages), `@vonall/auth/schema`, `@vonall/auth/server`, `@vonall/auth/remote` (the remote
36
36
  functions a Product's components call), `@vonall/auth/testing` (`createUser`, `testAuth` for db tests). `better-auth` is
37
- this package's dependency; the Product imports its plugins from the same version.
37
+ this package's dependency; the Product imports its plugins from the same version. `@node-rs/argon2` (the password
38
+ hash, a native module) is a peer dependency: the Product lists it, so its server bundle can leave it external.
38
39
 
39
40
  Strings come in English and German: `configureAuthMessages({ locale, overrides })`. A Product's own user-owned tables
40
41
  reference `user.id` with `onDelete: "cascade"`, so deleting a Konto takes everything with it. The MCP endpoint's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonall/auth",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Accounts for a Web App Factory Product: better-auth with the hooks, the protected helpers, Einladungen, Konto, the auth pages and the settings; Admin as an option",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -52,7 +52,8 @@
52
52
  "neverthrow": "^8.2.0",
53
53
  "pg": "^8.23.1",
54
54
  "svelte": "^5.57.2",
55
- "zod": "^4.6.7"
55
+ "zod": "^4.6.7",
56
+ "@node-rs/argon2": "^2.2.2"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@better-auth/mcp": "^1.7.12",
@@ -71,7 +72,8 @@
71
72
  "typescript": "^6.0.3",
72
73
  "vite": "8.3.4",
73
74
  "vitest": "^5.0.5",
74
- "zod": "^4.6.7"
75
+ "zod": "^4.6.7",
76
+ "@node-rs/argon2": "^2.2.2"
75
77
  },
76
78
  "imports": {
77
79
  "#lib": "./src/lib/index.js",
@@ -84,7 +86,6 @@
84
86
  "access": "public"
85
87
  },
86
88
  "dependencies": {
87
- "@node-rs/argon2": "^2.2.2",
88
89
  "better-auth": "^1.7.12",
89
90
  "@vonall/mail": "^0.1.1"
90
91
  },