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);
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)
Bumps cockatiel from 2.0.2 to 3.1.2.
Changelog
Sourced from cockatiel's changelog.
... (truncated)
Commits
03614ab
3.1.290eeecd
chore: remove test files from dist package9538719
chore(deps-dev): bump@babel/traverse
from 7.16.3 to 7.23.2 (#78)e3db4b5
chore: test with Nodejs 18 and 20 versions (#79)dad8932
chore(deps): bump json5 from 2.2.0 to 2.2.3 (#70)83bd43d
Fix readme (#74)9ba5ddb
3.1.10c62f66
fix: memory leak when usingtimeout()
inwrap()
e4a8111
3.1.098da5a4
feat: add new option abortOnReturn to timeoutsDependabot 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