Declares that all workflows started before a given patch have drained
and the old code path can be removed. This is a no-op at runtime —
it exists purely as a migration signal in source code.
Migration Steps
Replace if (await patched('id')) { new } else { old } with
deprecatePatch('id'); new.
Deploy and verify.
In a subsequent release, remove both deprecatePatch('id') and
the surrounding wrapper, leaving only the new code.
Parameters
_changeId: string
The change ID being deprecated (unused at runtime).
Declares that all workflows started before a given patch have drained and the old code path can be removed. This is a no-op at runtime — it exists purely as a migration signal in source code.
Migration Steps
if (await patched('id')) { new } else { old }withdeprecatePatch('id'); new.deprecatePatch('id')and the surrounding wrapper, leaving only the new code.