Back to Explore

sindresorhus/callsites

GitHub
4 watchersOpen source

Last release:

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

  • Maintenance status: Appears still maintained at the repository level, with a recent upstream push on 2025-09-09, but the most recent published updates are older (v4.2.0 on 2024-06-29).
  • Update cadence: Historically low frequency, with multi-year gaps between versions (for example v4.2.0 in 2024, v4.1.0 in 2023, v4.0.0 in 2021), suggesting a slow, opportunistic update pattern rather than steady releases.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v4.2.0

    v4.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.

    Features
  • v4.1.0

    Release 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.

    Features
  • v4.0.0

    v4.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.

    Breaking
  • v3.1.0

    Release 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

    v3.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