johannrichard / homebridge-dingz

Emerging Homebridge Plugin for dingz & myStrom WiFi Switch Devices. Replaces the obsolete homebridge-mystrom plugin
https://github.com/johannrichard/homebridge-dingz/wiki
Apache License 2.0
12 stars 6 forks source link

build(deps): bump cockatiel from 2.0.2 to 3.1.2 #662

Open dependabot[bot] opened 7 months ago

dependabot[bot] commented 7 months ago

Bumps cockatiel from 2.0.2 to 3.1.2.

Changelog

Sourced from cockatiel's changelog.

3.1.2

  • chore: remove test files from dist package (#84)

3.1.1

  • fix: memory leak when using timeout() in wrap() (#69)

3.1.0

  • feat: add new option abortOnReturn to timeouts (#72)

3.0.0

  • breaking: please see the breaking changes for the two 3.0.0-beta releases
  • feat: expose wrap()ed policies in the merged policy (#61)

3.0.0-beta.1

  • breaking: refactor: create policies as free-floating functions rather than Policy methods

    Previously, all policies were created via something like Policy.handleAll().retry(...). However, as a result, it was hard for bundlers to tree-shake Cockatiel, since the Policy class was used and referenced every mechanism provided in this library.

    Instead, policies are now created via functions that consume the base Policy configuration--and that configuration is started as free functions rather than static methods. For example, where you previously wrote:

    import { Policy } from 'cockatiel';
    Policy.handleAll().retry().attempts(3);
    

    You instead write

    import { handleAll, retry } from 'cockatiel';
    retry(handleAll, { attempts: 3 );
    

    The full changes are:

    • Policy.retry() -> retry(policy, options)
    • Policy.circuitBreaker(halfOpenAfter, breaker) -> retry(policy, { halfOpenAfter: number, breaker: IBreaker })
    • Policy.fallback(valueOrFactory) -> fallback(policy, valueOrFactory)
    • Policy.wrap(...) -> wrap(...)
    • Policy.timeout(duration, strategy) -> timeout(duration, strategy)
    • Policy.bulkhead(limit[, quue]) -> bulkhead(limit[, quue])
    • Policy.use() -> usePolicy(policy)

    This resolves #50

  • breaking: refactor: remove confusing Retry builder.

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)