diff --git a/CHANGELOG.md b/CHANGELOG.md index f5647b4..0245459 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.1.1 +* Drop deprecated React.createClass, React.DOM from test +* Bump to allow for React ^16.0.0 + ## 1.1.0 * Update to Babel 6 and bump node testing version to 5.11.1 diff --git a/package.json b/package.json index 9b711e8..00253f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "interpolate-components", - "version": "1.1.0", + "version": "1.1.1", "description": "Convert strings into structured React components.", "repository": { "type": "git", @@ -33,9 +33,9 @@ "test": "test" }, "dependencies": { - "react": "^0.14.3 || ^15.1.0", + "react": "^0.14.3 || ^15.1.0 || ^16.0.0", "react-addons-create-fragment": "^0.14.3 || ^15.1.0", - "react-dom": "^0.14.3 || ^15.1.0" + "react-dom": "^0.14.3 || ^15.1.0 || ^16.0.0" }, "author": "Bob Ralian (http://github.com/rralian)", "license": "GPL-2.0" diff --git a/test/test.jsx b/test/test.jsx index 85324a7..5b6f220 100644 --- a/test/test.jsx +++ b/test/test.jsx @@ -11,16 +11,13 @@ import React from 'react'; import interpolateComponents from '../src/index'; describe( 'interpolate-components', () => { - const input = React.DOM.input(); - const div = React.DOM.div(); + const input = ; + const div =
; const link = ; const em = ; - const CustomComponentClass = React.createClass( { - displayName: 'CustomComponentClass', - render() { - return { this.props.intro }{ this.props.children }; - } - } ); + const CustomComponentClass = ( { children, intro } ) => ( + { intro }{ children } + ); describe( 'with default container', () => { it( 'should return a react object with a span container', () => {