feat: M3 - Implement Node & Web SDKs with React Hooks#2
Merged
reckziegelwilliam merged 5 commits intomainfrom Dec 2, 2025
Merged
feat: M3 - Implement Node & Web SDKs with React Hooks#2reckziegelwilliam merged 5 commits intomainfrom
reckziegelwilliam merged 5 commits intomainfrom
Conversation
- Implement Node.js SDK with config fetching, caching, and auto-refresh - Implement Web/Browser SDK with bootstrap mode for SSR - Add React hooks (useFlag, useFlagVariant, useFlagKeys, useFlagExists) - Add comprehensive test suites (25 tests for Node, 41 tests for Web) - Add full documentation with examples and API reference - Support both static config and API-based config loading - Automatic refresh capabilities with configurable intervals - Config update subscriptions and event listeners
- Update ESLint configs to be standalone instead of extending non-existent root config - Add TypeScript composite project references for proper monorepo builds - Add jsx flag to web SDK tsconfig - Add eslint-disable comments for necessary any type usage - All packages now lint and build successfully
- Remove accidentally committed .d.ts and .js files from src/ directories - Add .gitignore files to each package to prevent committing generated files - Update ESLint configs to ignore any generated .d.ts and .js files - Generated files should only exist in dist/ directory, not src/
- Quote PR_BODY variable in pr-checks workflow - Prevents backticks and special chars in PR description from being executed - Fixes PR validation job failure
- Use heredoc with quoted delimiter (EOF) to safely capture PR body - Prevents backticks and other special characters from being executed - Previous fix only quoted usage, not assignment where injection occurs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Milestone 3 (M3) - Node.js and Web/Browser SDKs for Togglekit feature flags.
Changes
Node SDK (
@togglekit/flags-client-node)createFlagClientfactory functionWeb SDK (
@togglekit/flags-client-web)useFlag,useFlagVariant,useFlagKeys,useFlagExistsFlagProvidercontext providerDocumentation
Testing
Breaking Changes
None - this is a new feature.
Related Issues
Closes milestone M3 as defined in PLAN.md
Checklist