Packages

@repeaterjs/repeater

3.1.0 · 8 Jun 2026MIT15M / weekRepositoryHomepagenpmAtom feed

Upgrading @repeaterjs/repeater From 1.0.0 to 3.1.0

9 releases in betweenevery note read

Reading releases, release notes and advisories…

  1. 1.0.0yours
  2. 2.0.0major
  3. 3.0.0major
  4. 6 releases
  5. 3.1.0target
1
change to make
0
advisories fixed
8
new
5
fixes

Before you upgrade

Tick each one off as you go

Release by release

  1. 3.1.0

    Deprecation8 Jun 20266 new
    • Deprecated

      The @repeaterjs/timers and @repeaterjs/limiters utilities are now folded into the package; the standalone packages are deprecated.

    • New

      ~half the bundle size. Native ESM output (esbuild, no more ES5 down-leveling) takes import { Repeater } from 4.5 KB → 2.1 KB gzipped — same API.

    • New

      @repeaterjs/repeater/core — the class + buffers, no combinators (1.4 KB gzipped)

    • New

      @repeaterjs/repeater/combinators — race / merge / zip / latest standalone

    • New

      @repeaterjs/repeater/timers — createDelay / createInterval / createTimeout

    • New

      @repeaterjs/repeater/limiters — createSemaphore / createThrottle

    • New

      Explicit Resource Management — Repeater implements Symbol.asyncDispose / Symbol.dispose, so await using / using clean it up on scope exit (a no-op on runtimes without the symbols).

  2. 3.0.6

    8 May 20241 fix
    • Fixed

      Fix promise returned from push function not resolving when using a buffer.

  3. 3.0.5

    7 Nov 20231 new
    • New

      Add export maps to package.json files for the TypeScript nodenext

  4. 3.0.4

    2 Sep 20201 fix
    • Fixed

      Fixed memory leaks in static combinator functions race, merge, zip and latest due to Promise.race.

  5. 3.0.3

    3 Aug 20201 fix
    • Fixed

      Fixed missing file in package.json.

  6. 3.0.2

    3 Aug 20201 new · 1 fix
    • New

      Added ESM support for newer versions of node.

    • Fixed

      Fixed throw method not catching promises in newer versions of v8 (node.js 12+).

  7. 3.0.1

    10 Nov 20191 fix
    • Fixed

      Build files with target set to es5 rather than esnext

  8. 2.0.0 – 3.0.02 releases, nothing new or fixed in the notes

9 other lines we could not sort, mostly version bumps
  • Previously, the n-th call to push resolved to the value passed to the n-th call to Repeater.prototype.next. This was inaccurate insofar as async generators resume the n-th yield with the value passed to the n+1-th call to next. Additionally, async generators completely ignore the first value passed to next entirely. The former behavior of repeaters was confusing insofar as the first call to push would always resolve immediately, because push could not be called until next was called for the first time. In 3.0, the behavior has now been changed so that the n-th call to push resolves to the n+1-th call to next.

    3.0.0
  • Calling Repeater.prototype.throw will now cause the previous push call to reject, rather than simply stopping the repeater and throwing the error. This means errors thrown into repeaters are now recoverable. If you call push without awaiting or calling then/catch on the returned promise and then call the throw method, the repeater will rethrow the error, preserving the previous behavior. However, if you await push or otherwise call the then or catch methods, it becomes your responsibility to handle errors thrown in via throw and stop the repeater. #43

    3.0.0
  • The stop promise no longer resolves to the value passed to Repeater.prototype.return. Instead, it consistently fulfills to undefined when the repeater is stopped. Additionally, calling Repeater.prototype.return will return a result whose value is always whatever was passed to return. In the case of premature returns, the return value of the executor is ignored unless it throws an error. #41

    3.0.0
  • Errors thrown by the executor now take priority over rejections passed to push. If a pushed promise rejects, the repeater will await the execution result and throw an error thrown by the executor instead of the rejected promise.

    3.0.0
  • Changes to combinator methods

    3.0.0
  • Repeater, RepeaterExecutor, Push and other related types now take the type parameters TReturn and TNext in line with typescript 3.6’s strict async generator typings.

    3.0.0
  • The RepeaterBuffer interface and concrete classes no longer accept a type parameter. All places where the type parameter would have been used, unknown is used instead. You should never directly add or remove values from buffers.

    3.0.0
  • The typings of the next and return methods have been changed to accept PromiseLike<T> and PromiseLike<TReturn> respectively as parameters.

    3.0.0
  • Renamed all instances of Channel to Repeater (e.g. Channel to Repeater, ChannelBuffer to RepeaterBuffer). See #18 for the rationale behind this name change.

    2.0.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.