Bump go.uber.org/zap from 1.21.0 to 1.22.0 #42

Closed
dependabot[bot] wants to merge 1 commits from dependabot/go_modules/go.uber.org/zap-1.22.0 into v3
dependabot[bot] commented 2022-08-09 01:31:08 +03:00 (Migrated from github.com)

Bumps go.uber.org/zap from 1.21.0 to 1.22.0.

Release notes

Sourced from go.uber.org/zap's releases.

v1.22.0

Enhancements:

  • #1071[]: Add zap.Objects and zap.ObjectValues field constructors to log arrays of objects. With these two constructors, you don't need to implement zapcore.ArrayMarshaler for use with zap.Array if those objects implement zapcore.ObjectMarshaler.
  • #1079[]: Add SugaredLogger.WithOptions to build a copy of an existing SugaredLogger with the provided options applied.
  • #1080[]: Add *ln variants to SugaredLogger for each log level. These functions provide a string joining behavior similar to fmt.Println.
  • #1088[]: Add zap.WithFatalHook option to control the behavior of the logger for Fatal-level log entries. This defaults to exiting the program.
  • #1108[]: Add a zap.Must function that you can use with NewProduction or NewDevelopment to panic if the system was unable to build the logger.
  • #1118[]: Add a Logger.Log method that allows specifying the log level for a statement dynamically.

Thanks to @​cardil, @​craigpastro, @​sashamelentyev, @​shota3506, and @​zhupeijun for their contributions to this release.

#1071: uber-go/zap#1071 #1079: uber-go/zap#1079 #1080: uber-go/zap#1080 #1088: uber-go/zap#1088 #1108: uber-go/zap#1108 #1118: uber-go/zap#1118

Changelog

Sourced from go.uber.org/zap's changelog.

1.22.0 (8 Aug 2022)

Enhancements:

  • #1071[]: Add zap.Objects and zap.ObjectValues field constructors to log arrays of objects. With these two constructors, you don't need to implement zapcore.ArrayMarshaler for use with zap.Array if those objects implement zapcore.ObjectMarshaler.
  • #1079[]: Add SugaredLogger.WithOptions to build a copy of an existing SugaredLogger with the provided options applied.
  • #1080[]: Add *ln variants to SugaredLogger for each log level. These functions provide a string joining behavior similar to fmt.Println.
  • #1088[]: Add zap.WithFatalHook option to control the behavior of the logger for Fatal-level log entries. This defaults to exiting the program.
  • #1108[]: Add a zap.Must function that you can use with NewProduction or NewDevelopment to panic if the system was unable to build the logger.
  • #1118[]: Add a Logger.Log method that allows specifying the log level for a statement dynamically.

Thanks to @​cardil, @​craigpastro, @​sashamelentyev, @​shota3506, and @​zhupeijun for their contributions to this release.

#1071: uber-go/zap#1071 #1079: uber-go/zap#1079 #1080: uber-go/zap#1080 #1088: uber-go/zap#1088 #1108: uber-go/zap#1108 #1118: uber-go/zap#1118

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.21.0 to 1.22.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/uber-go/zap/releases">go.uber.org/zap's releases</a>.</em></p> <blockquote> <h2>v1.22.0</h2> <p>Enhancements:</p> <ul> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1071">#1071</a>[]: Add <code>zap.Objects</code> and <code>zap.ObjectValues</code> field constructors to log arrays of objects. With these two constructors, you don't need to implement <code>zapcore.ArrayMarshaler</code> for use with <code>zap.Array</code> if those objects implement <code>zapcore.ObjectMarshaler</code>.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1079">#1079</a>[]: Add <code>SugaredLogger.WithOptions</code> to build a copy of an existing <code>SugaredLogger</code> with the provided options applied.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1080">#1080</a>[]: Add <code>*ln</code> variants to <code>SugaredLogger</code> for each log level. These functions provide a string joining behavior similar to <code>fmt.Println</code>.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1088">#1088</a>[]: Add <code>zap.WithFatalHook</code> option to control the behavior of the logger for <code>Fatal</code>-level log entries. This defaults to exiting the program.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1108">#1108</a>[]: Add a <code>zap.Must</code> function that you can use with <code>NewProduction</code> or <code>NewDevelopment</code> to panic if the system was unable to build the logger.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1118">#1118</a>[]: Add a <code>Logger.Log</code> method that allows specifying the log level for a statement dynamically.</li> </ul> <p>Thanks to <a href="https://github.com/cardil"><code>@​cardil</code></a>, <a href="https://github.com/craigpastro"><code>@​craigpastro</code></a>, <a href="https://github.com/sashamelentyev"><code>@​sashamelentyev</code></a>, <a href="https://github.com/shota3506"><code>@​shota3506</code></a>, and <a href="https://github.com/zhupeijun"><code>@​zhupeijun</code></a> for their contributions to this release.</p> <p><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1071">#1071</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1071">uber-go/zap#1071</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1079">#1079</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1079">uber-go/zap#1079</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1080">#1080</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1080">uber-go/zap#1080</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1088">#1088</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1088">uber-go/zap#1088</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1108">#1108</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1108">uber-go/zap#1108</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1118">#1118</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1118">uber-go/zap#1118</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/uber-go/zap/blob/master/CHANGELOG.md">go.uber.org/zap's changelog</a>.</em></p> <blockquote> <h2>1.22.0 (8 Aug 2022)</h2> <p>Enhancements:</p> <ul> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1071">#1071</a>[]: Add <code>zap.Objects</code> and <code>zap.ObjectValues</code> field constructors to log arrays of objects. With these two constructors, you don't need to implement <code>zapcore.ArrayMarshaler</code> for use with <code>zap.Array</code> if those objects implement <code>zapcore.ObjectMarshaler</code>.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1079">#1079</a>[]: Add <code>SugaredLogger.WithOptions</code> to build a copy of an existing <code>SugaredLogger</code> with the provided options applied.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1080">#1080</a>[]: Add <code>*ln</code> variants to <code>SugaredLogger</code> for each log level. These functions provide a string joining behavior similar to <code>fmt.Println</code>.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1088">#1088</a>[]: Add <code>zap.WithFatalHook</code> option to control the behavior of the logger for <code>Fatal</code>-level log entries. This defaults to exiting the program.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1108">#1108</a>[]: Add a <code>zap.Must</code> function that you can use with <code>NewProduction</code> or <code>NewDevelopment</code> to panic if the system was unable to build the logger.</li> <li><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1118">#1118</a>[]: Add a <code>Logger.Log</code> method that allows specifying the log level for a statement dynamically.</li> </ul> <p>Thanks to <a href="https://github.com/cardil"><code>@​cardil</code></a>, <a href="https://github.com/craigpastro"><code>@​craigpastro</code></a>, <a href="https://github.com/sashamelentyev"><code>@​sashamelentyev</code></a>, <a href="https://github.com/shota3506"><code>@​shota3506</code></a>, and <a href="https://github.com/zhupeijun"><code>@​zhupeijun</code></a> for their contributions to this release.</p> <p><a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1071">#1071</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1071">uber-go/zap#1071</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1079">#1079</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1079">uber-go/zap#1079</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1080">#1080</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1080">uber-go/zap#1080</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1088">#1088</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1088">uber-go/zap#1088</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1108">#1108</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1108">uber-go/zap#1108</a> <a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1118">#1118</a>: <a href="https://github-redirect.dependabot.com/uber-go/zap/pull/1118">uber-go/zap#1118</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/uber-go/zap/commit/4b03bc56483d64b4714462e513099701e62b43d3"><code>4b03bc5</code></a> Prepare release v1.22.0 (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1145">#1145</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/ee349f9e2995499f66628dc573382939b6941b09"><code>ee349f9</code></a> CI: Lint against 1.19 (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1141">#1141</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/7ee98d28331c26c2be992e3e6e6d199337204bb0"><code>7ee98d2</code></a> ci: add go1.19 (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1140">#1140</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/ca232b973d5025a9fab2e2ea460a00c605161418"><code>ca232b9</code></a> zapcore/BufferedWriteSyncer: More docs (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1139">#1139</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/4cfaabdda0c24da1d6c7545be8c1ebfcd57e6ccd"><code>4cfaabd</code></a> chore(ztest/timeout): capture original scale after err handling (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1138">#1138</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/11a750e83adc2e854e6f2c262bab2bb409e88464"><code>11a750e</code></a> chore(internal/exit): remove deprecated function (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1137">#1137</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/d6ce3b9b283401bc6cf975de6ac3e5ed5aec5341"><code>d6ce3b9</code></a> chore: remove redundant arg from logln (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1136">#1136</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/e3a10fc58d1de17b83f4a27140758d941aa4d420"><code>e3a10fc</code></a> chore: use errors.New instead of format function without args for error (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1134">#1134</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/2cfc92c94b14298b9ff814f7fbfdda850046e7b3"><code>2cfc92c</code></a> lint CONTRIBUTING.md and README.md (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1123">#1123</a>)</li> <li><a href="https://github.com/uber-go/zap/commit/56b4e2bfacf31ffeaa2d3ec7bee4fdb8485f81cc"><code>56b4e2b</code></a> Remove the redundant return value of the <code>open</code> function (<a href="https://github-redirect.dependabot.com/uber-go/zap/issues/1120">#1120</a>)</li> <li>Additional commits viewable in <a href="https://github.com/uber-go/zap/compare/v1.21.0...v1.22.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=go.uber.org/zap&package-manager=go_modules&previous-version=1.21.0&new-version=1.22.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
github-actions[bot] (Migrated from github.com) approved these changes 2022-08-09 01:31:22 +03:00
dependabot[bot] commented 2022-08-25 01:24:46 +03:00 (Migrated from github.com)

Superseded by #43.

Superseded by #43.

Pull request closed

Sign in to join this conversation.
No description provided.