Compare commits

...

21 Commits

Author SHA1 Message Date
Nathan Bierema
bd08d9a088 Publish
- react-json-tree-testing@0.12.0
2020-07-30 19:21:30 -04:00
Nathan Bierema
dbe415d823 docs(react-json-tree): update react-json-tree documentation 2020-07-30 19:17:54 -04:00
Nathan Bierema
1582ab47e3 fix(react-json-tree): allow data for JSONTree to be any 2020-07-30 19:17:09 -04:00
Nathan Bierema
f849492296 feat(react-json-tree)!: update react-json-tree peerDependency on react
BREAKING CHANGE: drop support for react@<16.3.0
2020-07-30 19:16:14 -04:00
Nathan Bierema
0c67f0ec29 feat(react-json-tree): mark deprecated React lifecycle methods as unsafe 2020-07-30 18:06:34 -04:00
Nathan Bierema
3c558a66af Stash 2020-07-30 18:04:48 -04:00
Nathan Bierema
1a16c46d9a Stash 2020-07-30 18:04:06 -04:00
Nathan Bierema
881c4aff19 Publish
- redux-devtools-testing@3.7.0
2020-07-28 15:58:54 -04:00
Nathan Bierema
3532205436 Remove token 2020-07-28 15:58:08 -04:00
Nathan Bierema
902dda1387 New token 2020-07-28 15:55:02 -04:00
Nathan Bierema
5962b35a02 Update lerna 2020-07-28 15:49:02 -04:00
Nathan Bierema
29bd168787 Misspelled 2020-07-28 15:46:40 -04:00
Nathan Bierema
820de23074 Change 2020-07-28 15:46:11 -04:00
Nathan Bierema
b60a0e0da6 feat(redux-devtools): update react-redux peer dependency 2020-07-28 15:43:30 -04:00
Nathan Bierema
6eb15c911f Publish
- redux-devtools-testing@3.6.1
2020-07-28 14:58:28 -04:00
Nathan Bierema
7bf1471a1a Change that 2020-07-28 14:57:54 -04:00
Nathan Bierema
0294e0ae2a Change 2020-07-28 14:56:12 -04:00
Nathan Bierema
7160bab14b Publish
- redux-devtools-testing@3.6.0
2020-07-28 14:54:27 -04:00
Nathan Bierema
e20cca7807 Stash 2020-07-28 14:49:54 -04:00
Nathan Bierema
b0ad332f2e That 2020-07-28 14:48:00 -04:00
Nathan Bierema
bf7a8ba836 Stash 2020-07-28 14:45:14 -04:00
9 changed files with 1564 additions and 1279 deletions

View File

@ -3,10 +3,5 @@
"version": "independent", "version": "independent",
"npmClient": "yarn", "npmClient": "yarn",
"useWorkspaces": true, "useWorkspaces": true,
"command": {
"publish": {
"allowBranch": "master"
}
},
"ignoreChanges": ["**/test/**", "**/examples/**", "**/*.md"] "ignoreChanges": ["**/test/**", "**/examples/**", "**/*.md"]
} }

View File

@ -2,13 +2,14 @@
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"babel-eslint": "^10.0.0", "babel-eslint": "^10.0.0",
"cross-env": "^7.0.2",
"eslint": "^5.12.0", "eslint": "^5.12.0",
"eslint-config-prettier": "^3.3.0", "eslint-config-prettier": "^3.3.0",
"eslint-plugin-babel": "^5.3.0", "eslint-plugin-babel": "^5.3.0",
"eslint-plugin-prettier": "^3.0.1", "eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "7.12.3", "eslint-plugin-react": "7.12.3",
"jest": "^24.1.0", "jest": "^24.1.0",
"lerna": "3.9.0", "lerna": "^3.22.1",
"lint-staged": "^8.1.0", "lint-staged": "^8.1.0",
"prettier": "^1.15.3" "prettier": "^1.15.3"
}, },
@ -16,7 +17,7 @@
"lerna": "lerna", "lerna": "lerna",
"build": "lerna run prepare --since master --stream --sort -- --scripts-prepend-node-path", "build": "lerna run prepare --since master --stream --sort -- --scripts-prepend-node-path",
"build:all": "lerna run build", "build:all": "lerna run build",
"publish": "lerna publish", "publish": "lerna publish --conventional-commits --create-release github",
"canary": "lerna publish --canary preminor --npm-tag alpha", "canary": "lerna publish --canary preminor --npm-tag alpha",
"next": "lerna publish --bump prerelease --npm-tag next", "next": "lerna publish --bump prerelease --npm-tag next",
"lint": "eslint '**/*.{js,jsx}' --cache", "lint": "eslint '**/*.{js,jsx}' --cache",
@ -28,7 +29,7 @@
"test:all": "jest" "test:all": "jest"
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/react-json-tree"
], ],
"engines": { "engines": {
"node": ">=8.0.0" "node": ">=8.0.0"

View File

@ -0,0 +1,24 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 0.12.0 (2020-07-30)
### Bug Fixes
* **react-json-tree:** allow data for JSONTree to be any ([1582ab4](https://github.com/reduxjs/redux-devtools/commit/1582ab47e3fe41c6c26743d89d3b97e84ef68f92))
* feat(react-json-tree)!: update react-json-tree peerDependency on react ([f849492](https://github.com/reduxjs/redux-devtools/commit/f84949229624d118501c8fc84fb3561ad86de9bf))
### Features
* **react-json-tree:** mark deprecated React lifecycle methods as unsafe ([0c67f0e](https://github.com/reduxjs/redux-devtools/commit/0c67f0ec29482f68c5ceb79d4c8872467c9aba78))
### BREAKING CHANGES
* drop support for react@<16.3.0

View File

@ -1,6 +1,6 @@
{ {
"name": "react-json-tree", "name": "react-json-tree-testing",
"version": "0.11.2", "version": "0.12.0",
"description": "React JSON Viewer Component, Extracted from redux-devtools", "description": "React JSON Viewer Component, Extracted from redux-devtools",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {

View File

@ -1,8 +1,8 @@
import React from 'react'; import React from "react";
import PropTypes from 'prop-types'; import PropTypes from "prop-types";
/** /**
* Renders simple values (eg. strings, numbers, booleans, etc) * Renders simple values (eg. strings, numbers, booleans, etc)
*/ */
const JSONValueNode = ({ const JSONValueNode = ({
@ -14,11 +14,11 @@ const JSONValueNode = ({
value, value,
valueGetter valueGetter
}) => ( }) => (
<li {...styling('value', nodeType, keyPath)}> <li {...styling("value", nodeType, keyPath)}>
<label {...styling(['label', 'valueLabel'], nodeType, keyPath)}> <label {...styling(["label", "valueLabel"], nodeType, keyPath)}>
{labelRenderer(keyPath, nodeType, false, false)} {labelRenderer(keyPath, nodeType, false, false)}
</label> </label>
<span {...styling('valueText', nodeType, keyPath)}> <span {...styling("valueText", nodeType, keyPath)}>
{valueRenderer(valueGetter(value), value, ...keyPath)} {valueRenderer(valueGetter(value), value, ...keyPath)}
</span> </span>
</li> </li>

View File

@ -0,0 +1,20 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.7.0](https://github.com/reduxjs/redux-devtools/compare/redux-devtools-testing@3.6.1...redux-devtools-testing@3.7.0) (2020-07-28)
### Features
* **redux-devtools:** update react-redux peer dependency ([b60a0e0](https://github.com/reduxjs/redux-devtools/commit/b60a0e0da6c973991bbb06bc19a477bfba320107))
## [3.6.1](https://github.com/reduxjs/redux-devtools/compare/redux-devtools-testing@3.6.0...redux-devtools-testing@3.6.1) (2020-07-28)
**Note:** Version bump only for package redux-devtools-testing

View File

@ -1,6 +1,6 @@
{ {
"name": "redux-devtools", "name": "redux-devtools",
"version": "3.5.0", "version": "3.7.0",
"description": "Redux DevTools with hot reloading and time travel", "description": "Redux DevTools with hot reloading and time travel",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {
@ -52,8 +52,8 @@
"redux": "^3.5.2 || ^4.0.0" "redux": "^3.5.2 || ^4.0.0"
}, },
"dependencies": { "dependencies": {
"prop-types": "^15.5.7",
"lodash": "^4.2.0", "lodash": "^4.2.0",
"prop-types": "^15.5.7",
"redux-devtools-instrument": "^1.9.0" "redux-devtools-instrument": "^1.9.0"
} }
} }

View File

@ -1,21 +1,21 @@
import React, { Children, Component } from 'react'; import React, { Children, Component } from "react";
import PropTypes from 'prop-types'; import PropTypes from "prop-types";
import { connect, Provider, ReactReduxContext } from 'react-redux'; import { connect, Provider, ReactReduxContext } from "react-redux";
import instrument from 'redux-devtools-instrument'; import instrument from "redux-devtools-instrument";
function logError(type) { function logError(type) {
/* eslint-disable no-console */ /* eslint-disable no-console */
if (type === 'NoStore') { if (type === "NoStore") {
console.error( console.error(
'Redux DevTools could not render. You must pass the Redux store ' + "Redux DevTools could nota render. You must pass the Redux store " +
'to <DevTools> either as a "store" prop or by wrapping it in a ' + 'to <DevTools> either as a "store" prop or by wrapping it in a ' +
'<Provider store={store}>.' "<Provider store={store}>."
); );
} else { } else {
console.error( console.error(
'Redux DevTools could not render. Did you forget to include ' + "Redux DevTools could not render. Did you forget to include " +
'DevTools.instrument() in your store enhancer chain before ' + "DevTools.instrument() in your store enhancer chain before " +
'using createStore()?' "using createStore()?"
); );
} }
/* eslint-enable no-console */ /* eslint-enable no-console */
@ -47,13 +47,13 @@ export default function createDevTools(children) {
if (ReactReduxContext) { if (ReactReduxContext) {
if (this.props.store && !this.props.store.liftedStore) { if (this.props.store && !this.props.store.liftedStore) {
logError('NoLiftedStore'); logError("NoLiftedStore");
} }
return; return;
} }
if (!props.store && !context.store) { if (!props.store && !context.store) {
logError('NoStore'); logError("NoStore");
return; return;
} }
@ -64,7 +64,7 @@ export default function createDevTools(children) {
} }
if (!this.liftedStore) { if (!this.liftedStore) {
logError('NoLiftedStore'); logError("NoLiftedStore");
} }
} }
@ -85,11 +85,11 @@ export default function createDevTools(children) {
<ReactReduxContext.Consumer> <ReactReduxContext.Consumer>
{props => { {props => {
if (!props || !props.store) { if (!props || !props.store) {
logError('NoStore'); logError("NoStore");
return null; return null;
} }
if (!props.store.liftedStore) { if (!props.store.liftedStore) {
logError('NoLiftedStore'); logError("NoLiftedStore");
return null; return null;
} }
return ( return (

2737
yarn.lock

File diff suppressed because it is too large Load Diff