Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 785dfd2

Browse files
committed
update version
1 parent 6f37c73 commit 785dfd2

File tree

6 files changed

+48
-12
lines changed

6 files changed

+48
-12
lines changed

package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "babel-plugin-jsx-dom-expressions",
33
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
4-
"version": "0.9.15",
4+
"version": "0.10.0",
55
"author": "Ryan Carniato",
66
"license": "MIT",
77
"repository": {
@@ -19,7 +19,7 @@
1919
},
2020
"devDependencies": {
2121
"@babel/core": "7.4.5",
22-
"babel-plugin-tester": "^6.2.1",
22+
"babel-plugin-tester": "^6.4.0",
2323
"coveralls": "3.0.4",
2424
"dom-expressions": "~0.9.10",
2525
"jest": "^24.8.0",

test/__fixtures__/customElements/code.js

+6
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@ const template3 = (
1010
<my-element>
1111
<header slot='head'>Title</header>
1212
</my-element>
13+
)
14+
15+
const template4 = (
16+
<>
17+
<slot name='head'></slot>
18+
</>
1319
)

test/__fixtures__/customElements/output.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { wrap as _$wrap } from "r-dom";
33
import { currentContext as _$currentContext } from "r-dom";
44

55
const _tmpl$ = _$template("<my-element></my-element>"),
6-
_tmpl$2 = _$template("<my-element><header slot='head'>Title</header></my-element>");
6+
_tmpl$2 = _$template("<my-element><header slot='head'>Title</header></my-element>"),
7+
_tmpl$3 = _$template("<slot name='head'></slot>");
78

89
const template = function () {
910
const _el$ = _tmpl$.content.firstChild.cloneNode(true);
@@ -31,4 +32,12 @@ const template3 = function () {
3132

3233
_el$3._context = _$currentContext();
3334
return _el$3;
35+
}();
36+
37+
const template4 = function () {
38+
const _el$4 = _tmpl$3.content.cloneNode(true),
39+
_el$5 = _el$4.firstChild;
40+
41+
_el$5._context = _$currentContext();
42+
return _el$4;
3443
}();

test/__fixtures__/flow/code.js

+7
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,11 @@ const template6 = (
6060
<StaticChild />
6161
<$ when={condition}><p>Content</p></$>
6262
</div>
63+
)
64+
65+
const template7 = (
66+
<div>
67+
<$ when={condition1}><p>Content1</p></$>
68+
<$ when={condition2}><p>Content2</p></$>
69+
</div>
6370
)

test/__fixtures__/flow/output.js

+15-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ const _tmpl$ = _$template("<div></div><div></div>"),
1414
_tmpl$5 = _$template("<div>Loading...</div>"),
1515
_tmpl$6 = _$template("<style></style><div class='isolated'>In a Portal</div>"),
1616
_tmpl$7 = _$template("<div>Route not Found</div>"),
17-
_tmpl$8 = _$template("<p>Content</p>");
17+
_tmpl$8 = _$template("<p>Content</p>"),
18+
_tmpl$9 = _$template("<div><!----></div>"),
19+
_tmpl$10 = _$template("<p>Content1</p>"),
20+
_tmpl$11 = _$template("<p>Content2</p>");
1821

1922
const list = [{
2023
id: 1,
@@ -141,4 +144,15 @@ const template6 = function () {
141144
_$when(_el$24, () => condition, () => _tmpl$8.content.firstChild.cloneNode(true), {}, null);
142145

143146
return _el$24;
147+
}();
148+
149+
const template7 = function () {
150+
const _el$26 = _tmpl$9.content.firstChild.cloneNode(true),
151+
_el$27 = _el$26.firstChild;
152+
153+
_$when(_el$26, () => condition1, () => _tmpl$10.content.firstChild.cloneNode(true), {}, _el$27);
154+
155+
_$when(_el$26, () => condition2, () => _tmpl$11.content.firstChild.cloneNode(true), {}, null);
156+
157+
return _el$26;
144158
}();

0 commit comments

Comments
 (0)