Releases: petergtz/pegomock
v2.3.0
v2.2.0
Changes
- Make sure numbered import paths have a stable sort order between generate commands to avoid unnecessary diffs. Thanks @hferentschik for the PR.
v2.1.0
v2.0.3
v2.0.2
Changes
This release fixes the package name generation by using a smarter algorithm. Specifically directories with dashes in the directory base names have bitten people more than once in the past (including me).
Here's how the new algorithm works: It first checks if there are already _test.go
files in the directory where the mock file is created and uses the test package name if possible. If no test files are present it looks for .go
files and uses their package name + _test
. If no .go
files exist at all in the directory, it uses the directory base name and converts potential -
s to _
s to make Go happy.
This algorithm is a bit slower than code used to be, but also more robust. If people see a problem with that, please open an issue. A workaround is to simply provide the package name via --package
. That will be very fast.
v2.0.1
v2.0.0
Changes
This major release introduces non-global fail handlers. Check the documentation on how to set up the mocks. Also, please re-generate your mock files to make it compatible with this version of Pegomock.
v1.0.0
Pegomock has been in use by several people and organizations, and has stabilized over the time. It seems to be the right time to mark the current version as 1.0.0.
Versioning will also make it possible to introduce changes that will require re-generating existing mocks and communicate such changes to users by bumping the major version number.