@untool/react
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -6,2 +6,19 @@ # Change Log | ||
# [1.4.0](https://github.com/untool/untool/compare/v1.3.1...v1.4.0) (2019-03-18) | ||
### Bug Fixes | ||
* **react:** switch to supported react router imports ([1e3f04b](https://github.com/untool/untool/commit/1e3f04b)) | ||
### Features | ||
* **react:** implement `runChecks` hook ([1d61f0a](https://github.com/untool/untool/commit/1d61f0a)) | ||
* **react:** implement diagnose hook ([859e58b](https://github.com/untool/untool/commit/859e58b)) | ||
## [1.3.1](https://github.com/untool/untool/compare/v1.3.0...v1.3.1) (2019-03-07) | ||
@@ -8,0 +25,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const { isValidElement, createElement, Component } = require('react'); | ||
const { default: withRouter } = require('react-router-dom/es/withRouter'); | ||
const { withRouter } = require('react-router-dom'); | ||
const isPlainObject = require('is-plain-object'); | ||
@@ -8,0 +8,0 @@ const PropTypes = require('prop-types'); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
const { unmountComponentAtNode, hydrate, render } = require('react-dom'); | ||
const { default: BrowserRouter } = require('react-router-dom/es/BrowserRouter'); | ||
const { BrowserRouter } = require('react-router-dom'); | ||
@@ -10,0 +10,0 @@ const isPlainObject = require('is-plain-object'); |
@@ -20,2 +20,5 @@ 'use strict'; | ||
} | ||
diagnose({ diagnoseDuplicatePackages }) { | ||
diagnoseDuplicatePackages('react', 'react-dom'); | ||
} | ||
}; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
const { renderToString } = require('react-dom/server'); | ||
const { default: StaticRouter } = require('react-router-dom/es/StaticRouter'); | ||
const { StaticRouter } = require('react-router-dom'); | ||
const { | ||
@@ -10,0 +10,0 @@ Helmet: { renderStatic }, |
{ | ||
"name": "@untool/react", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "untool react mixin", | ||
@@ -23,5 +23,6 @@ "browser": "lib/runtime.js", | ||
"@babel/preset-react": "^7.0.0", | ||
"@untool/core": "^1.3.1", | ||
"@untool/core": "^1.4.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.19", | ||
"clone": "^2.1.2", | ||
"duplitect": "^2.0.0", | ||
"is-plain-object": "^2.0.4", | ||
@@ -36,3 +37,3 @@ "mixinable": "^4.0.0", | ||
"react-helmet": "^5.2.0", | ||
"react-router-dom": "^4.2.2" | ||
"react-router-dom": "^4.2.2 || ^5.0.0" | ||
}, | ||
@@ -42,3 +43,3 @@ "engines": { | ||
}, | ||
"gitHead": "fba0e40a25a957ea0fb5341f4f633444003955c2" | ||
"gitHead": "9794dbba7cc661486c9ea1216afb580b3c5c7537" | ||
} |
# `@untool/react` | ||
[![travis](https://img.shields.io/travis/untool/untool/master.svg)](https://travis-ci.org/untool/untool) [![npm](https://img.shields.io/npm/v/@untool%2Freact.svg)](https://www.npmjs.com/package/@untool%2Freact) | ||
[![travis](https://img.shields.io/travis/untool/untool/master.svg)](https://travis-ci.org/untool/untool) [![npm](https://img.shields.io/npm/v/@untool%2Freact.svg)](https://www.npmjs.com/package/@untool/react) | ||
@@ -11,2 +11,4 @@ `@untool/react`'s main runtime exports are a couple of React components that allow implementers to declaratively control server (or system) behavior. Additionally, `@untool/react` features full support for [`react-router`](https://github.com/ReactTraining/react-router)'s and [`react-helmet`](https://github.com/nfl/react-helmet)'s components. | ||
During application startup, `@untool/react` runs a check to determine if certain npm packages are installed multiple times. If you see warnings telling you that this is the case, you will want to make sure you get rid of these duplicates, as they will almost certainly break things in interesting ways. | ||
### Installation | ||
@@ -13,0 +15,0 @@ |
40485
486
197
14
+ Addedduplitect@^2.0.0
+ Addedduplitect@2.0.1(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedreact-router@5.3.4(transitive)
+ Addedreact-router-dom@5.3.4(transitive)
- Removedhoist-non-react-statics@2.5.5(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedreact-router@4.3.1(transitive)
- Removedreact-router-dom@4.3.1(transitive)
- Removedwarning@4.0.3(transitive)
Updated@untool/core@^1.4.0