@veloxts/mcp 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 +10 -10
  2. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @veloxts/mcp
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/cli@0.6.90
10
+ - @veloxts/router@0.6.90
11
+ - @veloxts/validation@0.6.90
12
+
3
13
  ## 0.6.89
4
14
 
5
15
  ### Patch Changes
@@ -197,7 +207,6 @@
197
207
  - ### feat(auth): Unified Adapter-Only Architecture
198
208
 
199
209
  **New Features:**
200
-
201
210
  - Add `JwtAdapter` implementing the `AuthAdapter` interface for unified JWT authentication
202
211
  - Add `jwtAuth()` convenience function for direct adapter usage with optional built-in routes (`/api/auth/refresh`, `/api/auth/logout`)
203
212
  - Add `AuthContext` discriminated union (`NativeAuthContext | AdapterAuthContext`) for type-safe auth mode handling
@@ -205,24 +214,20 @@
205
214
  - Add shared decoration utilities (`decorateAuth`, `setRequestAuth`, `checkDoubleRegistration`)
206
215
 
207
216
  **Architecture Changes:**
208
-
209
217
  - `authPlugin` now uses `JwtAdapter` internally - all authentication flows through the adapter pattern
210
218
  - Single code path for authentication (no more dual native/adapter modes)
211
219
  - `authContext.authMode` is now always `'adapter'` with `providerId='jwt'` when using `authPlugin`
212
220
 
213
221
  **Breaking Changes:**
214
-
215
222
  - Remove deprecated `LegacySessionConfig` interface (use `sessionMiddleware` instead)
216
223
  - Remove deprecated `session` field from `AuthConfig`
217
224
  - `User` interface no longer has index signature (extend via declaration merging)
218
225
 
219
226
  **Type Safety Improvements:**
220
-
221
227
  - `AuthContext` discriminated union enables exhaustive type narrowing based on `authMode`
222
228
  - Export `NativeAuthContext` and `AdapterAuthContext` types for explicit typing
223
229
 
224
230
  **Migration:**
225
-
226
231
  - Existing `authPlugin` usage remains backward-compatible
227
232
  - If checking `authContext.token`, use `authContext.session` instead (token stored in session for adapter mode)
228
233
 
@@ -242,12 +247,10 @@
242
247
  Addresses 9 user feedback items to improve DX, reduce boilerplate, and eliminate template duplications.
243
248
 
244
249
  ### Phase 1: Validation Helpers (`@veloxts/validation`)
245
-
246
250
  - Add `prismaDecimal()`, `prismaDecimalNullable()`, `prismaDecimalOptional()` for Prisma Decimal → number conversion
247
251
  - Add `dateToIso`, `dateToIsoNullable`, `dateToIsoOptional` aliases for consistency
248
252
 
249
253
  ### Phase 2: Template Deduplication (`@veloxts/auth`)
250
-
251
254
  - Export `createEnhancedTokenStore()` with token revocation and refresh token reuse detection
252
255
  - Export `parseUserRoles()` and `DEFAULT_ALLOWED_ROLES`
253
256
  - Fix memory leak: track pending timeouts for proper cleanup on `destroy()`
@@ -255,20 +258,17 @@
255
258
  - Fix jwtManager singleton pattern in templates
256
259
 
257
260
  ### Phase 3: Router Helpers (`@veloxts/router`)
258
-
259
261
  - Add `createRouter()` returning `{ collections, router }` for DRY setup
260
262
  - Add `toRouter()` for router-only use cases
261
263
  - Update all router templates to use `createRouter()`
262
264
 
263
265
  ### Phase 4: Guard Type Narrowing - Experimental (`@veloxts/auth`, `@veloxts/router`)
264
-
265
266
  - Add `NarrowingGuard` interface with phantom `_narrows` type
266
267
  - Add `authenticatedNarrow` and `hasRoleNarrow()` guards
267
268
  - Add `guardNarrow()` method to `ProcedureBuilder` for context narrowing
268
269
  - Enables `ctx.user` to be non-null after guard passes
269
270
 
270
271
  ### Phase 5: Documentation (`@veloxts/router`)
271
-
272
272
  - Document `.rest()` override patterns
273
273
  - Document `createRouter()` helper usage
274
274
  - Document `guardNarrow()` experimental API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/mcp",
3
- "version": "0.6.89",
3
+ "version": "0.6.90",
4
4
  "description": "Model Context Protocol server for VeloxTS - expose project context to AI tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,20 +22,20 @@
22
22
  "CHANGELOG.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@modelcontextprotocol/sdk": "1.25.1",
25
+ "@modelcontextprotocol/sdk": "1.25.3",
26
26
  "typescript": "5.9.3",
27
- "@veloxts/cli": "0.6.89",
28
- "@veloxts/router": "0.6.89",
29
- "@veloxts/validation": "0.6.89"
27
+ "@veloxts/cli": "0.6.90",
28
+ "@veloxts/router": "0.6.90",
29
+ "@veloxts/validation": "0.6.90"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "zod": ">=3.25.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "25.0.3",
36
- "@vitest/coverage-v8": "4.0.16",
35
+ "@types/node": "25.1.0",
36
+ "@vitest/coverage-v8": "4.0.18",
37
37
  "typescript": "5.9.3",
38
- "vitest": "4.0.16"
38
+ "vitest": "4.0.18"
39
39
  },
40
40
  "keywords": [
41
41
  "velox",