@jini-ai/user-management 0.6.15 → 0.6.17

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
  # Changelog
2
2
 
3
+ ## 0.6.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Version bump only.
8
+
3
9
  ## 0.6.13
4
10
 
5
11
  ### Patch Changes
@@ -1,8 +1,9 @@
1
+ import { loadOptionalPeer } from '@jini-ai/core/optional-peer';
1
2
  import { createRequire } from "node:module";
2
3
  const requirePeer = createRequire(import.meta.url);
3
4
  /** Resolve the optional native peer only when this adapter is used. */
4
5
  export function loadArgon2Binding(_required) {
5
- const native = requirePeer("argon2");
6
+ const native = loadOptionalPeer({ feature: 'Argon2 password hashing', dependency: 'argon2', load: () => requirePeer("argon2") });
6
7
  return {
7
8
  argon2id: native.argon2id,
8
9
  hash: ({ password }, optional = {}) => native.hash(password, { ...DEFAULT_OPTIONS, type: native.argon2id, ...optional }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/user-management",
3
- "version": "0.6.15",
3
+ "version": "0.6.17",
4
4
  "description": "Runtime-separated user management contracts and Node authentication, authorization, and administration services.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -22,6 +22,15 @@
22
22
  "./admin/adapters/http": "universal",
23
23
  "./admin/adapters/memory": "universal",
24
24
  "./admin/conformance": "universal"
25
+ },
26
+ "optionalPeers": {
27
+ "argon2": "opt-in: argon2 password hashing; import @jini-ai/user-management/server — Argon2 password hashing could not load argon2. Install argon2 to enable this feature, or check its installed version and native binaries.",
28
+ "@jini-ai/ui": "opt-in: ui integrations; import @jini-ai/user-management/react — UI integrations could not load @jini-ai/ui. Install @jini-ai/ui to enable this feature, or check its installed version and native binaries.",
29
+ "@jini-ai/admin": "opt-in: admin modules; import @jini-ai/user-management/react — Admin modules could not load @jini-ai/admin. Install @jini-ai/admin to enable this feature, or check its installed version and native binaries.",
30
+ "@jini-ai/agentic": "opt-in: agent-aware ui and protocols; import @jini-ai/user-management/react — Agent-aware UI and protocols could not load @jini-ai/agentic. Install @jini-ai/agentic to enable this feature, or check its installed version and native binaries.",
31
+ "@jini-ai/ui-kit": "opt-in: ui kit integrations; import @jini-ai/user-management/react — UI kit integrations could not load @jini-ai/ui-kit. Install @jini-ai/ui-kit to enable this feature, or check its installed version and native binaries.",
32
+ "react": "opt-in: react user-management ui; import @jini-ai/user-management/react — React user-management UI could not load react. Install react to enable this feature, or check its installed version.",
33
+ "react-dom": "opt-in: react user-management ui; import @jini-ai/user-management/react — React user-management UI could not load react-dom. Install react-dom to enable this feature, or check its installed version."
25
34
  }
26
35
  },
27
36
  "type": "module",
@@ -87,7 +96,7 @@
87
96
  "registry": "https://registry.npmjs.org"
88
97
  },
89
98
  "dependencies": {
90
- "@jini-ai/core": "^0.6.15"
99
+ "@jini-ai/core": "^0.6.17"
91
100
  },
92
101
  "peerDependencies": {
93
102
  "argon2": "^0.44.0",
@@ -98,16 +107,30 @@
98
107
  "@jini-ai/agentic": "^0.6.10",
99
108
  "@jini-ai/ui-kit": "^0.6.10"
100
109
  },
110
+ "devDependencies": {
111
+ "vitest": "^2.1.0",
112
+ "typescript": "^5.6.0",
113
+ "@types/node": "^24.0.0",
114
+ "argon2": "^0.44.0",
115
+ "react": "^19.2.0",
116
+ "react-dom": "^19.2.0",
117
+ "@types/react": "^19.2.0",
118
+ "@types/react-dom": "^19.2.0",
119
+ "@testing-library/react": "^16.3.0",
120
+ "@testing-library/user-event": "^14.5.0",
121
+ "@testing-library/jest-dom": "^6.6.3",
122
+ "jsdom": "^25.0.1",
123
+ "@jini-ai/ui": "0.6.17",
124
+ "@jini-ai/cms": "0.6.17",
125
+ "@jini-ai/agentic": "0.6.17",
126
+ "@jini-ai/core": "^0.6.17",
127
+ "@jini-ai/ui-kit": "^0.6.17",
128
+ "@jini-ai/admin": "0.6.17"
129
+ },
101
130
  "peerDependenciesMeta": {
102
131
  "argon2": {
103
132
  "optional": true
104
133
  },
105
- "react": {
106
- "optional": true
107
- },
108
- "react-dom": {
109
- "optional": true
110
- },
111
134
  "@jini-ai/ui": {
112
135
  "optional": true
113
136
  },
@@ -119,28 +142,14 @@
119
142
  },
120
143
  "@jini-ai/ui-kit": {
121
144
  "optional": true
145
+ },
146
+ "react": {
147
+ "optional": true
148
+ },
149
+ "react-dom": {
150
+ "optional": true
122
151
  }
123
152
  },
124
- "devDependencies": {
125
- "vitest": "^2.1.0",
126
- "typescript": "^5.6.0",
127
- "@types/node": "^24.0.0",
128
- "argon2": "^0.44.0",
129
- "react": "^19.2.0",
130
- "react-dom": "^19.2.0",
131
- "@types/react": "^19.2.0",
132
- "@types/react-dom": "^19.2.0",
133
- "@testing-library/react": "^16.3.0",
134
- "@testing-library/user-event": "^14.5.0",
135
- "@testing-library/jest-dom": "^6.6.3",
136
- "jsdom": "^25.0.1",
137
- "@jini-ai/agentic": "0.6.15",
138
- "@jini-ai/ui": "0.6.15",
139
- "@jini-ai/cms": "0.6.15",
140
- "@jini-ai/ui-kit": "^0.6.15",
141
- "@jini-ai/core": "^0.6.15",
142
- "@jini-ai/admin": "0.6.15"
143
- },
144
153
  "scripts": {
145
154
  "build": "tsc -p tsconfig.json",
146
155
  "typecheck": "tsc -p tsconfig.json --noEmit",