Skip to content

Commit

Permalink
[#47 #48] goog.structs/Map is deprecated in Closure Library (@roman01la)
Browse files Browse the repository at this point in the history
WARNING: Use of undeclared Var goog.structs/Map at line 2683 target-prod/taoensso/encore.cljs
I assume cljs master has updated Closure Library as well.

Looking at Closure docs it says that Map struct is deprecated in favor of ES6 Map
https://google.github.io/closure-library/api/goog.structs.Map.html
  • Loading branch information
roman01la authored and ptaoussanis committed Nov 17, 2019
1 parent f86f6c4 commit af1dd28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/taoensso/encore.cljx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
[goog.net.XhrIo :as gxhr]
[goog.net.XhrIoPool :as gxhr-pool]
[goog.Uri.QueryData :as gquery-data]
[goog.structs :as gstructs]
[goog.net.EventType]
[goog.net.ErrorCode]
[taoensso.truss :as truss])
Expand Down Expand Up @@ -2867,7 +2866,7 @@
(fn url-encode
([params]
(when (seq params)
(-> params clj->js gstructs/Map. gquery-data/createFromMap .toString)))
(-> params clj->js gquery-data/createFromMap .toString)))

([uri params]
(let [qstr (url-encode params)
Expand Down

0 comments on commit af1dd28

Please sign in to comment.