Skip to content

Releases: Odrin/express-easy-rest

1.1.0

24 Oct 14:40
Compare
Choose a tag to compare

1.1.0 (2016-10-24)

Bug Fixes

  • fixed type notation in cache.ts

Code Refactoring

  • typings replaced by @types npm package

1.0.0

19 Oct 12:40
Compare
Choose a tag to compare

1.0.0 (2016-10-19)

Code Refactoring

  • ApplicationInstance.errorHandlers replaced by single global onError() handler
  • ApplicationInstance.requestHandlers replaced by single global onRequest() handler
  • NodeJS 6.X & TypeScript 2.X
  • es6-shim typings removed

Features

  • controller initialization via glob, no more need to list all controllers in ApplicationInstance constructor
  • added http exceptions support - see HttpError
  • ControllerExceptionFilter and ActionExceptionFilter to handle exceptions
  • added model validation functionality - see ModelValidator, @required(), @stringlength(), @range(), @regularexpression()

0.3.2

31 Aug 12:21
Compare
Choose a tag to compare
0.3.2 Pre-release
Pre-release

Code Refactoring

  • move express NPM dependencies to peerDependencies for better compatibility

0.3.1

30 Aug 13:54
Compare
Choose a tag to compare
0.3.1 Pre-release
Pre-release

Bug Fixes

  • PathBuilder returns an incorrect value when base path wasn't specified
  • deleted old unused files from lib directory

Code Refactoring

  • simple session example added

0.3.0

26 Aug 12:35
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

Bug Fixes

  • fixed double configAuthProvider() call
  • fixed action result handler exception for primitives

Code Refactoring

  • renamed "controller" namespace to "api"
  • ContextDataProvider removed and HttpContextProvider added instead
  • authorization skipping method moved to AuthorizationFilter
  • es6-promise dependency replaced by es6-shim typings
  • finally appeared the first tests 🎉

Features

  • HttpContext and HttpActionContext added
  • Caching class added

0.2.2

22 Aug 07:25
Compare
Choose a tag to compare
0.2.2 Pre-release
Pre-release

Code Refactoring

  • fixed authorize decorator naming (authorize -> Authorize)
  • some fixes and refactoring in examples

0.2.0

19 Aug 13:51
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

Bug Fixes

  • error handlers now working

Code Refactoring

  • request handles: added IRequestHandler and IErrorRequestHandler instead of Express.RequestHandler and ErrorRequestHandler; handlers now async and using promises;
  • added class Metadata to encapsulate Reflect lib
  • removed EasyRestConfig, all logic moved to ApplicationInstance
  • temporarily added ContextDataProvider which will be replaced with HttpContext and ActionContext in future
  • decorators naming changed to CamelCase instead of lowerCamelCase
  • Controller renamed to ApiController

Features

  • authentication added - see IAuthenticationProvider, IPrincipal, IIdentity;
  • authorization decorators added - see @authorize, @allowAnonymous

0.1.0

08 Aug 14:32
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release
init