callsites is an npm package that returns callsite objects using the V8 stack trace API. It helps developers inspect where a function was called (for example, file name, line and column, and function or method names), and it remains useful in browser environments since Node.js now provides a built-in util.getCallSites() function.
Project status
- The repo appears actively worked on (latest recorded upstream push on 2025-09-09), though the most recent published update shown here is v4.2.0 on 2024-06-29.
- Update cadence looks low and bursty, with no updates shown between v4.2.0 (2024-06-29) and earlier v4.1.0 (2023-08-12), and a much larger gap before v4.0.0 (2021-08-08).
AI summary generated Today
Recent updates
v4.2.0
6/29/2024v4.2.0 extends the public TypeScript surface for callsites by adding async-stack-trace related methods to the CallSite interface. The release notes mention only the new async type methods, and the diff shows those additions plus a few package/CI metadata updates not mentioned in the notes.
Featuresv4.1.0
8/12/2023Release v4.1.0 claims to add support for Bun. The actual code change modifies how callsites are extracted from V8/Bun stack traces, including a more defensive implementation around Error.prepareStackTrace.
Featuresv4.0.0
8/8/2021v4.0.0 makes the package pure ESM and raises the minimum supported Node.js version to 12.20. The runtime code is small, but the published module format and TypeScript declarations were significantly reworked to match ESM exports.
Breakingv3.1.0
4/6/2019Release v3.1.0 primarily changes the TypeScript declaration file to be more CommonJS-friendly. The code diff shows a substantial rework of the exported types and module export style in index.d.ts, while runtime code changes in index.js are effectively unchanged.
v3.0.0
11/19/2018v3.0.0 introduces a breaking requirement for a newer Node.js runtime. It also adds TypeScript type definitions to improve developer experience for TypeScript users.
BreakingFeatures