From 5f7114e3959d011a4ac6257ce12575593f103a9d Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Fri, 10 Nov 2017 16:00:59 +0100 Subject: [PATCH 1/2] Bump to allow for React 16, fix test --- CHANGELOG.md | 4 ++++ package.json | 4 ++-- test/test.jsx | 13 +++++-------- 3 files changed, 11 insertions(+), 10 deletions(-) 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..2aee948 100644 --- a/package.json +++ b/package.json @@ -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', () => { From 48275cc0f653f37b903228e86b725dec37b27d9f Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Wed, 15 Nov 2017 11:43:56 +0100 Subject: [PATCH 2/2] Bump package version to 1.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2aee948..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",