@farmart-tech/brave-feature-core
    Preparing search index...

      @farmart-tech/brave-feature-core

      Brave Ship Feature Core - Pure, framework-agnostic feature flag evaluation logic

      This package contains the central domain models and evaluation logic for the Brave Ship system. It is designed to be highly performant and used in both client-side and server-side environments.

      import { Feature } from '@farmart-tech/brave-feature-core';

      const featureData = {
      enabled: true,
      releaseDate: '2024-01-01T00:00:00Z',
      rolloutStrategy: {
      type: 'percentage',
      config: { percentage: 50 }
      }
      };

      const context = {
      deviceContext: { deviceID: 'device-123' },
      userContext: { userId: 'user-456' },
      localFeatureContext: { ... }
      };

      const feature = new Feature(featureData, context);
      const isEnabled = await feature.getIsEnabled();

      Classes

      ConditionBuilder
      Feature
      FeatureBuilder
      RolloutResolver
      RolloutStrategyBuilder
      SegmentGroup

      Interfaces

      CommonFirebaseDataConfigs
      DeviceContext
      FeatureConditionContext
      FeatureContext
      FeatureData
      FeatureEvaluationResult
      FeatureFlagContext
      GeneralContext
      IFeatureClass
      ILocalFeatureData
      ILocalFeatureDataConstructor
      ISegmentGroup
      ISegmentGroupClass
      PerUserFeatureConfig
      RolloutStrategy
      RolloutStrategyPercentage
      RolloutStrategyStepConfig
      SegmentContext
      UserContext

      Type Aliases

      Environment
      FeatureCondition
      FeatureConditionFieldType
      FeatureConditionOperatorType
      FeatureConditionValueType
      RolloutStrategyConfigType
      RolloutStrategyType

      Variables

      CLEANUP_SCHEDULED
      CLEANUP_TIMESTAMP_KEY
      CONDITIONS_COLLECTION_NAME
      DEFAULT_WORKSPACE
      FEATURE_FLAG_COLLECTION_NAME
      FEATURE_FLAG_COLLECTION_NAME_ARCHIVED
      FEATURE_HISTORY_COLLECTION
      FEATURE_MANAGEMENT_COLLECTION
      SEGMENTS_COLLECTION_NAME
      STORAGE_KEY_PREFIX