Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bump to allow for React 16, fix test (#12)
Browse files Browse the repository at this point in the history
* Bump to allow for React 16, fix test
* Bump package version to 1.1.1
  • Loading branch information
ockham authored Nov 15, 2017
1 parent ad0b008 commit cdc8905
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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 <[email protected]> (http://github.com/rralian)",
"license": "GPL-2.0"
Expand Down
13 changes: 5 additions & 8 deletions test/test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <input />;
const div = <div />;
const link = <a href="#" />;
const em = <em />;
const CustomComponentClass = React.createClass( {
displayName: 'CustomComponentClass',
render() {
return <span className="special">{ this.props.intro }{ this.props.children }</span>;
}
} );
const CustomComponentClass = ( { children, intro } ) => (
<span className="special">{ intro }{ children }</span>
);

describe( 'with default container', () => {
it( 'should return a react object with a span container', () => {
Expand Down

0 comments on commit cdc8905

Please sign in to comment.