zap v1.18.1 Release Notes

Release Date: 2021-06-28 // about 1 month ago
  • ๐Ÿ›  Bugfixes:

    • #974: Fix nil dereference in logger constructed by zap.NewNop.

Previous changes from v1.17.0

  • ๐Ÿ›  Bugfixes:

    • [#867][]: Encode <nil> for nil error instead of a panic.
    • โšก๏ธ [#931][], [#936][]: Update minimum version constraints to address vulnerabilities in dependencies.

    โœจ Enhancements:

    • [#865][]: Improve alignment of fields of the Logger struct, reducing its size from 96 to 80 bytes.
    • ๐Ÿ‘ [#881][]: Support grpclog.LoggerV2 in zapgrpc.
    • ๐Ÿ‘ [#903][]: Support URL-encoded POST requests to the AtomicLevel HTTP handler with the application/x-www-form-urlencoded content type.
    • ๐Ÿ‘ [#912][]: Support multi-field encoding with zap.Inline.
    • [#913][]: Speed up SugaredLogger for calls with a single string.
    • โœ… [#928][]: Add support for filtering by field name to zaptest/observer.

    ๐Ÿš€ Thanks to @ash2k, @FMLS, @jimmystewpot, @Oncilla, @tsoslow, @tylitianrui, @withshubh, and @wziww for their contributions to this release.