Skip to content

Releases: yext/closure-templates

2024-02-26-rc1

21 Nov 22:09
Compare
Choose a tag to compare

20190307-patched-2

15 Jan 15:04
Compare
Choose a tag to compare
Yext patches to Closure templates

Patches:
1. Throw exception on non-nullsafe access on null
2. Treat content of text/template script tags as HTML.
3. SoyErrorKind: do our best to return an error message instead of throwing

This introduces a new TYPE attribute context type, for attributes which specify
a MIME type. This doesn't currently change the rules used to parse the attribute
value (though it could); the value is just consumed as any text
attribute. However, it is examined afterwards and can be used to override the
element type. In this case, instead of retaining the SCRIPT element type that
was set when reading the tag name, the element type is set back to NORMAL for
text/template scripts. This causes the context to shift into HTML_PCDATA instead
of JS after consuming the element start end tag (that is, the contents of the
node will be parsed and escaped as mixed HTML content, not Javascript).

20190307-patched

29 Dec 17:26
Compare
Choose a tag to compare
Yext patches to Closure templates

Patches:
1. Throw exception on non-nullsafe access on null
2. Treat content of text/template script tags as HTML.
3. SoyErrorKind: do our best to return an error message instead of throwing

This introduces a new TYPE attribute context type, for attributes which specify
a MIME type. This doesn't currently change the rules used to parse the attribute
value (though it could); the value is just consumed as any text
attribute. However, it is examined afterwards and can be used to override the
element type. In this case, instead of retaining the SCRIPT element type that
was set when reading the tag name, the element type is set back to NORMAL for
text/template scripts. This causes the context to shift into HTML_PCDATA instead
of JS after consuming the element start end tag (that is, the contents of the
node will be parsed and escaped as mixed HTML content, not Javascript).

2020-08-24

02 Dec 16:30
Compare
Choose a tag to compare

Patched version of the 2020-08-24 upstream closure-templates release.

The patch treats the contents of <script type="text/template"> as a HTML context.

20190307

03 Dec 14:18
Compare
Choose a tag to compare

Pre-built artifacts for the 2019-03-07 release

20170808: Yext patches to Closure templates

08 May 01:34
Compare
Choose a tag to compare
Patches:
1. Add PoParser and PoGenerator (com.google.template.soy.pomsgplugin)
2. Throw exception on non-nullsafe access on null
3. Treat content of text/template script tags as HTML.

This introduces a new TYPE attribute context type, for attributes which specify
a MIME type. This doesn't currently change the rules used to parse the attribute
value (though it could); the value is just consumed as any text
attribute. However, it is examined afterwards and can be used to override the
element type. In this case, instead of retaining the SCRIPT element type that
was set when reading the tag name, the element type is set back to NORMAL for
text/template scripts. This causes the context to shift into HTML_PCDATA instead
of JS after consuming the element start end tag (that is, the contents of the
node will be parsed and escaped as mixed HTML content, not Javascript).