Skip to content

Release 1.2.0

Latest
Compare
Choose a tag to compare
@withinboredom withinboredom released this 19 Dec 21:22
· 4 commits to main since this release
f0d66c3

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 metadata to the new client doesn't require a 'metadata.*' prefix.
  • Uses the Guzzle HTTP Client which is orders of magnitude faster than the previous raw curl calls in the old client

Deprecations

  • The \Dapr\PubSub\Publish class is deprecated, please change your code to use \Dapr\PubSub\Topic instead.
  • The \Dapr\State\StateManager class has been rewritten to use the new client, you can use \Dapr\State\StateManagerOld if 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 default config.php, this is done for you).
  • The \Dapr\State\TransactionalState class has been rewritten to use the new client. You can use \Dapr\State\TransactionalStateOld if 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 default config.php, this is done for you).
  • The \Dapr\SecretManager class is deprecated, please change your code to use the new client.