Releases: joeig/go-powerdns
Releases · joeig/go-powerdns
v3.5.1
v3.5.0
v3.4.0
New
- Add Catalog and EditedSerial to Zone struct by @verscheures in #49
- Added ZoneKinds for catalog operations by @verscheures in #49
v3.3.0
v3.2.0
v3.1.0
v3.0.3
v3.0.2
v3.0.1
v3.0.0
New
- Add
context.Context
to all API boundaries - Go 1.17 support
Migration
This library now requires context.Context
for all methods which are requesting external APIs. Passing a Context is best practice in the Go ecosystem, which allows you to cancel requests to external APIs under specific circumstances in order to make your application more robust against external factors, such as timeouts.
Migration is simple: Add a Context such as context.Background()
as a first paramter to any API methods.
Example
// Old method (without Context):
zone, err := pdns.Zones.Get("example.com")
// New method (with Context):
zone, err := pdns.Zones.Get(context.Background(), "example.com")
This applies to any API methods.
Deprecations
- Discontinued support for Go 1.14, according to Go's version support policy