Skip to content

fix: no-op SDK setup without API key#62

Draft
marandaneto wants to merge 1 commit intomainfrom
fix/noop-empty-api-key
Draft

fix: no-op SDK setup without API key#62
marandaneto wants to merge 1 commit intomainfrom
fix/noop-empty-api-key

Conversation

@marandaneto
Copy link
Copy Markdown
Member

Summary\n- make manual PostHogSDK.Setup/PostHog.Setup return without initializing when config is null or API key is null, empty, or whitespace\n- keep PostHogConfig.Validate API key validation and auto-init API key skip behavior intact\n- add focused setup tests for missing config/API key\n\n## Tests\n- DOTNET_ROLL_FORWARD=Major bin/test\n- DOTNET_ROLL_FORWARD=Major bin/fmt --check\n\nNote: local plain bin/test requires .NET 9 runtime; this machine only has .NET 10, so tests were run with DOTNET_ROLL_FORWARD=Major.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant