Skip to content
Skip to Content
DropHawk.Developers

Versioning and deprecation

v1 only grows. A breaking change ships as /v2, and v1 keeps running for at least 3 months after /v2 launches. Deprecations are announced in headers, the OpenAPI document and the changelog.

View as Markdown

The version in every path (/v1/) is a promise about what will not change under you. This page says what that covers, how a change is announced, and how long you have to react.

Additive changes

Within v1, DropHawk may add the following without notice:

  • endpoints;
  • fields in responses;
  • optional request parameters;
  • values of an existing field that the docs describe as open-ended, such as new error reasons and new withheld reasons.

None of these is a breaking change. Write clients that tolerate them: ignore fields you do not know, decide an unknown error reason by its HTTP status (see Errors and reasons), and treat an unknown withheld reason as the price being unknown.

Breaking changes

These are breaking, and do not ship within v1:

  • removing or renaming a field, parameter or endpoint;
  • changing a field's type, or what it means;
  • making an optional input required.

A breaking change ships as /v2/, never inside /v1/. When /v2/ launches, v1 keeps running unchanged alongside it for at least 3 months.

Deprecation

Deprecating an operation says it will not be carried into the next major version, so you can plan to move off it. It does not change what the operation does.

  • Nothing is removed inside v1. A deprecated operation keeps working, with the same behaviour, for as long as v1 does.
  • v1 stops answering only after /v2/ has run alongside it for at least 3 months.
  • Sunset, when we have set one, is the date v1 stops answering. It is never earlier than 3 months after /v2/ launched, and is never moved earlier once published.

How it is announced

Every response for a deprecated operation, errors and rate-limit responses included, carries:

HeaderMeaning
DeprecationWhen the operation was deprecated, as an RFC 9745 date: @ and Unix seconds, such as @1799971200.
SunsetWhen v1 stops answering, as an RFC 8594 HTTP date. Present once a date is set.
LinkThis page, with rel="deprecation".

The same headers are on the REST and Connect forms of the operation, and are exposed to browsers on those responses. Operations that are not deprecated send none of them, so a client can treat the presence of Deprecation as the signal to log or alert on.

The OpenAPI document marks the operation deprecated: true and declares the three headers on each of its responses, so generated clients and linters pick it up. The changelog records the deprecation, the replacement and the sunset date.

The SDK and MCP server

@drophawk/sdk and @drophawk/mcp are versioned with semantic versioning, and are still 0.x, so a minor release may change them. They follow the API's deprecations: a deprecated operation is marked deprecated in the SDK, and its MCP tool keeps working while the operation does.

What is not covered

  • Error messages. message is a summary for logs. Branch on the reason; see Errors and reasons.
  • Data. Prices, stock, which Products exist, and their names change as the catalogue does. A field's meaning is fixed; its value is not.