Update module go.uber.org/zap to v1.21.0 #4

Merged
renovate[bot] merged 1 commit from renovate/go.uber.org-zap-1.x into main 2022-05-08 10:50:30 +00:00
renovate[bot] commented 2022-05-08 09:02:00 +00:00 (Migrated from github.com)

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
go.uber.org/zap require minor v1.10.0 -> v1.21.0

Release Notes

uber-go/zap

v1.21.0

Compare Source

1.21.0 (7 Feb 2022)

Enhancements:

  • #​1047: Add zapcore.ParseLevel to parse a Level from a string.
  • #​1048: Add zap.ParseAtomicLevel to parse an AtomicLevel from a
    string.

Bugfixes:

  • #​1058: Fix panic in JSON encoder when EncodeLevel is unset.

Other changes:

  • #​1052: Improve encoding performance when the AddCaller and
    AddStacktrace options are used together.

Thanks to @​aerosol and @​Techassi for their contributions to this release.

v1.20.0

Compare Source

Enhancements:

  • #​989: Add EncoderConfig.SkipLineEnding flag to disable adding newline
    characters between log statements.
  • #​1039: Add EncoderConfig.NewReflectedEncoder field to customize JSON
    encoding of reflected log fields.

Bugfixes:

  • #​1011: Fix inaccurate precision when encoding complex64 as JSON.
  • #​554, #​1017: Close JSON namespaces opened in MarshalLogObject
    methods when the methods return.
  • #​1033: Avoid panicking in Sampler core if thereafter is zero.

Other changes:

Thanks to @​psrajat, @​lruggieri, @​sammyrnycreal for their contributions to this release.

v1.19.1

Compare Source

Fixed
  • #​1001: JSON: Fix complex number encoding with negative imaginary part. Thanks to @​hemantjadon.
  • #​1003: JSON: Fix inaccurate precision when encoding float32.

v1.19.0

Compare Source

Enhancements:

  • #​975: Avoid panicking in Sampler core if the level is out of bounds.
  • #​984: Reduce the size of BufferedWriteSyncer by aligning the fields
    better.

Thanks to @​lancoLiu and @​thockin for their contributions to this release.

v1.18.1

Compare Source

Bugfixes:

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

v1.18.0

Compare Source

Enhancements:

  • #​961: Add zapcore.BufferedWriteSyncer, a new WriteSyncer that buffers
    messages in-memory and flushes them periodically.
  • #​971: Add zapio.Writer to use a Zap logger as an io.Writer.
  • #​897: Add zap.WithClock option to control the source of time via the
    new zapcore.Clock interface.
  • #​949: Avoid panicking in zap.SugaredLogger when arguments of *w
    methods don't match expectations.
  • #​943: Add support for filtering by level or arbitrary matcher function to
    zaptest/observer.
  • #​691: Comply with io.StringWriter and io.ByteWriter in Zap's
    buffer.Buffer.

Thanks to @​atrn0, @​ernado, @​heyanfu, @​hnlq715, @​zchee
for their contributions to this release.

v1.17.0

Compare Source

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.

v1.16.0

Compare Source

Bugfixes:

  • #​828: Fix missing newline in IncreaseLevel error messages.
  • #​835: Fix panic in JSON encoder when encoding times or durations
    without specifying a time or duration encoder.
  • #​843: Honor CallerSkip when taking stack traces.
  • #​862: Fix the default file permissions to use 0666 and rely on the umask instead.
  • #​854: Encode <nil> for nil Stringer instead of a panic error log.

Enhancements:

  • #​629: Added zapcore.TimeEncoderOfLayout to easily create time encoders
    for custom layouts.
  • #​697: Added support for a configurable delimiter in the console encoder.
  • #​852: Optimize console encoder by pooling the underlying JSON encoder.
  • #​844: Add ability to include the calling function as part of logs.
  • #​843: Add StackSkip for including truncated stacks as a field.
  • #​861: Add options to customize Fatal behaviour for better testability.

Thanks to @​SteelPhase, @​tmshn, @​lixingwang, @​wyxloading, @​moul, @​segevfiner, @​andy-retailnext and @​jcorbin for their contributions to this release.

v1.15.0

Compare Source

