lit-html
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -19,2 +19,7 @@ # Change Log | ||
## [1.1.2] - 2019-08-12 | ||
### Fixed | ||
* Fixed a bug where bindings in comments could be written as text in some cases. ([#926](https://github.com/Polymer/lit-html/issues/926)) | ||
## [1.1.1] - 2019-07-09 | ||
@@ -21,0 +26,0 @@ |
@@ -19,2 +19,3 @@ /** | ||
import { boundAttributeSuffix, lastAttributeNameRegex, marker, nodeMarker } from './template.js'; | ||
const commentMarker = ` ${marker} `; | ||
/** | ||
@@ -73,3 +74,3 @@ * The return type of `html`, which holds a Template and the values from | ||
// below. | ||
html += s + (isCommentBinding ? marker : nodeMarker); | ||
html += s + (isCommentBinding ? commentMarker : nodeMarker); | ||
} | ||
@@ -76,0 +77,0 @@ else { |
@@ -47,3 +47,3 @@ /** | ||
// TODO(justinfagnani): inject version number at build time | ||
(window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.1.1'); | ||
(window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.1.2'); | ||
/** | ||
@@ -50,0 +50,0 @@ * Interprets a template literal as an HTML template that can efficiently |
{ | ||
"name": "lit-html", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "HTML template literals in JavaScript", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -23,2 +23,4 @@ /** | ||
const commentMarker = ` ${marker} `; | ||
/** | ||
@@ -86,3 +88,3 @@ * The return type of `html`, which holds a Template and the values from | ||
// below. | ||
html += s + (isCommentBinding ? marker : nodeMarker); | ||
html += s + (isCommentBinding ? commentMarker : nodeMarker); | ||
} else { | ||
@@ -89,0 +91,0 @@ // For attributes we use just a marker sentinel, and also append a |
@@ -59,3 +59,3 @@ /** | ||
// TODO(justinfagnani): inject version number at build time | ||
(window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.1.1'); | ||
(window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.1.2'); | ||
@@ -62,0 +62,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
519234
135
6946
1