Skip to content

Releases: zgid123/abyss-ts

[email protected]

20 Jul 19:35
d2961ab
Compare
Choose a tag to compare

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]

20 Jul 19:47
7c4e9df
Compare
Choose a tag to compare

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]

20 Jul 19:29
641a25d
Compare
Choose a tag to compare

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]

12 Jul 19:39
dd03a5b
Compare
Choose a tag to compare

Release [email protected]

Changelogs

  • create mikro-orm plugin using AbyssalConfiguration and AbyssalMiddleware

[email protected]

12 Jul 19:38
dd03a5b
Compare
Choose a tag to compare

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]

12 Jul 19:37
dd03a5b
Compare
Choose a tag to compare

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]

01 Jul 18:43
0334a65
Compare
Choose a tag to compare

Release [email protected]

What's Changed

  • export more decorators from core package: Put, Post, Patch, Delete, Inject and Injectable
  • 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]

01 Jul 18:36
51cacbb
Compare
Choose a tag to compare

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]

01 Jul 18:24
af4f9a0
Compare
Choose a tag to compare

Release [email protected]

Changelogs

  • export decorators: Controller, Get, Query, Body, Request and Param 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 package http

[email protected]

01 Jul 18:20
af4f9a0
Compare
Choose a tag to compare

Release [email protected]

Changelogs

  • create Controller decorator to create controller
  • create http method decorators: Get, Post, Put, Patch and Delete 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