Bugfixes:

  • #​804: Fix handling of Time values out of UnixNano range.
  • #​812: Fix IncreaseLevel being reset after a call to With.

Enhancements:

  • #​806: Add WithCaller option to supersede the AddCaller option. This
    allows disabling annotation of log entries with caller information if
    previously enabled with AddCaller.
  • #​813: Deprecate NewSampler constructor in favor of
    NewSamplerWithOptions which supports a SamplerHook option. This option
    adds support for monitoring sampling decisions through a hook.

Thanks to @​danielbprice for their contributions to this release.

v1.14.1

Compare Source

Bugfixes:

  • #​791: Fix panic on attempting to build a logger with an invalid Config.
  • #​795: Vendoring Zap with go mod vendor no longer includes Zap's
    development-time dependencies.
  • #​799: Fix issue introduced in 1.14.0 that caused invalid JSON output to
    be generated for arrays of time.Time objects when using string-based time
    formats.

Thanks to @​YashishDua for their contributions to this release.

v1.14.0

Compare Source

Enhancements:

  • #​771: Optimize calls for disabled log levels.
  • #​773: Add millisecond duration encoder.
  • #​775: Add option to increase the level of a logger.
  • #​786: Optimize time formatters using Time.AppendFormat where possible.

Thanks to @​caibirdme for their contributions to this release.

v1.13.0

Compare Source

Enhancements:

  • #​758: Add Intp, Stringp, and other similar *p field constructors
    to log pointers to primitives with support for nil values.

Thanks to @​jbizzle for their contributions to this release.

v1.12.0

Compare Source

Enhancements:

v1.11.0

Compare Source

Enhancements:

  • #​725: Add zapcore.OmitKey to omit keys in an EncoderConfig.
  • #​736: Add RFC3339 and RFC3339Nano time encoders.

