Skip to content

Conversation

@DerAndereAndi
Copy link
Member

  • Add api/ package with PacketConn, ConnectionFactory, InterfaceProvider interfaces
  • Add mocks/ package with mockery-generated mocks for testing
  • Split connection.go into conn_factory.go, conn_ipv4.go, conn_ipv6.go, conn_provider.go
  • Rename connection.go to mdns.go (contains only mDNS constants)
  • Export Client type and add NewClient() constructor
  • Add WithClientConnFactory and WithServerConnFactory options for mock injection
  • Remove deprecated Server.TTL() method
  • Add comprehensive unit tests (87.6% coverage)
  • Update README with v3 examples and testing documentation
  • Bump version to v3.0.0

Breaking changes:

  • Browse() now requires a 'removed' channel parameter
  • Module path is github.com/enbility/zeroconf/v3

Breaking change release targeting:
- Proper interfaces for testability
- Dependency injection
- Generated mocks
- Improved test coverage
- Removal of global state
- Add api/ package with PacketConn, ConnectionFactory, InterfaceProvider interfaces
- Add mocks/ package with mockery-generated mocks for testing
- Split connection.go into conn_factory.go, conn_ipv4.go, conn_ipv6.go, conn_provider.go
- Rename connection.go to mdns.go (contains only mDNS constants)
- Export Client type and add NewClient() constructor
- Add WithClientConnFactory and WithServerConnFactory options for mock injection
- Remove deprecated Server.TTL() method
- Add comprehensive unit tests (87.6% coverage)
- Update README with v3 examples and testing documentation
- Bump version to v3.0.0

Breaking changes:
- Browse() now requires a 'removed' channel parameter
- Module path is github.com/enbility/zeroconf/v3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant