mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-01 10:23:05 +03:00
Updates
This commit is contained in:
parent
f6f5d954e4
commit
57d5e08756
|
@ -1,4 +1,11 @@
|
||||||
import * as Immutable from 'immutable';
|
import {
|
||||||
|
fromJS,
|
||||||
|
Map as ImmutableMap,
|
||||||
|
List,
|
||||||
|
Set as ImmutableSet,
|
||||||
|
Stack,
|
||||||
|
Seq,
|
||||||
|
} from 'immutable';
|
||||||
import shuffle from 'lodash.shuffle';
|
import shuffle from 'lodash.shuffle';
|
||||||
import { combineReducers, Reducer } from 'redux';
|
import { combineReducers, Reducer } from 'redux';
|
||||||
|
|
||||||
|
@ -18,17 +25,14 @@ const NESTED = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const IMMUTABLE_NESTED = Immutable.fromJS(NESTED) as Immutable.Map<
|
const IMMUTABLE_NESTED = fromJS(NESTED) as ImmutableMap<unknown, unknown>;
|
||||||
unknown,
|
|
||||||
unknown
|
|
||||||
>;
|
|
||||||
|
|
||||||
const IMMUTABLE_MAP = Immutable.Map({
|
const IMMUTABLE_MAP = ImmutableMap({
|
||||||
map: Immutable.Map({ a: 1, b: 2, c: 3 }),
|
map: ImmutableMap({ a: 1, b: 2, c: 3 }),
|
||||||
list: Immutable.List(['a', 'b', 'c']),
|
list: List(['a', 'b', 'c']),
|
||||||
set: Immutable.Set(['a', 'b', 'c']),
|
set: ImmutableSet(['a', 'b', 'c']),
|
||||||
stack: Immutable.Stack(['a', 'b', 'c']),
|
stack: Stack(['a', 'b', 'c']),
|
||||||
seq: Immutable.Seq([1, 2, 3, 4, 5, 6, 7, 8]),
|
seq: Seq([1, 2, 3, 4, 5, 6, 7, 8]),
|
||||||
});
|
});
|
||||||
|
|
||||||
const HUGE_ARRAY = Array.from({ length: 5000 }).map((_, key) => ({
|
const HUGE_ARRAY = Array.from({ length: 5000 }).map((_, key) => ({
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
import * as Immutable from 'immutable';
|
import {
|
||||||
|
fromJS,
|
||||||
|
Map as ImmutableMap,
|
||||||
|
List,
|
||||||
|
Set as ImmutableSet,
|
||||||
|
Stack,
|
||||||
|
Seq,
|
||||||
|
} from 'immutable';
|
||||||
import shuffle from 'lodash.shuffle';
|
import shuffle from 'lodash.shuffle';
|
||||||
import { combineReducers, Reducer } from 'redux';
|
import { combineReducers, Reducer } from 'redux';
|
||||||
|
|
||||||
|
@ -18,17 +25,14 @@ const NESTED = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const IMMUTABLE_NESTED = Immutable.fromJS(NESTED) as Immutable.Map<
|
const IMMUTABLE_NESTED = fromJS(NESTED) as ImmutableMap<unknown, unknown>;
|
||||||
unknown,
|
|
||||||
unknown
|
|
||||||
>;
|
|
||||||
|
|
||||||
const IMMUTABLE_MAP = Immutable.Map({
|
const IMMUTABLE_MAP = ImmutableMap({
|
||||||
map: Immutable.Map({ a: 1, b: 2, c: 3 }),
|
map: ImmutableMap({ a: 1, b: 2, c: 3 }),
|
||||||
list: Immutable.List(['a', 'b', 'c']),
|
list: List(['a', 'b', 'c']),
|
||||||
set: Immutable.Set(['a', 'b', 'c']),
|
set: ImmutableSet(['a', 'b', 'c']),
|
||||||
stack: Immutable.Stack(['a', 'b', 'c']),
|
stack: Stack(['a', 'b', 'c']),
|
||||||
seq: Immutable.Seq([1, 2, 3, 4, 5, 6, 7, 8]),
|
seq: Seq([1, 2, 3, 4, 5, 6, 7, 8]),
|
||||||
});
|
});
|
||||||
|
|
||||||
type MapValue =
|
type MapValue =
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import jsan from 'jsan';
|
import jsan from 'jsan';
|
||||||
import * as Immutable from 'immutable';
|
import type Immutable from 'immutable';
|
||||||
import serialize from './serialize';
|
import serialize from './serialize';
|
||||||
import options from '../constants/options';
|
import options from '../constants/options';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as Immutable from 'immutable';
|
import type Immutable from 'immutable';
|
||||||
import { Record } from 'immutable';
|
import { Record } from 'immutable';
|
||||||
import { mark, extract, refer } from '../helpers';
|
import { mark, extract, refer } from '../helpers';
|
||||||
import options from '../constants/options';
|
import options from '../constants/options';
|
||||||
|
|
|
@ -2,6 +2,7 @@ import * as Immutable from 'immutable';
|
||||||
import { Map, OrderedMap } from 'immutable';
|
import { Map, OrderedMap } from 'immutable';
|
||||||
import Serialize from '../src/immutable';
|
import Serialize from '../src/immutable';
|
||||||
import { SerializedData } from '../src/helpers';
|
import { SerializedData } from '../src/helpers';
|
||||||
|
|
||||||
const serialize = Serialize(Immutable);
|
const serialize = Serialize(Immutable);
|
||||||
const stringify = serialize.stringify;
|
const stringify = serialize.stringify;
|
||||||
const parse = serialize.parse;
|
const parse = serialize.parse;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import jsan from 'jsan';
|
import jsan from 'jsan';
|
||||||
import { immutableSerialize } from '@redux-devtools/serialize';
|
import { immutableSerialize } from '@redux-devtools/serialize';
|
||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import * as Immutable from 'immutable';
|
import type Immutable from 'immutable';
|
||||||
import { PerformAction } from '@redux-devtools/core';
|
import { PerformAction } from '@redux-devtools/core';
|
||||||
|
|
||||||
interface State {
|
interface State {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import getParams from 'get-params';
|
||||||
import jsan from 'jsan';
|
import jsan from 'jsan';
|
||||||
import { nanoid } from 'nanoid/non-secure';
|
import { nanoid } from 'nanoid/non-secure';
|
||||||
import { immutableSerialize } from '@redux-devtools/serialize';
|
import { immutableSerialize } from '@redux-devtools/serialize';
|
||||||
import * as Immutable from 'immutable';
|
import type Immutable from 'immutable';
|
||||||
import { Action, ActionCreator } from 'redux';
|
import { Action, ActionCreator } from 'redux';
|
||||||
|
|
||||||
export function generateId(id: string | undefined) {
|
export function generateId(id: string | undefined) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user