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

Better normalisation #554

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 10 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,29 @@
"no-sequences": 2,
"no-console": 1,

"import/no-unresolved": 2,
"import/no-self-import": 2,
"import/first": 2,
"import/newline-after-import": 2,
"import/no-named-default": 2,
"import/dynamic-import-chunkname": 2,
"import/no-unused-modules": [
2,
0,
{
"missingExports": false,
"unusedExports": true,
"ignoreExports": ["**/*/index.js"]
}
],
"import/no-extraneous-dependencies": 2,
"import/order": [2, { "newlines-between": "always" }],
"import/order": [
2,
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"newlines-between": "always"
}
],
"import/named": 2,

"react/prop-types": 0,
"react/no-array-index-key": 0,
Expand Down
1 change: 0 additions & 1 deletion examples/server-side-rendering/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const configureStore = (initialState = undefined) => {
}),
),
ssr: ssr ? 'server' : 'client',
cache: true,
});

const reducers = combineReducers({
Expand Down
1 change: 0 additions & 1 deletion examples/showcase/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { fetchBooks, fetchPosts, fetchGroups } from './actions';
export const configureStore = () => {
const { requestsReducer, requestsMiddleware } = handleRequests({
driver: createDriver(axios),
cache: true,
});

const reducers = combineReducers({
Expand Down
2 changes: 1 addition & 1 deletion packages/redux-requests-axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"nodemon": "2.0.6",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"typescript": "4.1.2",
"typescript": "4.2.4",
"webpack": "5.9.0",
"webpack-cli": "4.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/redux-requests-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"nodemon": "2.0.6",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"typescript": "4.1.2",
"typescript": "4.2.4",
"webpack": "5.9.0",
"webpack-cli": "4.2.0",
"yet-another-abortcontroller-polyfill": "0.0.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/redux-requests-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"nodemon": "2.0.6",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"typescript": "4.1.2",
"typescript": "4.2.4",
"webpack": "5.9.0",
"webpack-cli": "4.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/redux-requests-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"nodemon": "2.0.6",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"typescript": "4.1.2",
"typescript": "4.2.4",
"webpack": "5.9.0",
"webpack-cli": "4.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/redux-requests-promise/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"nodemon": "2.0.6",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"typescript": "4.1.2",
"typescript": "4.2.4",
"webpack": "5.9.0",
"webpack-cli": "4.2.0"
},
Expand Down
11 changes: 5 additions & 6 deletions packages/redux-requests-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"clean": "rimraf es lib dist",
"lint": "eslint 'src/**'",
"test": "jest src",
"test:cover": "jest --coverage src",
"test": "jest --passWithNoTests src",
"test:cover": "jest --passWithNoTests --coverage src",
"test-types": "tsc types/index.d.spec.tsx --noEmit --strict --lib es2015 --jsx react",
"build:commonjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib --ignore 'src/**/*.spec.js'",
"build:es": "babel src --out-dir es --ignore 'src/**/*.spec.js'",
Expand All @@ -40,8 +40,7 @@
"redux": ">=4.0.0"
},
"dependencies": {
"prop-types": "^15.5.7",
"react-is": ">=16.13.1"
"prop-types": "^15.5.7"
},
"devDependencies": {
"@babel/cli": "7.12.8",
Expand All @@ -66,10 +65,10 @@
"react-dom": "17.0.1",
"react-redux": "7.2.2",
"react-test-renderer": "17.0.1",
"redux": "4.0.5",
"redux": "4.1.0",
"redux-mock-store": "1.5.4",
"rimraf": "3.0.2",
"typescript": "4.1.2",
"typescript": "4.2.4",
"webpack": "5.9.0",
"webpack-cli": "4.2.0"
},
Expand Down

This file was deleted.

This file was deleted.

4 changes: 1 addition & 3 deletions packages/redux-requests-react/src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export { default as useQuery } from './use-query';
export { default as Query } from './query';
export { default as useMutation } from './use-mutation';
export { default as Mutation } from './mutation';
export { default as useSubscription } from './use-subscription';
export { default as useDispatchRequest } from './use-dispatch-request';
export { default as useDispatch } from './use-dispatch';
export { default as RequestsProvider } from './requests-provider';
export { default as RequestErrorBoundary } from './request-error-boundary';
35 changes: 0 additions & 35 deletions packages/redux-requests-react/src/mutation.jsx

This file was deleted.

Loading