Skip to content

Commit d105ee1

Browse files
committed
Updated to latest dependencies & domtagger to fix sparse attributes issue
1 parent d452814 commit d105ee1

File tree

6 files changed

+22
-27
lines changed

6 files changed

+22
-27
lines changed

esm.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ var hyperHTML = (function (document) {
10831083
// Use a better RegExp to find last attribute instead
10841084
// of trusting `name` is what we are looking for.
10851085
// Thanks IE/Edge, I hate you both.
1086-
new RegExp('^(?:|[\\S\\s]*?\\s)(' + name + ')\\s*=\\s*(\'|")', 'i'), '$1');
1086+
new RegExp('^(?:|[\\S\\s]*?\\s)(' + name + ')\\s*=\\s*(\'|")[\\S\\s]*', 'i'), '$1');
10871087
var value = attributes[realName] || // the following ignore is covered by browsers
10881088
// while basicHTML is already case-sensitive
10891089

min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,19 @@
121121
"url": "https://github.com/WebReflection/hyperhtml/issues"
122122
},
123123
"devDependencies": {
124-
"@babel/core": "^7.4.5",
125-
"@babel/preset-env": "^7.4.5",
124+
"@babel/core": "^7.6.4",
125+
"@babel/preset-env": "^7.6.3",
126126
"ascjs": "^3.0.1",
127-
"basichtml": "^1.0.0",
128-
"coveralls": "^3.0.4",
127+
"basichtml": "^1.1.1",
128+
"coveralls": "^3.0.7",
129129
"drop-babel-typeof": "^1.0.3",
130130
"istanbul": "^0.4.5",
131131
"npm-dollar": "^2.2.1",
132-
"rollup": "^1.16.4",
132+
"rollup": "^1.24.0",
133133
"rollup-plugin-babel": "^4.3.3",
134134
"rollup-plugin-node-resolve": "^5.2.0",
135135
"tressa": "^0.3.1",
136-
"uglify-js": "^3.6.0"
136+
"uglify-js": "^3.6.2"
137137
},
138138
"greenkeeper": {
139139
"ignore": [
@@ -153,7 +153,7 @@
153153
"@ungap/weakmap": "^0.1.4",
154154
"disconnected": "^0.2.1",
155155
"domdiff": "^2.1.0",
156-
"domtagger": "^0.5.9",
156+
"domtagger": "^0.5.10",
157157
"hyperhtml-style": "^0.1.2",
158158
"hyperhtml-wire": "^2.1.0",
159159
"lightercollective": "^0.3.0"

test/basic.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@
77
document.write('<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-shim.min.js"><' + '/script>');
88
document.write('<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-sham.min.js"><' + '/script>');
99
}</script>
10-
<script>document.write('<script src="../index.js?_=' + Math.random() + '"><' + '/script>')</script>
10+
<script>document.write('<script src="../index.js"><' + '/script>')</script>
1111
<script>
1212
this.onload = function () {
1313
'use strict';
14-
var _templateObject = _taggedTemplateLiteral(['\n <div> ', ' </div>\n'], ['\n <div> ', ' </div>\n']);
15-
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16-
var text = 'I am OK';
17-
try {
18-
document.body.appendChild(hyperHTML.wire()(_templateObject, text));
19-
} catch(e) { document.body.textContent = e.message }
14+
document.body.appendChild(hyperHTML.wire()`<div class="block__element${Math.random() < .5 ? '--modifier' : ''}">asd</div>`);
2015
};
2116
</script>
2217
</head>

umd.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)