All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
2.0.0 (2023-07-30)
- express: aconvenient types with each param decorator (e3a86bf)
- express: allow Send.Dont to be applied without invokation (c701586)
- express: bug with mutated middewares reference in Use decorator (0622483)
- express: change final-handler signature for booleans (e796dc1)
- express: change path constraint object to a tuple and unwrap RegistrationArray to Registration (58cc9a2)
- express: dedicated reflet express error (ddf9c90)
- express: easier and more flexible finalHandler (32fb80f)
- express: improve internal errors (8a90790)
- express: improve signature for param middleware deduplication (3206e26)
- express: make Router decorator mandatory (1da8201)
- express: more control for middleware deduplication in createParamDecorator (18e6d41)
- express: more options to reveal error name and message (1c0824c)
- express: proper reflet error for sending response object (16a7e50)
- express: remove deprecated APIs (9097d60)
- express: remove every "controller" word occurence (c68bca8)
- express: remove generic from ClassOrMethodDecorator interface (b450227)
- express: remove global error handler to avoid magic (fd5a286)
- express: remove need for reflect-metadata (a0eea93)
- express: Remove way of registering childrens router in parent constructor (002f551)
- express: rename Method decorator to Route (9425ee4)
- express: rename reveal to expose in final handler options (a3da648)
- express: ScopedMiddlewares out of Router namespace (7987be4)
- express: send not detected on decorated application (f8656d6)
- express: simplify regex for json detection in final handler (9ce7f5a)
- express: throw an error if Router.Children are defined without Router (da7a357)
- express: throw error on multiple param decorators overriding each other (93081e5)
- use reflet/http for header and status types (3a1c362)
- express: allow uppercase http method in Route decorator (c890fc5)
- express: custom handler for Send decorator (36c5103)
- express: custom status code for notFoundHandler (2fd6d99)
- express: decorator Router.ScopedMiddlewares (6b46032)
- express: final handler (4f08c3e)
- express: simpler and more flexible option to whitelist error properties in finalHandler (800698d)
- express: Send decorator no longer has status, nullStatus and undefinedStatus options.
- reflet/http is now a required peer dependency
- express: Path constraint in registration is no longer an object
- express: signature has changed from a single boolean to a full object for each middleware.
- express: Router decorator must be applied on routing classes
- express: overload of register method for chidren routers has been removed
- express: rename Controllers to RegistrationArray
- express: DontSend decorator and Router.register method are removed
- express: global error handler has been removed (no more automatic json detection in global errors)
- express: Method replaced by Route
1.6.1 (2022-04-11)
- express: bug with mutated middewares reference in Use decorator (f77bbfd)
1.6.0 (2021-08-05)
- express: application class mixin in node 14 and 16 (396fcb8)
- express: more flexible union signature in register (b9d9780)
- express: only wrap async functions instead of promisify everything (2f2ffb6)
- express: application class (1baae1e)
- express: can decorate application class with Send (d56195a)
- express: dynamic router (10e8491)
- express: router children decorator (b7fe72f)
- express: use same register function for child routers, deprecate the other one (741ef76)
1.5.3 (2021-02-18)
- express: deprecate DontSend, add Send.Dont (f81e197)
- express: detect headers in global error handler (db2309e)
1.5.2 (2021-02-12)
- express: add generic to middleware decorator to augment request object (9386992)
- express: allow handler to be property function (34af031)
- express: can pass multiple http verbs to Method (fabcf6a)
1.5.1 (2021-01-05)
- express: conflict with express router interface (0e634bf)
1.5.0 (2021-01-05)
- express: could not call Router.register multiple times (0eb8e34)
- express: compatibility with plain express routers in register functions (2218ddd)
- express: paths centralization and contraint (e6a11ee)
1.4.0 (2020-12-20)
- express: expose all route decorators in Method namespace (93713bf)
1.3.2 (2020-05-24)
- express: shared middlewares are no longer mutated before being passed to children (1c35488)
- remove esModuleInterop for better typing compatibility (0987cc8)
1.3.1 (2020-04-28)
- express: attach children routers after routes of parent routers (323a2b1)
- express: class with dependencies should be instantiated (8e6c89f)
- express: temporary allow to register nested express routers, untyped and undocumented (d2fe64f)
1.3.0 (2020-04-26)
1.2.0 (2020-04-23)
- express: allow instances in register, for dependency injection (553a446)
1.1.0 (2020-04-07)
- express: add node typings as peer dependency (6284948)
- express: brand decorators (c87b66d)
- express: instantiate controller to let access eventual properties (a6f9b41)
- express: rebrand decorators (253d65a)
- express: typings (48744fd)
- use distinct decorator types (ee55013)
- express: warn for controllers without route (345b3e6)
- express: allow typing the error object in Catch decorator (a9375cd)
- express: authorize app.all as a routing method in Method decorator (a450c20)
- express: class send options are now extended by method send options instead of reset (2f2edef)
- express: dedupe param middlewares according to function name instead of function body (7dfede3)
- express: error message property is properly sent by the default error handler in json responses (8bea495)
- express: fix the middlewares order in routes applied to an app instance (957268d)
- express: global error handler better prioritize status detection and clean status in message (e6dd692)
- express: global error handler normalizes primitive type errors (5d5a87f)
- express: remove alpha stage Render decorator (b8ae219)
- express: use symbols for reflect metadata keys (68d7d86)
- express: add head, options, all express methods as route decorators (bf43e05)
- express: allow multiple Use and Catch decorators, remove UseAfter (0063a59)
- express: allow to mark param decorator middlewares for deduplication (1dedc26)
- express: apply body-parser middlewares to routes using @Body decorator (7e5e383)
- express: dedupe/remove param middlewares if they're already applied elsewhere (6b516c9)
- express: default global error handler, detects json and is removed if another is applied (99d09b5)
- express: expose generic Method decorator, remove Head, Options and All decorators (3c6be9a)
- express: handle methods return value (async, streams, configurable status) with @Send (bfdd1ae)
- express: infer error status code (364564a)
- express: narrow @Headers string type to known request headers (24184ed)
- express: param decorator creator function, use it for our own param decorators (0c2fca2)
- express: register routes on app, common decorators (6fbe988)
- express: route params decorators can be applied without invokation (3250c3c)