This release dramatically improves interoperability with Go's log/slog package. In particular, logr.NewContext and logr.NewContextWithSlogLogger use the same context key, which allows logr.FromContext and logr.FromContextAsSlogLogger to return logr.Logger or *slog.Logger respectively, including transparently converting each to the other as needed.
Functions logr/slogr.NewLogr and logr/slogr.ToSlogHandler have been superceded by logr.FromSlogHandler and logr.ToSlogHandler respectively, and type logr/slogr.SlogSink has been superceded by logr.SlogSink. All of the old names in logr/slogr remain, for compatibility.
Package logr/funcr now supports logr.SlogSink, meaning that it's output passes all but one of the Slog conformance tests (that exception being that funcr handles the timestamp itself).
Users who have a logr.Logger and need a *slog.Logger can call slog.New(logr.ToSlogHandler(...)) and all output will go through the same stack.
Users who have a *slog.Logger or slog.Handler can call logr.FromSlogHandler(...) and all output will go through the same stack.
This release adds support for slog in a new, self-contained logr/slogr package. Implementers of a logr.LogSink are encouraged, but not required, to extend their implementation to improve the quality of log output coming from a slog API call.
Breaking change: the call depth for LogSink.Enabled when called via Logger.Enabledwas fixed to be the same as for other call paths. Implementers of a LogSink who have worked around this bug will need to remove their workarounds.
Security best practices were improved. Only Go versions >= 1.18 are supported by this release.
317c030 Best effort guesses for output package path (#547)
c59ba11 add ARM to support apple M1 chip to releaser (#562)
58935d8 add a basic CONTRIBUTING.md (#535)
a5582fc add docs on 1.16 install and adding to PATH (#534)
0cd3aaf add flags documentation (#539)
64b0b80 add notes and error helper for vendor+reflect error (#567)
e303461 add type information to error messages (#559)
0cdccf5 feat add InAnyOrder matcher (#546)
82ce4a7 feat validate Do & DoReturn args (#558)
93308c3 fix broken badge (#525)
9336b7e fix error message in parse.go (#540)
ab03293 fix ill-formatted message with fmt-verbs like %s (#564)
bb5fd5e fix linter errors (#552)
aba2ff9 fix parse array with the external const correctly (#569)
6ff1070 fix parse arrays with const length correctly (#520)
7f5f64d fixup some docs and templates (#524)
7078515 refactor go:generate lines so they are consistently placed (#527)
7105dde refactor mockgen and cleanup (#536)
f36d14a test(sample/user_test.go): minor correction at t.Errorf (#544)
ef4ad87 update CI for 1.16 (#526)
ad820b0 update Finish docs for Go1.14+ (#556)
2421472 update dependencies (#528)
953a5bb update user mock to be in test package (#566)
d19a212 upgrade dependencies (#557)
v1.5.0
Changelog
0b87a54 Add a period to the end of comments (#414)
d2fe5cd Add example for Call.Do and Call.DoAndReturn (#470)
91d4b5c Add tests for various Do/DoAndReturn calls (#430)
92f53b0 Avoid using packages.Load (#420)
aff3767 Fix empty error message when call is exhausted (#460)
8734ec5 Format generated files with goimports (#458)
69e02d3 MOCK-429: add support for assignable types to Eq matcher (#481)
d476d65 Parse parenthesized parameter-type. (#421)
ccaa079 Using pacakges.NeedName (#418)
f67ce0c add CODEOWNERS file (#522)
6d816de add default calling of ctrl.Finish() in go1.14+ (#422)
7b53c4d check error for os.Setenv in parse_test.go (#472)
b9a8584 deduplicate methods to allow overlapping methods on embedded interfaces (#498)
10192bd fix 1.11 ga test failure (#511)
dcd893e fix Test_createPackageMap for 1.15 (#512)
44e6f1e fix docs for AssignableToTypeOf (#452)
a23c5e7 fix issues related to source package imports (#507)
11d9cab fix readme docs on removing Finish calls (#461)
0f6dc21 format variadic arguments with GotFormatter (#434)
... (truncated)
Commits
aba2ff9 fix parse array with the external const correctly (#569)
Ginkgo 2.0 now has a Release Candidate. 1.16.5 advertises the existence of the RC.
1.16.5 deprecates GinkgoParallelNode in favor of GinkgoParallelProcess
You can silence the RC advertisement by setting an ACK_GINKG_RC=true environment variable or creating a file in your home directory called .ack-ginkgo-rc
v1.16.4
1.16.4
Fixes
1.16.4 retracts 1.16.3. There are no code changes. The 1.16.3 tag was associated with the wrong commit and an attempt to change it after-the-fact has proven problematic. 1.16.4 retracts 1.16.3 in Ginkgo's go.mod and creates a new, correctly tagged, release.
v1.16.3
1.16.3
Features
Measure is now deprecated and emits a deprecation warning.
v1.16.2
1.16.2
Fixes
Deprecations can be suppressed by setting an ACK_GINKGO_DEPRECATIONS=<semver> environment variable.
v1.16.1
Fixes
Supress --stream deprecation warning on windows (#793)
Ginkgo 2.0 now has a Release Candidate. 1.16.5 advertises the existence of the RC.
1.16.5 deprecates GinkgoParallelNode in favor of GinkgoParallelProcess
You can silence the RC advertisement by setting an ACK_GINKGO_RC=true environment variable or creating a file in your home directory called .ack-ginkgo-rc
1.16.4
Fixes
1.16.4 retracts 1.16.3. There are no code changes. The 1.16.3 tag was associated with the wrong commit and an attempt to change it after-the-fact has proven problematic. 1.16.4 retracts 1.16.3 in Ginkgo's go.mod and creates a new, correctly tagged, release.
1.16.3
Features
Measure is now deprecated and emits a deprecation warning.
1.16.2
Fixes
Deprecations can be suppressed by setting an ACK_GINKGO_DEPRECATIONS=<semver> environment variable.
1.16.1
Fixes
Suppress --stream deprecation warning on windows (#793)
Bumps the golang group with 11 updates:
1.0.1
1.1.0
2.7.1+incompatible
2.8.3+incompatible
0.11.2
0.20.1
0.3.0
1.4.1
0.2.0
1.3.0
1.4.1
1.6.0
1.14.1
1.16.5
1.10.2
1.31.1
0.16.0
0.18.0
0.20.2
0.29.1
0.7.0
0.17.0
Updates
github.com/bndr/gojenkins
from 1.0.1 to 1.1.0Release notes
Sourced from github.com/bndr/gojenkins's releases.
Commits
b39080e
Merge pull request #214 from Bpazy/masterab81397
Merge pull request #221 from figo/master27e7500
BuildJob accept map as argument rather than a slice980672b
Merge pull request #220 from figo/context9a48339
Address review commentse585cee
Add GetBuildFromQueueID() function71e145f
Add context in functions to make debugging easieraa8503c
Merge pull request #204 from rms1000watt/duration-int64-to-float643655c42
Jenkins.Init() should check Response.StatusCode #2107c9e106
durations from int64 to float64Updates
github.com/docker/distribution
from 2.7.1+incompatible to 2.8.3+incompatibleRelease notes
Sourced from github.com/docker/distribution's releases.
... (truncated)
Commits
4772604
Merge pull request #4088 from distribution/2.8.3-release-notesa4fa699
Add v2.8.3 release notes1eb2c30
Merge pull request #4068 from milosgajdos/2_8-dont-close-request-body5e6b1b5
Do not close HTTP request body in HTTP handler2b76378
Merge pull request #4064 from thaJeztah/2.8_backport_nodigestset29b00e8
digestset: deprecate package in favor of go-digest/digestsetd1ab243
[release/2.8] vendor: github.com/opencontainers/go-digest v1.0.011eb419
Merge pull request #4063 from thaJeztah/2.8_backport_switch_reference3dda067
deprecate reference package, migrate to github.com/distribution/referenceda05539
Merge pull request #4053 from thaJeztah/2.8_backport_set-content-type-client-...Updates
github.com/emersion/go-smtp
from 0.11.2 to 0.20.1Commits
4877066
Prevent <LF>.<CR><LF> SMTP smuggling attacks6ecbad7
client: drop Client.tls4e0e400
client: delay greetingc28f507
Add SMTP smuggling testcd06f48
Remove DotLF to EOFState case7c803aa
Remove host argument from NewClient7f9654d
Add TLS warning in Dial0b88908
Add defaultDialereb017a8
Prefix SMTPError message29345f4
client: drop nil check from toSMTPErrUpdates
github.com/go-logr/logr
from 0.3.0 to 1.4.1Release notes
Sourced from github.com/go-logr/logr's releases.
... (truncated)
Changelog
Sourced from github.com/go-logr/logr's changelog.
Commits
dcdc3f2
slogr: fix unintended API break in v0.8.0 (#253)5d88f52
funcr: Add LogInfoLevel Option to skip logging level in the info log (#240)177005d
build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0e7f489a
build(deps): bump github/codeql-action from 2.22.9 to 3.22.11cf56c3b
build(deps): bump actions/setup-go from 4 to 52ad296e
build(deps): bump github/codeql-action from 2.22.8 to 2.22.9d55b4e2
Merge pull request #241 from thockin/master98ee9d9
Clean up slog testing and restore coverageb228ba8
Break examples to new file6432877
Add benchmarks for slogSinkUpdates
github.com/go-logr/zapr
from 0.2.0 to 1.3.0Release notes
Sourced from github.com/go-logr/zapr's releases.
... (truncated)
Commits
78b8af5
Merge pull request #60 from pohly/slogae27dfc
support slog + logr 1.3.06684601
Merge pull request #71 from go-logr/dependabot/go_modules/github.com/go-logr/...4d152a1
Bump github.com/go-logr/logr from 1.2.4 to 1.3.0191bfc4
Merge pull request #61 from pohly/lintingfe8a3cc
Merge pull request #70 from go-logr/dependabot/go_modules/go.uber.org/zap-1.26.0575b337
Bump go.uber.org/zap from 1.25.0 to 1.26.0437f574
Merge pull request #64 from go-logr/dependabot/go_modules/go.uber.org/zap-1.25.0203c517
Merge pull request #69 from go-logr/dependabot/github_actions/actions/checkout-42aef912
Bump actions/checkout from 3 to 4Updates
github.com/golang/mock
from 1.4.1 to 1.6.0Release notes
Sourced from github.com/golang/mock's releases.
... (truncated)
Commits
aba2ff9
fix parse array with the external const correctly (#569)bb196fc
fix typo in README (#568)64b0b80
add notes and error helper for vendor+reflect error (#567)953a5bb
update user mock to be in test package (#566)c59ba11
add ARM to support apple M1 chip to releaser (#562)ab03293
fix ill-formatted message with fmt-verbs like %s (#564)0cdccf5
feat add InAnyOrder matcher (#546)e303461
add type information to error messages (#559)82ce4a7
feat validate Do & DoReturn args (#558)d19a212
upgrade dependencies (#557)Updates
github.com/onsi/ginkgo
from 1.14.1 to 1.16.5Release notes
Sourced from github.com/onsi/ginkgo's releases.
... (truncated)
Changelog
Sourced from github.com/onsi/ginkgo's changelog.
... (truncated)
Commits
d38b9d9
v1.16.5b55f80d
Mention release candidate and deprecate GinkgoParallelNode in favor of Ginkgo...d8e9d10
Move v2 to ver2 to play better with the go toolchain8a172cc
Advertise GInkgo 2.0 betaa12d699
Add no-op Setenv to GinkgoT81705fc
chore: Go 1.17 releasedf250977
remove travis-ciafce52e
drop 1.15 in github test workflowd125cd0
v1.16.43286b30
v1.16.3Updates
github.com/onsi/gomega
from 1.10.2 to 1.31.1Release notes
Sourced from github.com/onsi/gomega's releases.
... (truncated)
Changelog
Sourced from github.com/onsi/gomega's changelog.
... (truncated)
Commits
762b171
v1.31.126661b8
tidy up go.sumbde8f7a
bump dependencies24e958d
Show how to import the format sub packagead1a367
Update test in case keeping msg is desirede0dd999
Inverted arguments order of FailureMessage of BeComparableToMatcherba8bba2
v1.31.0121c37f
Async assertions include context cancellation cause if presentdee1e3c
Bump minimum go version49005fe
docs: fix typo in example usage "occured" -> "occurred"Updates
golang.org/x/crypto
from 0.16.0 to 0.18.0Commits
dbb6ec1
ssh/test: skip tests on darwin that fail on the darwin-amd64-longtest LUCI bu...403f699
ssh/test: avoid leaking a net.UnixConn in server.TryDialWithAddr055043d
go.mod: update golang.org/x dependencies08396bb
internal/poly1305: drop Go 1.12 compatibility9d2ee97
ssh: implement strict KEX protocol changes4e5a261
ssh: close net.Conn on all NewServerConn errors152cdb1
x509roots/fallback: update bundlefdfe1f8
ssh: defer channel window adjustmentb8ffc16
blake2b: drop Go 1.6, Go 1.8 compatibility7e6fbd8
ssh: wrap errors from client handshakeUpdates
k8s.io/cli-runtime
from 0.20.2 to 0.29.1Commits
0bd7b29
Update dependencies to v0.29.1 tagb1485dd
Merge pull request #122429 from MadhavJivrajani/tools-bump-1299cab777
.*: bump golang.org/x/tools to v0.16.1907531b
update go.modc19cbcf
Merge pull request #121552 from pohly/klog-update0c0de4e
dependencies: klog v2.110.1a832cfb
Merge pull request #121575 from apelisse/update-smd5ae4381
Update sigs.k8s.io/structured-merge-diff to v4.4.17a70979
Merge pull request #121524 from carlory/gomegaed5a8bd
bump gomega to 1.29.0Updates
sigs.k8s.io/controller-runtime
from 0.7.0 to 0.17.0Release notes
Sourced from sigs.k8s.io/controller-runtime's releases.
Superseded by #961.