Skip to content

Commit

Permalink
Prepare release v1.18.0
Browse files Browse the repository at this point in the history
This release contains the following API changes per apidiff:

```
--- go.uber.org/zap ---
Compatible changes:
- WithClock: added
--- go.uber.org/zap/buffer ---
Compatible changes:
- (*Buffer).WriteByte: added
- (*Buffer).WriteString: added
--- go.uber.org/zap/zapcore ---
Compatible changes:
- BufferedWriteSyncer: added
- Clock: added
- DefaultClock: added
--- go.uber.org/zap/zaptest/observer ---
Compatible changes:
- (*ObservedLogs).Filter: added
- (*ObservedLogs).FilterLevelExact: added
```

In addition to that, this release contains the new `zapio` package
which, being a completely new package, is also a compatible change.
  • Loading branch information
abhinav committed Jun 28, 2021
1 parent 1797f10 commit 80f724f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 1.18.0 (28 Jun 2021)

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.

[#691]: https://github.com/uber-go/zap/pull/691
[#897]: https://github.com/uber-go/zap/pull/897
[#943]: https://github.com/uber-go/zap/pull/943
[#949]: https://github.com/uber-go/zap/pull/949
[#961]: https://github.com/uber-go/zap/pull/961
[#971]: https://github.com/uber-go/zap/pull/971

## 1.17.0 (25 May 2021)

Bugfixes:
Expand Down

0 comments on commit 80f724f

Please sign in to comment.