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: v6.1.0
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
  • 5 commits
  • 26 files changed
  • 2 contributors

Commits on Oct 6, 2025

  1. [FSSDK-11898] serialize concurrent cmab service calls (#1086)

    The cmab service caches the results of a cmab prediction retrieve
    from the server and returns it for subsequent call. This ensures
    a consistent value is returned for getDecision() within the cache ttl.
    However, when there is no cached value, if there is concurrent calls
    to gertDecision() for same userId and ruleId combination, all of these
    will cause a call to the server and may potentially return different
    values.
    
    The solution is to run concurrent calls for same userId and ruleId
    combinations one after another. To achieve this, we put each (userId, ruleId)
    combination in one of the predefined bucktes by hashing the
    (userId, ruleId) combination and serialize all calls for that
    particular hash % (num_buckets).
    raju-opti authored Oct 6, 2025
    Configuration menu
    Copy the full SHA
    ccd6adb View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2025

  1. [FSSDK-11879] flush events without closing client on page unload (#1087

    )
    
    Currently, in browser, when the page is unloaded, the sdk instance is being closed in order to flush pending events. But when the page is loaded from [bfcache](https://developer.mozilla.org/en-US/docs/Glossary/bfcache), the sdk instance stays closed as bfcache restores the Javascript heap as well, which causes further events to be not processed. 
    
    This PR updates the code to flush events on page unload without closing the sdk instance.
    raju-opti authored Oct 7, 2025
    Configuration menu
    Copy the full SHA
    99a4ca7 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2025

  1. Configuration menu
    Copy the full SHA
    e779889 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2025

  1. Configuration menu
    Copy the full SHA
    bfdcfad View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2025

  1. Configuration menu
    Copy the full SHA
    9c75ee1 View commit details
    Browse the repository at this point in the history
Loading