rx-lite is a lightweight distribution of the Reactive Extensions for JavaScript (RxJS) version 4.x, primarily used for composing asynchronous and event-based operations in JavaScript. At version 4.0.8, it provided a core set of observable operators for handling events, promises, callbacks, and time-based operations in both modern browser environments (IE9+) and Node.js. The library was part of an earlier generation of RxJS, with its development repository transitioning to 'RxJS vNext' (which became RxJS v5 and later) after the 4.x series. This version prioritizes a compact bundle (`rx.lite.js`) for everyday use cases, differing from the more modular, tree-shakable approach adopted in subsequent major RxJS releases. It had an irregular release cadence, focusing on bug fixes and performance improvements within the 3.x and 4.x lines before the major architectural shift to modern RxJS.
npm install rx-liteVerified import paths — ran on the pinned version, not inferred.
Demonstrates creating an observable from an array, applying map and filter operators, and subscribing to log values. Also shows converting a Promise to an Observable.
Migrate to the current `rxjs` package (`npm install rxjs`). This involves rewriting import statements and potentially many operator calls due to API changes.
Use `require('rx-lite')` for Node.js environments. For browser usage, include `rx.lite.js` via a `<script>` tag, which exposes `Rx` globally.Upgrade to `rx-lite` version 4.0.6 or newer. If upgrading is not possible, ensure robust error handling within your promises before converting them to Observables.
Use `npm install rxjs` for new projects or when migrating. Consult the official RxJS documentation for current best practices.
Use CommonJS `require`: `const Rx = require('rx-lite'); const Observable = Rx.Observable;`For browser usage, include the `rx.lite.js` file via a `<script>` tag. For bundled applications, ensure your bundler is correctly configured to handle CommonJS modules.
Ensure `rx.lite.js` is loaded via a `<script>` tag before your code, or add `const Rx = require('rx-lite');` at the top of your Node.js file.No dependency data recorded yet.