@veloxts/mcp 0.6.89 → 0.6.91

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 +20 -10
  2. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @veloxts/mcp
2
2
 
3
+ ## 0.6.91
4
+
5
+ ### Patch Changes
6
+
7
+ - removed unused DI system
8
+ - Updated dependencies
9
+ - @veloxts/cli@0.6.91
10
+ - @veloxts/router@0.6.91
11
+ - @veloxts/validation@0.6.91
12
+
13
+ ## 0.6.90
14
+
15
+ ### Patch Changes
16
+
17
+ - Dependencies updates – fix critical and high severity vulnerabilities
18
+ - Updated dependencies
19
+ - @veloxts/cli@0.6.90
20
+ - @veloxts/router@0.6.90
21
+ - @veloxts/validation@0.6.90
22
+
3
23
  ## 0.6.89
4
24
 
5
25
  ### Patch Changes
@@ -197,7 +217,6 @@
197
217
  - ### feat(auth): Unified Adapter-Only Architecture
198
218
 
199
219
  **New Features:**
200
-
201
220
  - Add `JwtAdapter` implementing the `AuthAdapter` interface for unified JWT authentication
202
221
  - Add `jwtAuth()` convenience function for direct adapter usage with optional built-in routes (`/api/auth/refresh`, `/api/auth/logout`)
203
222
  - Add `AuthContext` discriminated union (`NativeAuthContext | AdapterAuthContext`) for type-safe auth mode handling
@@ -205,24 +224,20 @@
205
224
  - Add shared decoration utilities (`decorateAuth`, `setRequestAuth`, `checkDoubleRegistration`)
206
225
 
207
226
  **Architecture Changes:**
208
-
209
227
  - `authPlugin` now uses `JwtAdapter` internally - all authentication flows through the adapter pattern
210
228
  - Single code path for authentication (no more dual native/adapter modes)
211
229
  - `authContext.authMode` is now always `'adapter'` with `providerId='jwt'` when using `authPlugin`
212
230
 
213
231
  **Breaking Changes:**
214
-
215
232
  - Remove deprecated `LegacySessionConfig` interface (use `sessionMiddleware` instead)
216
233
  - Remove deprecated `session` field from `AuthConfig`
217
234
  - `User` interface no longer has index signature (extend via declaration merging)
218
235
 
219
236
  **Type Safety Improvements:**
220
-
221
237
  - `AuthContext` discriminated union enables exhaustive type narrowing based on `authMode`
222
238
  - Export `NativeAuthContext` and `AdapterAuthContext` types for explicit typing
223
239
 
224
240
  **Migration:**
225
-
226
241
  - Existing `authPlugin` usage remains backward-compatible
227
242
  - If checking `authContext.token`, use `authContext.session` instead (token stored in session for adapter mode)
228
243
 
@@ -242,12 +257,10 @@
242
257
  Addresses 9 user feedback items to improve DX, reduce boilerplate, and eliminate template duplications.
243
258
 
244
259
  ### Phase 1: Validation Helpers (`@veloxts/validation`)
245
-
246
260
  - Add `prismaDecimal()`, `prismaDecimalNullable()`, `prismaDecimalOptional()` for Prisma Decimal → number conversion
247
261
  - Add `dateToIso`, `dateToIsoNullable`, `dateToIsoOptional` aliases for consistency
248
262
 
249
263
  ### Phase 2: Template Deduplication (`@veloxts/auth`)
250
-
251
264
  - Export `createEnhancedTokenStore()` with token revocation and refresh token reuse detection
252
265
  - Export `parseUserRoles()` and `DEFAULT_ALLOWED_ROLES`
253
266
  - Fix memory leak: track pending timeouts for proper cleanup on `destroy()`
@@ -255,20 +268,17 @@
255
268
  - Fix jwtManager singleton pattern in templates
256
269
 
257
270
  ### Phase 3: Router Helpers (`@veloxts/router`)
258
-
259
271
  - Add `createRouter()` returning `{ collections, router }` for DRY setup
260
272
  - Add `toRouter()` for router-only use cases
261
273
  - Update all router templates to use `createRouter()`
262
274
 
263
275
  ### Phase 4: Guard Type Narrowing - Experimental (`@veloxts/auth`, `@veloxts/router`)
264
-
265
276
  - Add `NarrowingGuard` interface with phantom `_narrows` type
266
277
  - Add `authenticatedNarrow` and `hasRoleNarrow()` guards
267
278
  - Add `guardNarrow()` method to `ProcedureBuilder` for context narrowing
268
279
  - Enables `ctx.user` to be non-null after guard passes
269
280
 
270
281
  ### Phase 5: Documentation (`@veloxts/router`)
271
-
272
282
  - Document `.rest()` override patterns
273
283
  - Document `createRouter()` helper usage
274
284
  - 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.91",
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/router": "0.6.91",
28
+ "@veloxts/cli": "0.6.91",
29
+ "@veloxts/validation": "0.6.91"
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",