Skip to content

Commit 0bb9e9c

Browse files
authored
bump Closure Compiler to v20250820 (#291)
- bump version - remove diagnostic that no longer exists - remove DependencyOptions logic that does not work anymore
1 parent 6c3f127 commit 0bb9e9c

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{:paths ["src/main/clojure" "src/main/cljs" "resources"]
22
:deps
3-
{com.google.javascript/closure-compiler {:mvn/version "v20250402"}
3+
{com.google.javascript/closure-compiler {:mvn/version "v20250820"}
44
com.cognitect/transit-java {:mvn/version "1.0.362"}
55
org.clojure/clojure {:mvn/version "1.10.0"}
66
org.clojure/core.specs.alpha {:mvn/version "0.1.24"}

pom.template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>com.google.javascript</groupId>
3232
<artifactId>closure-compiler</artifactId>
33-
<version>v20250402</version>
33+
<version>v20250820</version>
3434
</dependency>
3535
<dependency>
3636
<groupId>org.clojure</groupId>

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
[org.clojure/test.check "1.1.1" :scope "test"]
1616
[com.cognitect/transit-java "1.0.362"]
1717
[org.clojure/google-closure-library "0.0-20250515-f04e4c0e"]
18-
[com.google.javascript/closure-compiler "v20250402"]]
18+
[com.google.javascript/closure-compiler "v20250820"]]
1919
:profiles {:1.6 {:dependencies [[org.clojure/clojure "1.6.0"]]}
2020
:uberjar {:aot :all :main cljs.main}
2121
:closure-snapshot {:dependencies [[com.google.javascript/closure-compiler-unshaded "1.0-SNAPSHOT"]]}}

script/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
CLOJURE_RELEASE="1.9.0"
66
SPEC_ALPHA_RELEASE="0.1.143"
77
CORE_SPECS_ALPHA_RELEASE="0.1.24"
8-
CLOSURE_RELEASE="20250402"
8+
CLOSURE_RELEASE="20250820"
99
GCLOSURE_LIB_RELEASE="0.0-20250515-f04e4c0e"
1010
TREADER_RELEASE="1.3.6"
1111
TEST_CHECK_RELEASE="1.1.1"

src/main/clojure/cljs/closure.clj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@
185185
:report-unknown-types DiagnosticGroups/REPORT_UNKNOWN_TYPES
186186
:strict-missing-properties DiagnosticGroups/STRICT_MISSING_PROPERTIES
187187
:strict-module-dep-check DiagnosticGroups/STRICT_MODULE_DEP_CHECK
188-
:strict-requires DiagnosticGroups/STRICT_REQUIRES
189188
:suspicious-code DiagnosticGroups/SUSPICIOUS_CODE
190189
:too-many-type-params DiagnosticGroups/TOO_MANY_TYPE_PARAMS
191190
:tweaks DiagnosticGroups/TWEAKS
@@ -1970,13 +1969,7 @@
19701969
(.toSource closure-compiler ast-root)))))
19711970

19721971
(defn- sorting-dependency-options []
1973-
(try
1974-
(if (contains? (:flags (clojure.reflect/reflect DependencyOptions)) :abstract)
1975-
(eval '(do
1976-
(import '(com.google.javascript.jscomp DependencyOptions))
1977-
(DependencyOptions/sortOnly)))
1978-
(doto (DependencyOptions.)
1979-
(.setDependencySorting true)))))
1972+
(DependencyOptions/sortOnly))
19801973

19811974
(defn convert-js-modules
19821975
"Takes a list JavaScript modules as an IJavaScript and rewrites them into a Google

0 commit comments

Comments
 (0)