5.4.10 • Published 1 month ago

rox-browser v5.4.10

Weekly downloads
7,962
License
SEE LICENSE IN LI...
Repository
github
Last release
1 month ago

Rollout

CloudBees Feature Management is a secure feature management solution for the enterprise.

Accelerate development and minimize the risk of deploying new code with simple to create feature flags, controlled rollouts, advanced target groups & deployment rules.

Getting Started

Please see the detailed instructions in our docs on how to add CloudBees Feature Management to your project.

Documentation

Getting started guide, use cases, examples and videos can be found at Rollout support site

Rollout Client JavaScript SDK 🦆

Rollout client JavaScript SDK for web applications. Define and use simple and advanced feature flags, remote configuration variables, static and computed custom properties in code. Control your application features via Rollout's dashboard.

Installation

npm i rox-browser --save

Usage

Obtain an application key by registering at Rollout.io.

import Rox from 'rox-browser';

const appSettingsContainer = {
  shouldShowWelcome: new Rox.Flag(),
  textColor: new Rox.RoxString('black'),
  textSize: new Rox.RoxNumber(12, [18, 24])
};

const onRoxReady = () => {
  if (appSettingsContainer.shouldShowWelcome.isEnabled()) {
    const color =  appSettingsContainer.textColor.getValue()
    const size =  appSettingsContainer.textSize.getValue()
    const div = document
      .createElement('div')
      .textContent('Hello world!')
      .setAttribute('style', `color: ${color}; font-size: ${size}px`);

    const body = document.getElementsByTagName('body')[0]
    body.appendChild(div)
  }
};

Rox.register('settingsNamespace', appSettingsContainer);
Rox.setup('<app key>', {
  configurationFetchedHandler: onRoxReady
});

Configure the SDK with different options

Override the default configuration by prodiving predefined configuration preset for Rox.setup.

For example:

import Rox from 'rox-browser';

/*
- roxOptions.distinctId
- roxOptions.version
- roxOptions.syncComplitionHandler
*/

const roxOptions = {
  distinctId: 'sessionDistinctId',
  version: '1.0',
  configurationFetchedHandler: () => {}
};

Rox.setup('<app key>', roxOptions);

Activating Manual Overrides UI

You can override flags manually using a built-in UI debug utility that can be activated by invoking Rox.showOverrides().

Running it will display a UI element that allows to explicitly set values of flags. Available UI location of the UI element:

  • 'top left'
  • 'top right'
  • 'bottom left'
  • 'bottom right' (default)

LICENSE

Rollout client JavaScript SDK is free-to-use, proprietary software. Please see the full license found under the LICENSE file for more details.

Feedback

Feedback is always welcomed support@rollout.io

5.4.10

1 month ago

5.4.9

4 months ago

5.4.8

7 months ago

5.4.6

10 months ago

5.4.5

11 months ago

5.4.4

11 months ago

5.4.3

11 months ago

5.3.1

2 years ago

5.4.2

2 years ago

5.4.1

2 years ago

5.4.0

2 years ago

5.4.1-beta2

2 years ago

5.2.0

2 years ago

5.1.2

2 years ago

5.1.1

2 years ago

5.1.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.9.18

4 years ago

4.9.17

4 years ago

4.9.16

4 years ago

4.9.15

4 years ago

4.9.14

4 years ago

4.9.13

4 years ago

4.9.12

4 years ago

4.9.7

4 years ago

4.9.6

4 years ago

4.9.5

4 years ago

4.9.4

4 years ago

4.9.2-alpha.0

4 years ago

4.9.1

4 years ago

4.9.0

4 years ago

4.8.10

4 years ago

4.8.9

4 years ago

4.8.7

4 years ago

4.8.6

4 years ago

4.8.5

4 years ago

4.8.3

4 years ago

4.8.2

4 years ago

4.8.1

5 years ago

4.8.0

5 years ago

4.7.1

5 years ago

4.7.0

5 years ago

4.5.3

5 years ago

4.5.2

5 years ago

4.5.1

5 years ago

4.5.0

5 years ago

4.4.0

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.2

5 years ago

4.2.1

5 years ago

4.2.0

5 years ago

4.1.4

5 years ago

4.1.3

6 years ago

4.1.2

6 years ago

4.1.1

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.2.5

6 years ago

3.2.4

6 years ago

3.2.3

6 years ago

3.1.4

6 years ago

3.1.3

6 years ago

3.0.0

6 years ago

2.3.7

6 years ago

2.3.6

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

1.2.9

6 years ago

1.2.8

6 years ago

1.2.5

6 years ago

1.2.3

6 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.0.1

7 years ago

0.0.20-alpha

7 years ago

0.0.16-alpha

7 years ago

0.0.15-alpha

7 years ago

0.0.14-alpha

7 years ago

0.0.13-alpha

7 years ago

0.0.0-alpha

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

1.0.0-beta.5

7 years ago

1.0.0-beta.4

7 years ago

1.0.0-beta.3

7 years ago

1.0.0-beta.2

7 years ago

1.0.0-beta.1

7 years ago

1.0.0-beta.0

7 years ago