8.0.2 (2022-01-01)
- Add
exportstopackage.json. (0ccd456)
8.0.1 (2021-05-20)
- Use
SafeSubscriberconstructor intoSubscriber. (ae1fddc)
8.0.0 (2021-05-19)
- Upgrade to RxJS version 7. (8ceece8)
7.5.3 (2020-08-16)
- Distribute ESM bundles.
7.5.2 (2020-06-22)
- Added
rxjs-report-usage.
7.5.1 (2019-03-10)
- Export
CyclePlugin. (3066820)
7.5.0 (2018-12-13)
- Add a
maxLoggedmethod to the spy. (284fdbc)
7.4.0 (2018-12-13)
- Add a
querymethod to the spy. (d8431f5)
7.3.1 (2018-12-04)
- Make the
rxSpy-is-deprecated message comprehensible. (b6f2a10)
7.3.0 (2018-10-06)
- Add notification matching to
log. This can be used to log only certain notification types. For example, to log subscriptions and unsubscriptions for all observables, type this into the consolespy.log(() => true, /(subscribe|unsubscribe)/). (dcec5db)
7.2.1 (2018-09-20)
- Don't warn if non-
Errorvalues are passed toerrornotifications. Use linting to avoid this. See therxjs-throw-errorrule inrxjs-tslint-rulesand thethrow-errorrule intslint-etc. (16c1779)
7.2.0 (2018-09-03)
- Added a
globaloption tocreateso that a name other thanspycan be specified for the global that's used in the console. (9b8b74c)
7.1.1 (2018-09-03)
- Renamed the
rxSpyglobal (as used in the console) tospy. UsingrxSpyis still supported, but it's deprecated. (8dab99b)
7.1.0 (2018-08-26)
- Added a
CyclePluginto detect cyclicnextnotifications. (ff62d8d)
7.0.4 (2018-08-25)
- Teardown the internal subscription in spy implementation of
subscribe. (27fc0aa)
7.0.3 (2018-08-25)
- Fixed a problem with the chaining of subscriptions/subscribers in the spy implementation of
subscribe. See #37. (5a18222)
7.0.2 (2018-05-16)
- Log config-related warnings only once. (891c861)
7.0.1 (2018-04-27)
- Fix RxJS peer dependency. (164068c)
7.0.0 (2018-04-25)
- Upgrade to RxJS version 6.
- Rename the UMD global to
rxjsSpy.
6.1.0 (2017-12-18)
- When
sourceMapsare enabled, memory usage has been hugely reduced. The resolution of the stack traces using source maps is now deferred and is wrapped in an observable.
- Subscription snapshots now include a
mappedStackTraceobservable that resolves a stack trace (ifsourceMapsis enabled). - The
showcommand now limits the maximum number of observables that can be logged to the console.
6.0.0 (2017-12-07)
- The module API has been replaced with a factory and a class/interface. Instead of calling a
spymethod, callcreatewhich will return a instance that implements theSpyinterface. - The
pluginsoption has been removed anddefaultPlugins: booleanhas been added. - The
pluginandpluginsmethods have changed. When usingdefaultPlugins: false, callplugon the spy instance to add one or more plugins. - The
nameparameter has been removed from theplugin/plugmethod. - A read-only
nameproperty has been added to thePlugininterface. - The
subscribersmap has been removed from theobservablesnapshot and replaced with asubscriptionsmap. - In the snapshots,
mergeshas been renamed toflattenings. - It's no longer possible to undo the entire spy via the console.
- The console global -
spy- won't exist untilcreatehas been called. undefinedis favoured for return values, etc. rather thannull.
- When calling
show,console.erroris no longer used for the unsubscribed indicator. - For memory reasons, raw snapshots, etc. are no longer logged to the console when calling
showorlog. - For performance reasons, grouping has been removed from
logmessages. - Patching of
Observable.prototypehas been removed. - The
GraphPluginnow uses a singlesetIntervalwhen cleaning up unsubscribed subscription refs.
- Switched to Webpack.
- When logging, if the observable does not have a tag, its type is logged instead.
- Options have been added to the
LetPluginso that completions from the selected observable can be ignored - so it's possible to return something likeObservable.of(42)without having the spied-upon observable complete. - The
DevToolsplugin has been added (for integration with an almost-ready-for-RC Chrome DevTools extension). - It's now possible to match IDs as well as tags (it's used by the DevTools extension).
- The output from
shownow includes the observable's 'path' - a string representation of the composed source and operators. - A
hideoperator has been added and can be used to ensure a composed observable is hidden from the spy. - An
auditoption has been added to the spy and can be used to audit logged notifications within the specified number of milliseconds - so that logging high-frequency observables will not overwhelm the console.
5.2.3 (2017-11-24)
- Fix a bug that occurred when logging if the
GraphPluginwas enabled without theSnapshotPlugin. (970e184)
5.2.2 (2017-11-23)
- Remove raw snapshots and observables from console logs to avoid leaking memory. (756b32d)
5.2.1 (2017-11-08)
- Fix publishing from
nextfiasco.
5.2.0 (2017-11-08)
- Stats: Add graph-related stats (included only if the
GraphPluginis configured). (c377506)
5.1.1 (2017-11-07)
- The
sourceMapsoption now defaults tofalse.
5.1.0 (2017-11-07)
- Stats: Add a plugin to collect basic stats. (a49344c)
5.0.0 (2017-11-02)
- If non-
Errorinstance values are passed in anerrornotification, a warning is logged to the console.
No breaking changes to the module or console APIs, but the SnapshotPlugin and the snapshots have changed. In particular:
flushhas been removed fromSnapshotPlugin. The flushing mechanism has been simplified and delegated entirely to theGraphPlugin. Flushing is now fully automatic and is controlled by thekeptDurationoption that can be passed tospy.destinationandrootDestinationhave been renamed tosinkandrootSink.
Also, the DevToolsPlugin has been removed and moved to the next branch, as it is a work in progress.
4.1.2 (2017-11-01)
- Upgrade to TypeScript 2.6. (570b915)
4.1.1 (2017-10-31)
-
Add support for the
keptDurationoption to theGraphPlugin. (b048d38)Now, when source or merged subscriptions complete or error, they should be removed from the destination subscription's graph and counters should be incremented to indicate that flushing has occurred. In short,
rxjs-spyshould no longer contintually consume memory (unlesskeptDurationis set to-1).
4.1.0 (2017-10-31)
- Allow plugin options to be passed to
spy. - Add the
sourceMapsoption for theStackTracePlugin. (3bd322e) - Add the
keptDurationoption for theSnapshotPlugin. (723de5b)
4.0.0 (2017-10-23)
- A lettable/pipeable
tagoperator has been added (under theoperatorsdirectory); find,findAllanddetectmethods have been added; and- source maps are now used when obtaining stack traces.
No breaking changes to the module or console APIs, but the Plugin interface and the snapshots have changed. In particular:
completeanderrorhave been moved from the observable snapshot to the subscription snapshot;- snapshots no longer include the
ref; and finalDestinationhas been renamed torootDestination.
3.1.4 (2017-08-08)
- Logging: Only
showsubscribers can have multiple relevant subscriptions;logsubscribers will have only one relevant subscription. (38d792c)
3.1.3 (2017-08-02)
- Logging: Don't call
toStringonnull, etc. and don't include the value in the group name. (6000e24)
3.1.2 (2017-08-01)
- Stack traces: Default to no source maps. (20dbeaa)
3.1.1 (2017-08-01)
- Dependencies:
@types/stacktrace-jsis a non-dev dependency. (2597fb0)
3.1.0 (2017-08-01)
- Stack traces: Resolve source maps. (78f2b56)
- Dependencies:
stacktrace-jsis a non-dev dependency. (28988ef)
3.0.0 (2017-07-27)
No breaking changes to the module or console APIs, but the plugin interface and the snapshots have changed - the changes account for subscribers being able to have multiple subscriptions.
- Snapshots: Include subscription on stack. (6a270e4)
- Snapshots: Rename snapshots. (f3d1992)
- Plugin: Add SubscriptionRef. (953260d)
- Snapshots: Separate records/snapshots. (fd04a76)