NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3642 most downloaded on npm
Get the callsite of the caller function
Last release 1 years ago
21 Sep 2025
Ships fairly regularly
a new release about every 1.7 years
Some releases are documented
notes for 4 of 8 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
8 releases · first in 2015
Fix depth behavior to be intuitive 626bfcb
Require Node.js 20 ee75592
Fix depth behavior to be intuitive 626bfcb
The depth parameter now counts from the immediate caller, not the outermost:
Migration:
// v4.x (old)
callerCallsite() // Returns outermost caller
callerCallsite({depth: 1}) // Returns second-to-outermost
// v5.x (new)
callerCallsite() // Returns immediate caller
callerCallsite({depth: 1}) // Returns caller's caller
To migrate: Reverse your depth values or use the new intuitive counting.
https://github.com/sindresorhus/caller-callsite/compare/v5.0.0...v6.0.0
Require Node.js 12.20 (#11) e7358be
https://github.com/sindresorhus/caller-callsite/compare/v4.1.0...v5.0.0
One column per quarter.
https://github.com/sindresorhus/caller-callsite/compare/v4.0.0...v4.1.0
depth option (#5) 7a4f656https://github.com/sindresorhus/caller-callsite/compare/v4.0.0...v4.1.0
Add TypeScript definition (#6) bf039ce
Breaking:
Enhancements:
https://github.com/sindresorhus/caller-callsite/compare/v3.0.0...v4.0.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →