mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Compare commits
14 Commits
main
...
redux-devt
Author | SHA1 | Date | |
---|---|---|---|
|
881c4aff19 | ||
|
3532205436 | ||
|
902dda1387 | ||
|
5962b35a02 | ||
|
29bd168787 | ||
|
820de23074 | ||
|
b60a0e0da6 | ||
|
6eb15c911f | ||
|
7bf1471a1a | ||
|
0294e0ae2a | ||
|
7160bab14b | ||
|
e20cca7807 | ||
|
b0ad332f2e | ||
|
bf7a8ba836 |
|
@ -3,10 +3,5 @@
|
|||
"version": "independent",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"command": {
|
||||
"publish": {
|
||||
"allowBranch": "master"
|
||||
}
|
||||
},
|
||||
"ignoreChanges": ["**/test/**", "**/examples/**", "**/*.md"]
|
||||
}
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
"private": true,
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^10.0.0",
|
||||
"cross-env": "^7.0.2",
|
||||
"eslint": "^5.12.0",
|
||||
"eslint-config-prettier": "^3.3.0",
|
||||
"eslint-plugin-babel": "^5.3.0",
|
||||
"eslint-plugin-prettier": "^3.0.1",
|
||||
"eslint-plugin-react": "7.12.3",
|
||||
"jest": "^24.1.0",
|
||||
"lerna": "3.9.0",
|
||||
"lerna": "^3.22.1",
|
||||
"lint-staged": "^8.1.0",
|
||||
"prettier": "^1.15.3"
|
||||
},
|
||||
|
@ -16,7 +17,7 @@
|
|||
"lerna": "lerna",
|
||||
"build": "lerna run prepare --since master --stream --sort -- --scripts-prepend-node-path",
|
||||
"build:all": "lerna run build",
|
||||
"publish": "lerna publish",
|
||||
"publish": "lerna publish --conventional-commits --create-release github",
|
||||
"canary": "lerna publish --canary preminor --npm-tag alpha",
|
||||
"next": "lerna publish --bump prerelease --npm-tag next",
|
||||
"lint": "eslint '**/*.{js,jsx}' --cache",
|
||||
|
@ -28,7 +29,7 @@
|
|||
"test:all": "jest"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
"packages/redux-devtools"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=8.0.0"
|
||||
|
|
20
packages/redux-devtools/CHANGELOG.md
Normal file
20
packages/redux-devtools/CHANGELOG.md
Normal 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
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "redux-devtools",
|
||||
"version": "3.5.0",
|
||||
"name": "redux-devtools-testing",
|
||||
"version": "3.7.0",
|
||||
"description": "Redux DevTools with hot reloading and time travel",
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
|
@ -52,8 +52,8 @@
|
|||
"redux": "^3.5.2 || ^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"prop-types": "^15.5.7",
|
||||
"lodash": "^4.2.0",
|
||||
"prop-types": "^15.5.7",
|
||||
"redux-devtools-instrument": "^1.9.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
import React, { Children, Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect, Provider, ReactReduxContext } from 'react-redux';
|
||||
import instrument from 'redux-devtools-instrument';
|
||||
import React, { Children, Component } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { connect, Provider, ReactReduxContext } from "react-redux";
|
||||
import instrument from "redux-devtools-instrument";
|
||||
|
||||
function logError(type) {
|
||||
/* eslint-disable no-console */
|
||||
if (type === 'NoStore') {
|
||||
if (type === "NoStore") {
|
||||
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 ' +
|
||||
'<Provider store={store}>.'
|
||||
"<Provider store={store}>."
|
||||
);
|
||||
} else {
|
||||
console.error(
|
||||
'Redux DevTools could not render. Did you forget to include ' +
|
||||
'DevTools.instrument() in your store enhancer chain before ' +
|
||||
'using createStore()?'
|
||||
"Redux DevTools could not render. Did you forget to include " +
|
||||
"DevTools.instrument() in your store enhancer chain before " +
|
||||
"using createStore()?"
|
||||
);
|
||||
}
|
||||
/* eslint-enable no-console */
|
||||
|
@ -47,13 +47,13 @@ export default function createDevTools(children) {
|
|||
|
||||
if (ReactReduxContext) {
|
||||
if (this.props.store && !this.props.store.liftedStore) {
|
||||
logError('NoLiftedStore');
|
||||
logError("NoLiftedStore");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (!props.store && !context.store) {
|
||||
logError('NoStore');
|
||||
logError("NoStore");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ export default function createDevTools(children) {
|
|||
}
|
||||
|
||||
if (!this.liftedStore) {
|
||||
logError('NoLiftedStore');
|
||||
logError("NoLiftedStore");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -85,11 +85,11 @@ export default function createDevTools(children) {
|
|||
<ReactReduxContext.Consumer>
|
||||
{props => {
|
||||
if (!props || !props.store) {
|
||||
logError('NoStore');
|
||||
logError("NoStore");
|
||||
return null;
|
||||
}
|
||||
if (!props.store.liftedStore) {
|
||||
logError('NoLiftedStore');
|
||||
logError("NoLiftedStore");
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue
Block a user