deepkit-framework
deepkit-framework copied to clipboard
A new full-featured and high-performance TypeScript framework
Consider the following middleware: ```ts import { HttpMiddleware, HttpRequest, HttpResponse } from '@deepkit/http'; export class AuthenticationMiddleware implements HttpMiddleware { constructor() {} async execute( request: HttpRequest, response: HttpResponse, next: (err?: unknown)...
Throwing or passing `next()` an error (even `HttpError`) results in weird behavior: Expected result would be no `Could not resolve request` thing with 404 response code, but rather 403 response...
One have to always write `createModule({})` instead of just `createModule()`
One is from `core`, another is from `injector`. That is confusing. There's no documentation covering whenever which one of those should be used. I suggest keeping only one export.
### Summary of changes ```ts /** * Marks a parameter as HTTP cookie and reads the value from the request 'Cookie' header. * * @example * ```typescript * class Controller...
### Summary of changes ### Relinquishment of Rights Please mark following checkbox to confirm that you relinquish all rights of your changes: - [x] I waive and relinquish all rights...
```typescript test('query validator withing HttpQuery', async () => { class Controller { @http.GET('do') async do( a: HttpQuery, b: HttpQuery, ) { return { valid: true }; } } const httpKernel...
Optional chaining for provider with function call results in an error: > SyntaxError: Invalid left-hand side in assignment example: ```ts @rpc.controller(AppNotificationRPC).strictSerialization(false).logValidationErrors(true) class MyController { constructor (private myService: MyService) { }...
### Summary of changes - Previously transformError was not called when an error occured in kernel.authenticate() for instance - Enable better sanitization of errors ### Relinquishment of Rights Please mark...
PgLite https://pglite.dev/ is an Embeddable Postgres which is becoming very popular. Is there any plan to add support for PgLite?