|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [v2.9.0](https://github.com/hetznercloud/hcloud-python/releases/tag/v2.9.0) |
| 4 | + |
| 5 | +### Features |
| 6 | + |
| 7 | +- support python 3.14 (#566) |
| 8 | +- drop support for python 3.9 (#574) |
| 9 | + |
| 10 | +## [v2.8.0](https://github.com/hetznercloud/hcloud-python/releases/tag/v2.8.0) |
| 11 | + |
| 12 | +### DNS API Beta |
| 13 | + |
| 14 | +This release adds support for the new [DNS API](https://docs.hetzner.cloud/reference/cloud#dns). |
| 15 | + |
| 16 | +The DNS API is currently in **beta**, which will likely end on 10 November 2025. After the beta ended, it will no longer be possible to create new zones in the old DNS system. See the [DNS Beta FAQ](https://docs.hetzner.com/networking/dns/faq/beta) for more details. |
| 17 | + |
| 18 | +Future minor releases of this project may include breaking changes for features that are related to the DNS API. |
| 19 | + |
| 20 | +See the [DNS API Beta changelog](https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta) for more details. |
| 21 | + |
| 22 | +**Examples** |
| 23 | + |
| 24 | +```py |
| 25 | +resp = client.zones.create( |
| 26 | + name="example.com", |
| 27 | + mode="primary", |
| 28 | + labels={"key": "value"}, |
| 29 | + rrsets=[ |
| 30 | + ZoneRRSet( |
| 31 | + name="@", |
| 32 | + type="A", |
| 33 | + records=[ |
| 34 | + ZoneRecord(value="201.180.75.2", comment="server1") |
| 35 | + ], |
| 36 | + ) |
| 37 | + ], |
| 38 | +) |
| 39 | + |
| 40 | +resp.action.wait_until_finished() |
| 41 | +zone = resp.zone |
| 42 | +``` |
| 43 | + |
| 44 | +### Features |
| 45 | + |
| 46 | +- add new `ip_range` param to load balancer `attach_to_network` (#562) |
| 47 | +- add new `ip_range` param to server `attach_to_network` (#561) |
| 48 | +- support the new DNS API (#568) |
| 49 | + |
| 50 | +### Bug Fixes |
| 51 | + |
| 52 | +- source_ips property is optional in firewall rule (#567) |
| 53 | + |
| 54 | +## [v2.7.0](https://github.com/hetznercloud/hcloud-python/releases/tag/v2.7.0) |
| 55 | + |
| 56 | +[Server Types](https://docs.hetzner.cloud/reference/cloud#server-types) now depend on [Locations](https://docs.hetzner.cloud/reference/cloud#locations). |
| 57 | + |
| 58 | +- We added a new `locations` property to the [Server Types](https://docs.hetzner.cloud/reference/cloud#server-types) resource. The new property defines a list of supported [Locations](https://docs.hetzner.cloud/reference/cloud#locations) and additional per [Locations](https://docs.hetzner.cloud/reference/cloud#locations) details such as deprecations information. |
| 59 | + |
| 60 | +- We deprecated the `deprecation` property from the [Server Types](https://docs.hetzner.cloud/reference/cloud#server-types) resource. The property will gradually be phased out as per [Locations](https://docs.hetzner.cloud/reference/cloud#locations) deprecations are being announced. Please use the new per [Locations](https://docs.hetzner.cloud/reference/cloud#locations) deprecation information instead. |
| 61 | + |
| 62 | +See our [changelog](https://docs.hetzner.cloud/changelog#2025-09-24-per-location-server-types) for more details. |
| 63 | + |
| 64 | +**Upgrading** |
| 65 | + |
| 66 | +```py |
| 67 | +# Before |
| 68 | +def validate_server_type(server_type: ServerType): |
| 69 | + if server_type.deprecation is not None: |
| 70 | + raise ValueError(f"server type {server_type.name} is deprecated") |
| 71 | +``` |
| 72 | + |
| 73 | +```py |
| 74 | +# After |
| 75 | +def validate_server_type(server_type: ServerType, location: Location): |
| 76 | + found = [o for o in server_type.locations if location.name == o.location.name] |
| 77 | + if not found: |
| 78 | + raise ValueError( |
| 79 | + f"server type {server_type.name} is not supported in location {location.name}" |
| 80 | + ) |
| 81 | + |
| 82 | + server_type_location = found[0] |
| 83 | + |
| 84 | + if server_type_location.deprecation is not None: |
| 85 | + raise ValueError( |
| 86 | + f"server type {server_type.name} is deprecated in location {location.name}" |
| 87 | + ) |
| 88 | +``` |
| 89 | + |
| 90 | +### Features |
| 91 | + |
| 92 | +- per location server types (#558) |
| 93 | + |
| 94 | +## [v2.6.0](https://github.com/hetznercloud/hcloud-python/releases/tag/v2.6.0) |
| 95 | + |
| 96 | +### Features |
| 97 | + |
| 98 | +- add category property to server type (#549) |
| 99 | + |
| 100 | +### Bug Fixes |
| 101 | + |
| 102 | +- rename `ClientEntityBase` to `ResourceClientBase` (#532) |
| 103 | + |
3 | 104 | ## [v2.5.4](https://github.com/hetznercloud/hcloud-python/releases/tag/v2.5.4) |
4 | 105 |
|
5 | 106 | ### Bug Fixes |
|
0 commit comments