Skip to content

refactor(index): narrow exports + add verification test#5

Merged
SamFHarrison merged 1 commit into
mainfrom
refactor/narrow-package-surface
Jul 9, 2026
Merged

refactor(index): narrow exports + add verification test#5
SamFHarrison merged 1 commit into
mainfrom
refactor/narrow-package-surface

Conversation

@SamFHarrison

Copy link
Copy Markdown
Owner

Summary

The package currently exposes an internal hook I don't want it to. src/index.ts re-exports everything, which makes useThemeStateContext public.

Before the first publish of the package, I want to tighten this so we only commit to supporting ThemeProvider, useTheme, the intended types and the isValidThemePreference helper.

Testing

Added index.test.ts to assert the exported surface is intended.

@SamFHarrison SamFHarrison merged commit fd84205 into main Jul 9, 2026
1 check passed
@SamFHarrison SamFHarrison deleted the refactor/narrow-package-surface branch July 9, 2026 19:38
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