Skip to content

Commit

Permalink
Expand ops-that-can-eval (#858)
Browse files Browse the repository at this point in the history
Adapting it to the new `cider.nrepl.middleware.reload` ops.
  • Loading branch information
vemv authored Mar 28, 2024
1 parent 77d5d3c commit dd3a83a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Changes

* Refine `ops-that-can-eval` internals, adapting them to the new `cider.nrepl.middleware.reload` ops.

## 0.47.1 (2024-03-24)

### Changes
Expand Down
4 changes: 3 additions & 1 deletion src/cider/nrepl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,9 @@ stack frame of the most recent exception. This op is deprecated, please use the

(def ops-that-can-eval
"Set of nREPL ops that can lead to code being evaluated."
#{"eval" "load-file" "refresh" "refresh-all" "refresh-clear"
#{"eval" "load-file"
"refresh" "refresh-all" "refresh-clear"
"cider.clj-reload/reload" "cider.clj-reload/reload-all" "cider.clj-reload/reload-clear"
"toggle-trace-var" "toggle-trace-ns" "undef" "undef-all"})

(def-wrapper wrap-tracker cider.nrepl.middleware.track-state/handle-tracker
Expand Down

0 comments on commit dd3a83a

Please sign in to comment.