Skip to content

Commit 4802b92

Browse files
chore(package): upgrade react and react-dom to 16
And update test fixtures as `ReactDOMServer.renderToStaticMarkup()` has changed in its output compared to the previous major version.
1 parent 56c20fa commit 4802b92

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@
3737
"eslint": "^4.1.1",
3838
"istanbul": "^0.4.5",
3939
"mocha": "^3.4.2",
40-
"react": "^15.4",
41-
"react-dom": "^15.4",
40+
"react": "^16",
41+
"react-dom": "^16",
4242
"webpack": "^3.0.0"
4343
},
4444
"peerDependencies": {
45-
"react": "^15.4",
46-
"react-dom": "^15.4"
45+
"react": "^0.14 || ^15 || ^16"
4746
},
4847
"license": "MIT"
4948
}

test/helpers/mocks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"multiple": "<p>foo</p><p>bar</p>",
55
"nested": "<div><p>foo <em>bar</em></p></div>",
66
"attributes": "<hr id=\"foo\" class=\"bar baz\" style=\"background: #fff; text-align: center;\" data-foo=\"bar\" />",
7-
"complex": "<html><head><meta charset=\"utf-8\"/><title>Title</title><link rel=\"stylesheet\" href=\"style.css\"/></head><body><header id=\"header\">Header</header><h1 style=\"color:#000;font-size:42px;\">Heading</h1><hr/><p>Paragraph</p><img src=\"image.jpg\"/><div class=\"class1 class2\">Some <em>text</em>.</div><script>alert();</script></body></html>",
7+
"complex": "<html><head><meta charSet=\"utf-8\"/><title>Title</title><link rel=\"stylesheet\" href=\"style.css\"/></head><body><header id=\"header\">Header</header><h1 style=\"color:#000;font-size:42px\">Heading</h1><hr/><p>Paragraph</p><img src=\"image.jpg\"/><div class=\"class1 class2\">Some <em>text</em>.</div><script>alert();</script></body></html>",
88
"textarea": "<textarea>foo</textarea>",
99
"script": "<script>alert(1 < 2);</script>",
1010
"style": "<style>body > .foo { color: #f00; }</style>",

0 commit comments

Comments
 (0)