Versioning and changelog
Breaking and additive changes
Additive fields and chains are safe; code renames and removals need migrations.
Overview
Use this checklist when reading release notes or planning clients that must stay online across Gray3 updates.
Usually additive (safe)
- New chain ids in the catalog
- New optional query/body fields with defaults
- New properties on existing
dataobjects - New error codes (handle unknown codes as generic failure)
- New routes under
/v1/
Breaking (expect a migration)
- Removing or renaming a field clients already require
- Changing the meaning of an existing
error.code - Changing default behavior in a way that alters successful responses
- Removing a route or requiring new auth for a previously public path
- Moving to a new major path prefix (for example
/v2/) for incompatible shapes
Client hardening
javascript
// Tolerate unknown error codes
function handleError(error) {
switch (error.code) {
case "rate_limit_exceeded":
return retry();
case "credits_exhausted":
return showUpgrade();
default:
return showGeneric(error.message);
}
}
// Tolerate extra JSON fields
const { items } = data; // ignore unknown siblings