github.com/onsi/gomega
v1.42.1
#685 most downloaded on Go modules
onsi/gomega
What this package is like to depend on
Last release 2 months ago
23 Jun 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 75 of 83 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
583 releases · first in 2013
19 releases in the last 12 months
see the full history below
Release timeline
583 releases · Aug 2013 to Jun 2026Releases
latest 60 of 583-
v1.42.123 Jun 2026 -
v1.42.014 Jun 2026 -
v1.41.017 May 2026Release notes
Open source →Features
Add
BeASliceandBeAnArraymatchersFixes
Object formatting now detects pointer cycles to avoid runaway formatting output.
-
v1.40.028 Apr 2026Release notes
Open source →1.40.0
We're adopting a new release strategy to minimize dependency bloat in projects that consume Gomega. It is a limitation of the go mod toolchain that test subdependencies of your project's direct dependencies get pulled in as indirect dependencies. In the case of Gomega, this ends up pulling in all of Ginkgo into your
go.modeven if you are only using Gomega (Gomega uses Ginkgo for its own tests).Going forward, releases will strip out all tests, tidy up the
go.modand then push this stripped down version to a newmaster-litebranch. These stripped-down versions will receive thevx.y.zgit tag and will be picked up by the go toolchain.Please open an issue if this new release process causes unexpected changes for your projects.
Release notes
Open source →We're adopting a new release strategy to minimize dependency bloat in projects that consume Gomega. It is a limitation of the go mod toolchain that test subdependencies of your project's direct dependencies get pulled in as indirect dependencies. In the case of Gomega, this ends up pulling in all of Ginkgo into your
go.modeven if you are only using Gomega (Gomega uses Ginkgo for its own tests).Going forward, releases will strip out all tests, tidy up the
go.modand then push this stripped down version to a newmaster-litebranch. These stripped-down versions will receive thevx.y.zgit tag and will be picked up by the go toolchain.Please open an issue if this new release process causes unexpected changes for your projects.
-
v1.39.2-0.20260623203026-2beb9fbdc71323 Jun 2026 pre-releaseNothing published for this version
-
v1.39.2-0.20260614185036-d72697b9077714 Jun 2026 pre-releaseNothing published for this version
-
v1.39.2-0.20260517233708-73e81f6f054c17 May 2026 pre-releaseNothing published for this version
-
v1.39.2-0.20260509022522-e14831fefa8609 May 2026 pre-releaseNothing published for this version
-
v1.39.2-0.20260428220704-ea660274df4328 Apr 2026 pre-releaseNothing published for this version
-
v1.39.2-0.20260320210010-e4a82d1a2de920 Mar 2026 pre-releaseNothing published for this version
-
v1.39.130 Jan 2026Release notes
Open source →1.39.1
Update all dependencies. This auto-updated the required version of Go to 1.24, consistent with the fact that Go 1.23 has been out of support for almost six months.
Release notes
Open source →Update all dependencies. This auto-updated the required version of Go to 1.24, consistent with the fact that Go 1.23 has been out of support for almost six months.
-
v1.39.008 Jan 2026Release notes
Open source →1.39.0
Features
Add
MatchErrorStrictlywhich only passes iferrors.Is(actual, expected)returns true.MatchError, by contrast, will fallback to string comparison.Release notes
Open source →Features
Add
MatchErrorStrictlywhich only passes iferrors.Is(actual, expected)returns true.MatchError, by contrast, will fallback to string comparison. -
v1.38.308 Dec 2025Release notes
Open source →1.38.3
Fixes
make string formatitng more consistent for users who use format.Object directly
Release notes
Open source →Fixes
make string formatitng more consistent for users who use format.Object directly
-
v1.38.3-0.20251028133931-2a37b463cac728 Oct 2025 pre-releaseNothing published for this version
-
v1.38.3-0.20250923212244-ee26170d3a0a23 Sep 2025 pre-releaseNothing published for this version
-
v1.38.3-0.20250908211831-cc85c057ff9908 Sep 2025 pre-releaseNothing published for this version
-
v1.38.226 Aug 2025 -
v1.38.122 Aug 2025 -
v1.38.1-0.20250822031820-69e47619891e22 Aug 2025 pre-releaseNothing published for this version
-
v1.38.1-0.20250818102613-95737c099edc18 Aug 2025 pre-releaseNothing published for this version
-
v1.38.1-0.20250816001304-91b20eaee45e16 Aug 2025 pre-releaseNothing published for this version
-
v1.38.022 Jul 2025Release notes
Open source →1.38.0
Features
- gstruct handles extra unexported fields [4ee7ed0]
Fixes
Maintenance
- Bump golang.org/x/net from 0.40.0 to 0.41.0 (#846) [529d408]
- Fix typo [acd1f55]
- Bump google.golang.org/protobuf from 1.36.5 to 1.36.6 (#835) [bae65a0]
- Bump nokogiri from 1.18.4 to 1.18.8 in /docs (#842) [8dda91f]
- Bump golang.org/x/net from 0.39.0 to 0.40.0 (#843) [212d812]
- Bump github.com/onsi/ginkgo/v2 from 2.23.3 to 2.23.4 (#839) [59bd7f9]
- Bump nokogiri from 1.18.1 to 1.18.4 in /docs (#834) [328c729]
- Bump uri from 1.0.2 to 1.0.3 in /docs (#826) [9a798a1]
- Bump golang.org/x/net from 0.37.0 to 0.39.0 (#841) [04a72c6]
Release notes
Open source →Features
- gstruct handles extra unexported fields [4ee7ed0]
Fixes
- support [] in IgnoringTopFunction function signatures (#851) [36bbf72]
Maintenance
- Bump golang.org/x/net from 0.40.0 to 0.41.0 (#846) [529d408]
- Fix typo [acd1f55]
- Bump google.golang.org/protobuf from 1.36.5 to 1.36.6 (#835) [bae65a0]
- Bump nokogiri from 1.18.4 to 1.18.8 in /docs (#842) [8dda91f]
- Bump golang.org/x/net from 0.39.0 to 0.40.0 (#843) [212d812]
- Bump github.com/onsi/ginkgo/v2 from 2.23.3 to 2.23.4 (#839) [59bd7f9]
- Bump nokogiri from 1.18.1 to 1.18.4 in /docs (#834) [328c729]
- Bump uri from 1.0.2 to 1.0.3 in /docs (#826) [9a798a1]
- Bump golang.org/x/net from 0.37.0 to 0.39.0 (#841) [04a72c6]
-
v1.37.1-0.20250704170937-36bbf72ab9ad04 Jul 2025 pre-releaseNothing published for this version
-
v1.37.1-0.20250618131821-4ee7ed010fcf18 Jun 2025 pre-releaseNothing published for this version
-
v1.37.1-0.20250614211609-529d408dc63b14 Jun 2025 pre-releaseNothing published for this version
-
v1.37.1-0.20250517141512-acd1f554137d17 May 2025 pre-releaseNothing published for this version
-
v1.37.1-0.20250509154854-bae65a0fbd5d09 May 2025 pre-releaseNothing published for this version
-
v1.37.1-0.20250416114015-59bd7f9a890816 Apr 2025 pre-releaseNothing published for this version
-
v1.37.002 Apr 2025 -
v1.36.321 Mar 2025Release notes
Open source →Maintenance
- bump all the things [adb8b49]
- chore: replace
interface{}withany[7613216] - Bump google.golang.org/protobuf from 1.36.1 to 1.36.5 (#822) [9fe5259]
- remove spurious "toolchain" from go.mod (#819) [a0e85b9]
- Bump golang.org/x/net from 0.33.0 to 0.35.0 (#823) [604a8b1]
- Bump activesupport from 6.0.6.1 to 6.1.7.5 in /docs (#772) [36fbc84]
- Bump github-pages from 231 to 232 in /docs (#778) [ced70d7]
- Bump rexml from 3.2.6 to 3.3.9 in /docs (#788) [c8b4a07]
- Bump github.com/onsi/ginkgo/v2 from 2.22.1 to 2.22.2 (#812) [06431b9]
- Bump webrick from 1.8.1 to 1.9.1 in /docs (#800) [b55a92d]
- Fix typos (#813) [a1d518b]
-
v1.36.3-0.20250212135526-76132163ee4112 Feb 2025 pre-releaseNothing published for this version
-
v1.36.3-0.20250211215912-9fe5259f966711 Feb 2025 pre-releaseNothing published for this version
-
v1.36.3-0.20250102104411-36fbc8471a1a02 Jan 2025 pre-releaseNothing published for this version
-
v1.36.3-0.20250102104203-fd3fd96363d902 Jan 2025 pre-releaseNothing published for this version
-
v1.36.224 Dec 2024Release notes
Open source →Maintenance
- Bump google.golang.org/protobuf from 1.35.1 to 1.36.1 (#810) [9a7609d]
- Bump golang.org/x/net from 0.30.0 to 0.33.0 (#807) [b6cb028]
- Bump github.com/onsi/ginkgo/v2 from 2.20.1 to 2.22.1 (#808) [5756529]
- Bump nokogiri from 1.16.3 to 1.16.5 in /docs (#757) [dabc12e]
-
v1.36.2-0.20241218122815-dabc12ee2aa318 Dec 2024 pre-releaseNothing published for this version
-
v1.36.110 Dec 2024Release notes
Open source →Fixes
- Fix https://github.com/onsi/gomega/issues/803 [1c6c112]
- resolves onsi/gomega#696: make HaveField great on pointer receivers given only a non-addressable value [4feb9d7]
-
v1.36.1-0.20241206203849-4feb9d70c3e406 Dec 2024 pre-releaseNothing published for this version
-
v1.36.025 Nov 2024Release notes
Open source →Features
- new: make collection-related matchers Go 1.23 iterator aware [4c964c6]
Maintenance
- Replace min/max helpers with built-in min/max [ece6872]
- Fix some typos in docs [8e924d7]
-
v1.35.2-0.20241125130827-f1ff459a1aa425 Nov 2024 pre-releaseNothing published for this version
-
v1.35.2-0.20241124030658-4c964c6b4e8d24 Nov 2024 pre-releaseNothing published for this version
-
v1.35.2-0.20241115124058-ece68726302515 Nov 2024 pre-releaseNothing published for this version
-
v1.35.2-0.20241105125246-8e924d781b7705 Nov 2024 pre-releaseNothing published for this version
-
v1.35.131 Oct 2024Release notes
Open source →Fixes
- Export EnforceDefaultTimeoutsWhenUsingContexts and DisableDefaultTimeoutsWhenUsingContext [ca36da1]
-
v1.35.1-0.20241031211819-9f5a208e8adf31 Oct 2024 pre-releaseNothing published for this version
-
v1.35.029 Oct 2024Release notes
Open source →Features
- You can now call
EnforceDefaultTimeoutsWhenUsingContexts()to haveEventuallyhonor the default timeout when passed a context. (prior to this you had to expclility add a timeout) [e4c4265] - You can call
StopTrying(message).Successfully()to abort aConsistentlyearly without failure [eeca931]
Fixes
- Stop memoizing the result of
HaveFieldto avoid unexpected errors when used with async assertions. [3bdbc4e]
Maintenance
- Bump all dependencies [a05a416]
- You can now call
-
v1.34.3-0.20241029204508-d6331f9125b329 Oct 2024 pre-releaseNothing published for this version
-
v1.34.3-0.20241008010944-cbd75c211aea08 Oct 2024 pre-releaseNothing published for this version
-
v1.34.228 Aug 2024Release notes
Open source →Require Go 1.22+
Maintenance
- bump ginkgo as well [c59c6dc]
- bump to go 1.22 - remove x/exp dependency [8158b99]
-
v1.34.2-0.20240828151815-7cabed651e9828 Aug 2024 pre-releaseNothing published for this version
-
v1.34.2-0.20240828151221-8158b9979e6e28 Aug 2024 pre-releaseNothing published for this version
-
v1.34.129 Jul 2024Release notes
Open source →Maintenance
- Use slices from exp/slices to keep golang 1.20 compat [5e71dcd]
-
v1.34.1-0.20240729182933-fa057b84552829 Jul 2024 pre-releaseNothing published for this version
-
v1.34.025 Jul 2024Release notes
Open source →Features
- Add RoundTripper method to ghttp.Server [c549e0d]
Fixes
- fix incorrect handling of nil slices in HaveExactElements (fixes #771) [878940c]
- issue_765 - fixed bug in Hopcroft-Karp algorithm [ebadb67]
Maintenance
- bump ginkgo [8af2ece]
- Fix typo in docs [123a071]
- Bump github.com/onsi/ginkgo/v2 from 2.17.2 to 2.17.3 (#756) [0e69083]
- Bump google.golang.org/protobuf from 1.33.0 to 1.34.1 (#755) [2675796]
- Bump golang.org/x/net from 0.24.0 to 0.25.0 (#754) [4160c0f]
- Bump github-pages from 230 to 231 in /docs (#748) [892c303]
-
v1.33.2-0.20240725174355-32e5498ab3b225 Jul 2024 pre-releaseNothing published for this version
-
v1.33.2-0.20240725173027-878940cf2a2325 Jul 2024 pre-releaseNothing published for this version
-
v1.33.2-0.20240714011312-123a0710170914 Jul 2024 pre-releaseNothing published for this version
-
v1.33.2-0.20240513234632-38836b73f79a13 May 2024 pre-releaseNothing published for this version
-
v1.33.2-0.20240512205645-0e690838049712 May 2024 pre-releaseNothing published for this version
-
v1.33.2-0.20240512204621-4160c0f6ece812 May 2024 pre-releaseNothing published for this version