Skip to content

Releases: sainsburys-tech/next-logger

Minor dependency bump

10 Sep 08:22
f63d07a
Compare
Choose a tag to compare

This release contains a minor dependency bump, including a fix for a low severity npm audit finding.

v5.0.0

19 Jun 19:24
2b0e988
Compare
Choose a tag to compare

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

19 Jun 19:20
5ee5061
Compare
Choose a tag to compare

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

24 Apr 12:57
2bfeff8
Compare
Choose a tag to compare

This release focuses on fixing security issues with dependency versions, and updating other non-breaking versions.

  • async and minimatch 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)

10 Apr 09:29
Compare
Choose a tag to compare

This adds support for trace logs, introduced in Next.js 12.

Support configuring Pino and custom loggers

06 Jan 16:41
Compare
Choose a tag to compare

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

19 Oct 17:41
Compare
Choose a tag to compare

This release simplifies how Next's output logger is required. This should resolve issues with non-standard node_modules, such as Yarn workspaces.

This fixes #8 and closes #2.

Dependencies & npm audit

19 Oct 17:32
Compare
Choose a tag to compare

The fixes all current npm audit issues, and upgrades Pino.

Fix handling undefined and null values

14 Sep 13:21
Compare
Choose a tag to compare

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!

Fix exception logging

27 Jul 16:23
Compare
Choose a tag to compare

This release includes a fix to exception logging, ensuring Error style objects are correctly logged, along with their properties.

Thanks to @kmikko for raising the bug in #3 and then fixing it in #4!