Skip to main content

devpul 1.1.1 copy "devpul: ^1.1.1" to clipboard
devpul: ^1.1.1 copied to clipboard

Stream HTTP calls, errors and custom events from a running Dart or Flutter app to a browser UI over the Dart VM service. Debug builds only.

1.1.1 #

  • The README lists the plugins and the ways to open DevPul.
  • The UI's home page highlights its code snippets.

1.1.0 #

  • Mock rules for HTTP calls, set from the UI or by agents through the http.mocks.set handler: respond with a status, headers and body, fail as a network error, delay, or pause the request or response to edit it before it goes on. Rules live in the app until it restarts; the UI can keep them per app and send them to the next run.
  • DevpulHttp.request(mockable: true) opts an adapter's calls in; DevpulHttpCall.mock, pauseRequest and pauseResponse are what it acts on.
  • http.paused, http.resumed and http.mocks events; HTTP events of a call a rule changed carry mock.
  • The UI's HTTP tab has Mocks: a rule from a captured call, rules turned on and off, and paused calls edited in the detail panel.
  • Replay: DevpulHttp.request(replay:, replayBody:) lets the UI and agents send an adapter's call again, edited or not, through the http.sent and http.replay handlers. The app keeps the last 100 such calls. The UI's request detail has Replay.
  • DevpulCause posts an event and names it as the cause of the HTTP calls made inside run. http.request carries cause: the call a replay repeats, an action run from the UI, or an event. The UI shows it under Started by and opens it on a click, marks such rows, filters them with cause:, and lists the calls an event started in its detail.
  • Devpul.events streams every event as it is posted.
  • Test capture: devpul_test writes a session file for each failing test; the UI names its run after the test, and devpul mcp <file> reads it.
  • Bug reports: More > Bug report saves a session file with a screenshot and the device of a Flutter app, and the UI shows them when the file opens. Session files carry them in report.
  • Plugin API: context.requests, context.onRequests and context.openRequest give plugins the HTTP calls their events started.
  • The UI folds framework frames in stack traces, lists events by time, keeps lifecycle events out of Events until turned on, shows a run column only with more than one run, and leaves out what DDS replays from an ended run.
  • A plugin's source and hash follow a hot reload: the UI asks for ext.devpul.info again on IsolateReload, and the app posts app.info when a source changed.

1.0.0 #

  • Stable: event envelope v 1, handshake protocol 1 and plugin API 1.
  • Removed curl, shellQuote, normalizeBody, normalizeHeaders, truncatedKey, DevpulConfig.ignores, DevpulForm.flatten, DevpulParam.read and DevpulParam.toJson from the public API.
  • The UI waits between reconnect attempts with the connection closed.

1.0.0-dev.1 #

  • Requires Dart 3.8.
  • Events carry their fields in data: {v, session, seq, ts, tags?, data}. The UI asks apps on older versions to update.
  • Removed Devpul.sessionId and Devpul.schemaVersion.
  • The app prints a link to the DevPul tab of DevTools, connected to it. DevpulConfig.uiUrl links another page with #connect=, printLink: false turns it off.
  • Ships the UI as a DevTools extension.
  • ext.devpul.info handshake with the protocol version, actions, plugins and limits; app.info events replace app.actions.
  • Devpul.action takes params (DevpulParam.text, number, flag, choice); the callback receives their values.
  • Devpul.limit mutes or rate-limits a kind; the UI can set limits through ext.devpul.limit.
  • Devpul.plugin offers a browser plugin to the UI under its plugin id; the handshake lists its origin, description and the SHA-256 of its source.
  • Devpul.included: true in debug builds and in native profile builds compiled with --dart-define=DEVPUL_PROFILE=true, false in every other build.
  • Devpul.handle answers plugin and agent requests through ext.devpul.call; the handshake lists handlers with their description. A writes: true handler runs only while Allow writes is on in the UI; agents reach writes and sensitive: true handlers only through call_plugin_write.
  • Devpul.log takes any object: a closure is called only when DevPul is enabled, other values log their toString().
  • DevpulConfig.ansiColors is nullable; null follows Devpul.ansiColorsByDefault.

0.2.0 #

  • Devpul.log for the Logs tab.
  • Devpul.action adds buttons to the UI's Actions menu that run code in the app.
  • Devpul.error takes information and silent.
  • DevpulHttpCall.response takes finalUrl.
  • The backlog always includes the latest session and actions.

0.1.0 #

  • Initial release.
0
likes
160
points
106
downloads
screenshot

Documentation

Documentation
API reference

Publisher

verified publishersaradgajurel.com.np

Weekly Downloads

Stream HTTP calls, errors and custom events from a running Dart or Flutter app to a browser UI over the Dart VM service. Debug builds only.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#debugging #network #logging #http #devtools

License

MIT (license)

More

Packages that depend on devpul