mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-28 17:09:46 +03:00
Compare commits
7 Commits
main
...
redux-devt
Author | SHA1 | Date | |
---|---|---|---|
|
6eb15c911f | ||
|
7bf1471a1a | ||
|
0294e0ae2a | ||
|
7160bab14b | ||
|
e20cca7807 | ||
|
b0ad332f2e | ||
|
bf7a8ba836 |
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,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 +28,7 @@
|
||||||
"test:all": "jest"
|
"test:all": "jest"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/redux-devtools"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.0.0"
|
"node": ">=8.0.0"
|
||||||
|
|
8
packages/redux-devtools/CHANGELOG.md
Normal file
8
packages/redux-devtools/CHANGELOG.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Change Log
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [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",
|
"name": "redux-devtools-testing",
|
||||||
"version": "3.5.0",
|
"version": "3.6.1",
|
||||||
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 not 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 (
|
||||||
|
|
|
@ -14065,6 +14065,15 @@ redux-devtools-themes@^1.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
base16 "^1.0.0"
|
base16 "^1.0.0"
|
||||||
|
|
||||||
|
redux-devtools@^3.1.0, redux-devtools@^3.3.2, redux-devtools@^3.4.0, redux-devtools@^3.5.0:
|
||||||
|
version "3.5.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/redux-devtools/-/redux-devtools-3.5.0.tgz#d69ab76d4f0f8abdf6d24bcf5954d7a1aa2b6827"
|
||||||
|
integrity sha512-pGU8TZNvWxPaCCE432AGm6H6alQbAz80gQM5CzM3SjX9/oSNu/HPF17xFdPQJOXasqyih1Gv167kZDTRe7r0iQ==
|
||||||
|
dependencies:
|
||||||
|
lodash "^4.2.0"
|
||||||
|
prop-types "^15.5.7"
|
||||||
|
redux-devtools-instrument "^1.9.0"
|
||||||
|
|
||||||
redux-logger@^2.2.1, redux-logger@^2.5.2, redux-logger@^2.8.1:
|
redux-logger@^2.2.1, redux-logger@^2.5.2, redux-logger@^2.8.1:
|
||||||
version "2.10.2"
|
version "2.10.2"
|
||||||
resolved "https://registry.yarnpkg.com/redux-logger/-/redux-logger-2.10.2.tgz#3c5a5f0a6f32577c1deadf6655f257f82c6c3937"
|
resolved "https://registry.yarnpkg.com/redux-logger/-/redux-logger-2.10.2.tgz#3c5a5f0a6f32577c1deadf6655f257f82c6c3937"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user