Skip to content

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 03 Jul 14:45
· 58 commits to main since this release

Changes

  • fix(flow): 🐛 Harden fallback and cancellation behavior

Release details

Pull request notes

What changed

  • Fixed FallbackChain so 0, false, and "" are treated as valid resolved values.
  • Changed FallbackChain to propagate errors by default, with explicit best-effort mode through FallbackChainOptions.catchingErrors() and .onError().
  • Ensured Timeout and Abortable clean up timers/listeners when work settles.
  • Made Retrier delays abortable between attempts.
  • Added cancellable waiters to Semaphore.acquire(signal).
  • Fixed the publish workflow so the first npm publish does not fail when the package does not exist yet.
  • Updated documentation and README badges.

Why

The prepublish review was right on the important issues: falsy values were incorrectly treated as fallback misses, errors were silently swallowed by default, timers/listeners could stay alive longer than needed, and the first publish could fail before npm had any published version for the package.

Validation

  • yarn lint
  • yarn build
  • yarn test:coverage with 100% coverage
  • yarn docs:build