Skip to content

david-luna/basol

Repository files navigation

basol

Basic observer library

GitHub license Issues Build Status Coverage Status Code Size Weekly downloads

Summary

This is a personal implementation of the observer pattern taking rxjs as a template for its API. This lib does not pretend to be a substitute or competitor of such library but rather a place for experiementation and learning.

The library tries to mimic the same API for producers (here called factories) and operators. Method signatures are extracted from the original rxjs docs.

Tests try to be as accurate as possible but the behavior may differ. Also the implementations of the factories and operators do not use utils and I tried to avoid any internal dependency.

Release notes

[0.5.0]

  • BREAKING CHANGE: the package has been migrated from TypeScript to JavaScript + JsDocs for types. In this migration I've decided to make the package ESM only so require would fail to load the lib. The new flag --experimental-require-module can be used to load the lib if your app is in commonjs format. Checkout the docs.
  • Add tap operator

[0.4.0]

  • Fix barrel files to expose latest operators and factories

[0.3.0]

  • Add mergeMap operator

[0.2.0]

  • Add withLatestFrom operator

[0.1.0]

  • Add combineLatest factory method

[0.0.3]

  • Add fromEventPattern factory method