8.0.2 (2022-01-01)
- Add
exports
topackage.json
. (0ccd456)
8.0.1 (2021-05-20)
- Use
SafeSubscriber
constructor 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
maxLogged
method to the spy. (284fdbc)
7.4.0 (2018-12-13)
- Add a
query
method 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-
Error
values are passed toerror
notifications. Use linting to avoid this. See therxjs-throw-error
rule inrxjs-tslint-rules
and thethrow-error
rule intslint-etc
. (16c1779)
7.2.0 (2018-09-03)
- Added a
global
option tocreate
so that a name other thanspy
can be specified for the global that's used in the console. (9b8b74c)
7.1.1 (2018-09-03)
- Renamed the
rxSpy
global (as used in the console) tospy
. UsingrxSpy
is still supported, but it's deprecated. (8dab99b)
7.1.0 (2018-08-26)
- Added a
CyclePlugin
to detect cyclicnext
notifications. (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
sourceMaps
are 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
mappedStackTrace
observable that resolves a stack trace (ifsourceMaps
is enabled). - The
show
command 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
spy
method, callcreate
which will return a instance that implements theSpy
interface. - The
plugins
option has been removed anddefaultPlugins: boolean
has been added. - The
plugin
andplugins
methods have changed. When usingdefaultPlugins: false
, callplug
on the spy instance to add one or more plugins. - The
name
parameter has been removed from theplugin
/plug
method. - A read-only
name
property has been added to thePlugin
interface. - The
subscribers
map has been removed from theobservable
snapshot and replaced with asubscriptions
map. - In the snapshots,
merges
has been renamed toflattenings
. - It's no longer possible to undo the entire spy via the console.
- The console global -
spy
- won't exist untilcreate
has been called. undefined
is favoured for return values, etc. rather thannull
.
- When calling
show
,console.error
is no longer used for the unsubscribed indicator. - For memory reasons, raw snapshots, etc. are no longer logged to the console when calling
show
orlog
. - For performance reasons, grouping has been removed from
log
messages. - Patching of
Observable.prototype
has been removed. - The
GraphPlugin
now uses a singlesetInterval
when 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
LetPlugin
so 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
DevTools
plugin 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
show
now includes the observable's 'path' - a string representation of the composed source and operators. - A
hide
operator has been added and can be used to ensure a composed observable is hidden from the spy. - An
audit
option 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
GraphPlugin
was 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
next
fiasco.
5.2.0 (2017-11-08)
- Stats: Add graph-related stats (included only if the
GraphPlugin
is configured). (c377506)
5.1.1 (2017-11-07)
- The
sourceMaps
option 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-
Error
instance values are passed in anerror
notification, 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:
flush
has been removed fromSnapshotPlugin
. The flushing mechanism has been simplified and delegated entirely to theGraphPlugin
. Flushing is now fully automatic and is controlled by thekeptDuration
option that can be passed tospy
.destination
androotDestination
have been renamed tosink
androotSink
.
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
keptDuration
option 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-spy
should no longer contintually consume memory (unlesskeptDuration
is set to-1
).
4.1.0 (2017-10-31)
- Allow plugin options to be passed to
spy
. - Add the
sourceMaps
option for theStackTracePlugin
. (3bd322e) - Add the
keptDuration
option for theSnapshotPlugin
. (723de5b)
4.0.0 (2017-10-23)
- A lettable/pipeable
tag
operator has been added (under theoperators
directory); find
,findAll
anddetect
methods 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:
complete
anderror
have been moved from the observable snapshot to the subscription snapshot;- snapshots no longer include the
ref
; and finalDestination
has been renamed torootDestination
.
3.1.4 (2017-08-08)
- Logging: Only
show
subscribers can have multiple relevant subscriptions;log
subscribers will have only one relevant subscription. (38d792c)
3.1.3 (2017-08-02)
- Logging: Don't call
toString
onnull
, 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-js
is a non-dev dependency. (2597fb0)
3.1.0 (2017-08-01)
- Stack traces: Resolve source maps. (78f2b56)
- Dependencies:
stacktrace-js
is 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)