1.0.0-beta.30 • Published 10 months ago
diffhtml-middleware-verify-state v1.0.0-beta.30
<±/> diffHTML Verify State Middleware
Stable Version: 1.0.0-beta.30
Asserts that a render properly updated the old Virtual Tree and the DOM. Will recursively search for inconsistencies, displays warnings unless debugging is enabled, then it throws errors instead.
Installation
npm install diffhtml-middleware-verify-state
Example
import { use } from 'diffhtml';
import verifyState from 'diffhtml-middleware-verify-state';
// Throw when debug is truthy (when location.search has `?debug`)
use(verifyState({ debug: location.search.includes('debug') }));
This is not a very performant middleware, so please do not use this in production where performance is critical. Use in development.
1.0.0-beta.30
10 months ago
1.0.0-beta.29
2 years ago
1.0.0-beta.28
2 years ago
1.0.0-beta.26
2 years ago
1.0.0-beta.27
2 years ago
1.0.0-beta.24
2 years ago
1.0.0-beta.25
2 years ago
1.0.0-beta.22
2 years ago
1.0.0-beta.23
2 years ago
1.0.0-beta.21
2 years ago
1.0.0-beta.20
3 years ago
1.0.0-beta.19
3 years ago
1.0.0-beta.18
4 years ago
1.0.0-beta.17
4 years ago
1.0.0-beta.16
4 years ago
1.0.0-beta.15
4 years ago
1.0.0-beta.14
4 years ago
1.0.0-beta.13
4 years ago
1.0.0-beta.12
4 years ago
1.0.0-beta.11
4 years ago
1.0.0-beta.9
7 years ago
1.0.0-beta.8
7 years ago
1.0.0-beta.7
7 years ago
1.0.0-beta.6
7 years ago
1.0.0-beta.5
7 years ago
1.0.0-beta.4
7 years ago
1.0.0-beta.3
7 years ago
1.0.0-beta.2
7 years ago
1.0.0-beta.1
7 years ago
1.0.0-beta
7 years ago