Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nice-buttons-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mermaidchart/sdk': patch
---

Added the optional analyticsID for MCUser so we can track the evetns on mermaid mcp server
1 change: 1 addition & 0 deletions packages/cli/src/commander.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ beforeAll(async () => {
const mockedMCUser = {
fullName: 'My Test User',
emailAddress: 'my-test-user@test.invalid',
analyticsID: '00000000-0000-0000-0000-0000000000aa',
} as const satisfies MCUser;
const mockedProjects = [
{
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('MermaidChart', () => {
return {
fullName: 'Test User',
emailAddress: 'test@invalid.invalid',
analyticsID: '00000000-0000-0000-0000-0000000000aa',
};
});
});
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface AuthState {
export interface MCUser {
fullName: string;
emailAddress: string;
analyticsID?: string;
}
Comment thread
Copilot marked this conversation as resolved.

export interface AICreditsUsage {
Expand Down
Loading