There are some major changes in this release but everything should be backward compatible with a few tweaks.
New Features
- A new Dapr Client in
\Dapr\Client\DaprClient. It doesn't require dependency injection, though it still works with it just fine with it. - Passing
metadatato the new client doesn't require a'metadata.*'prefix. - Uses the Guzzle HTTP Client which is orders of magnitude faster than the previous raw
curlcalls in the old client
Deprecations
- The
\Dapr\PubSub\Publishclass is deprecated, please change your code to use\Dapr\PubSub\Topicinstead. - The
\Dapr\State\StateManagerclass has been rewritten to use the new client, you can use\Dapr\State\StateManagerOldif you need the old behavior, though be aware it will be deleted in a later release (>v1.4.0). To use the new client, it's not required to change any of your existing code (except to ensure the new DaprClient is injected -- if you're using the defaultconfig.php, this is done for you). - The
\Dapr\State\TransactionalStateclass has been rewritten to use the new client. You can use\Dapr\State\TransactionalStateOldif you need the old behavior, though be aware it will be deleted in a later release (>v1.4.0). To use the new client, it's not required to change any of your existing code (except to ensure the new DaprClient is injected -- if you're using the defaultconfig.php, this is done for you). - The
\Dapr\SecretManagerclass is deprecated, please change your code to use the new client.