Repository navigation
Releases: grupo-a/common-nodejs-tools
Releases · grupo-a/common-nodejs-tools
Release list
v1.8.0
What's Changed
response.erroranswers "Internal server error" for an error that is not anHttpErrorand has a status of 500 or more. The log keeps the original message and the whole error- An
HttpErrorkeeps its message at any status - A thrown primitive (
throw 'text') no longer breaksresponse.error
Breaking change: a 5xx that is not an HttpError now has the generic message.
Full Changelog: #19
v1.7.1
What's Changed
- Create the request id before the body parsers, so a body parser error also gets a requestId and an X-Request-Id header
- Reuse the X-Request-Id of the caller when it is a string of 1 to 128 characters from [A-Za-z0-9._-]
Full Changelog: #18
v.1.7.0
What's Changed
- Add new log level "TRACKING"
- Bump ajv from 6.12.2 to 6.12.6 by @dependabot in #3
- Bump qs from 6.5.2 to 6.5.3 by @dependabot in #7
v1.6.2
- Added 3 options to express.init: startServer, forceCloseDelay and port
- "startServer" = false should be used in test environments
v1.6.1
v1.5.0
v1.4.1
v1.4.0
Versão 1.3.0
- add getClient
- deprecated transactions and increase JSON limit from 300kb to 600kb