Skip to content

feat: replace events.track() by events.send()#18

Merged
ferreiro merged 5 commits intomainfrom
send-instead-of-track
Sep 29, 2025
Merged

feat: replace events.track() by events.send()#18
ferreiro merged 5 commits intomainfrom
send-instead-of-track

Conversation

@ferreiro
Copy link
Copy Markdown
Contributor

@ferreiro ferreiro commented Sep 29, 2025

Improving our SDKs signature. Track was a bad naming we picked for a backend-focused SDK. once we ship our frontend SDK we might want to start adding "identify", "trackEvent", "trackPage" for a more "events-driven" SDK


Note

Renames Events API methods to events.send() and events.sendBatch(), adding README docs, examples, tests, and changelog entries.

  • Events API:
    • API rename: events.track()events.send(), events.trackBatch()events.sendBatch() in src/api/events.ts (JSDoc updated).
    • Tests: New coverage for send() and sendBatch() in src/__tests__/events.test.ts (HTTP interactions mocked).
    • Documentation: Added Events API section with examples in README.md.
    • Examples: New examples/events-usage.ts demonstrating single, batch, and custom deduplication flows.
    • Changelog: Added entries highlighting clearer method names and new examples/documentation.

Written by Cursor Bugbot for commit 35a0a96. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

@ferreiro ferreiro merged commit 5f9b898 into main Sep 29, 2025
2 checks passed
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.

1 participant