slumber
2.1.0 - 2024-09-27
v2.1.0
Sep 27 2024 at 19:41 UTC
Added
- Use
SLUMBER_CONFIG_PATH
to customize configuration (not collection) file path #370 - Add a dynamic variant to
!select
chain type, allowing your collection to present a list of values driven from the output of another chain. (thanks @anussel5559) - Cancel in-flight requests with the
cancel
action (bound to escape by default) - Add
slumber new
subcommand to generate new collection files #376 - Add
default
field to profiles- When using the CLI, the
--profile
argument can be omitted to use the default profile
- When using the CLI, the
- Reset edited recipe values to their default using
z
- You can customize the key to whatever you want
- Add
selector_mode
field to chains, to control how single vs multiple results from a JSONPath selector are handled- Previously, if a selector returned multiple results, an error was returned. Now, the result list will be rendered as a JSON array. To return to the previous behavior, set
selector_mode: single
in your chain. - See docs for more
- Previously, if a selector returned multiple results, an error was returned. Now, the result list will be rendered as a JSON array. To return to the previous behavior, set
Changed
- Update file locations to adhere to XDG spec on Linux #371
- Move config file to config dir, which remains the same on MacOS/Windows but changes on Linux. For backward compatibility, the previous path (data dir) will be checked and used if present
- Move log files to state dir on Linux and cache dir on MacOS/Windows
- Database file remains in data dir on all platforms
- Create config file on startup if it doesn't exist
- If config file fails to load during TUI startup, display an error and fall back to the default, rather than crashing
- De-deprecate
{{env.VARIABLE}}
template sources- They'll remain as a simpler alternative to
!env
chains
- They'll remain as a simpler alternative to
Fixed
- Updated the Configuration docs to remove the non-existent
slumber show dir
command (thanks @SVendittelli) - Retain all request history when collection file is reloaded
- Previously, pending and failed requests were lost on reload within a single session. These will still be lost when a session is exited.
- Fix serialization of query parameter lists
- Don't update UI for useless events (e.g. cursor moves)