Skip to content

Releases: grupo-a/common-nodejs-tools

v1.8.0

Choose a tag to compare

@r-marmitt r-marmitt released this 27 Oct 13:58

What's Changed

  • response.error answers "Internal server error" for an error that is not an HttpError and has a status of 500 or more. The log keeps the original message and the whole error
  • An HttpError keeps its message at any status
  • A thrown primitive (throw 'text') no longer breaks response.error

Breaking change: a 5xx that is not an HttpError now has the generic message.

Full Changelog: #19

v1.7.1

Choose a tag to compare

@r-marmitt r-marmitt released this 27 Oct 13:38

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

Choose a tag to compare

@r-marmitt r-marmitt released this 30 Jul 13:55

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

Choose a tag to compare

@esato-maisaedu esato-maisaedu released this 11 Mar 19:04
  • Added 3 options to express.init: startServer, forceCloseDelay and port
  • "startServer" = false should be used in test environments

v1.6.1

Choose a tag to compare

@esato-maisaedu esato-maisaedu released this 21 Feb 20:42
  • Remove healthy logs

v1.5.0

Choose a tag to compare

@rmarmitt rmarmitt released this 16 Nov 16:22
  • Add /metrics endpoint to collect data to Prometheus and Keda

v1.4.1

Choose a tag to compare

@ewsbr ewsbr released this 25 Sep 13:12
  • Use pg connection pool for writes
  • Add SSL env variables

v1.4.0

Choose a tag to compare

@ewsbr ewsbr released this 28 Jul 17:34
  • Add statement_timeout as an env variable to pg config
  • Update pg and express
  • Replace deprecated request library with axios

Versão 1.3.0

Choose a tag to compare

@inovaedtech inovaedtech released this 23 Aug 13:58
  • add getClient
  • deprecated transactions and increase JSON limit from 300kb to 600kb

Versão 1.1.1

Choose a tag to compare

@mrodriguesb mrodriguesb released this 04 Aug 17:49
v1.1.1

Nova função de auditoria