Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
🚨 Remove deprecated attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Mar 18, 2018
1 parent 4cb9661 commit fe68e8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ const connect = (list, limit, previousList = []) => {
: undefined,
next:
hasNextPage && list[nextIndex] ? encode(list[nextIndex].id) : undefined,
list: list.slice(0, limit),
// deprecated
hasNextPage,
hasPreviousPage
list: list.slice(0, limit)
};
};

Expand Down
16 changes: 0 additions & 16 deletions packages/plugin-urls-resolver-react-router-3/src/resolveURLs.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,6 @@ const resolveURLsForDynamicParams = async function(
phenomicFetch: PhenomicFetch,
route: PhenomicRoute
) {
// deprecate notice
// @todo remove for stable v1
if (route.paginated) {
console.log(
"'paginated' parameter is deprecated. Pagination is now infered from the presence of :after param in the route."
);
}
if (route.collection) {
console.error(
// $FlowFixMe removed from interface but it's for deprecation that we use it
`${route.path} have an attached parameter 'collection=${
route.collection
}'.\n This parameter is now useless and can be safely removed`
);
}

const mainQuery = getMainQuery(route);
if (!mainQuery.item) {
debug("no valid path detected for", route.path);
Expand Down

0 comments on commit fe68e8c

Please sign in to comment.