Skip to content

Commit 4ed546b

Browse files
authored
Upgrade closure_library to v20230802 (#619)
1 parent 7d8eb79 commit 4ed546b

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

closure/repositories.bzl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,11 @@ def com_google_javascript_closure_compiler():
713713
def com_google_javascript_closure_library():
714714
http_archive(
715715
name = "com_google_javascript_closure_library",
716-
sha256 = "4da36963d2ef97b6e3d72fbe74c5db4bff2878150f9785299db5c94b4c42f2e6",
717-
strip_prefix = "closure-library-20220301",
718-
urls = ["https://github.com/google/closure-library/archive/v20220301.tar.gz"],
716+
sha256 = "64fc4eac972197af13a827a928fff8a2f4711d9a3411147c115a0fc6c1322f70",
717+
strip_prefix = "closure-library-20230802",
718+
patch_args = ["-p1"],
719+
urls = ["https://github.com/google/closure-library/archive/v20230802.tar.gz"],
720+
patches = ["@io_bazel_rules_closure//closure:soy_build.patch"],
719721
)
720722

721723
def com_google_jsinterop_annotations():
@@ -799,6 +801,8 @@ def com_google_template_soy_jssrc():
799801
sha256 = "b8863e45841cb89e9c1e29d46eaabfb4599724d85ef081dbb6f9dfc6ffc58c99",
800802
strip_prefix = "closure-templates-a1c02e60ae88ed1b7db92722ea25ac7d396514fc/javascript",
801803
urls = ["https://github.com/google/closure-templates/archive/a1c02e60ae88ed1b7db92722ea25ac7d396514fc.tar.gz"],
804+
patch_args = ["-p1"],
805+
patches = ["@io_bazel_rules_closure//closure:template.patch"],
802806
build_file = str(Label("//closure/templates:soy_jssrc.BUILD")),
803807
)
804808

closure/soy_build.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- a/closure/goog/soy/BUILD
2+
+++ b/closure/goog/soy/BUILD
3+
@@ -21,7 +21,6 @@ closure_js_library(
4+
"//closure/goog/i18n:bidi",
5+
"//closure/goog/string:const",
6+
"//closure/goog/uri",
7+
- "//third_party/javascript/safevalues",
8+
],
9+
)
10+

closure/template.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- a/soyutils_usegoog.js
2+
+++ b/soyutils_usegoog.js
3+
@@ -149,7 +149,7 @@ soydata.SanitizedHtml.from = function(value) {
4+
}
5+
if (value instanceof goog.html.SafeHtml) {
6+
return soydata.VERY_UNSAFE.ordainSanitizedHtml(
7+
- goog.html.SafeHtml.unwrap(value), value.getDirection());
8+
+ goog.html.SafeHtml.unwrap(value));
9+
}
10+
return soydata.VERY_UNSAFE.ordainSanitizedHtml(
11+
soy.esc.$$escapeHtmlHelper(String(value)), soydata.getContentDir(value));
12+

0 commit comments

Comments
 (0)