Skip to content

package:pubviz v5.0.0

Choose a tag to compare

@kevmoo kevmoo released this 23 Mar 04:58
d509eec

Breaking Changes

  • Replaced positional commands (open, create, print) and the --format
    option with a unified --action (-a) flag.
  • Default execution (pubviz) now functions identically to pubviz -a open.
  • Removed the viz/dot.dart library. toDot is now exposed via a an extension
    on VizRoot

New Features

  • Workspaces: Added the --workspace (-w) flag to visualize all linked
    packages within a Dart workspace.
  • Output Controls: Added the --out-dir option to specify a target
    destination for generated HTML and offline capabilities.
  • Serve Mode & Offline Support: Added the serve action which hosts the
    web app locally via dhttpd without booting up a new browser window. The
    open action now uses this local server to bypass strict file:// CORS
    restrictions internally. Additionally, the package now supports complete
    offline functionality by bundling compiled Dart web application assets (JS
    and WASM) directly inside the package.

Web UI Overhaul

  • Completely redesigned the interactive web interface, adding a collapsible
    sidebar for cleaner zooming and display control.
  • Added a z keyboard shortcut to easily toggle graph zoom capabilities.
  • Improved graph styling: Primary packages now utilize a distinct background
    color to distinguish them easily.

Other Improvements & Fixes

  • Modernized workspace discovery inside the codebase by utilizing structured
    JSON data directly from pub tool invocations.
  • Hide version labels for primary node packages intentionally marked
    publish_to: none.
  • Display a helpful warning message if pubviz runs inside a workspace root
    missing the --workspace flag.
  • Fixed a bug causing wrong colors on hover interactions over outdated packages.
  • Require sdk: ^3.10.0.