Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create devcontainer.json #860

Open
wants to merge 67 commits into
base: chrome-devpanel
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
96bb89c
Upgrade remotedev-serialize to fix #581 regression
zalmoxisus Nov 20, 2018
1f9b192
v2.15.5
zalmoxisus Nov 20, 2018
c89aa20
[Recipes] Using in a typescript project
zalmoxisus Nov 22, 2018
8bbdf99
[Recipes] Applying multiple times with different sets of options
zalmoxisus Nov 22, 2018
a66dd46
Restore store typings (Fix #539) (#578)
scally Nov 24, 2018
ede072e
Bump npm package version
zalmoxisus Nov 24, 2018
9f6c7aa
Deprecate window.devToolsExtension
zalmoxisus Nov 25, 2018
44e898e
Remove store mutations as looking to be not necessary anymore
zalmoxisus Nov 25, 2018
3299e2a
Freeze jsan version to fix reviver issue
zalmoxisus Nov 26, 2018
2922a54
Implement dynamic maxAge and fix getting it from options page
zalmoxisus Nov 26, 2018
4bd69c8
If filter options provided in arguments, should ignore from option page
zalmoxisus Nov 26, 2018
7252477
Fix actionsBlacklist/Whitelist to be also string as per documentation
zalmoxisus Nov 26, 2018
37f31ce
Fix: TS require 1 type (closes #584) (#585)
JPeer264 Nov 27, 2018
560c8ea
Bump npm package version
zalmoxisus Nov 27, 2018
9d4923c
Upgrade d3-state-visualizer subdependency to fix #269
zalmoxisus Nov 27, 2018
5f94fc0
Auto adjust maxAge according to blacklisted actions
zalmoxisus Nov 27, 2018
1134822
[WIP] Improve performance for Chrome devpanel (#580)
zalmoxisus Nov 27, 2018
a98fee5
Workaround for new Chrome limit on message size (#582)
zalmoxisus Nov 27, 2018
fdaeb95
Include more info about @@INIT / REPLACE in Troubleshooting
zalmoxisus Nov 27, 2018
6578cdb
v2.16.0
zalmoxisus Nov 28, 2018
0f14bb5
Rollback dynamic maxAge as Redux 4 doesn't allow calling getState
zalmoxisus Nov 28, 2018
969619c
Check if window.devToolsOptions was injected
zalmoxisus Nov 28, 2018
86b2897
v2.16.2
zalmoxisus Nov 28, 2018
23fd97e
Check if filter from option page was injected
zalmoxisus Nov 28, 2018
8d2593d
Bring dynamic maxAge back
zalmoxisus Nov 28, 2018
dbacf4a
Get liftedState from instrumentation instead of calling getState
zalmoxisus Nov 28, 2018
1035d42
Update remotedev-app to get the last Inspector monitor
zalmoxisus Nov 28, 2018
48ac2d2
Support action as a string in filters
zalmoxisus Nov 28, 2018
e7c2621
v2.16.3
zalmoxisus Nov 28, 2018
de2c792
Add to README how to load the extension from gh releases
zalmoxisus Nov 28, 2018
d11eb65
Workaround for devpanel not having access in incognito mode
zalmoxisus Nov 28, 2018
8abb346
v2.16.4
zalmoxisus Nov 29, 2018
dcc9495
Fix actionsWhitelist/actionsBlacklist when provided as null
zalmoxisus Nov 29, 2018
05f4dc1
Use gray icon by default for page action to fix regression in Chrome
zalmoxisus Dec 1, 2018
adbda74
Update dependences to fix #598
zalmoxisus Dec 1, 2018
038f687
v2.16.5
zalmoxisus Dec 1, 2018
0c6fadd
[Examples] Add modified date to todomvc
zalmoxisus Dec 3, 2018
028e69e
[docs] Add React integrations
zalmoxisus Dec 5, 2018
b8767bc
Fix Immutable refs during parsing
zalmoxisus Dec 8, 2018
bb153be
[Tests] Replace deprecated `window.devToolsExtension`
zalmoxisus Dec 10, 2018
af37aa3
[docs] Typescript support links
zalmoxisus Dec 10, 2018
a8489fd
Update webpack and use terser instead of uglify
zalmoxisus Dec 18, 2018
2094b45
Stack trace options (#612)
zalmoxisus Dec 18, 2018
a3c1fe9
Support for both ImmutableJS helper and custom replacer/reviver
zalmoxisus Dec 18, 2018
7b0be59
Deprecate the ability to create a Redux store directly from the exten…
zalmoxisus Dec 18, 2018
57e40cb
v2.17.0
zalmoxisus Dec 19, 2018
bd0cd29
Change Mozilla Add-ons extension url
zalmoxisus Dec 19, 2018
44a73aa
Update examples (#621)
nndio Jan 5, 2019
8f524f2
Update NgRx Integration example (#623)
timdeschryver Jan 7, 2019
3df4d93
Add trace options to TypeScript definition file (#624)
denisw Jan 8, 2019
dae9929
Typo fix (#628)
Eitan-G Jan 14, 2019
d4ef756
Added reductive to integrations (#631)
ambientlight Jan 18, 2019
3565183
Fix error-polyfills issues (which appear on codesandbox)
zalmoxisus Jan 25, 2019
6672a50
v2.17.1
zalmoxisus Jan 25, 2019
d127175
Bump npm package
zalmoxisus Feb 2, 2019
efaf19d
docs(integrations): list aurelia as integration (#650)
zewa666 May 21, 2019
497b739
[docs] Fix typos and improve grammar (#651)
kris-luminar May 21, 2019
b3fed33
instructions no longer imply installation with webstore requires a 2n…
johnstonmatt May 21, 2019
1ea8566
docs: fix typo (#659)
Jason-Cooke Oct 4, 2019
2c7d5c2
Add an example how to avoid any without using of redux-devtools-exten…
gonaumov Oct 4, 2019
672c742
Remove repetition in Trace docs (#671)
Oct 4, 2019
48219fe
Correct possessive of "Redux" (#674)
douglasnaphas Oct 4, 2019
879c115
[docs] Suggest to install lib as prod dependency (#689)
dimadk24 Oct 4, 2019
94f7e53
Updated documentation: SSR and typescript support (#692)
nik72619c Oct 9, 2019
c220fd1
Update createStore URL in README.md (#715)
pranjal0819 Feb 19, 2020
955cfc4
Add notice for new repository
Methuselah96 Jan 18, 2022
e464ffc
Create devcontainer.json
salvotoshi77-creator Nov 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bring dynamic maxAge back
Related #588
  • Loading branch information
zalmoxisus committed Nov 28, 2018
commit 8d2593d3a2ae1b49bcafbe9f9a53153fd5dc5ebd
25 changes: 22 additions & 3 deletions src/browser/extension/inject/pageScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import configureStore, { getUrlParam } from '../../../app/stores/enhancerStore';
import { isAllowed } from '../options/syncOptions';
import Monitor from '../../../app/service/Monitor';
import {
getLocalFilter, isFiltered, filterState, startingFrom
noFiltersApplied, getLocalFilter, isFiltered, filterState, startingFrom
} from '../../../app/api/filters';
import notifyErrors from '../../../app/api/notifyErrors';
import importState from '../../../app/api/importState';
Expand Down Expand Up @@ -36,6 +36,7 @@ const __REDUX_DEVTOOLS_EXTENSION__ = function(reducer, preloadedState, config) {

let store;
let errorOccurred = false;
let maxAge;
let actionCreators;
let sendingActionId = 1;
const instanceId = generateId(config.instanceId);
Expand Down Expand Up @@ -234,8 +235,26 @@ const __REDUX_DEVTOOLS_EXTENSION__ = function(reducer, preloadedState, config) {
}
}

const getMaxAge = () => {
return config && config.maxAge || window.devToolsOptions && window.devToolsOptions.maxAge || 50;
const filteredActionIds = []; // simple circular buffer of non-excluded actions with fixed maxAge-1 length
const getMaxAge = (liftedAction) => {
let m = config && config.maxAge || window.devToolsOptions.maxAge || 50;
if (!liftedAction || noFiltersApplied(localFilter) || !liftedAction.action) return m;
if (!maxAge || maxAge < m) maxAge = m; // it can be modified in process on options page
if (isFiltered(liftedAction.action, localFilter)) {
// TODO: check also predicate && !predicate(state, action) with current state
maxAge++;
} else {
filteredActionIds.push(store.liftedStore.getState().nextActionId);
if (filteredActionIds.length >= m) {
const stagedActionIds = store.liftedStore.getState().stagedActionIds;
let i = 1;
while (maxAge > m && filteredActionIds.indexOf(stagedActionIds[i]) === -1) {
maxAge--; i++;
}
filteredActionIds.shift();
}
}
return maxAge;
};

function init() {
Expand Down