Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: optimizely/javascript-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: claude-code
Choose a base ref
...
head repository: optimizely/javascript-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 5 files changed
  • 4 contributors

Commits on Mar 11, 2026

  1. Remove SourceClear scan workflow due to security vulnerability (#1139)

    Removes the SourceClear workflow that contains a dangerous curl|bash pattern,
    which presents risks of script injection and untrusted remote code execution
    in the CI/CD pipeline. This follows the same remediation approach used in the
    PHP SDK (optimizely/php-sdk#294).
    
    Co-authored-by: Claude Sonnet 4.5 <[email protected]>
    Tamara-Barum and claude authored Mar 11, 2026
    Configuration menu
    Copy the full SHA
    cde46e9 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2026

  1. [AI-FSSDK] [FSSDK-12337] Add Feature Rollout support (#1140)

    ## Summary
    
    Adds Feature Rollout support to the JavaScript SDK. Feature Rollouts are a new experiment rule type that combines Targeted Delivery simplicity with A/B test measurement capabilities. During project config parsing, the "everyone else" variation from the flag's rollout is injected into any experiment with type "feature_rollout", enabling correct evaluation without changes to decision logic.
    
    ## Changes
    
    - Added optional `type` string field to the Experiment interface
    - Added config parsing logic to inject the "everyone else" rollout variation into feature_rollout experiments
    - Added traffic allocation entry (endOfRange=10000) for the injected variation
    - Added `getEveryoneElseVariation` helper function to extract the last rollout rule's first variation
    - Updated variation lookup maps (variationKeyMap, variationIdMap, variationVariableUsageMap) with injected variation
    - Added 6 unit tests covering feature rollout injection, edge cases, and backward compatibility
    
    ---------
    
    Co-authored-by: Raju Ahmed <[email protected]>
    FarhanAnjum-opti and raju-opti authored Mar 31, 2026
    Configuration menu
    Copy the full SHA
    41d2580 View commit details
    Browse the repository at this point in the history
Loading