Releases: sainsburys-tech/next-logger
Minor dependency bump
This release contains a minor dependency bump, including a fix for a low severity npm audit
finding.
v5.0.0
This release brings support for Winston as an alternative to Pino, while maintaining backwards compatibility. It also fixes some issues with Webpack, support for Next.js' Instrumentation options and fixes some dependency vulnerabilities.
Enormous thanks to @CHC383, who contributed these changes.
What's Changed
- build(deps): Update Dependencies and Fix Vulnerabilities by @CHC383 in #32
- Replace cosmiconfig with lilconfig to Work with Webpack by @CHC383 in #34
- Support Winston as Custom Logger by @CHC383 in #33
New Contributors
Full Changelog: v4.0.0...v5.0.0
Next 14 Support
This releases fixes compatibility issues with Next 13 & 14, solving #22.
[This release and matching tag were published after the corresponding NPM release, to maintain a curated change log]
Security & version updates
This release focuses on fixing security issues with dependency versions, and updating other non-breaking versions.
async
andminimatch
have both been upgrade to mitigate high severity security issues.- Toolchain dependencies, like ESLint, Prettier and Jest have been upgraded.
- The Node version used to test this repository has been upgraded from Node 14 to 18, to avoid it going EOL.
- Pino has been upgraded to version 8, which brings no breaking changes. This closes #19 - thanks @ristomatti!
Additionally, this repository has had a change of ownership; moving from @atkinchris into @sainsburys-tech. There's no change to the package name, license or publishing.
Support trace (and future logger methods)
This adds support for trace
logs, introduced in Next.js 12.
Support configuring Pino and custom loggers
This major release brings support for configuring the underlying Pino instance used for logging, or to replace it entirely with a custom logger. The existing logger behaviour has been put into the default logger, to avoid breaking changes.
This also updates the testing strategy to additionally run some test suites within containers, to provide further assurance on the package working in isolation.
Simplify the requiring of Next's output logger
Dependencies & npm audit
The fixes all current npm audit
issues, and upgrades Pino.
Fix handling undefined and null values
This fixes handling of null
and undefined
logs, which would otherwise have thrown an error when accessing .length
.
Thanks to @timoweiss for raising the fix in #5!