Releases: zgid123/abyss-ts
[email protected]
Release [email protected]
Changelogs
change peer dependency version of @mikro-orm/core
to ^6.0.0
Full Changelog: https://github.com/zgid123/abyss-ts/compare/[email protected]@0.0.2
[email protected]
Release [email protected]
Changelogs
- create
BaseExceptionHandler
to catch all exceptions if no custom handler - apply global exception handlers, one middleware per handler
- add
try catch
for action execution and pass error to next middleware to handle exception
Full Changelog: https://github.com/zgid123/abyss-ts/compare/[email protected]@0.0.4
[email protected]
Release [email protected]
Changelogs
- create default http status codes
- change exit 1 to 0 for dispose
- create methods to map exception handlers for
AbyssalApplication
- add response to
AbyssalContext
- create
AbyssalException
to create custom exception - create
IAbyssalExceptionHandler
to create custom exception handler - create decorator
Catch
for setting exception class for handler
Full Changelog: https://github.com/zgid123/abyss-ts/compare/[email protected]@0.0.4
[email protected]
Release [email protected]
Changelogs
- create mikro-orm plugin using AbyssalConfiguration and AbyssalMiddleware
[email protected]
Release [email protected]
Changelogs
- create context per request using async storage
- map controllers and injections using AbyssalApplication methods instead
- apply configurations and middlewares
Full Changelog: https://github.com/zgid123/abyss-ts/compare/[email protected]@0.0.3
[email protected]
Release [email protected]
Changelogs
- add loadEnv method for class AbyssApplication to load .env
- create function to create custom metadata
- create context
- create AbyssalConfiguration and AbyssalMiddleware to create 3rd party and global middleware
Full Changelog: https://github.com/zgid123/abyss-ts/compare/[email protected]@0.0.3
[email protected]
Release [email protected]
What's Changed
- export more decorators from core package:
Put
,Post
,Patch
,Delete
,Inject
andInjectable
- resolve singleton injections and pass to controllers' constructor or other injection classes' constructor
Full Changelog: https://github.com/zgid123/abyss-ts/compare/[email protected]@0.0.2
[email protected]
Release [email protected]
What's Changed
- build simple ioc container for di
Full Changelog: https://github.com/zgid123/abyss-ts/compare/[email protected]@0.0.2
[email protected]
Release [email protected]
Changelogs
- export decorators:
Controller
,Get
,Query
,Body
,Request
andParam
from core package - create
ExpressApplication
as a builder for Express app - create util to load controllers using
glob
with pattern**/*Controller.ts
,**/*.controller.ts
- create util to map parameters to action's exec
- run the server using
createHttpServer
from packagehttp
[email protected]
Release [email protected]
Changelogs
- create
Controller
decorator to create controller - create http method decorators:
Get
,Post
,Put
,Patch
andDelete
to create action for controller - create parameter decorator
Query
to inject query param to controller's action - create parameter decorator
Body
to inject body param to controller's action - create parameter decorator
Param
to inject param (e.g:/:id
,id
is a param) to controller's action - create parameter decorator
Request
to inject request (e.g: Express's request) to controller's action - create Core Application to build runner