veloce-ts 0.1.6 → 0.2.0
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 +76 -1
- package/dist/cjs/src/cli/index.js +517 -0
- package/dist/cjs/src/cli/index.js.map +22 -0
- package/dist/cjs/src/docs/index.js +7 -0
- package/dist/cjs/src/docs/index.js.map +55 -0
- package/dist/cjs/src/errors/index.js +4 -0
- package/dist/cjs/src/errors/index.js.map +13 -0
- package/dist/cjs/src/graphql/index.js +83 -0
- package/dist/cjs/src/graphql/index.js.map +24 -0
- package/dist/cjs/src/index.js +126 -0
- package/dist/cjs/src/index.js.map +195 -0
- package/dist/cjs/src/middleware/index.js +3 -0
- package/dist/cjs/src/middleware/index.js.map +12 -0
- package/dist/cjs/src/plugins/index.js +123 -0
- package/dist/cjs/src/plugins/index.js.map +67 -0
- package/dist/cjs/src/testing/index.js +17 -0
- package/dist/cjs/src/testing/index.js.map +55 -0
- package/dist/cjs/src/types/index.js +3 -0
- package/dist/cjs/src/types/index.js.map +16 -0
- package/dist/cjs/src/validation/index.js +3 -0
- package/dist/cjs/src/validation/index.js.map +19 -0
- package/dist/cjs/src/websocket/index.js +3 -0
- package/dist/cjs/src/websocket/index.js.map +12 -0
- package/dist/esm/chunk-09p9prja.js +7 -0
- package/dist/esm/chunk-09p9prja.js.map +10 -0
- package/dist/esm/chunk-3nhrrhv9.js +5 -0
- package/dist/esm/chunk-3nhrrhv9.js.map +10 -0
- package/dist/esm/chunk-3vd5qsws.js +5 -0
- package/dist/esm/chunk-3vd5qsws.js.map +12 -0
- package/dist/esm/chunk-4s66h6qw.js +7 -0
- package/dist/esm/chunk-4s66h6qw.js.map +10 -0
- package/dist/esm/chunk-9f0s1qbb.js +4 -0
- package/dist/esm/chunk-9f0s1qbb.js.map +16 -0
- package/dist/esm/chunk-dpjkne9h.js +60 -0
- package/dist/esm/chunk-dpjkne9h.js.map +10 -0
- package/dist/esm/chunk-f64j5zbr.js +5 -0
- package/dist/esm/chunk-f64j5zbr.js.map +9 -0
- package/dist/esm/chunk-gdq186ew.js +430 -0
- package/dist/esm/chunk-gdq186ew.js.map +10 -0
- package/dist/esm/chunk-gy9nsvnk.js +6 -0
- package/dist/esm/chunk-gy9nsvnk.js.map +10 -0
- package/dist/esm/chunk-qg4ngg5j.js +18 -0
- package/dist/esm/chunk-qg4ngg5j.js.map +10 -0
- package/dist/esm/chunk-r8ssy5cv.js +5 -0
- package/dist/esm/chunk-r8ssy5cv.js.map +10 -0
- package/dist/esm/chunk-sv2c5krg.js +5 -0
- package/dist/esm/chunk-sv2c5krg.js.map +10 -0
- package/dist/esm/chunk-vkkzgaf7.js +5 -0
- package/dist/esm/chunk-vkkzgaf7.js.map +12 -0
- package/dist/esm/chunk-vzhqg5mb.js +5 -0
- package/dist/esm/chunk-vzhqg5mb.js.map +10 -0
- package/dist/esm/chunk-yyxd7dw5.js +72 -0
- package/dist/esm/chunk-yyxd7dw5.js.map +13 -0
- package/dist/esm/src/cli/index.js +30 -0
- package/dist/esm/src/cli/index.js.map +18 -0
- package/dist/esm/src/docs/index.js +8 -0
- package/dist/esm/src/docs/index.js.map +48 -0
- package/dist/esm/src/errors/index.js +4 -0
- package/dist/esm/src/errors/index.js.map +9 -0
- package/dist/esm/src/graphql/index.js +4 -0
- package/dist/esm/src/graphql/index.js.map +9 -0
- package/dist/esm/src/index.js +6 -0
- package/dist/esm/src/index.js.map +102 -0
- package/dist/esm/src/middleware/index.js +4 -0
- package/dist/esm/src/middleware/index.js.map +9 -0
- package/dist/esm/src/plugins/index.js +40 -0
- package/dist/esm/src/plugins/index.js.map +10 -0
- package/dist/esm/src/testing/index.js +4 -0
- package/dist/esm/src/testing/index.js.map +39 -0
- package/dist/esm/src/types/index.js +4 -0
- package/dist/esm/src/types/index.js.map +9 -0
- package/dist/esm/src/validation/index.js +4 -0
- package/dist/esm/src/validation/index.js.map +9 -0
- package/dist/esm/src/websocket/index.js +4 -0
- package/dist/esm/src/websocket/index.js.map +9 -0
- package/dist/types/adapters/base.d.ts +24 -0
- package/dist/types/adapters/base.d.ts.map +1 -0
- package/dist/types/adapters/express.d.ts +44 -0
- package/dist/types/adapters/express.d.ts.map +1 -0
- package/dist/types/adapters/hono.d.ts +44 -0
- package/dist/types/adapters/hono.d.ts.map +1 -0
- package/dist/types/auth/auth-plugin.d.ts +29 -0
- package/dist/types/auth/auth-plugin.d.ts.map +1 -0
- package/dist/types/auth/auth-service.d.ts +84 -0
- package/dist/types/auth/auth-service.d.ts.map +1 -0
- package/dist/types/auth/decorators.d.ts +36 -0
- package/dist/types/auth/decorators.d.ts.map +1 -0
- package/dist/types/auth/exceptions.d.ts +27 -0
- package/dist/types/auth/exceptions.d.ts.map +1 -0
- package/dist/types/auth/index.d.ts +29 -0
- package/dist/types/auth/index.d.ts.map +1 -0
- package/dist/types/auth/jwt-provider.d.ts +98 -0
- package/dist/types/auth/jwt-provider.d.ts.map +1 -0
- package/dist/types/auth/oauth-decorators.d.ts +31 -0
- package/dist/types/auth/oauth-decorators.d.ts.map +1 -0
- package/dist/types/auth/oauth-plugin.d.ts +34 -0
- package/dist/types/auth/oauth-plugin.d.ts.map +1 -0
- package/dist/types/auth/oauth-provider.d.ts +135 -0
- package/dist/types/auth/oauth-provider.d.ts.map +1 -0
- package/dist/types/auth/permission-decorators.d.ts +92 -0
- package/dist/types/auth/permission-decorators.d.ts.map +1 -0
- package/dist/types/auth/permission-plugin.d.ts +31 -0
- package/dist/types/auth/permission-plugin.d.ts.map +1 -0
- package/dist/types/auth/permissions.d.ts +225 -0
- package/dist/types/auth/permissions.d.ts.map +1 -0
- package/dist/types/auth/rbac-decorators.d.ts +63 -0
- package/dist/types/auth/rbac-decorators.d.ts.map +1 -0
- package/dist/types/auth/rbac-plugin.d.ts +31 -0
- package/dist/types/auth/rbac-plugin.d.ts.map +1 -0
- package/dist/types/auth/rbac.d.ts +145 -0
- package/dist/types/auth/rbac.d.ts.map +1 -0
- package/dist/types/auth/session-decorators.d.ts +75 -0
- package/dist/types/auth/session-decorators.d.ts.map +1 -0
- package/dist/types/auth/session-plugin.d.ts +40 -0
- package/dist/types/auth/session-plugin.d.ts.map +1 -0
- package/dist/types/auth/session.d.ts +235 -0
- package/dist/types/auth/session.d.ts.map +1 -0
- package/dist/types/cli/commands/build.d.ts +3 -0
- package/dist/types/cli/commands/build.d.ts.map +1 -0
- package/dist/types/cli/commands/dev.d.ts +3 -0
- package/dist/types/cli/commands/dev.d.ts.map +1 -0
- package/dist/types/cli/commands/generate.d.ts +3 -0
- package/dist/types/cli/commands/generate.d.ts.map +1 -0
- package/dist/types/cli/commands/new.d.ts +3 -0
- package/dist/types/cli/commands/new.d.ts.map +1 -0
- package/dist/types/cli/index.d.ts +3 -0
- package/dist/types/cli/index.d.ts.map +1 -0
- package/dist/types/cli/templates/public-interface.d.ts +2 -0
- package/dist/types/cli/templates/public-interface.d.ts.map +1 -0
- package/dist/types/core/application.d.ts +273 -0
- package/dist/types/core/application.d.ts.map +1 -0
- package/dist/types/core/compiled-metadata.d.ts +59 -0
- package/dist/types/core/compiled-metadata.d.ts.map +1 -0
- package/dist/types/core/metadata.d.ts +271 -0
- package/dist/types/core/metadata.d.ts.map +1 -0
- package/dist/types/core/plugin.d.ts +63 -0
- package/dist/types/core/plugin.d.ts.map +1 -0
- package/dist/types/core/router-compiler.d.ts +71 -0
- package/dist/types/core/router-compiler.d.ts.map +1 -0
- package/dist/types/decorators/dependencies.d.ts +28 -0
- package/dist/types/decorators/dependencies.d.ts.map +1 -0
- package/dist/types/decorators/docs.d.ts +38 -0
- package/dist/types/decorators/docs.d.ts.map +1 -0
- package/dist/types/decorators/graphql.d.ts +126 -0
- package/dist/types/decorators/graphql.d.ts.map +1 -0
- package/dist/types/decorators/http.d.ts +86 -0
- package/dist/types/decorators/http.d.ts.map +1 -0
- package/dist/types/decorators/middleware.d.ts +30 -0
- package/dist/types/decorators/middleware.d.ts.map +1 -0
- package/dist/types/decorators/params.d.ts +82 -0
- package/dist/types/decorators/params.d.ts.map +1 -0
- package/dist/types/decorators/websocket.d.ts +61 -0
- package/dist/types/decorators/websocket.d.ts.map +1 -0
- package/dist/types/dependencies/container.d.ts +93 -0
- package/dist/types/dependencies/container.d.ts.map +1 -0
- package/dist/types/docs/index.d.ts +3 -0
- package/dist/types/docs/index.d.ts.map +1 -0
- package/dist/types/docs/openapi-generator.d.ts +50 -0
- package/dist/types/docs/openapi-generator.d.ts.map +1 -0
- package/dist/types/docs/zod-to-json-schema.d.ts +46 -0
- package/dist/types/docs/zod-to-json-schema.d.ts.map +1 -0
- package/dist/types/errors/exceptions.d.ts +48 -0
- package/dist/types/errors/exceptions.d.ts.map +1 -0
- package/dist/types/errors/handler.d.ts +61 -0
- package/dist/types/errors/handler.d.ts.map +1 -0
- package/dist/types/errors/index.d.ts +7 -0
- package/dist/types/errors/index.d.ts.map +1 -0
- package/dist/types/graphql/index.d.ts +4 -0
- package/dist/types/graphql/index.d.ts.map +1 -0
- package/dist/types/graphql/plugin.d.ts +60 -0
- package/dist/types/graphql/plugin.d.ts.map +1 -0
- package/dist/types/graphql/schema-builder.d.ts +46 -0
- package/dist/types/graphql/schema-builder.d.ts.map +1 -0
- package/dist/types/graphql/zod-to-graphql.d.ts +22 -0
- package/dist/types/graphql/zod-to-graphql.d.ts.map +1 -0
- package/dist/types/index.d.ts +49 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/middleware/compression.d.ts +7 -0
- package/dist/types/middleware/compression.d.ts.map +1 -0
- package/dist/types/middleware/cors.d.ts +7 -0
- package/dist/types/middleware/cors.d.ts.map +1 -0
- package/dist/types/middleware/index.d.ts +4 -0
- package/dist/types/middleware/index.d.ts.map +1 -0
- package/dist/types/middleware/rate-limit.d.ts +7 -0
- package/dist/types/middleware/rate-limit.d.ts.map +1 -0
- package/dist/types/plugins/index.d.ts +4 -0
- package/dist/types/plugins/index.d.ts.map +1 -0
- package/dist/types/plugins/openapi.d.ts +23 -0
- package/dist/types/plugins/openapi.d.ts.map +1 -0
- package/dist/types/responses/response.d.ts +200 -0
- package/dist/types/responses/response.d.ts.map +1 -0
- package/dist/types/testing/helpers.d.ts +98 -0
- package/dist/types/testing/helpers.d.ts.map +1 -0
- package/dist/types/testing/index.d.ts +4 -0
- package/dist/types/testing/index.d.ts.map +1 -0
- package/dist/types/testing/test-client.d.ts +86 -0
- package/dist/types/testing/test-client.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +302 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/validation/exceptions.d.ts +25 -0
- package/dist/types/validation/exceptions.d.ts.map +1 -0
- package/dist/types/validation/index.d.ts +3 -0
- package/dist/types/validation/index.d.ts.map +1 -0
- package/dist/types/validation/validator.d.ts +54 -0
- package/dist/types/validation/validator.d.ts.map +1 -0
- package/dist/types/websocket/connection.d.ts +51 -0
- package/dist/types/websocket/connection.d.ts.map +1 -0
- package/dist/types/websocket/index.d.ts +4 -0
- package/dist/types/websocket/index.d.ts.map +1 -0
- package/dist/types/websocket/manager.d.ts +82 -0
- package/dist/types/websocket/manager.d.ts.map +1 -0
- package/dist/types/websocket/plugin.d.ts +51 -0
- package/dist/types/websocket/plugin.d.ts.map +1 -0
- package/package.json +24 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,78 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.0] - 2025-10-14
|
|
11
|
+
|
|
12
|
+
### 🚀 Major Features Added
|
|
13
|
+
- **Complete Authentication System**: JWT-based authentication with access/refresh tokens
|
|
14
|
+
- **Role-Based Access Control (RBAC)**: Hierarchical roles with granular permissions system
|
|
15
|
+
- **SQLite Integration**: Built-in SQLite support with Bun's native database
|
|
16
|
+
- **Real-time WebSocket Support**: Enhanced WebSocket handling with decorators
|
|
17
|
+
- **GraphQL Integration**: Complete GraphQL support with resolvers and subscriptions
|
|
18
|
+
- **Advanced Middleware System**: Custom middleware with request/response interceptors
|
|
19
|
+
- **Admin Panel Features**: Comprehensive admin endpoints for user and system management
|
|
20
|
+
|
|
21
|
+
### 🎯 New Decorators & Features
|
|
22
|
+
- **@Auth**: JWT authentication decorator with automatic user injection
|
|
23
|
+
- **@CurrentUser**: Inject current authenticated user into handlers
|
|
24
|
+
- **@MinimumRole**: Role-based endpoint protection
|
|
25
|
+
- **@Permissions**: Granular permission-based access control
|
|
26
|
+
- **@WebSocket**: Enhanced WebSocket decorators with connection management
|
|
27
|
+
- **@Resolver**: GraphQL resolver decorators for queries and mutations
|
|
28
|
+
- **@OnConnect/@OnMessage/@OnDisconnect**: WebSocket lifecycle decorators
|
|
29
|
+
|
|
30
|
+
### 🔧 Core Framework Improvements
|
|
31
|
+
- **Router Compiler Fixes**: Fixed critical bugs with sparse array handling in metadata
|
|
32
|
+
- **Dependency Injection**: Enhanced DI system with better error handling
|
|
33
|
+
- **Parameter Resolution**: Improved parameter and dependency resolution
|
|
34
|
+
- **Type Safety**: Enhanced TypeScript inference and type checking
|
|
35
|
+
- **Error Handling**: Better error messages and debugging capabilities
|
|
36
|
+
|
|
37
|
+
### 📚 Documentation & Examples
|
|
38
|
+
- **Veloce TaskMaster**: Complete real-world example with authentication, RBAC, and frontend
|
|
39
|
+
- **Comprehensive Examples**: Task management system showcasing all framework features
|
|
40
|
+
- **Migration Guides**: Documentation for migrating from Express.js and other frameworks
|
|
41
|
+
- **API Documentation**: Enhanced OpenAPI/Swagger documentation generation
|
|
42
|
+
|
|
43
|
+
### 🛠️ Technical Improvements
|
|
44
|
+
- **Performance**: Optimized router compilation and metadata handling
|
|
45
|
+
- **Memory Management**: Better handling of metadata arrays and object references
|
|
46
|
+
- **Bundle Size**: Reduced framework bundle size through optimizations
|
|
47
|
+
- **Build System**: Improved TypeScript compilation and type generation
|
|
48
|
+
- **Testing**: Enhanced testing utilities and error reporting
|
|
49
|
+
|
|
50
|
+
### 🔒 Security Enhancements
|
|
51
|
+
- **JWT Security**: Secure token generation and validation
|
|
52
|
+
- **Password Hashing**: Built-in password hashing utilities
|
|
53
|
+
- **CSRF Protection**: Enhanced CORS and security middleware
|
|
54
|
+
- **Input Validation**: Improved Zod schema validation
|
|
55
|
+
- **Role Hierarchy**: Configurable role hierarchy with permission inheritance
|
|
56
|
+
|
|
57
|
+
### 🎨 Developer Experience
|
|
58
|
+
- **Better Error Messages**: More descriptive error messages with stack traces
|
|
59
|
+
- **Hot Reload**: Improved development server with better file watching
|
|
60
|
+
- **TypeScript Support**: Enhanced type inference and IntelliSense
|
|
61
|
+
- **Debugging**: Better debugging capabilities with request tracing
|
|
62
|
+
- **CLI Improvements**: Enhanced CLI with better project scaffolding
|
|
63
|
+
|
|
64
|
+
### 🐛 Critical Bug Fixes
|
|
65
|
+
- **Router Compilation**: Fixed sparse array handling in parameter metadata
|
|
66
|
+
- **Dependency Resolution**: Fixed undefined dependency handling
|
|
67
|
+
- **Array Length Errors**: Fixed array creation with invalid indices
|
|
68
|
+
- **Import Path Issues**: Corrected all import paths in generated projects
|
|
69
|
+
- **Metadata Processing**: Fixed metadata compilation edge cases
|
|
70
|
+
|
|
71
|
+
### 📦 New Dependencies
|
|
72
|
+
- **jsonwebtoken**: JWT token generation and validation
|
|
73
|
+
- **reflect-metadata**: Enhanced reflection capabilities for decorators
|
|
74
|
+
- **zod-to-json-schema**: Improved OpenAPI schema generation
|
|
75
|
+
|
|
76
|
+
## [0.1.7] - 2025-10-12
|
|
77
|
+
|
|
78
|
+
### Fixed
|
|
79
|
+
- Fixed syntax error in CLI new command that prevented build from completing
|
|
80
|
+
- Fixed README generation in CLI templates
|
|
81
|
+
|
|
10
82
|
## [0.1.6] - 2025-10-12
|
|
11
83
|
|
|
12
84
|
### Added
|
|
@@ -93,7 +165,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
93
165
|
- CLI tooling
|
|
94
166
|
- Testing utilities
|
|
95
167
|
|
|
96
|
-
[Unreleased]: https://github.com/AlfredoMejia3001/veloce-ts/compare/v0.
|
|
168
|
+
[Unreleased]: https://github.com/AlfredoMejia3001/veloce-ts/compare/v0.2.0...HEAD
|
|
169
|
+
[0.2.0]: https://github.com/AlfredoMejia3001/veloce-ts/compare/v0.1.7...v0.2.0
|
|
170
|
+
[0.1.7]: https://github.com/AlfredoMejia3001/veloce-ts/compare/v0.1.6...v0.1.7
|
|
171
|
+
[0.1.6]: https://github.com/AlfredoMejia3001/veloce-ts/compare/v0.1.5...v0.1.6
|
|
97
172
|
[0.1.5]: https://github.com/AlfredoMejia3001/veloce-ts/compare/v0.1.4...v0.1.5
|
|
98
173
|
[0.1.4]: https://github.com/AlfredoMejia3001/veloce-ts/compare/v0.1.3...v0.1.4
|
|
99
174
|
[0.1.3]: https://github.com/AlfredoMejia3001/veloce-ts/compare/v0.1.2...v0.1.3
|