Repository navigation
Plunger 0.7.0
Agents get answers they can use and cannot fail on quietly, requests can be organised in groups, and every change is written to a log the database is derived from.
Changed
- A workflow's steps are drawn as a flow: a card per step on a rail of connected dots, the dots coloured by the last or running run (a diamond is a step that can be skipped, a square one that can end the run), the values a step hands to later ones written on the connector, and the values the workflow needs from outside listed on top.
- The Variables window explains itself with a help icon instead of a paragraph.
- Variables are no longer a tab in every request, because they are shared by all requests, the command line and agents. Tools > Variables opens them in a window, and each request shows only the ones it uses under the URL (
Uses base = https://..., token = [secret]). A request opened from the history shows the values it was sent with (non-secret ones; a secret is never kept) (#191). - The Auth tab is gone: Authorization is a header (
Authorization: Bearer {{token}}). A Bearer token saved in the old tab becomes the secret variablebearerand is no longer added to every request behind your back. Ctrl+1 to Ctrl+4 now open Params, Headers, Body and Options (#192).
Added
- A response says how fast it started (
ttfb_ms) and where a redirect went:final_urlandredirects(each hop's status and destination), absent when there were none (#94). - A binary response gives its
sha256and a sniffeddetected_type(png,pdf,zip, ...), so an agent can check a download without receiving the bytes (#99). include_headers(all,noneorrelevant) onsend_requestand--include-headersonplunger send; the relevant ones are location, link, retry-after, content type and disposition, etag, rate-limit headers and the names of cookies (#104).plunger send --out FILEwrites the whole body to a file (raw bytes for a binary one) and prints the result withbody_file(#139).- Export a request as Python (
requests) and as HTTPie, from File > Copy as and File > Export request (#136, #137). - The audit log is moved aside as
audit.<seq>.logwhen it passes 20 MB, and the new file starts with a snapshot that names the hash it continues, soplunger audit verifystill passes on each file. - A tab without a name is titled by the last two path segments (
users/42, not42) (#127), and a tab restored after a restart still says how its history request went (#164). - An audit log: every change to the history, saved requests, workflows and agent variables is first written as a line of
audit.log(who, when, what; no secrets, no response bodies), each line hash-chained to the one before, and applied to the database from it.plunger audit verifyfinds an edited, removed or reordered line (exit 4),audit showlists the changes,audit headprints the newest hash, andaudit rebuildrecreates the database from the log. An existing database starts its log with a snapshot (#199, #200). - Groups for saved requests and workflows, like Postman's folders:
Jira, orJira/Issuesfor one level under it. The sidebar shows a collapsible header per group, and a row's right-click menu has Move to group (existing groups, no group, or a new name). Over MCP,save_requestandsave_workflowtakegroup,list_saved_requestsandlist_workflowstake agroupfilter (a group includes what is under it), and a newset_grouptool moves one without re-sending it. On the command line:--grouponsaveandworkflow save,saved --group G,workflow list --group G,saved group <name> <group>andworkflow group <name> <group>(#194). - Placeholders can have a default,
{{priority|Medium}}, and can be optional,{{epic?}}: with no value, an optional one is left out of a JSON body (the member or array item goes) and is empty elsewhere. One request can create an issue with an optional assignee, labels and epic (#184). - Workflow steps can accept several statuses (
"expect_status": [200, 404]) and can be conditional:skip_ifleaves a step out andstop_ifends the run successfully, with{{a}} == b,{{a}} != bor a truthy value, and{{previous_status}}for the status before (#188). - A workflow
extractcan be"scope": "run", kept for that run only, andrun_workflowtakescleanup: true(--cleanupon the command line) to remove the variables a run stored, so values from old runs do not pile up (#189). selectfilters also take!=,[?(@.status!='Done')](#183).- File > Copy as and File > Export request can write a request as a JavaScript
fetchcall that runs in Node.js 18+. A JSON body becomesJSON.stringify({...}), and{{variables}}stay as placeholders. selectandextractunderstand a filter,[?(@.name=='Done')](equality only), so an item can be found by name in one call (#183). Withselect, the response headers are left out (#182), a path through anullisnullinstead of a problem (#187), and when a path cannot be read the whole response is returned with the reason instead of nothing (#186).
Fixed
- An agent's common mistakes are understood or refused by name instead of failing oddly or being ignored:
headersas a list of{name, value}objects or"Name: value"strings (#89);jsongiven as a string that holds a JSON object; an unknown field such asretriesis refused with the list of real ones; aformvalue that is a file path (@C:/x.txt) is refused with how to upload (#108); atimeout_secsoutside 1 to 600 and a non-standard method are noted inproblems; the undefined-variable message tells an agent what it can do rather than pointing at the window. - Under the URL, a placeholder that is optional (
{{who?}}) or has a default ({{x|dflt}}) is no longer shown as undefined. - A value could change the shape of a request outside a JSON body. In a header, a line break started another header; in a form body,
&or=added fields; in a URL path,?or#began a query or fragment. A header value with a line break is now refused, form values are percent-encoded and path values keep?,#, spaces and control characters from changing the URL (#190). - A raw body sent with a JSON content type (how an agent sends
"labels": {{labels}}, which is not a JSON value it could pass asjson) is filled in as JSON: values are escaped and optional members can be left out.--jsonon the command line accepts a body with such placeholders (#190). - An object that an optional placeholder leaves empty is removed with it (
"assignee": {"name": "{{who?}}"}). - A
{{variable}}inside a JSON body string is now JSON-escaped. A value with a newline, a quote or a control character made the server refuse the body, and a backslash could silently turn into a different character (C:\temparrived as a tab andemp). A value outside a string is inserted as JSON, so a variable can be a number or a whole array or object. A value you pre-escaped as a workaround is now escaped again: pass the real text (#180). save_requestkept neitherselectnortimeout_secs(norfollow_redirects,insecure_tls), so the next send of the saved request used the defaults. They are saved, shown byget_saved_requestand used when it is sent by name. Fields that cannot be kept (variables,use_saved_bearer,extract,max_body_chars) are listed innot_saved, and aselectthat could not work is refused when saving (#181).- Help > Documentation and Help > Report an issue did nothing since 0.6.0 (the toolkit upgrade dropped the feature that opens the browser). They open the browser again.
Full Changelog: v0.6.0...v0.7.0