You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server): add production-ready Express server and enhance middleware utilities
- Implement Express server framework with enterprise-ready features:
- Security middleware (helmet, CORS, rate limiting)
- Monitoring and health checks
- Graceful shutdown support
- Extensibility for future features
- Add comprehensive test coverage for server functionality
- Update deepObjMerge utility to support:
- Circular references
- Special objects (Date, RegExp, Set, Map)
- TypedArrays and complex cloning scenarios
-`requestId(options?): Middleware` – Generate and attach a unique request ID to each request.
540
-
-`responseTime(options?): Middleware` – Measure and log the response time for each request.
539
+
-`requestId(options: { headerName?: string; exposeHeader?: boolean; generator?: () => string }): Middleware` – Generate and attach a unique request ID to each request.
540
+
-`responseTime(options?: { addHeader?: boolean; logOnComplete?: boolean }): Middleware` – Measure and log the response time for each request.
541
541
-`timeout(timeoutMs?: number): Middleware` – Abort requests that exceed a specified timeout.
542
542
-`setupRequestContext(): Middleware` – Set up the request context for each incoming request.
A comprehensive suite of validators for checking strings, numbers, objects, arrays, and common formats such as email, UUID, IP, and more. Useful for input validation and API parameter checks.
830
831
832
+
-`isPort(str: string | number): boolean` – Check if a string or number is a valid port number.
831
833
-`isEmail(str: string): boolean` – Check if a string is a valid email address.
832
834
-`isUUID(str: string): boolean` – Check if a string is a valid UUID.
833
835
-`isURL(str: string): boolean` – Check if a string is a valid URL.
0 commit comments