Skip to content

Feature Flags v0.2.3

Choose a tag to compare

@koistya koistya released this 18 Sep 19:20
· 3 commits to main since this release
04051c3

🔧 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.