• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microlinkhq / async-memoize-one
98%

Build:
DEFAULT BRANCH: master
Repo Added 02 Dec 2020 09:17AM UTC
Files 1
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • Kikobeats/ava-8
  • Kikobeats/benchmark-baseline-2
  • Kikobeats/ci-engines-floor
  • Kikobeats/fix-types-export
  • Kikobeats/memoize-signature
  • Kikobeats/pin-ava-7
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/pnpm/action-setup-6
  • master
  • v1.0.0
  • v1.0.1

29 Oct 2026 04:05PM UTC coverage: 97.561%. Remained the same
40908073509

push

github

web-flow
fix(types): return what the memoized function actually is (#26)

* fix(types): return what the memoized function actually is

`memoizeOne` returns a new async arrow function: properties on `fn` are
not copied, `fn` is called without `this`, and the result is always a
Promise. The old `(fn: T) => T` signature claimed otherwise.

The declaration now returns `(...args) => Promise<Awaited<Result>>`,
requires `this: void`, and types `isEqual` arguments as `fn`'s
parameters. Generic functions keep their type parameters, and a second
overload keeps `memoizeOne<FnType>(...)` compiling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(types): lock comparator arguments and nested unwrapping

Widening isEqual's arguments, the explicit overload's parameters, or
replacing Awaited with a single unwrap left the type test green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock the comparator's previous arguments

Widening only oldArgs back to any[] left the type test green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock required parameters and boolean comparators

Making the wrapper's parameters optional, or widening the comparator
return to any, left the type test green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock options, arity, and empty returns

Banning false, an omitted option, a null comparator, extra arguments,
or Promise<void> left the type test green. The promise constraint no
longer uses any.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock option values and comparator returns

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock the promise constraint and other returns

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock explicit undefined on cachePromiseRejection

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock exactOptionalPropertyTypes

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(typ... (continued)

8 of 9 branches covered (88.89%)

Branch coverage included in aggregate %.

32 of 32 relevant lines covered (100.0%)

4.53 hits per line

Relevant lines Covered
Build:
Build:
32 RELEVANT LINES 32 COVERED LINES
4.53 HITS PER LINE
Source Files on master
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
40908073509 master fix(types): return what the memoized function actually is (#26) * fix(types): return what the memoized function actually is `memoizeOne` returns a new async arrow function: properties on `fn` are not copied, `fn` is called without `this`, and th... push 29 Oct 2026 04:05PM UTC web-flow github
97.56
40905756580 Kikobeats/memoize-signature Merge f1cc7d52a into 8e01159d9 Pull #26 29 Oct 2026 03:51PM UTC web-flow github
97.56
40905587704 Kikobeats/memoize-signature Merge 51dc7687d into 8e01159d9 Pull #26 29 Oct 2026 03:50PM UTC web-flow github
97.56
40905490092 Kikobeats/memoize-signature Merge 59bcc097b into 8e01159d9 Pull #26 29 Oct 2026 03:50PM UTC web-flow github
97.56
40905301375 Kikobeats/memoize-signature Merge 984053d3b into 8e01159d9 Pull #26 29 Oct 2026 03:48PM UTC web-flow github
97.56
40904620024 Kikobeats/memoize-signature Merge 2b9dedbf3 into 8e01159d9 Pull #26 29 Oct 2026 03:44PM UTC web-flow github
97.56
40903535754 Kikobeats/memoize-signature Merge 1590e98d8 into 8e01159d9 Pull #26 29 Oct 2026 03:38PM UTC web-flow github
97.56
40854705014 Kikobeats/memoize-signature Merge fa1902f8a into 8e01159d9 Pull #26 29 Oct 2026 10:05AM UTC web-flow github
97.56
40854016591 Kikobeats/memoize-signature Merge ff4c180df into 8e01159d9 Pull #26 29 Oct 2026 10:00AM UTC web-flow github
97.56
40853895244 Kikobeats/memoize-signature Merge fac98d006 into 8e01159d9 Pull #26 29 Oct 2026 09:59AM UTC web-flow github
97.56
See All Builds (52)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc