1.6.4 • Published 6 years ago

self-tracing-hyperapp v1.6.4

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Self-Tracing Hyperapp

Call self-tracing-hyperapp with an additional truthy argument to enable real-time self-logging:

let main = app(state, actions, view, container, true);

This version of Hyperapp is non-breaking, you can swap it out in any existing V1 hyperapp project with no additional changes necessary.


npm install self-tracing-hyperapp


Additional Functionality

Additional Properties :

  • .log- Accumulates all acitons calls, parial states, and v-dom rerenders through the lifecycle of your application. Action calls and their direct downstream effects are logged under the same entry ID.
  • .log.actions - Stores a mirror of the application's actions with functions replaced by true/false to indicate if it is being tracked.

Additional Methods:

argsbehavior
.logActionsnothing, a string, or array of stringsprints all actions, a top-level action, or a nested action
.logStatenothing, a string, or array of stringprints full state, a top-level state property, or a nested state
.logVdomnothing, or a stringprints the whole v-dom, or the element with id matching your argument
.logIgnorea string, or array of stringswill exclude the designated top-level, or nested action from the log. the partial state and vdom from this action will also be ignored
.logTracka string, or array of stringswill include the designated top-level or nested action in the log. the partial state and vdom from this action will be logged
.logFlagstrings are best, but anything workspushes your arg into the log
.logConfig{ actions: boolean, state: boolean, vdom: boolean }globally tracks or ignores all actions, state changes, or vdom changes


1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago