Skip to content

chore(main): release v2.45.0#885

Merged
lukasmetzner merged 1 commit into
mainfrom
releaser-pleaser--branches--main
Jul 20, 2026
Merged

chore(main): release v2.45.0#885
lukasmetzner merged 1 commit into
mainfrom
releaser-pleaser--branches--main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Removed deprecated Datacenter property from Server and PrimaryIP

Removed the deprecated Datacenter property from the Server and PrimaryIP resources. Since the property was already removed from the Hetzner Cloud API, we do not consider this a breaking change (see changelog entry).

Important

Action required: Please update all code that accesses Server.Datacenter or PrimaryIP.Datacenter to use the Location property instead, as shown below.

Before:

server, _, _ := client.Server.GetByID(ctx, 42)
fmt.Println(server.Datacenter.Location.Name)

primaryIP, _, _ := client.PrimaryIP.GetByID(ctx, 7)
fmt.Println(primaryIP.Datacenter.Location.Name)

After:

server, _, _ := client.Server.GetByID(ctx, 42)
fmt.Println(server.Location.Name)

primaryIP, _, _ := client.PrimaryIP.GetByID(ctx, 7)
fmt.Println(primaryIP.Location.Name)

Features


PR by releaser-pleaser 🤖

If you want to modify the proposed release, add you overrides here. You can learn more about the options in the docs.

Release Notes

Prefix / Start

This will be added to the start of the release notes.

### Removed deprecated Datacenter property from Server and PrimaryIP

Removed the deprecated Datacenter property from the Server and PrimaryIP resources. Since the property was already removed from the Hetzner Cloud API, we do not consider this a breaking change (see [changelog entry](https://docs.hetzner.cloud/changelog#2026-07-01-removing-datacenters)).

> [!IMPORTANT]
> **Action required:** Please update all code that accesses `Server.Datacenter` or `PrimaryIP.Datacenter` to use the `Location` property instead, as shown below.

**Before:**

```go
server, _, _ := client.Server.GetByID(ctx, 42)
fmt.Println(server.Datacenter.Location.Name)

primaryIP, _, _ := client.PrimaryIP.GetByID(ctx, 7)
fmt.Println(primaryIP.Datacenter.Location.Name)
```

**After:**

```go
server, _, _ := client.Server.GetByID(ctx, 42)
fmt.Println(server.Location.Name)

primaryIP, _, _ := client.PrimaryIP.GetByID(ctx, 7)
fmt.Println(primaryIP.Location.Name)
```

Suffix / End

This will be added to the end of the release notes.

@github-actions
github-actions Bot requested a review from a team as a code owner June 30, 2026 17:26
@github-actions github-actions Bot added the rp-release::pending Release for this PR is pending label Jun 30, 2026
@github-actions
github-actions Bot force-pushed the releaser-pleaser--branches--main branch 3 times, most recently from b5d9dec to c98a039 Compare July 20, 2026 11:11
@github-actions
github-actions Bot force-pushed the releaser-pleaser--branches--main branch from c98a039 to 267c591 Compare July 20, 2026 11:16
@lukasmetzner
lukasmetzner merged commit 3ba8c30 into main Jul 20, 2026
3 of 4 checks passed
@lukasmetzner
lukasmetzner deleted the releaser-pleaser--branches--main branch July 20, 2026 11:19
@github-actions github-actions Bot added rp-release::tagged Release for this PR is created and removed rp-release::pending Release for this PR is pending labels Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rp-release::tagged Release for this PR is created

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant