What's Changed
Features ๐
- feat(core): redact password, secret and token keys by default by @HugoRCD in #836
- feat(core): add extends and mergeEvlogConfig to defineEvlog by @HugoRCD in #805
Bug Fixes ๐
- fix(nuxt): redact client events received by the ingest endpoint by @HugoRCD in #838
- fix(nitro): skip default error logging when evlog records the request by @HugoRCD in #837
- fix(core): add debug() to the request logger by @HugoRCD in #835
- fix(core): return the child lifetime from log.fork() and register it with waitUntil by @HugoRCD in #834
- fix: register a streamed response's waitUntil before the handler returns by @HugoRCD in #830
- fix: drop the options object h3 keeps as error cause by @HugoRCD in #829
- fix: serialize an h3-wrapped error once in wide events by @evlogai[bot] in #825
- fix(nitro): skip request wide event for successful client transport batches by @evlogai[bot] in #826
- fix(nitro): print client ingest events to stdout by @evlogai[bot] in #821
- fix(nitro): skip default logging for expected evlog 4xx errors by @evlogai[bot] in #819
- fix(core): stop masking pnpm store paths as email addresses by @evlogai[bot] in #817
- fix(next): bundle the instrumentation factory and stop capturing evlog's own output by @HugoRCD in #816
- fix: skip the silent drain warning when nuxt and nitro bake the config by @HugoRCD in #804
- fix(nuxt): apply sampling rates to client ingest events by @HugoRCD in #811
- fix(nuxt): stop dropping every client log when minLevel is unset by @HugoRCD in #810
- fix: serialize RegExp redact patterns across the nuxt and nitro config bridges by @evlogai[bot] in #794
- fix(nitro): drop unresolvable subpath from errorHandler JSDoc by @evlogai[bot] in #788
Tests ๐งช
- test: check entrypoint registrations agree across exports, typesVersions and tsdown by @evlogai[bot] in #832
- test(nitro): drop two tests that mirror the implementation instead of driving it by @evlogai[bot] in #797
- test(ai): drop three tests that duplicate surviving assertions by @evlogai[bot] in #801
Refactoring ๐
- refactor(nitro): dedupe the request-id gate and tail-sampling emit in the v3 plugin by @evlogai[bot] in #795
- refactor(nitro): drop the dead !ctx operand in the v3 response hook by @evlogai[bot] in #796
- refactor(ai): reuse formatTelemetryError and the recordModel resolution by @evlogai[bot] in #800
Other Changes ๐จ
Full Changelog: https://github.com/evloghq/evlog/compare/evlog@2.30.1...evlog@2.31.0