From 774e5b77cdda6fff62ee4ebb19c5fb59913c3ea9 Mon Sep 17 00:00:00 2001 From: Simone Carletti <5387+weppos@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:30:48 +0200 Subject: [PATCH] Remove deprecated Certificate contact_id field The `contact_id` field in the Certificate schema was deprecated on 2022-05-17 and is no longer required for certificate operations. Remove it from the `Certificate` type. This is a breaking change. --- CHANGELOG.md | 6 ++++++ lib/types.ts | 1 - test/certificates.spec.ts | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97b884c8..7a19ba56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ This project uses [Semantic Versioning 2.0.0](http://semver.org/), the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## main + +### Removed + +- **BREAKING**: Removed the deprecated `contact_id` field from the `Certificate` type. The field was deprecated on 2022-05-17 and is no longer required for certificate operations. + ## 12.3.0 - 2026-04-16 ### Added diff --git a/lib/types.ts b/lib/types.ts index eb0da2ca..58932f3b 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -115,7 +115,6 @@ export type Push = { export type Certificate = { id: number; domain_id: number; - contact_id: number; name: string; common_name: string; years: number; diff --git a/test/certificates.spec.ts b/test/certificates.spec.ts index 8099d726..672ee94a 100644 --- a/test/certificates.spec.ts +++ b/test/certificates.spec.ts @@ -135,7 +135,6 @@ describe("certificates", () => { const certificate = response.data; expect(certificate.id).toBe(101967); expect(certificate.domain_id).toBe(289333); - expect(certificate.contact_id).toBe(2511); expect(certificate.common_name).toBe("www.bingo.pizza"); expect(certificate.alternate_names).toEqual([]); expect(certificate.state).toBe("issued");