@veloxts/orm 0.6.69 → 0.6.71

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 +47 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # @veloxts/orm
2
2
 
3
+ ## 0.6.71
4
+
5
+ ### Patch Changes
6
+
7
+ - feat(create): add template shorthand flags (--auth, --rsc, etc.) (#20)
8
+ - Updated dependencies
9
+ - @veloxts/core@0.6.71
10
+
11
+ ## 0.6.70
12
+
13
+ ### Patch Changes
14
+
15
+ - ### feat(auth): Unified Adapter-Only Architecture
16
+
17
+ **New Features:**
18
+
19
+ - Add `JwtAdapter` implementing the `AuthAdapter` interface for unified JWT authentication
20
+ - Add `jwtAuth()` convenience function for direct adapter usage with optional built-in routes (`/api/auth/refresh`, `/api/auth/logout`)
21
+ - Add `AuthContext` discriminated union (`NativeAuthContext | AdapterAuthContext`) for type-safe auth mode handling
22
+ - Add double-registration protection to prevent conflicting auth system setups
23
+ - Add shared decoration utilities (`decorateAuth`, `setRequestAuth`, `checkDoubleRegistration`)
24
+
25
+ **Architecture Changes:**
26
+
27
+ - `authPlugin` now uses `JwtAdapter` internally - all authentication flows through the adapter pattern
28
+ - Single code path for authentication (no more dual native/adapter modes)
29
+ - `authContext.authMode` is now always `'adapter'` with `providerId='jwt'` when using `authPlugin`
30
+
31
+ **Breaking Changes:**
32
+
33
+ - Remove deprecated `LegacySessionConfig` interface (use `sessionMiddleware` instead)
34
+ - Remove deprecated `session` field from `AuthConfig`
35
+ - `User` interface no longer has index signature (extend via declaration merging)
36
+
37
+ **Type Safety Improvements:**
38
+
39
+ - `AuthContext` discriminated union enables exhaustive type narrowing based on `authMode`
40
+ - Export `NativeAuthContext` and `AdapterAuthContext` types for explicit typing
41
+
42
+ **Migration:**
43
+
44
+ - Existing `authPlugin` usage remains backward-compatible
45
+ - If checking `authContext.token`, use `authContext.session` instead (token stored in session for adapter mode)
46
+
47
+ - Updated dependencies
48
+ - @veloxts/core@0.6.70
49
+
3
50
  ## 0.6.69
4
51
 
5
52
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/orm",
3
- "version": "0.6.69",
3
+ "version": "0.6.71",
4
4
  "description": "Prisma wrapper with enhanced DX for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "fastify": "5.6.2",
20
20
  "pg": "8.16.0",
21
21
  "pg-format": "1.0.4",
22
- "@veloxts/core": "0.6.69"
22
+ "@veloxts/core": "0.6.71"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/pg": "8.15.4",