1.3.18
- Add
StateManager.prototype.isFrom
method for state source checking
1.3.17
- Log
Entity.parse
error without throwing out
1.3.16
- Add
makeHref
function to ApiMethod and Poplar
1.3.15
- Fix Dynamic string converter
1.3.14
- Fix
ctx.method
conflicts withctx.request.method
bug
1.3.13
- Fix
ctx.method
conflicts withctx.request.method
bug
1.3.12
- Change Poplar global
__locals
toPoplar.locals
1.3.11
- Add type cast for Entity
- Add more Dynamic converters
- Allow user to directly access
ctx
in apiMethod when in non restrict mode - Add delegates to
ctx
fromreq
andres
1.3.10
- Add StateManager, before, after, afterError and method call will be reflected on state's change event
- Add corresponding tests for StateManager
- Delegate apiMethod error to afterError hook
- Update dependencies
1.3.9
- Add several methods for ApiBuilder.prototype:
prepend
,exists
,undefine
and update corresponding tests
1.3.8
- Change ApiMethod
returns
behaviour, use default contextdone
method to handle request
1.3.7
- Avoid Entity parse empty value such as
undefined
andnull
after default value applied
1.3.6
- Update travis.yml
- Use
_.each
and_.map
instead of originalArray.prototype.forEach
andArray.prototype.map
for performance issue - Update package and dependencies version
1.3.5
- Add
isValidated
andisSanitized
statuses - Remove HttpContext
helpers
support - Update package and dependencies version
1.3.4
- Refactor
Validate
module, and allow using{ required: 'name is required' }
syntax
1.3.3
- Update basePath regexp to allow
.
,-
- Enhance
ApiBuilder.prototype.extend
function withevents
inherits - Move
required
fromvalidates
to outer - Add tests for
Validate
andSanitize
for method existance check
- Add
#set
,#get
,#unset
for poplar constructor and instance - Add more embed documentation
- Add
build.sh
script for generating documentation
- Add Sanitizer support: xss, trim e.g.
- Fix helpers.isEmpty return NaN as false
- Add Validate#extend method for adding custom validator
- Add missing
description
to MethodInvocation - Add MethodInvocation to avoid direct change to ApiMethod
- Add test cases for MethodInvocation
- Update dependencies
- Remove unused functions and fix argument convert bug
- Change default error handler bahavior
- Allow to define multi hooks(before, after, afterError) for one time
- Add more tests
- Add Context options#helpers as method invocation context
- Better route debug info
- Add human readable routes debug info
- Fix Entity parse bug, options will lost when parsing array object
- Add args to entity options
- Allow validation required to be a function
- Better debug information for routers
- Add checking for http verb
- Add basePath support for Poplar instance
- Add default value to accepts
- Add params argument to validation custom function
- Fix broken tests and bug under node version 0.10
- Add
presenterSource
to ApiMethod options and cooresponding tests - Better validation info when customized function contains errors
- Add function
flatten()
to validationError
- Initial release!