@@ -7,13 +7,58 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## Unreleased
99
10+ ### Added
11+
12+ - Backwards-compatible, deprecated aliases on ` DurableFunctionsClient ` for the
13+ v1 ` DurableOrchestrationClient ` method names: ` start_new ` , ` get_status ` ,
14+ ` get_status_all ` , ` get_status_by ` , ` raise_event ` , ` terminate ` ,
15+ ` purge_instance_history ` , ` purge_instance_history_by ` , ` suspend ` , ` resume ` ,
16+ ` restart ` , ` read_entity_state ` , ` get_client_response_links ` , and
17+ ` wait_for_completion_or_create_check_status_response ` . Each delegates to the
18+ corresponding durabletask method and emits a ` DeprecationWarning ` ; new code
19+ should use the durabletask names (e.g. ` schedule_new_orchestration ` ,
20+ ` get_orchestration_state ` ).
21+ - ` DurableFunctionsClient.signal_entity ` now also accepts the v1
22+ ` operation_input ` keyword (alias for ` input ` ); ` task_hub_name ` and
23+ ` connection_name ` are accepted for compatibility and ignored.
24+ - ` DurableFunctionsClient.rewind ` is present as a deprecated stub that raises
25+ ` NotImplementedError ` , pending a durabletask rewind implementation.
26+ - Deprecated v1 compatibility aliases are now exported from
27+ ` azure.durable_functions ` : ` DurableOrchestrationClient ` (alias for
28+ ` DurableFunctionsClient ` ), ` DurableOrchestrationContext ` , ` DurableEntityContext ` ,
29+ ` EntityId ` , ` ManagedIdentityTokenSource ` , ` TokenSource ` , ` Entity ` , and
30+ ` OrchestrationRuntimeStatus ` .
31+ - v1-compatible return-type wrappers ` DurableOrchestrationStatus ` ,
32+ ` PurgeHistoryResult ` , and ` EntityStateResponse ` (exported from
33+ ` azure.durable_functions ` ). The deprecated client methods now return these:
34+ ` get_status ` /` get_status_all ` /` get_status_by ` return
35+ ` DurableOrchestrationStatus ` (wrapping durabletask ` OrchestrationState ` , with
36+ v1 attributes like ` runtime_status ` , ` output ` , ` input_ ` , ` custom_status ` , and
37+ a falsy value for missing instances); ` purge_instance_history ` /` _by ` return
38+ ` PurgeHistoryResult ` (with ` instances_deleted ` ); and ` read_entity_state `
39+ returns ` EntityStateResponse ` (with ` entity_exists ` /` entity_state ` ).
40+ - ` DurableOrchestrationContext.call_http ` is present as a stub that raises
41+ ` NotImplementedError ` , documenting the durable-HTTP gap. ` TokenSource ` /
42+ ` ManagedIdentityTokenSource ` remain constructible but only apply to
43+ ` call_http ` , which is not yet supported.
44+ - ` RetryOptions ` , a deprecated shim that maps the v1 millisecond-based
45+ constructor onto durabletask ` RetryPolicy ` (which uses ` timedelta ` ).
46+ ` RetryPolicy ` is now also exported from ` azure.durable_functions ` .
47+
1048### Changed
1149
1250- ` DurableFunctionsClient ` is now an async client. Its orchestration and entity
1351 management methods (e.g. ` schedule_new_orchestration ` , ` get_orchestration_state ` ,
1452 ` wait_for_orchestration_completion ` ) are now coroutines and must be awaited.
1553 This aligns the client with the async API surface of the V1
1654 ` DurableOrchestrationClient ` .
55+ - ` create_http_management_payload ` now accepts either the durabletask
56+ ` (request, instance_id) ` signature or the v1 ` (instance_id) ` signature for
57+ backwards compatibility.
58+ - ` HttpManagementPayload ` now supports mapping-style access
59+ (` payload["statusQueryGetUri"] ` , iteration, ` in ` , ` keys() ` /` items() ` /` values() ` )
60+ so v1 code that treated the payload as a ` dict ` keeps working.
61+
1762
1863## v0.1.0
1964
0 commit comments