File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ## 3.9.1
6
+
7
+ * ` suggest-libspecs ` op: support collections for ` :only ` values.
8
+
5
9
## 3.9.0
6
10
7
11
* [ #401 ] ( https://github.com/clojure-emacs/refactor-nrepl/issues/401 ) ` resolve-missing ` no longer returns the wrong type
Original file line number Diff line number Diff line change 13
13
^:inline-dep [org.clojure/tools.analyzer.jvm " 1.2.3" ]
14
14
^:inline-dep [org.clojure/tools.namespace " 1.4.4" :exclusions [org.clojure/tools.reader]]
15
15
^:inline-dep [org.clojure/tools.reader " 1.3.6" ]
16
- ^:inline-dep [cider/orchard " 0.12 .0" ]
16
+ ^:inline-dep [cider/orchard " 0.21 .0" ]
17
17
^:inline-dep [cljfmt " 0.9.2" :exclusions [rewrite-clj rewrite-cljs]]
18
18
^:inline-dep [clj-commons/fs " 1.6.310" ]
19
19
^:inline-dep [rewrite-clj " 1.1.47" ]
34
34
:unresolved-tree false }
35
35
:filespecs [{:type :bytes :path " refactor-nrepl/refactor-nrepl/project.clj" :bytes ~(slurp " project.clj" )}]
36
36
:profiles {; ; Clojure versions matrix
37
- :provided {:dependencies [[cider/cider-nrepl " 0.31 .0" ]
37
+ :provided {:dependencies [[cider/cider-nrepl " 0.44 .0" ]
38
38
[org.clojure/clojure " 1.11.1" ]
39
39
; ; For satisfying `:pedantic?`:
40
40
[com.google.code.findbugs/jsr305 " 3.0.2" ]
Original file line number Diff line number Diff line change 14
14
(conj coll x)
15
15
[x]))
16
16
17
+ (def to-sym
18
+ (comp symbol
19
+ name)) ; ; `name` for Clojure <= 1.9 compat
20
+
17
21
(def parse-preferred-aliases
18
22
(memoize (fn parse-preferred-aliases* [preferred-aliases]
19
23
(let [preferred-aliases (into []
23
27
x)))
24
28
(read-string preferred-aliases))
25
29
m (volatile! {})]
26
- (doseq [[prefix ns-name _only-keyword only] (mapv (partial mapv (comp symbol
27
- name)) ; ; `name` for Clojure <= 1.9 compat
30
+ (doseq [[prefix ns-name _only-keyword only] (mapv (partial mapv (fn [x]
31
+ (cond->> x
32
+ (coll? x) (mapv to-sym)
33
+ (not (coll? x)) to-sym)))
28
34
preferred-aliases)
29
35
:let [files (ns-parser/ns-sym->ns-filenames ns-name)
30
36
only (or only [:clj :cljs ])
Original file line number Diff line number Diff line change 82
82
clojure.set]}} [" [something-else :as set]" " [clojure.set :as set]" ]
83
83
84
84
; ; Story 4:
85
- " io" " clj" " clj" [[" io" " clojure.java.io" :only :clj ]] '{:cljs {io [something-else]}} [" [clojure.java.io :as io]" ]
85
+ " io" " clj" " clj" [[" io" " clojure.java.io" :only :clj ]] '{:cljs {io [something-else]}} [" [clojure.java.io :as io]" ]
86
+ ; ; https://github.com/clojure-emacs/clj-refactor.el/issues/556 :
87
+ " io" " clj" " clj" [[" io" " clojure.java.io" :only [:clj ]]] '{:cljs {io [something-else]}} [" [clojure.java.io :as io]" ]
86
88
; ; Story 5:
87
89
" io" " clj" " clj" [[" io" " clojure.java.io" :only :clj ]] '{:clj {io [something-else]}} [" [something-else :as io]" ]
88
90
" io" " clj" " clj" [[" io" " something-else" :only :cljs ]] {} [" [clojure.java.io :as io]" ]
You can’t perform that action at this time.
0 commit comments