Is sinon-as-promised still maintained?
No — sinon-as-promised stopped being maintained around March 2017. sinon-as-promised's functionality was absorbed into sinon.
- Status
- No longer maintained
- Last maintained
- March 2017
- Use instead
sinon— on npm- Succession
- Absorbed elsewhere
- Drop-in
- yes — swap the import
- Confidence
- high
What should I use instead of sinon-as-promised?
sinon-as-promised's functionality was absorbed into sinon. sinon is close enough to a drop-in replacement that most projects only change the dependency and the import.
How to migrate from sinon-as-promised to sinon
Remove the dependency and the require('sinon-as-promised') line; sinon.stub().resolves(value) and .rejects(error) work unchanged on Sinon 2 and later.
Why sinon-as-promised is on this list
This package added resolves and rejects to Sinon stubs. Its README states that Sinon 2 added those methods and no longer requires the library, and the last release was 4.0.3 in March 2017. The functionality now ships in Sinon itself.
The succession is settled: primary sources agree and the ecosystem has already moved.
sinon-as-promised alternatives
The dataset lists no second option: sinon is where the ecosystem went, and nothing else has meaningful adoption.
Check your own project for sinon-as-promised
npx dead-deps --all --min-state unmaintained
Run that in the directory holding your lockfile. If sinon-as-promised is anywhere in your tree — a direct dependency or buried under something else — it appears in the report with this verdict, this successor and the same evidence links, alongside anything else that has stopped moving. Nothing is uploaded; the scan reads your lockfile locally and queries public registry metadata.
Exit code 1 means something was flagged, which makes npx dead-deps --min-state deprecated usable as a CI gate. See how verdicts are produced.
Evidence
Every claim on this page traces to a primary source. Check them:
- sinon-as-promised README: "Sinon 2 added resolves and rejects methods and no longer requires this library"github.com
- Sinon project site and current stub documentationsinonjs.org
Packages related to sinon-as-promised
- supertest-as-promisedAbsorbed elsewhere: supertest · unmaintained since November 2016
- react-addons-test-utilsAbsorbed elsewhere: react-dom · unmaintained since April 2017
- @angular/httpAbsorbed elsewhere: @angular/common · unmaintained since May 2019
- @zeit/next-sassAbsorbed elsewhere: next · unmaintained since March 2020
- jest-environment-jsdom-sixteenAbsorbed elsewhere: jest-environment-jsdom · unmaintained since April 2021
See the full index of covered packages, or read the methodology for how a verdict is reached and why a quiet package is not a dead one.