canonical / ofga

A wrapper library over the default OpenFGA client, packed with convenience methods for interacting with OpenFGA instances.
GNU Lesser General Public License v3.0
7 stars 3 forks source link

Update module go.uber.org/zap to v1.26.0 #32

Closed renovate[bot] closed 5 months ago

renovate[bot] commented 5 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
go.uber.org/zap v1.9.1 -> v1.26.0 age adoption passing confidence

Release Notes

uber-go/zap (go.uber.org/zap) ### [`v1.26.0`](https://togithub.com/uber-go/zap/releases/tag/v1.26.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.25.0...v1.26.0) Enhancements: - [#​1297][]: Add `Dict` as a `Field`. - [#​1319][]: Add `WithLazy` method to `Logger` which lazily evaluates the structured context. - [#​1350][]: String encoding is much (~50%) faster now. Thanks to [@​hhk7734](https://togithub.com/hhk7734), [@​jquirke](https://togithub.com/jquirke), [@​cdvr1993](https://togithub.com/cdvr1993) for their contributions to this release. [#​1297]: https://togithub.com/uber-go/zap/pull/1297 [#​1319]: https://togithub.com/uber-go/zap/pull/1319 [#​1350]: https://togithub.com/uber-go/zap/pull/1350 ### [`v1.25.0`](https://togithub.com/uber-go/zap/releases/tag/v1.25.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.24.0...v1.25.0) This release contains several improvements including performance, API additions, and two new experimental packages whose APIs are unstable and may change in the future. Enhancements: - [#​1246][]: Add `zap/exp/zapslog` package for integration with slog. - [#​1273][]: Add `Name` to `Logger` which returns the Logger's name if one is set. - [#​1281][]: Add `zap/exp/expfield` package which contains helper methods `Str` and `Strs` for constructing String-like zap.Fields. - [#​1310][]: Reduce stack size on `Any`. Thanks to [@​knight42](https://togithub.com/knight42), [@​dzakaammar](https://togithub.com/dzakaammar), [@​bcspragu](https://togithub.com/bcspragu), and [@​rexywork](https://togithub.com/rexywork) for their contributions to this release. [#​1246]: https://togithub.com/uber-go/zap/pull/1246 [#​1273]: https://togithub.com/uber-go/zap/pull/1273 [#​1281]: https://togithub.com/uber-go/zap/pull/1281 [#​1310]: https://togithub.com/uber-go/zap/pull/1310 ### [`v1.24.0`](https://togithub.com/uber-go/zap/releases/tag/v1.24.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.23.0...v1.24.0) Enhancements: - [#​1148][]: Add `Level` to both `Logger` and `SugaredLogger` that reports the current minimum enabled log level. - [#​1185][]: `SugaredLogger` turns errors to zap.Error automatically. Thanks to [@​Abirdcfly](https://togithub.com/Abirdcfly), [@​craigpastro](https://togithub.com/craigpastro), [@​nnnkkk7](https://togithub.com/nnnkkk7), and [@​sashamelentyev](https://togithub.com/sashamelentyev) for their contributions to this release. [#​1148]: https://togithub.com/uber-go/zap/pull/1148 [#​1185]: https://togithub.com/uber-go/zap/pull/1185 ### [`v1.23.0`](https://togithub.com/uber-go/zap/releases/tag/v1.23.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.22.0...v1.23.0) Enhancements: - [#​1147][]: Add a `zapcore.LevelOf` function to determine the level of a `LevelEnabler` or `Core`. - [#​1155][]: Add `zap.Stringers` field constructor to log arrays of objects that implement `String() string`. [#​1147]: https://togithub.com/uber-go/zap/pull/1147 [#​1155]: https://togithub.com/uber-go/zap/pull/1155 ### [`v1.22.0`](https://togithub.com/uber-go/zap/releases/tag/v1.22.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.21.0...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](https://togithub.com/cardil), [@​craigpastro](https://togithub.com/craigpastro), [@​sashamelentyev](https://togithub.com/sashamelentyev), [@​shota3506](https://togithub.com/shota3506), and [@​zhupeijun](https://togithub.com/zhupeijun) for their contributions to this release. [#​1071]: https://togithub.com/uber-go/zap/pull/1071 [#​1079]: https://togithub.com/uber-go/zap/pull/1079 [#​1080]: https://togithub.com/uber-go/zap/pull/1080 [#​1088]: https://togithub.com/uber-go/zap/pull/1088 [#​1108]: https://togithub.com/uber-go/zap/pull/1108 [#​1118]: https://togithub.com/uber-go/zap/pull/1118 ### [`v1.21.0`](https://togithub.com/uber-go/zap/releases/tag/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: - [#​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. [#​1047]: https://togithub.com/uber-go/zap/pull/1047 [#​1048]: https://togithub.com/uber-go/zap/pull/1048 [#​1052]: https://togithub.com/uber-go/zap/pull/1052 [#​1058]: https://togithub.com/uber-go/zap/pull/1058 Thanks to [@​aerosol](https://togithub.com/aerosol) and [@​Techassi](https://togithub.com/Techassi) for their contributions to this release. ### [`v1.20.0`](https://togithub.com/uber-go/zap/releases/tag/v1.20.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.19.1...v1.20.0) 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: - [#​1028][]: Drop support for Go < 1.15. [#​554]: https://togithub.com/uber-go/zap/pull/554 [#​989]: https://togithub.com/uber-go/zap/pull/989 [#​1011]: https://togithub.com/uber-go/zap/pull/1011 [#​1017]: https://togithub.com/uber-go/zap/pull/1017 [#​1028]: https://togithub.com/uber-go/zap/pull/1028 [#​1033]: https://togithub.com/uber-go/zap/pull/1033 [#​1039]: https://togithub.com/uber-go/zap/pull/1039 Thanks to [@​psrajat](https://togithub.com/psrajat), [@​lruggieri](https://togithub.com/lruggieri), [@​sammyrnycreal](https://togithub.com/sammyrnycreal) for their contributions to this release. ### [`v1.19.1`](https://togithub.com/uber-go/zap/releases/tag/v1.19.1) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.19.0...v1.19.1) ##### Fixed - [#​1001][]: JSON: Fix complex number encoding with negative imaginary part. Thanks to [@​hemantjadon](https://togithub.com/hemantjadon). - [#​1003][]: JSON: Fix inaccurate precision when encoding float32. [#​1001]: https://togithub.com/uber-go/zap/pull/1001 [#​1003]: https://togithub.com/uber-go/zap/pull/1003 ### [`v1.19.0`](https://togithub.com/uber-go/zap/releases/tag/v1.19.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.18.1...v1.19.0) 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. [#​975]: https://togithub.com/uber-go/zap/pull/975 [#​984]: https://togithub.com/uber-go/zap/pull/984 Thanks to [@​lancoLiu](https://togithub.com/lancoLiu) and [@​thockin](https://togithub.com/thockin) for their contributions to this release. ### [`v1.18.1`](https://togithub.com/uber-go/zap/releases/tag/v1.18.1) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.18.0...v1.18.1) Bugfixes: - [#​974][]: Fix nil dereference in logger constructed by `zap.NewNop`. [#​974]: https://togithub.com/uber-go/zap/pull/974 ### [`v1.18.0`](https://togithub.com/uber-go/zap/releases/tag/v1.18.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.17.0...v1.18.0) 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](https://togithub.com/atrn0), [@​ernado](https://togithub.com/ernado), [@​heyanfu](https://togithub.com/heyanfu), [@​hnlq715](https://togithub.com/hnlq715), [@​zchee](https://togithub.com/zchee) for their contributions to this release. [#​691]: https://togithub.com/uber-go/zap/pull/691 [#​897]: https://togithub.com/uber-go/zap/pull/897 [#​943]: https://togithub.com/uber-go/zap/pull/943 [#​949]: https://togithub.com/uber-go/zap/pull/949 [#​961]: https://togithub.com/uber-go/zap/pull/961 [#​971]: https://togithub.com/uber-go/zap/pull/971 ### [`v1.17.0`](https://togithub.com/uber-go/zap/releases/tag/v1.17.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.16.0...v1.17.0) Bugfixes: - [#​867][]: Encode `` 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](https://togithub.com/ash2k), [@​FMLS](https://togithub.com/FMLS), [@​jimmystewpot](https://togithub.com/jimmystewpot), [@​Oncilla](https://togithub.com/Oncilla), [@​tsoslow](https://togithub.com/tsoslow), [@​tylitianrui](https://togithub.com/tylitianrui), [@​withshubh](https://togithub.com/withshubh), and [@​wziww](https://togithub.com/wziww) for their contributions to this release. [#​865]: https://togithub.com/uber-go/zap/pull/865 [#​867]: https://togithub.com/uber-go/zap/pull/867 [#​881]: https://togithub.com/uber-go/zap/pull/881 [#​903]: https://togithub.com/uber-go/zap/pull/903 [#​912]: https://togithub.com/uber-go/zap/pull/912 [#​913]: https://togithub.com/uber-go/zap/pull/913 [#​928]: https://togithub.com/uber-go/zap/pull/928 [#​931]: https://togithub.com/uber-go/zap/pull/931 [#​936]: https://togithub.com/uber-go/zap/pull/936 ### [`v1.16.0`](https://togithub.com/uber-go/zap/releases/tag/v1.16.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.15.0...v1.16.0) 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 `` 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](https://togithub.com/SteelPhase), [@​tmshn](https://togithub.com/tmshn), [@​lixingwang](https://togithub.com/lixingwang), [@​wyxloading](https://togithub.com/wyxloading), [@​moul](https://togithub.com/moul), [@​segevfiner](https://togithub.com/segevfiner), [@​andy-retailnext](https://togithub.com/andy-retailnext) and [@​jcorbin](https://togithub.com/jcorbin) for their contributions to this release. [#​629]: https://togithub.com/uber-go/zap/pull/629 [#​697]: https://togithub.com/uber-go/zap/pull/697 [#​828]: https://togithub.com/uber-go/zap/pull/828 [#​835]: https://togithub.com/uber-go/zap/pull/835 [#​843]: https://togithub.com/uber-go/zap/pull/843 [#​844]: https://togithub.com/uber-go/zap/pull/844 [#​852]: https://togithub.com/uber-go/zap/pull/852 [#​854]: https://togithub.com/uber-go/zap/pull/854 [#​861]: https://togithub.com/uber-go/zap/pull/861 [#​862]: https://togithub.com/uber-go/zap/pull/862 ### [`v1.15.0`](https://togithub.com/uber-go/zap/releases/tag/v1.15.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.14.1...v1.15.0) 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](https://togithub.com/danielbprice) for their contributions to this release. [#​804]: https://togithub.com/uber-go/zap/pull/804 [#​812]: https://togithub.com/uber-go/zap/pull/812 [#​806]: https://togithub.com/uber-go/zap/pull/806 [#​813]: https://togithub.com/uber-go/zap/pull/813 ### [`v1.14.1`](https://togithub.com/uber-go/zap/releases/tag/v1.14.1) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.14.0...v1.14.1) 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](https://togithub.com/YashishDua) for their contributions to this release. [#​791]: https://togithub.com/uber-go/zap/pull/791 [#​795]: https://togithub.com/uber-go/zap/pull/795 [#​799]: https://togithub.com/uber-go/zap/pull/799 ### [`v1.14.0`](https://togithub.com/uber-go/zap/releases/tag/v1.14.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.13.0...v1.14.0) Enhancements: - [#​771](https://togithub.com/uber-go/zap/issues/771): Optimize calls for disabled log levels. - [#​773](https://togithub.com/uber-go/zap/issues/773): Add millisecond duration encoder. - [#​775](https://togithub.com/uber-go/zap/issues/775): Add option to increase the level of a logger. - [#​786](https://togithub.com/uber-go/zap/issues/786): Optimize time formatters using `Time.AppendFormat` where possible. Thanks to [@​caibirdme](https://togithub.com/caibirdme) for their contributions to this release. ### [`v1.13.0`](https://togithub.com/uber-go/zap/releases/tag/v1.13.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.12.0...v1.13.0) Enhancements: - [#​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 [@​jbizzle](https://togithub.com/jbizzle) for their contributions to this release. ### [`v1.12.0`](https://togithub.com/uber-go/zap/releases/tag/v1.12.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.11.0...v1.12.0) Enhancements: - [#​751](https://togithub.com/uber-go/zap/issues/751): Migrate to Go modules. ### [`v1.11.0`](https://togithub.com/uber-go/zap/releases/tag/v1.11.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.10.0...v1.11.0) Enhancements: - [#​725](https://togithub.com/uber-go/zap/issues/725): Add `zapcore.OmitKey` to omit keys in an `EncoderConfig`. - [#​736](https://togithub.com/uber-go/zap/issues/736): Add `RFC3339` and `RFC3339Nano` time encoders. Thanks to [@​juicemia](https://togithub.com/juicemia), [@​uhthomas](https://togithub.com/uhthomas) for their contributions to this release. ### [`v1.10.0`](https://togithub.com/uber-go/zap/releases/tag/v1.10.0) [Compare Source](https://togithub.com/uber-go/zap/compare/v1.9.1...v1.10.0) Bugfixes: - [#​657][]: Fix `MapObjectEncoder.AppendByteString` not adding value as a string. - [#​706][]: Fix incorrect call depth to determine caller in Go 1.12. Enhancements: - [#​610][]: Add `zaptest.WrapOptions` to wrap `zap.Option` for creating test loggers. - [#​675][]: Don't panic when encoding a String field. - [#​704][]: Disable HTML escaping for JSON objects encoded using the reflect-based encoder. Thanks to [@​iaroslav-ciupin](https://togithub.com/iaroslav-ciupin), [@​lelenanam](https://togithub.com/lelenanam), [@​joa](https://togithub.com/joa), [@​NWilson](https://togithub.com/NWilson) for their contributions to this release. [#​657]: https://togithub.com/uber-go/zap/pull/657 [#​706]: https://togithub.com/uber-go/zap/pull/706 [#​610]: https://togithub.com/uber-go/zap/pull/610 [#​675]: https://togithub.com/uber-go/zap/pull/675 [#​704]: https://togithub.com/uber-go/zap/pull/704

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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.



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

renovate[bot] commented 5 months ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (v1.26.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.