bloc_preview 1.0.3
bloc_preview: ^1.0.3 copied to clipboard
A zero-config BLoC state inspector with a built-in web dashboard. Visualize state changes, events, and errors in real time in your browser.
1.0.3 #
- Fixed
toString()parser truncating ISO-8601 values (for example2026-05-05T12:13:14.123Z) to just the leading year. - Improved numeric token parsing so mixed tokens that start with digits (e.g. timestamps, semantic versions, UUID-like values) remain full strings.
- Fixed map parsing edge case where unquoted keys like
createdAt: ...could lead to incorrect value parsing. - Added regression tests for common API payload patterns (ISO dates with offsets, URLs, JWT-like tokens, semantic versions, numeric values).
1.0.2 #
- Fixed
toString()parser truncating values with non-ASCII characters (e.g. Polish letters like "Biały") in lists and object fields. - Fixed URLs inside lists being truncated to the scheme prefix (
"https"instead of the full URL), causing only the first list item to be parsed.
1.0.1 #
- Fixed package description length for pub.dev conventions.
1.0.0 #
- Initial release.
BlocPreviewObserver- drop-inBlocObserverthat launches a local web dashboard for inspecting BLoC states and events.- Built-in web UI served on
localhostwith real-time WebSocket updates. - Automatic state serialization via
toJson(),JsonEncodable, or intelligenttoString()parsing. - State diff - highlights exactly which fields changed between the previous and current state in every transition and change event.
- Performance timeline - measures milliseconds between events per bloc and flags slow transitions (>100ms) in the UI.
- Snapshot export - one-click "Copy JSON" button to export any state to the clipboard for bug reports or test fixtures.
- Bloc lifecycle map - horizontal bar chart visualising when each bloc was created and closed, helping detect memory leaks and unnecessary rebuilds.
- Event frequency monitor - tracks events per second for each bloc and warns when the rate exceeds 10 ev/s (event storm detection).
- State size tracker - reports the serialised size of each state and warns when it exceeds 5 KB, helping spot unbounded state growth.
- Configurable server port, host, and event history limit via
PreviewConfig.