Thanks to @​juicemia, @​uhthomas for their contributions to this release.


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [go.uber.org/zap](https://togithub.com/uber-go/zap) | require | minor | `v1.10.0` -> `v1.21.0` | --- ### Release Notes <details> <summary>uber-go/zap</summary> ### [`v1.21.0`](https://togithub.com/uber-go/zap/releases/v1.21.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.20.0...v1.21.0) #### 1.21.0 (7 Feb 2022) Enhancements: - [#&#8203;1047][]: Add `zapcore.ParseLevel` to parse a `Level` from a string. - [#&#8203;1048][]: Add `zap.ParseAtomicLevel` to parse an `AtomicLevel` from a string. Bugfixes: - [#&#8203;1058][]: Fix panic in JSON encoder when `EncodeLevel` is unset. Other changes: - [#&#8203;1052][]: Improve encoding performance when the `AddCaller` and `AddStacktrace` options are used together. [#&#8203;1047]: https://togithub.com/uber-go/zap/pull/1047 [#&#8203;1048]: https://togithub.com/uber-go/zap/pull/1048 [#&#8203;1052]: https://togithub.com/uber-go/zap/pull/1052 [#&#8203;1058]: https://togithub.com/uber-go/zap/pull/1058 Thanks to [@&#8203;aerosol](https://togithub.com/aerosol) and [@&#8203;Techassi](https://togithub.com/Techassi) for their contributions to this release. ### [`v1.20.0`](https://togithub.com/uber-go/zap/releases/v1.20.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.19.1...v1.20.0) Enhancements: - [#&#8203;989][]: Add `EncoderConfig.SkipLineEnding` flag to disable adding newline characters between log statements. - [#&#8203;1039][]: Add `EncoderConfig.NewReflectedEncoder` field to customize JSON encoding of reflected log fields. Bugfixes: - [#&#8203;1011][]: Fix inaccurate precision when encoding complex64 as JSON. - [#&#8203;554][], [#&#8203;1017][]: Close JSON namespaces opened in `MarshalLogObject` methods when the methods return. - [#&#8203;1033][]: Avoid panicking in Sampler core if `thereafter` is zero. Other changes: - [#&#8203;1028][]: Drop support for Go < 1.15. [#&#8203;554]: https://togithub.com/uber-go/zap/pull/554 [#&#8203;989]: https://togithub.com/uber-go/zap/pull/989 [#&#8203;1011]: https://togithub.com/uber-go/zap/pull/1011 [#&#8203;1017]: https://togithub.com/uber-go/zap/pull/1017 [#&#8203;1028]: https://togithub.com/uber-go/zap/pull/1028 [#&#8203;1033]: https://togithub.com/uber-go/zap/pull/1033 [#&#8203;1039]: https://togithub.com/uber-go/zap/pull/1039 Thanks to [@&#8203;psrajat](https://togithub.com/psrajat), [@&#8203;lruggieri](https://togithub.com/lruggieri), [@&#8203;sammyrnycreal](https://togithub.com/sammyrnycreal) for their contributions to this release. ### [`v1.19.1`](https://togithub.com/uber-go/zap/releases/v1.19.1) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.19.0...v1.19.1) ##### Fixed - [#&#8203;1001][]: JSON: Fix complex number encoding with negative imaginary part. Thanks to [@&#8203;hemantjadon](https://togithub.com/hemantjadon). - [#&#8203;1003][]: JSON: Fix inaccurate precision when encoding float32. [#&#8203;1001]: https://togithub.com/uber-go/zap/pull/1001 [#&#8203;1003]: https://togithub.com/uber-go/zap/pull/1003 ### [`v1.19.0`](https://togithub.com/uber-go/zap/releases/v1.19.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.18.1...v1.19.0) Enhancements: - [#&#8203;975][]: Avoid panicking in Sampler core if the level is out of bounds. - [#&#8203;984][]: Reduce the size of BufferedWriteSyncer by aligning the fields better. [#&#8203;975]: https://togithub.com/uber-go/zap/pull/975 [#&#8203;984]: https://togithub.com/uber-go/zap/pull/984 Thanks to [@&#8203;lancoLiu](https://togithub.com/lancoLiu) and [@&#8203;thockin](https://togithub.com/thockin) for their contributions to this release. ### [`v1.18.1`](https://togithub.com/uber-go/zap/releases/v1.18.1) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.18.0...v1.18.1) Bugfixes: - [#&#8203;974][]: Fix nil dereference in logger constructed by `zap.NewNop`. [#&#8203;974]: https://togithub.com/uber-go/zap/pull/974 ### [`v1.18.0`](https://togithub.com/uber-go/zap/releases/v1.18.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.17.0...v1.18.0) Enhancements: - [#&#8203;961][]: Add `zapcore.BufferedWriteSyncer`, a new `WriteSyncer` that buffers messages in-memory and flushes them periodically. - [#&#8203;971][]: Add `zapio.Writer` to use a Zap logger as an `io.Writer`. - [#&#8203;897][]: Add `zap.WithClock` option to control the source of time via the new `zapcore.Clock` interface. - [#&#8203;949][]: Avoid panicking in `zap.SugaredLogger` when arguments of `*w` methods don't match expectations. - [#&#8203;943][]: Add support for filtering by level or arbitrary matcher function to `zaptest/observer`. - [#&#8203;691][]: Comply with `io.StringWriter` and `io.ByteWriter` in Zap's `buffer.Buffer`. Thanks to [@&#8203;atrn0](https://togithub.com/atrn0), [@&#8203;ernado](https://togithub.com/ernado), [@&#8203;heyanfu](https://togithub.com/heyanfu), [@&#8203;hnlq715](https://togithub.com/hnlq715), [@&#8203;zchee](https://togithub.com/zchee) for their contributions to this release. [#&#8203;691]: https://togithub.com/uber-go/zap/pull/691 [#&#8203;897]: https://togithub.com/uber-go/zap/pull/897 [#&#8203;943]: https://togithub.com/uber-go/zap/pull/943 [#&#8203;949]: https://togithub.com/uber-go/zap/pull/949 [#&#8203;961]: https://togithub.com/uber-go/zap/pull/961 [#&#8203;971]: https://togithub.com/uber-go/zap/pull/971 ### [`v1.17.0`](https://togithub.com/uber-go/zap/releases/v1.17.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.16.0...v1.17.0) Bugfixes: - [#&#8203;867][]: Encode `<nil>` for nil `error` instead of a panic. - [#&#8203;931][], [#&#8203;936][]: Update minimum version constraints to address vulnerabilities in dependencies. Enhancements: - [#&#8203;865][]: Improve alignment of fields of the Logger struct, reducing its size from 96 to 80 bytes. - [#&#8203;881][]: Support `grpclog.LoggerV2` in zapgrpc. - [#&#8203;903][]: Support URL-encoded POST requests to the AtomicLevel HTTP handler with the `application/x-www-form-urlencoded` content type. - [#&#8203;912][]: Support multi-field encoding with `zap.Inline`. - [#&#8203;913][]: Speed up SugaredLogger for calls with a single string. - [#&#8203;928][]: Add support for filtering by field name to `zaptest/observer`. Thanks to [@&#8203;ash2k](https://togithub.com/ash2k), [@&#8203;FMLS](https://togithub.com/FMLS), [@&#8203;jimmystewpot](https://togithub.com/jimmystewpot), [@&#8203;Oncilla](https://togithub.com/Oncilla), [@&#8203;tsoslow](https://togithub.com/tsoslow), [@&#8203;tylitianrui](https://togithub.com/tylitianrui), [@&#8203;withshubh](https://togithub.com/withshubh), and [@&#8203;wziww](https://togithub.com/wziww) for their contributions to this release. [#&#8203;865]: https://togithub.com/uber-go/zap/pull/865 [#&#8203;867]: https://togithub.com/uber-go/zap/pull/867 [#&#8203;881]: https://togithub.com/uber-go/zap/pull/881 [#&#8203;903]: https://togithub.com/uber-go/zap/pull/903 [#&#8203;912]: https://togithub.com/uber-go/zap/pull/912 [#&#8203;913]: https://togithub.com/uber-go/zap/pull/913 [#&#8203;928]: https://togithub.com/uber-go/zap/pull/928 [#&#8203;931]: https://togithub.com/uber-go/zap/pull/931 [#&#8203;936]: https://togithub.com/uber-go/zap/pull/936 ### [`v1.16.0`](https://togithub.com/uber-go/zap/releases/v1.16.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.15.0...v1.16.0) Bugfixes: - [#&#8203;828][]: Fix missing newline in IncreaseLevel error messages. - [#&#8203;835][]: Fix panic in JSON encoder when encoding times or durations without specifying a time or duration encoder. - [#&#8203;843][]: Honor CallerSkip when taking stack traces. - [#&#8203;862][]: Fix the default file permissions to use `0666` and rely on the umask instead. - [#&#8203;854][]: Encode `<nil>` for nil `Stringer` instead of a panic error log. Enhancements: - [#&#8203;629][]: Added `zapcore.TimeEncoderOfLayout` to easily create time encoders for custom layouts. - [#&#8203;697][]: Added support for a configurable delimiter in the console encoder. - [#&#8203;852][]: Optimize console encoder by pooling the underlying JSON encoder. - [#&#8203;844][]: Add ability to include the calling function as part of logs. - [#&#8203;843][]: Add `StackSkip` for including truncated stacks as a field. - [#&#8203;861][]: Add options to customize Fatal behaviour for better testability. Thanks to [@&#8203;SteelPhase](https://togithub.com/SteelPhase), [@&#8203;tmshn](https://togithub.com/tmshn), [@&#8203;lixingwang](https://togithub.com/lixingwang), [@&#8203;wyxloading](https://togithub.com/wyxloading), [@&#8203;moul](https://togithub.com/moul), [@&#8203;segevfiner](https://togithub.com/segevfiner), [@&#8203;andy-retailnext](https://togithub.com/andy-retailnext) and [@&#8203;jcorbin](https://togithub.com/jcorbin) for their contributions to this release. [#&#8203;629]: https://togithub.com/uber-go/zap/pull/629 [#&#8203;697]: https://togithub.com/uber-go/zap/pull/697 [#&#8203;828]: https://togithub.com/uber-go/zap/pull/828 [#&#8203;835]: https://togithub.com/uber-go/zap/pull/835 [#&#8203;843]: https://togithub.com/uber-go/zap/pull/843 [#&#8203;844]: https://togithub.com/uber-go/zap/pull/844 [#&#8203;852]: https://togithub.com/uber-go/zap/pull/852 [#&#8203;854]: https://togithub.com/uber-go/zap/pull/854 [#&#8203;861]: https://togithub.com/uber-go/zap/pull/861 [#&#8203;862]: https://togithub.com/uber-go/zap/pull/862 ### [`v1.15.0`](https://togithub.com/uber-go/zap/releases/v1.15.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.14.1...v1.15.0) Bugfixes: - [#&#8203;804][]: Fix handling of `Time` values out of `UnixNano` range. - [#&#8203;812][]: Fix `IncreaseLevel` being reset after a call to `With`. Enhancements: - [#&#8203;806][]: Add `WithCaller` option to supersede the `AddCaller` option. This allows disabling annotation of log entries with caller information if previously enabled with `AddCaller`. - [#&#8203;813][]: Deprecate `NewSampler` constructor in favor of `NewSamplerWithOptions` which supports a `SamplerHook` option. This option adds support for monitoring sampling decisions through a hook. Thanks to [@&#8203;danielbprice](https://togithub.com/danielbprice) for their contributions to this release. [#&#8203;804]: https://togithub.com/uber-go/zap/pull/804 [#&#8203;812]: https://togithub.com/uber-go/zap/pull/812 [#&#8203;806]: https://togithub.com/uber-go/zap/pull/806 [#&#8203;813]: https://togithub.com/uber-go/zap/pull/813 ### [`v1.14.1`](https://togithub.com/uber-go/zap/releases/v1.14.1) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.14.0...v1.14.1) Bugfixes: - [#&#8203;791][]: Fix panic on attempting to build a logger with an invalid Config. - [#&#8203;795][]: Vendoring Zap with `go mod vendor` no longer includes Zap's development-time dependencies. - [#&#8203;799][]: Fix issue introduced in 1.14.0 that caused invalid JSON output to be generated for arrays of `time.Time` objects when using string-based time formats. Thanks to [@&#8203;YashishDua](https://togithub.com/YashishDua) for their contributions to this release. [#&#8203;791]: https://togithub.com/uber-go/zap/pull/791 [#&#8203;795]: https://togithub.com/uber-go/zap/pull/795 [#&#8203;799]: https://togithub.com/uber-go/zap/pull/799 ### [`v1.14.0`](https://togithub.com/uber-go/zap/releases/v1.14.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.13.0...v1.14.0) Enhancements: - [#&#8203;771](https://togithub.com/uber-go/zap/issues/771): Optimize calls for disabled log levels. - [#&#8203;773](https://togithub.com/uber-go/zap/issues/773): Add millisecond duration encoder. - [#&#8203;775](https://togithub.com/uber-go/zap/issues/775): Add option to increase the level of a logger. - [#&#8203;786](https://togithub.com/uber-go/zap/issues/786): Optimize time formatters using `Time.AppendFormat` where possible. Thanks to [@&#8203;caibirdme](https://togithub.com/caibirdme) for their contributions to this release. ### [`v1.13.0`](https://togithub.com/uber-go/zap/releases/v1.13.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.12.0...v1.13.0) Enhancements: - [#&#8203;758](https://togithub.com/uber-go/zap/issues/758): Add `Intp`, `Stringp`, and other similar `*p` field constructors to log pointers to primitives with support for `nil` values. Thanks to [@&#8203;jbizzle](https://togithub.com/jbizzle) for their contributions to this release. ### [`v1.12.0`](https://togithub.com/uber-go/zap/releases/v1.12.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.11.0...v1.12.0) Enhancements: - [#&#8203;751](https://togithub.com/uber-go/zap/issues/751): Migrate to Go modules. ### [`v1.11.0`](https://togithub.com/uber-go/zap/releases/v1.11.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.10.0...v1.11.0) Enhancements: - [#&#8203;725](https://togithub.com/uber-go/zap/issues/725): Add `zapcore.OmitKey` to omit keys in an `EncoderConfig`. - [#&#8203;736](https://togithub.com/uber-go/zap/issues/736): Add `RFC3339` and `RFC3339Nano` time encoders. Thanks to [@&#8203;juicemia](https://togithub.com/juicemia), [@&#8203;uhthomas](https://togithub.com/uhthomas) for their contributions to this release. </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/baez90/nurse).
Sign in to join this conversation.
No description provided.