Skip to content

Commit f94ca7f

Browse files
committed
Deprecate the pprint middleware
1 parent 6325340 commit f94ca7f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
* **(Breaking)** Drop support for nREPL 0.2.x (aka `tools.nrepl`). Now nREPL 0.4+ is required.
88
* **(Breaking)** Drop support for Piggieback 0.2.x (aka `cemerick.piggieback`). Now Piggieback 0.3+ is required.
9+
* Deprecated `cider.nrepl.middleware.pprint` if favour of the built-in pprint support in nREPL 0.5.
910

1011
## 0.19.0 (2019-01-01)
1112

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ under `:repl-options`.
130130
cider.nrepl/wrap-macroexpand
131131
cider.nrepl/wrap-ns
132132
cider.nrepl/wrap-spec
133-
cider.nrepl/wrap-pprint
134-
cider.nrepl/wrap-pprint-fn
135133
cider.nrepl/wrap-profile
136134
cider.nrepl/wrap-refresh
137135
cider.nrepl/wrap-resource
@@ -269,9 +267,9 @@ Middleware | Op(s) | Description
269267
`wrap-inspect` |`inspect-(start/refresh/pop/push/reset/get-path)` | Inspect a Clojure expression.
270268
`wrap-macroexpand`| `macroexpand/macroexpand-1/macroexpand-all/macroexpand-step` | Macroexpand a Clojure form.
271269
`wrap-ns` | `ns-list/ns-vars/ns-path/ns-load-all/ns-aliases` | Namespace browsing & loading.
272-
`wrap-spec` | `spec-list/spec-form/spec-example` | Spec browsing.
273-
`wrap-pprint` | | Adds pretty-printing support to code evaluation. It also installs a dummy `pprint-middleware` op. Thus `wrap-pprint` is discoverable through the `describe` op.
274-
`wrap-pprint-fn` | | Provides a common pretty-printing interface for other middlewares that need to perform customisable pretty-printing.
270+
`wrap-spec` | `spec-list/spec-form/spec-example` | Spec browsing.
271+
`wrap-pprint` | - | **(DEPRECATED)** Adds pretty-printing support to code evaluation. It also installs a dummy `pprint-middleware` op. Thus `wrap-pprint` is discoverable through the `describe` op.
272+
`wrap-pprint-fn` | - | **(DEPRECATED)** Provides a common pretty-printing interface for other middlewares that need to perform customisable pretty-printing.
275273
`wrap-profile` | `toggle-profile/toggle-profile-ns/is-var-profiled/profile-summary/profile-var-summary/clear-profile/get-max-samples/set-max-samples` | Provides profiling support based on the [profile](https://github.com/thunknyc/profile) library.
276274
`wrap-refresh` | `refresh/refresh-all/refresh-clear` | Code reloading.
277275
`wrap-resource` | `resource` | Return resource path.

src/cider/nrepl/middleware/pprint.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
(:import
1212
nrepl.transport.Transport))
1313

14-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
14+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15+
;; DEPRECATED in favour of the built-in pprint support added in nREPL 0.5 ;;
16+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17+
18+
;; TODO: Remove this middleware (or make it a no-op).
1519

1620
;; fipp-printer and puget-printer are not loaded in the main `(ns)` form
1721
;; because they are optional features that take hundreds of milliseconds

0 commit comments

Comments
 (0)