@veloxts/cli 0.6.68 → 0.6.69
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 +50 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @veloxts/cli
|
|
2
2
|
|
|
3
|
+
## 0.6.69
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- implement user feedback improvements across packages
|
|
8
|
+
|
|
9
|
+
## Summary
|
|
10
|
+
|
|
11
|
+
Addresses 9 user feedback items to improve DX, reduce boilerplate, and eliminate template duplications.
|
|
12
|
+
|
|
13
|
+
### Phase 1: Validation Helpers (`@veloxts/validation`)
|
|
14
|
+
|
|
15
|
+
- Add `prismaDecimal()`, `prismaDecimalNullable()`, `prismaDecimalOptional()` for Prisma Decimal → number conversion
|
|
16
|
+
- Add `dateToIso`, `dateToIsoNullable`, `dateToIsoOptional` aliases for consistency
|
|
17
|
+
|
|
18
|
+
### Phase 2: Template Deduplication (`@veloxts/auth`)
|
|
19
|
+
|
|
20
|
+
- Export `createEnhancedTokenStore()` with token revocation and refresh token reuse detection
|
|
21
|
+
- Export `parseUserRoles()` and `DEFAULT_ALLOWED_ROLES`
|
|
22
|
+
- Fix memory leak: track pending timeouts for proper cleanup on `destroy()`
|
|
23
|
+
- Update templates to import from `@veloxts/auth` instead of duplicating code
|
|
24
|
+
- Fix jwtManager singleton pattern in templates
|
|
25
|
+
|
|
26
|
+
### Phase 3: Router Helpers (`@veloxts/router`)
|
|
27
|
+
|
|
28
|
+
- Add `createRouter()` returning `{ collections, router }` for DRY setup
|
|
29
|
+
- Add `toRouter()` for router-only use cases
|
|
30
|
+
- Update all router templates to use `createRouter()`
|
|
31
|
+
|
|
32
|
+
### Phase 4: Guard Type Narrowing - Experimental (`@veloxts/auth`, `@veloxts/router`)
|
|
33
|
+
|
|
34
|
+
- Add `NarrowingGuard` interface with phantom `_narrows` type
|
|
35
|
+
- Add `authenticatedNarrow` and `hasRoleNarrow()` guards
|
|
36
|
+
- Add `guardNarrow()` method to `ProcedureBuilder` for context narrowing
|
|
37
|
+
- Enables `ctx.user` to be non-null after guard passes
|
|
38
|
+
|
|
39
|
+
### Phase 5: Documentation (`@veloxts/router`)
|
|
40
|
+
|
|
41
|
+
- Document `.rest()` override patterns
|
|
42
|
+
- Document `createRouter()` helper usage
|
|
43
|
+
- Document `guardNarrow()` experimental API
|
|
44
|
+
- Add schema browser-safety patterns for RSC apps
|
|
45
|
+
|
|
46
|
+
- Updated dependencies
|
|
47
|
+
- @veloxts/auth@0.6.69
|
|
48
|
+
- @veloxts/core@0.6.69
|
|
49
|
+
- @veloxts/orm@0.6.69
|
|
50
|
+
- @veloxts/router@0.6.69
|
|
51
|
+
- @veloxts/validation@0.6.69
|
|
52
|
+
|
|
3
53
|
## 0.6.68
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.69",
|
|
4
4
|
"description": "Developer tooling and CLI commands for VeloxTS framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"picocolors": "1.1.1",
|
|
41
41
|
"pluralize": "8.0.0",
|
|
42
42
|
"tsx": "4.21.0",
|
|
43
|
-
"@veloxts/auth": "0.6.
|
|
44
|
-
"@veloxts/
|
|
45
|
-
"@veloxts/
|
|
46
|
-
"@veloxts/
|
|
47
|
-
"@veloxts/validation": "0.6.
|
|
43
|
+
"@veloxts/auth": "0.6.69",
|
|
44
|
+
"@veloxts/orm": "0.6.69",
|
|
45
|
+
"@veloxts/core": "0.6.69",
|
|
46
|
+
"@veloxts/router": "0.6.69",
|
|
47
|
+
"@veloxts/validation": "0.6.69"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@prisma/client": ">=7.0.0"
|