Skip to content

Commit ad0b02d

Browse files
authored
Release v1.12.0 (#1045)
This release v1.20.0 of Zap with a couple new features for customizing the JSON encoder. Namely, - support skipping newlines between log statements (#989) - support changing the reflection JSON encoder (#1039) Refs GO-1085
1 parent 79cb86f commit ad0b02d

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

CHANGELOG.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,32 @@ All notable changes to this project will be documented in this file.
33

44
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6-
## Unreleased
6+
## 1.20.0 (4 Jan 2022)
77

88
Enhancements:
9-
* [#989][]: `zapcore.EncoderConfig` provides a flag `SkipLineEnding` that can be used to skip adding a newline character to logs. Thanks to @lruggieri.
9+
* [#989][]: Add `EncoderConfig.SkipLineEnding` flag to disable adding newline
10+
characters between log statements.
11+
* [#1039][]: Add `EncoderConfig.NewReflectedEncoder` field to customize JSON
12+
encoding of reflected log fields.
1013

1114
Bugfixes:
12-
* [#1011][]: JSON: Fix inaccurate precision when encoding complex64.
15+
* [#1011][]: Fix inaccurate precision when encoding complex64 as JSON.
16+
* [#554][], [#1017][]: Close JSON namespaces opened in `MarshalLogObject`
17+
methods when the methods return.
18+
* [#1033][]: Avoid panicking in Sampler core if `thereafter` is zero.
1319

1420
Other changes:
1521
* [#1028][]: Drop support for Go < 1.15.
1622

17-
[#1011]: https://github.com/uber-go/zap/pull/1011
23+
[#554]: https://github.com/uber-go/zap/pull/554
1824
[#989]: https://github.com/uber-go/zap/pull/989
25+
[#1011]: https://github.com/uber-go/zap/pull/1011
26+
[#1017]: https://github.com/uber-go/zap/pull/1017
1927
[#1028]: https://github.com/uber-go/zap/pull/1028
28+
[#1033]: https://github.com/uber-go/zap/pull/1033
29+
[#1039]: https://github.com/uber-go/zap/pull/1039
30+
31+
Thanks to @psrajat, @lruggieri, @sammyrnycreal for their contributions to this release.
2032

2133
## 1.19.1 (8 Sep 2021)
2234

0 commit comments

Comments
 (0)