Skip to content

Commit

Permalink
bin 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Sep 8, 2024
1 parent 2149599 commit e1840cb
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

## [2.0.0] - 2024-09-06

### Changed
2.0 is headlined by a highly requested feature: one-off edits to recipes! If you need to tweak a query parameter or edit a body, but don't want to modify your collection file, you can now highlight the value in question and hit `e` to modify it. The override will be retained until you modify the collection file or exit Slumber, at which point it will revert to its original value.

- `!json` bodies are now prettified when sent to the server
- Use `vim` as default editor if none is configured
- Move logs back to a shared file
- They had been split into one file per session, which made them hard to find
- The file is now eventually deleted once it exceeds a certain size
Aside from the major new feature, there is one breaking change to the escape syntax of templates. The old backslash-based syntax was fraught with edge cases and unpredictable behavior. This new syntax is simpler to use, simpler to implement, and much more bulletproof. This syntax was rare to use to begin with, so **most people will be unimpacted by this change.**

### Fixed
Here's the full list of changes:

### Breaking

- Replace backslash escape sequence with a simpler scheme based on `_`
- For example, previously a key would be escaped as `\{{`. This introduced complexities around how to handle additional backslashes, and also required doubling up backslashes in YAML
- The new equivalent would be `{_{`, which parses as `{{`
- The goal of this change is to make escaping behavior simpler and more consistent
- For more info on the new behavior, [see the docs](https://slumber.lucaspickering.me/book/api/request_collection/template.html#escape-sequences)
- Remove `--log` CLI argument
- See note on log files in Changed section for why this is no longer necessary

### Added

- Fix Basic auth being label as Bearer auth in Recipe Authentication pane
- Use correct binding for `search` action in the placeholder of the response filter textbox
- Previously it was hardcoded to display the default of `/`
- Fix response body filter not applying on new responses
- Support quoted arguments in editor commands
- Fix certain UI values not persisting correctly
- Propagate unconsumed key events from text boxes
- E.g. F5 will now refresh the collection while a text box is in focus
- Redraw TUI when terminal is resized
- Clamp text window scroll state when window is resized or text changes
- Fix extraneous input events when exiting Vim [#351](https://github.com/LucasPickering/slumber/issues/351)
- Improve performance and fix crashes when handling large request/response bodies [#356](https://github.com/LucasPickering/slumber/issues/356)
- Further improvements for large bodies will be coming in the future
- Edit recipe values (query params, headers, etc.) in the TUI to provide one-off values
- Press `e` on any value you want to edit (you can [customize the key](https://slumber.lucaspickering.me/book/api/configuration/input_bindings.html))
- Add `editor` field to the config, allowing you to customize what editor Slumber opens for in-app editing
- [See docs for more](https://slumber.lucaspickering.me/book/api/configuration/editor.html)
- Add `!select` chain type, allowing your collection to prompt the user to select a value from a static list (thanks @anussel5559)
- [See docs for more](https://slumber.lucaspickering.me/book/api/request_collection/chain_source.html#select)

## [1.8.1] - 2024-08-11

Expand Down

0 comments on commit e1840cb

Please sign in to comment.