Skip to content

feat(nodejs): add breadcrumbs API (add, get, clear) aligned with JS catcher#47

Merged
Dobrunia merged 8 commits intomasterfrom
feature/nodejs-breadcrumbs
Feb 7, 2026
Merged

feat(nodejs): add breadcrumbs API (add, get, clear) aligned with JS catcher#47
Dobrunia merged 8 commits intomasterfrom
feature/nodejs-breadcrumbs

Conversation

@Dobrunia
Copy link
Member

@Dobrunia Dobrunia commented Feb 4, 2026

Summary

Adds a breadcrumbs API to the Node.js catcher so users can record a trail of events before an error, same idea as in @hawk.so/javascript. Only manual breadcrumbs are supported (no automatic fetch/navigation/click tracking).

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a manual breadcrumbs feature to the Node.js catcher, aligning the public API (add, get, clear) and configuration shape with @hawk.so/javascript.

Changes:

  • Introduces a BreadcrumbManager singleton to store and manage breadcrumb buffers.
  • Adds breadcrumbs configuration to HawkNodeJSInitialSettings and attaches breadcrumbs to outgoing event payloads.
  • Updates README and example usage; bumps package version.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
types/index.ts Extends init settings with breadcrumbs config typing; re-exports breadcrumbs options type.
src/modules/breadcrumbs.ts New breadcrumbs module (types + singleton manager + add/get/clear).
src/index.ts Initializes breadcrumbs, exposes HawkCatcher.breadcrumbs API, and includes breadcrumbs in payload.
package.json Version bump to 3.2.1.
example/example.js Updates require path to built CJS entry.
README.md Documents breadcrumbs configuration and API usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Dobrunia Dobrunia merged commit 824af5e into master Feb 7, 2026
2 of 4 checks passed
@Dobrunia Dobrunia deleted the feature/nodejs-breadcrumbs branch February 7, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants