Skip to content

Commit d730ea1

Browse files
fix(deps): update dependency immutable to v5 (#1799)
* fix(deps): update dependency immutable to v5 * Updates * Updates * Updates * Fix lint --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathan Bierema <nbierema@gmail.com>
1 parent 6df66b7 commit d730ea1

File tree

21 files changed

+78
-72
lines changed

21 files changed

+78
-72
lines changed

extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"electron": "^31.7.7",
6767
"esbuild": "^0.25.0",
6868
"globals": "^15.15.0",
69-
"immutable": "^4.3.7",
69+
"immutable": "^5.0.3",
7070
"jest": "^29.7.0",
7171
"jest-environment-jsdom": "^29.7.0",
7272
"pug": "^3.0.3",

packages/map2tree/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"devDependencies": {
4343
"@types/jest": "^29.5.14",
4444
"@types/lodash-es": "^4.17.12",
45-
"immutable": "^4.3.7",
45+
"immutable": "^5.0.3",
4646
"jest": "^29.7.0",
4747
"rimraf": "^6.0.1",
4848
"ts-jest": "^29.2.6",

packages/react-json-tree/examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"type-check": "tsc --noEmit"
2020
},
2121
"dependencies": {
22-
"immutable": "^4.3.7",
22+
"immutable": "^5.0.3",
2323
"react": "^18.3.1",
2424
"react-base16-styling": "workspace:^",
2525
"react-dom": "^18.3.1",

packages/redux-devtools-extension/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"prepublish": "pnpm run type-check && pnpm run lint"
3030
},
3131
"dependencies": {
32-
"@babel/runtime": "^7.26.9",
33-
"immutable": "^4.3.7"
32+
"@babel/runtime": "^7.26.9"
3433
},
3534
"devDependencies": {
3635
"@babel/cli": "^7.26.4",

packages/redux-devtools-extension/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type Immutable from 'immutable';
21
import { compose } from 'redux';
32
import type { Action, ActionCreator, StoreEnhancer } from 'redux';
43

@@ -74,11 +73,11 @@ export interface EnhancerOptions {
7473
* Just pass the Immutable library. It will support all ImmutableJS structures. You can even export them into a file and get them back.
7574
* The only exception is `Record` class, for which you should pass this in addition the references to your classes in `refs`.
7675
*/
77-
immutable?: typeof Immutable;
76+
immutable?: unknown;
7877
/**
7978
* ImmutableJS `Record` classes used to make possible restore its instances back when importing, persisting...
8079
*/
81-
refs?: Immutable.Record.Factory<any>[];
80+
refs?: (new (data: any) => unknown)[];
8281
};
8382
/**
8483
* function which takes `action` object and id number as arguments, and should return `action` object back.

packages/redux-devtools-inspector-monitor-test-tab/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@redux-devtools/inspector-monitor": "workspace:^",
1717
"@redux-devtools/inspector-monitor-test-tab": "workspace:^",
1818
"@redux-devtools/ui": "workspace:^",
19-
"immutable": "^4.3.7",
19+
"immutable": "^5.0.3",
2020
"lodash.shuffle": "^4.2.0",
2121
"react": "^18.3.1",
2222
"react-dom": "^18.3.1",

packages/redux-devtools-inspector-monitor-test-tab/demo/src/reducers.ts

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import Immutable from 'immutable';
1+
import {
2+
fromJS,
3+
Map as ImmutableMap,
4+
List,
5+
Set as ImmutableSet,
6+
Stack,
7+
Seq,
8+
} from 'immutable';
29
import shuffle from 'lodash.shuffle';
310
import { combineReducers, Reducer } from 'redux';
411

@@ -18,17 +25,14 @@ const NESTED = {
1825
},
1926
};
2027

21-
const IMMUTABLE_NESTED = Immutable.fromJS(NESTED) as Immutable.Map<
22-
unknown,
23-
unknown
24-
>;
28+
const IMMUTABLE_NESTED = fromJS(NESTED) as ImmutableMap<unknown, unknown>;
2529

26-
const IMMUTABLE_MAP = Immutable.Map({
27-
map: Immutable.Map({ a: 1, b: 2, c: 3 }),
28-
list: Immutable.List(['a', 'b', 'c']),
29-
set: Immutable.Set(['a', 'b', 'c']),
30-
stack: Immutable.Stack(['a', 'b', 'c']),
31-
seq: Immutable.Seq([1, 2, 3, 4, 5, 6, 7, 8]),
30+
const IMMUTABLE_MAP = ImmutableMap({
31+
map: ImmutableMap({ a: 1, b: 2, c: 3 }),
32+
list: List(['a', 'b', 'c']),
33+
set: ImmutableSet(['a', 'b', 'c']),
34+
stack: Stack(['a', 'b', 'c']),
35+
seq: Seq([1, 2, 3, 4, 5, 6, 7, 8]),
3236
});
3337

3438
const HUGE_ARRAY = Array.from({ length: 5000 }).map((_, key) => ({

packages/redux-devtools-inspector-monitor/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@redux-devtools/core": "workspace:^",
1515
"@redux-devtools/dock-monitor": "workspace:^",
1616
"@redux-devtools/inspector-monitor": "workspace:^",
17-
"immutable": "^4.3.7",
17+
"immutable": "^5.0.3",
1818
"lodash.shuffle": "^4.2.0",
1919
"react": "^18.3.1",
2020
"react-base16-styling": "workspace:^",

packages/redux-devtools-inspector-monitor/demo/src/reducers.ts

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import Immutable from 'immutable';
1+
import {
2+
fromJS,
3+
Map as ImmutableMap,
4+
List,
5+
Set as ImmutableSet,
6+
Stack,
7+
Seq,
8+
} from 'immutable';
29
import shuffle from 'lodash.shuffle';
310
import { combineReducers, Reducer } from 'redux';
411

@@ -18,17 +25,14 @@ const NESTED = {
1825
},
1926
};
2027

21-
const IMMUTABLE_NESTED = Immutable.fromJS(NESTED) as Immutable.Map<
22-
unknown,
23-
unknown
24-
>;
28+
const IMMUTABLE_NESTED = fromJS(NESTED) as ImmutableMap<unknown, unknown>;
2529

26-
const IMMUTABLE_MAP = Immutable.Map({
27-
map: Immutable.Map({ a: 1, b: 2, c: 3 }),
28-
list: Immutable.List(['a', 'b', 'c']),
29-
set: Immutable.Set(['a', 'b', 'c']),
30-
stack: Immutable.Stack(['a', 'b', 'c']),
31-
seq: Immutable.Seq([1, 2, 3, 4, 5, 6, 7, 8]),
30+
const IMMUTABLE_MAP = ImmutableMap({
31+
map: ImmutableMap({ a: 1, b: 2, c: 3 }),
32+
list: List(['a', 'b', 'c']),
33+
set: ImmutableSet(['a', 'b', 'c']),
34+
stack: Stack(['a', 'b', 'c']),
35+
seq: Seq([1, 2, 3, 4, 5, 6, 7, 8]),
3236
});
3337

3438
type MapValue =

packages/redux-devtools-inspector-monitor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@types/lodash": "^4.17.16",
4444
"dateformat": "^5.0.3",
4545
"hex-rgba": "^1.0.2",
46-
"immutable": "^4.3.7",
46+
"immutable": "^5.0.3",
4747
"javascript-stringify": "^2.1.0",
4848
"jsondiffpatch": "^0.6.0",
4949
"lodash.debounce": "^4.0.8",

0 commit comments

Comments
 (0)