@veloxts/web 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.
- package/CHANGELOG.md +53 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# @veloxts/web
|
|
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/auth@0.6.71
|
|
10
|
+
- @veloxts/client@0.6.71
|
|
11
|
+
- @veloxts/core@0.6.71
|
|
12
|
+
- @veloxts/router@0.6.71
|
|
13
|
+
|
|
14
|
+
## 0.6.70
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- ### feat(auth): Unified Adapter-Only Architecture
|
|
19
|
+
|
|
20
|
+
**New Features:**
|
|
21
|
+
|
|
22
|
+
- Add `JwtAdapter` implementing the `AuthAdapter` interface for unified JWT authentication
|
|
23
|
+
- Add `jwtAuth()` convenience function for direct adapter usage with optional built-in routes (`/api/auth/refresh`, `/api/auth/logout`)
|
|
24
|
+
- Add `AuthContext` discriminated union (`NativeAuthContext | AdapterAuthContext`) for type-safe auth mode handling
|
|
25
|
+
- Add double-registration protection to prevent conflicting auth system setups
|
|
26
|
+
- Add shared decoration utilities (`decorateAuth`, `setRequestAuth`, `checkDoubleRegistration`)
|
|
27
|
+
|
|
28
|
+
**Architecture Changes:**
|
|
29
|
+
|
|
30
|
+
- `authPlugin` now uses `JwtAdapter` internally - all authentication flows through the adapter pattern
|
|
31
|
+
- Single code path for authentication (no more dual native/adapter modes)
|
|
32
|
+
- `authContext.authMode` is now always `'adapter'` with `providerId='jwt'` when using `authPlugin`
|
|
33
|
+
|
|
34
|
+
**Breaking Changes:**
|
|
35
|
+
|
|
36
|
+
- Remove deprecated `LegacySessionConfig` interface (use `sessionMiddleware` instead)
|
|
37
|
+
- Remove deprecated `session` field from `AuthConfig`
|
|
38
|
+
- `User` interface no longer has index signature (extend via declaration merging)
|
|
39
|
+
|
|
40
|
+
**Type Safety Improvements:**
|
|
41
|
+
|
|
42
|
+
- `AuthContext` discriminated union enables exhaustive type narrowing based on `authMode`
|
|
43
|
+
- Export `NativeAuthContext` and `AdapterAuthContext` types for explicit typing
|
|
44
|
+
|
|
45
|
+
**Migration:**
|
|
46
|
+
|
|
47
|
+
- Existing `authPlugin` usage remains backward-compatible
|
|
48
|
+
- If checking `authContext.token`, use `authContext.session` instead (token stored in session for adapter mode)
|
|
49
|
+
|
|
50
|
+
- Updated dependencies
|
|
51
|
+
- @veloxts/auth@0.6.70
|
|
52
|
+
- @veloxts/client@0.6.70
|
|
53
|
+
- @veloxts/core@0.6.70
|
|
54
|
+
- @veloxts/router@0.6.70
|
|
55
|
+
|
|
3
56
|
## 0.6.69
|
|
4
57
|
|
|
5
58
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/web",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.71",
|
|
4
4
|
"description": "React Server Components integration for VeloxTS framework using Vinxi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": ">=19.2.0",
|
|
74
74
|
"react-dom": ">=19.2.0",
|
|
75
|
-
"@veloxts/auth": "0.6.
|
|
76
|
-
"@veloxts/
|
|
77
|
-
"@veloxts/
|
|
78
|
-
"@veloxts/
|
|
75
|
+
"@veloxts/auth": "0.6.71",
|
|
76
|
+
"@veloxts/client": "0.6.71",
|
|
77
|
+
"@veloxts/core": "0.6.71",
|
|
78
|
+
"@veloxts/router": "0.6.71"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"@veloxts/auth": {
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"react-server-dom-webpack": "19.2.3",
|
|
99
99
|
"typescript": "5.9.3",
|
|
100
100
|
"vitest": "4.0.16",
|
|
101
|
-
"@veloxts/
|
|
102
|
-
"@veloxts/
|
|
103
|
-
"@veloxts/
|
|
104
|
-
"@veloxts/
|
|
101
|
+
"@veloxts/core": "0.6.71",
|
|
102
|
+
"@veloxts/client": "0.6.71",
|
|
103
|
+
"@veloxts/router": "0.6.71",
|
|
104
|
+
"@veloxts/auth": "0.6.71"
|
|
105
105
|
},
|
|
106
106
|
"keywords": [
|
|
107
107
|
"velox",
|