Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
feat: remove deprecated handleFetchingF
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Mar 2, 2019
1 parent 60471c7 commit 5771659
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -47,6 +47,7 @@
"@babel/preset-env": "^7.3.4",
"ava": "^1.2.1",
"coveralls": "^3.0.3",
"deprecated": "0.0.2",
"eslint": "^5.14.1",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^4.1.0",
Expand All @@ -56,7 +57,5 @@
"prettier": "^1.16.4",
"redux-symbiote": "^3.0.2"
},
"dependencies": {
"deprecated": "0.0.2"
}
"dependencies": {}
}
8 changes: 0 additions & 8 deletions src/advanced.js
@@ -1,4 +1,3 @@
const deprecate = require("deprecated")
const { fetchStatus } = require("./status")

/**
Expand Down Expand Up @@ -122,17 +121,10 @@ function createSymbioteFetcher({
}
}

const handleFetchingF = deprecate.method(
"handleFetchingF is deprecated. Use handleFnFetching",
console.log, // eslint-disable-line no-console
handleFnFetching,
)

return {
initialFetching,
createFetching,
handleFetching,
handleFetchingF,
handleFnFetching,
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/index.js
Expand Up @@ -7,12 +7,10 @@ const {
} = require("./status")
const { createSymbioteFetcher } = require("./advanced")

// TODO: remove deprecated handleFetchingF
const {
initialFetching,
createFetching,
handleFetching,
handleFetchingF,
handleFnFetching,
} = createSymbioteFetcher()

Expand All @@ -22,7 +20,6 @@ module.exports = {
initialFetching,
createFetching,
handleFetching,
handleFetchingF,
handleFnFetching,
isReady,
isFailed,
Expand Down

0 comments on commit 5771659

Please sign in to comment.