- Changed: minimum support for node v4
- Changed:
error()
functions no longer accept multiple arguments to format message - Changed:
error()
functions now accept an extra optional object parameter, used to copy properties to error instance. - Changed:
error(str, ...x)
toerror(str, ?obj)
- Changed:
error(code, str, ...x)
toerror(code, str, ?obj)
- Changed:
error(x)
toerror(x, ?obj)
- Fixed: make sure exceptions thrown directly inside
error()
anderror.wrap()
get correctly routed to Node.js
- Added:
error.wrap(fn)
. It works much likeerror(fn)
, but does not swallow the first argument. Use this around async calls you need theerr
argument.
- Changed:
begin
andend
in profile data are instances of Dates (they were number)
- Added: run state info: share data across all actions with
process.domain.runInfo
- Added: post filters