Feature Flags v0.2.3
🔧 TypeScript Improvements
Fixed "excessively deep type instantiation" errors - Implements proper server-to-client type flow using $Infer and $InferServerPlugin patterns. Full IntelliSense and type safety maintained.
Enhanced type inference - Schema types now flow correctly from featureFlags<TSchema> to featureFlagsClient<TSchema>, enabling proper autocompletion and validation.
✅ What's Fixed
- TypeScript compilation errors with complex flag schemas
- Broken type inference between server and client plugins
- Missing type safety in flag operations
- API documentation examples updated with correct patterns
🧪 Testing
- Added comprehensive type flow tests in
schema-type-flow.test.ts - Verified different schemas produce distinct types
- Ensured backward compatibility
🚀 Migration
No breaking changes - existing code continues to work. The improvements are purely internal TypeScript architecture fixes that enhance developer experience.