github.com/uber-go/zap breaking changes

go

32 curated breaking changes across major versions of github.com/uber-go/zap. Use this as a migration checklist before bumping dependencies.

32
changes
Breaking changes by transition
  • 1.0.0-rc.2 \u2192 1.0.0-rc.3breaking

    [#339][]: Byte slices passed to `zap.Any` are now correctly treated as binary blobs

  • 1.0.0-rc.2 \u2192 1.0.0-rc.3breaking

    [#311][]: Frames from common runtime functions and some of zap's internal

  • 1.0.0-rc.2 \u2192 1.0.0-rc.3breaking

    [#353][]: In addition to hijacking the output of the standard library's

  • 1.0.0-rc.2 \u2192 1.0.0-rc.3breaking

    [#307][]: Users can opt into colored output for log levels.

  • 1.0.0-rc.1 \u2192 1.0.0-rc.2breaking

    [#316][]: Zap's global loggers are now fully concurrency-safe

  • 1.0.0-rc.1 \u2192 1.0.0-rc.2breaking

    [#321][]: Redirecting the standard library's `log` output now

  • 1.0.0-rc.1 \u2192 1.0.0-rc.2breaking

    [#309][] and [#317][]: RC1 was mistakenly shipped with invalid

  • 1.0.0-rc.1 \u2192 1.0.0-rc.2breaking

    [#325][] and [#333][]: Zap now transparently supports non-standard, rich

  • 1.0.0-rc.1 \u2192 1.0.0-rc.2breaking

    [#326][]: Though `New(nil)` continues to return a no-op logger, `NewNop()` is

  • 1.0.0-rc.1 \u2192 1.0.0-rc.2breaking

    [#300][]: Incorrectly importing zap as `github.com/uber-go/zap` now returns a

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1api

    A less verbose (though slower) logging API is included by default.

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1breaking

    Sampling is more accurate, and doesn't depend on the standard library's shared

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1breaking

    **Zap's import path is now "go.uber.org/zap"** — all users will

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1breaking

    User-facing types and functions remain in the `zap` package. Code relevant

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1breaking

    The `zapcore.Core` type makes it easy for third-party packages to use zap's

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1breaking

    `Logger` is now a concrete type instead of an interface.

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1breaking

    Package-global loggers `L` and `S` are included.

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1breaking

    A human-friendly console encoder is included.

  • 0.1.0-beta.1 \u2192 1.0.0-rc.1breaking

    A declarative config struct allows common logger configurations to be managed

  • 1.0.0-rc.3 \u2192 1.0.0api

    [#366][]: Add byte-oriented APIs to encoders to log UTF-8 encoded text without

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#362][]: Make the ISO8601 time formatters fixed-width, which is friendlier

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#373][]: Report the correct caller from zap's standard library

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#348][]: Add a registry allowing third-party encodings to work with zap's

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#347][]: Stop reporting errors when trying to `fsync` standard out on Linux

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#364][]: To support buffering outputs, add `Sync` methods to `zapcore.Core`,

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#372][]: Export zap's observing logger as `zaptest/observer`. This makes it

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#365][]: Make zap's stacktraces compatible with mid-stack inlining (coming in

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#346][]: Add `CombineWriteSyncers`, a convenience function to tee multiple

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#376][]: Allow third-party encoders to use their own buffer pools, which

  • 1.0.0-rc.3 \u2192 1.0.0breaking

    [#327][]: Make the representation of logger callers configurable (like times,

  • 1.0.0-rc.3 \u2192 1.0.0removed

    [#369][]: Remove the automatic locks in `zapcore.NewCore`, which allows zap to

  • 1.0.0-rc.3 \u2192 1.0.0renamed

    [#371][]: Rename the `testutils` package to `zaptest`, which is less likely to

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/go/github.com/uber-go/zap
github.com/uber-go/zap breaking changes — Go migration guide | DepScope