Skip to content

Commit

Permalink
chore(TMC-27581): security issue in redux storage decorator filter (#…
Browse files Browse the repository at this point in the history
…5313)

* chore(TMC-27581): security issue in redux storage decorator filter

* chore(TMC-27581): security issue in redux storage decorator filter

* chore(TMC-27581): security issue in redux storage decorator filter
  • Loading branch information
VolodymyrKovalM committed May 21, 2024
1 parent d548b21 commit e48ae5f
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 294 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-points-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@talend/react-cmf": major
---

chore(TMC-27581): security issue in redux storage decorator filter
57 changes: 0 additions & 57 deletions packages/cmf/__tests__/reduxstorage/reduxLocalStorage.test.js

This file was deleted.

4 changes: 0 additions & 4 deletions packages/cmf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
"redux-batched-actions": "^0.5.0",
"redux-batched-subscribe": "^0.1.6",
"redux-saga": "^1.3.0",
"redux-storage": "^4.1.2",
"redux-storage-decorator-filter": "^1.1.8",
"redux-storage-decorator-immutablejs": "^1.0.4",
"redux-storage-engine-localstorage": "^1.1.4",
"redux-thunk": "^2.4.2"
},
"devDependencies": {
Expand Down
9 changes: 3 additions & 6 deletions packages/cmf/src/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Quick start:

```javascript
import cmf from '@talend/react-cmf';

import components from './components';
import sagas from './sagas';

Expand Down Expand Up @@ -51,8 +52,8 @@ For that CMF expose an API to let you merge your settings:

```javascript
import cmf from '@talend/react-cmf';

import containersModule from '@talend/react-containers';

import components from './components';
import saga from './saga';
import sagas from './sagas';
Expand All @@ -65,10 +66,6 @@ cmf.boostrap({
});
```

## How to setup store using localStorage ?

We provide a [simple API for that](./localStorage.md).

## onError

The error handling is well described in it's own [documentation page](./onError.md).
Expand All @@ -85,8 +82,8 @@ If you are using ngreact and you want to leverage cmf you must set the `render`

```javascript
import cmf from '@talend/react-cmf';

import containersModule from '@talend/react-containers';

import components from './components';
import saga from './saga';
import sagas from './sagas';
Expand Down
35 changes: 15 additions & 20 deletions packages/cmf/src/index.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
/**
* @module react-cmf
*/

import actions from './actions';
import * as mock from './mock';
// DEPRECATED APIs
import action from './action';
import actionCreator from './actionCreator';

import actions from './actions';
import App from './App';
import bootstrap from './bootstrap';
import cmfConnect from './cmfConnect';
import cmfModule from './cmfModule';
import component from './component';
import ConnectedDispatcher from './Dispatcher';
import ErrorBoundary from './components/ErrorBoundary/ErrorBoundary.component';
import { Saga, CmfRegisteredSaga } from './components/Saga';
import { CmfRegisteredSaga, Saga } from './components/Saga';
import componentState from './componentState';
import constants from './constant';
import ConnectedDispatcher from './Dispatcher';
import expression from './expression';
import expressions from './expressions';
import Inject from './Inject.component';
import matchPath from './matchPath';
import sagas from './sagas';
import selectors from './selectors';
import settings from './settings';
import localStorage from './localStorage';
import matchPath from './matchPath';
import middlewares from './middlewares';
import onError from './onError';
import reduxStorage from './reduxstorage';
import * as mock from './mock';
import { useCMFContext } from './useContext';

// DEPRECATED APIs
import action from './action';
import App from './App';
import reducers from './reducers';
import registry from './registry';
import RegistryProvider from './RegistryProvider';
import sagas from './sagas';
import selectors from './selectors';
import settings from './settings';
import store from './store';
import middlewares from './middlewares';
import componentState from './componentState';
import constants from './constant';
import { useCMFContext } from './useContext';

const Dispatcher = ConnectedDispatcher;
const getErrorMiddleware = middlewares.error;
Expand All @@ -54,7 +50,6 @@ export {
ErrorBoundary,
Inject,
mock,
reduxStorage,
sagas,
selectors,
// DEPRECATED
Expand Down
22 changes: 0 additions & 22 deletions packages/cmf/src/localStorage.md

This file was deleted.

9 changes: 0 additions & 9 deletions packages/cmf/src/reduxstorage/index.js

This file was deleted.

This file was deleted.

63 changes: 0 additions & 63 deletions packages/cmf/src/reduxstorage/reduxLocalStorage.js

This file was deleted.

Loading

0 comments on commit e48ae5f

Please sign in to comment.