Skip to content

Commit

Permalink
Merge pull request #1365 from ral-facilities/renovate/redux-thunk-3.x
Browse files Browse the repository at this point in the history
Update dependency redux-thunk to v3
  • Loading branch information
kaperoo authored Feb 23, 2024
2 parents b7956f1 + a080722 commit 07fb48d
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"react-scripts": "5.0.0",
"redux": "4.2.0",
"redux-logger": "3.0.6",
"redux-thunk": "2.4.1",
"redux-thunk": "3.1.0",
"single-spa": "5.9.1",
"typeface-roboto": "1.1.13",
"typescript": "5.3.3"
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as React from 'react';
import { Provider } from 'react-redux';
import { AnyAction, applyMiddleware, compose, createStore } from 'redux';
import { createLogger } from 'redux-logger';
import thunk, { ThunkDispatch } from 'redux-thunk';
import { thunk, ThunkDispatch } from 'redux-thunk';
import {
configureSite,
loadMaintenanceState,
Expand Down
2 changes: 1 addition & 1 deletion src/accessibilityPage/accessibilityPage.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { StateType } from '../state/state.types';
import { authState, initialState } from '../state/reducers/scigateway.reducer';
import { createLocation } from 'history';
import configureStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import { Provider } from 'react-redux';
import { render } from '@testing-library/react';

Expand Down
2 changes: 1 addition & 1 deletion src/adminPage/adminPage.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import AdminPage from './adminPage.component';
import { Provider } from 'react-redux';
import { buildTheme } from '../theming';
import TestAuthProvider from '../authentication/testAuthProvider';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import { Router } from 'react-router';
import { StyledEngineProvider, ThemeProvider } from '@mui/material';
import { render, screen } from '@testing-library/react';
Expand Down
2 changes: 1 addition & 1 deletion src/adminPage/maintenancePage.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import configureStore, { MockStore } from 'redux-mock-store';
import { Provider } from 'react-redux';
import { buildTheme } from '../theming';
import TestAuthProvider from '../authentication/testAuthProvider';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import {
loadMaintenanceState,
loadScheduledMaintenanceState,
Expand Down
2 changes: 1 addition & 1 deletion src/loginPage/loginPage.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
resetAuthState,
} from '../state/actions/scigateway.actions';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import { AnyAction } from 'redux';
import { NotificationType } from '../state/scigateway.types';
import * as log from 'loglevel';
Expand Down
2 changes: 1 addition & 1 deletion src/logoutPage/logoutPage.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import configureStore from 'redux-mock-store';
import { authState, initialState } from '../state/reducers/scigateway.reducer';
import { Provider } from 'react-redux';
import { push } from 'connected-react-router';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import TestAuthProvider from '../authentication/testAuthProvider';
import { buildTheme } from '../theming';
import { ThemeProvider } from '@mui/material/styles';
Expand Down
2 changes: 1 addition & 1 deletion src/mainAppBar/userProfile.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { authState, initialState } from '../state/reducers/scigateway.reducer';
import { Provider } from 'react-redux';
import { push } from 'connected-react-router';
import { StyledEngineProvider, ThemeProvider } from '@mui/material';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import TestAuthProvider from '../authentication/testAuthProvider';
import { buildTheme } from '../theming';
import { render, screen, within } from '@testing-library/react';
Expand Down
2 changes: 1 addition & 1 deletion src/pageContainer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import configureStore from 'redux-mock-store';

import { createLocation } from 'history';
Expand Down
2 changes: 1 addition & 1 deletion src/pageNotFound/pageNotFound.component.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PageNotFoundComponent from './pageNotFound.component';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import { authState, initialState } from '../state/reducers/scigateway.reducer';
import { createMemoryHistory, History } from 'history';
import configureStore from 'redux-mock-store';
Expand Down
2 changes: 1 addition & 1 deletion src/preloader/preloader.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { StateType } from '../state/state.types';
import { authState, initialState } from '../state/reducers/scigateway.reducer';
import { createLocation } from 'history';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import { StyledEngineProvider, ThemeProvider } from '@mui/material';
import { render } from '@testing-library/react';
import { createTheme } from '@mui/material/styles';
Expand Down
2 changes: 1 addition & 1 deletion src/routing/authorisedRoute.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
} from 'redux';
import { Router } from 'react-router-dom';
import { SignOutType } from '../state/scigateway.types';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import { StyledEngineProvider, ThemeProvider } from '@mui/material';
import { buildTheme } from '../theming';
import { connectRouter } from 'connected-react-router';
Expand Down
2 changes: 1 addition & 1 deletion src/state/middleware/scigateway.middleware.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import TestAuthProvider from '../../authentication/testAuthProvider';
import { flushPromises } from '../../setupTests';
import { authState, initialState } from '../reducers/scigateway.reducer';
import { buildTheme } from '../../theming';
import thunk from 'redux-thunk';
import { thunk } from 'redux-thunk';
import { autoLoginAuthorised } from '../actions/scigateway.actions';
import * as singleSpa from 'single-spa';

Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13265,12 +13265,12 @@ __metadata:
languageName: node
linkType: hard

"redux-thunk@npm:2.4.1":
version: 2.4.1
resolution: "redux-thunk@npm:2.4.1"
"redux-thunk@npm:3.1.0":
version: 3.1.0
resolution: "redux-thunk@npm:3.1.0"
peerDependencies:
redux: ^4
checksum: 10/b81cdb5fa83dbfb49abc220242dfb9bc76143924d2bf4b62c0730d5dc7eed716b5800e4284e8fed8bd9fc9ea0d7757e5fe8e4a1380e63656782b9f474da25efa
redux: ^5.0.0
checksum: 10/38c563db5f0bbec90d2e65cc27f3c870c1b6102e0c071258734fac41cb0e51d31d894125815c2f4133b20aff231f51f028ad99bccc05a7e3249f1a5d5a959ed3
languageName: node
linkType: hard

Expand Down Expand Up @@ -13857,7 +13857,7 @@ __metadata:
redux: "npm:4.2.0"
redux-logger: "npm:3.0.6"
redux-mock-store: "npm:1.5.4"
redux-thunk: "npm:2.4.1"
redux-thunk: "npm:3.1.0"
serve: "npm:14.2.0"
single-spa: "npm:5.9.1"
start-server-and-test: "npm:2.0.0"
Expand Down

0 comments on commit 07fb48d

Please sign in to comment.