@veloxts/web 0.6.89 → 0.6.90

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +11 -10
  2. package/package.json +20 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @veloxts/web
2
2
 
3
+ ## 0.6.90
4
+
5
+ ### Patch Changes
6
+
7
+ - Dependencies updates – fix critical and high severity vulnerabilities
8
+ - Updated dependencies
9
+ - @veloxts/auth@0.6.90
10
+ - @veloxts/client@0.6.90
11
+ - @veloxts/core@0.6.90
12
+ - @veloxts/router@0.6.90
13
+
3
14
  ## 0.6.89
4
15
 
5
16
  ### Patch Changes
@@ -216,7 +227,6 @@
216
227
  - ### feat(auth): Unified Adapter-Only Architecture
217
228
 
218
229
  **New Features:**
219
-
220
230
  - Add `JwtAdapter` implementing the `AuthAdapter` interface for unified JWT authentication
221
231
  - Add `jwtAuth()` convenience function for direct adapter usage with optional built-in routes (`/api/auth/refresh`, `/api/auth/logout`)
222
232
  - Add `AuthContext` discriminated union (`NativeAuthContext | AdapterAuthContext`) for type-safe auth mode handling
@@ -224,24 +234,20 @@
224
234
  - Add shared decoration utilities (`decorateAuth`, `setRequestAuth`, `checkDoubleRegistration`)
225
235
 
226
236
  **Architecture Changes:**
227
-
228
237
  - `authPlugin` now uses `JwtAdapter` internally - all authentication flows through the adapter pattern
229
238
  - Single code path for authentication (no more dual native/adapter modes)
230
239
  - `authContext.authMode` is now always `'adapter'` with `providerId='jwt'` when using `authPlugin`
231
240
 
232
241
  **Breaking Changes:**
233
-
234
242
  - Remove deprecated `LegacySessionConfig` interface (use `sessionMiddleware` instead)
235
243
  - Remove deprecated `session` field from `AuthConfig`
236
244
  - `User` interface no longer has index signature (extend via declaration merging)
237
245
 
238
246
  **Type Safety Improvements:**
239
-
240
247
  - `AuthContext` discriminated union enables exhaustive type narrowing based on `authMode`
241
248
  - Export `NativeAuthContext` and `AdapterAuthContext` types for explicit typing
242
249
 
243
250
  **Migration:**
244
-
245
251
  - Existing `authPlugin` usage remains backward-compatible
246
252
  - If checking `authContext.token`, use `authContext.session` instead (token stored in session for adapter mode)
247
253
 
@@ -262,12 +268,10 @@
262
268
  Addresses 9 user feedback items to improve DX, reduce boilerplate, and eliminate template duplications.
263
269
 
264
270
  ### Phase 1: Validation Helpers (`@veloxts/validation`)
265
-
266
271
  - Add `prismaDecimal()`, `prismaDecimalNullable()`, `prismaDecimalOptional()` for Prisma Decimal → number conversion
267
272
  - Add `dateToIso`, `dateToIsoNullable`, `dateToIsoOptional` aliases for consistency
268
273
 
269
274
  ### Phase 2: Template Deduplication (`@veloxts/auth`)
270
-
271
275
  - Export `createEnhancedTokenStore()` with token revocation and refresh token reuse detection
272
276
  - Export `parseUserRoles()` and `DEFAULT_ALLOWED_ROLES`
273
277
  - Fix memory leak: track pending timeouts for proper cleanup on `destroy()`
@@ -275,20 +279,17 @@
275
279
  - Fix jwtManager singleton pattern in templates
276
280
 
277
281
  ### Phase 3: Router Helpers (`@veloxts/router`)
278
-
279
282
  - Add `createRouter()` returning `{ collections, router }` for DRY setup
280
283
  - Add `toRouter()` for router-only use cases
281
284
  - Update all router templates to use `createRouter()`
282
285
 
283
286
  ### Phase 4: Guard Type Narrowing - Experimental (`@veloxts/auth`, `@veloxts/router`)
284
-
285
287
  - Add `NarrowingGuard` interface with phantom `_narrows` type
286
288
  - Add `authenticatedNarrow` and `hasRoleNarrow()` guards
287
289
  - Add `guardNarrow()` method to `ProcedureBuilder` for context narrowing
288
290
  - Enables `ctx.user` to be non-null after guard passes
289
291
 
290
292
  ### Phase 5: Documentation (`@veloxts/router`)
291
-
292
293
  - Document `.rest()` override patterns
293
294
  - Document `createRouter()` helper usage
294
295
  - Document `guardNarrow()` experimental API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/web",
3
- "version": "0.6.89",
3
+ "version": "0.6.90",
4
4
  "description": "React Server Components integration for VeloxTS framework using Vinxi",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -65,17 +65,17 @@
65
65
  "dependencies": {
66
66
  "@vinxi/server-functions": "0.5.1",
67
67
  "radix3": "1.1.2",
68
- "vinxi": "0.5.10",
69
- "vite-tsconfig-paths": "6.0.3",
68
+ "vinxi": "0.5.11",
69
+ "vite-tsconfig-paths": "6.0.5",
70
70
  "zod": "3.25.76"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": ">=19.2.0",
74
74
  "react-dom": ">=19.2.0",
75
- "@veloxts/auth": "0.6.89",
76
- "@veloxts/client": "0.6.89",
77
- "@veloxts/core": "0.6.89",
78
- "@veloxts/router": "0.6.89"
75
+ "@veloxts/auth": "0.6.90",
76
+ "@veloxts/core": "0.6.90",
77
+ "@veloxts/client": "0.6.90",
78
+ "@veloxts/router": "0.6.90"
79
79
  },
80
80
  "peerDependenciesMeta": {
81
81
  "@veloxts/auth": {
@@ -87,21 +87,21 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "@types/jsdom": "27.0.0",
90
- "@types/node": "25.0.3",
91
- "@types/react": "19.2.7",
90
+ "@types/node": "25.1.0",
91
+ "@types/react": "19.2.10",
92
92
  "@types/react-dom": "19.2.3",
93
- "@vitest/coverage-v8": "4.0.16",
94
- "fastify": "5.6.2",
95
- "jsdom": "27.3.0",
96
- "react": "19.2.3",
97
- "react-dom": "19.2.3",
98
- "react-server-dom-webpack": "19.2.3",
93
+ "@vitest/coverage-v8": "4.0.18",
94
+ "fastify": "5.7.2",
95
+ "jsdom": "27.4.0",
96
+ "react": "19.2.4",
97
+ "react-dom": "19.2.4",
98
+ "react-server-dom-webpack": "19.2.4",
99
99
  "typescript": "5.9.3",
100
- "vitest": "4.0.16",
101
- "@veloxts/auth": "0.6.89",
102
- "@veloxts/client": "0.6.89",
103
- "@veloxts/router": "0.6.89",
104
- "@veloxts/core": "0.6.89"
100
+ "vitest": "4.0.18",
101
+ "@veloxts/auth": "0.6.90",
102
+ "@veloxts/core": "0.6.90",
103
+ "@veloxts/router": "0.6.90",
104
+ "@veloxts/client": "0.6.90"
105
105
  },
106
106
  "keywords": [
107
107
  "velox",