• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / javascript-sdk / 2943
78%

Build:
DEFAULT BRANCH: master
Ran 07 Oct 2021 09:38PM UTC
Jobs 7
Files 82
Run time 8min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2943

push

travis-ci-com

web-flow
feat: Added a Lite bundle excluding Data file manager and Event Processor packages. (#699)

## Summary
Some platforms (such as edge providers), do not need extended functionality offered by data file manager and event processor. This PR creates a lite bundle which uses a `NoOpDatafileManager` and a `ForwardingEventProcessor` which immediately dispatches events when a custom event dispatcher is provided. This results in up to 20% reduction in bundle size. This also fixes the errors that SDK was throwing on edge platforms.

### Usage
To use the lite bundle, user needs to explicitly import from it.
`import { createInstance } from '@optimizely/optimizely-sdk/dist/optimizely.lite.es.mins.js'`

## Test plan
1. All the Full stack compatibility suite tests pass for the existing bundles.
2. Fixed all the failing unit tests.
3. Added new unit tests to `lite` entry point.

1026 of 1154 branches covered (88.91%)

Branch coverage included in aggregate %.

9186 of 9366 relevant lines covered (98.08%)

475.2 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2943.2 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 07 Oct 2021 09:38PM UTC 0
97.07
Travis Job 2943.2
5 2943.5 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 07 Oct 2021 09:43PM UTC 0
97.07
Travis Job 2943.5
6 2943.6 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 07 Oct 2021 09:45PM UTC 0
97.07
Travis Job 2943.6
7 2943.7 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 07 Oct 2021 09:45PM UTC 0
97.07
Travis Job 2943.7
8 2943.8 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 07 Oct 2021 09:45PM UTC 0
97.07
Travis Job 2943.8
9 2943.9 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 07 Oct 2021 09:45PM UTC 0
97.07
Travis Job 2943.9
10 2943.10 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 07 Oct 2021 09:45PM UTC 0
97.07
Travis Job 2943.10
Source Files on build 2943
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #2943
  • b0478ec6 on github
  • Prev Build on master (#2940)
  • Next Build on master (#2949)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc