Releases: GetDKAN/data-catalog-services
Update initial pagination in useSearch hook
v1.2.0
v1.1.0 Release
Update datastore fetch to build columns from schema (#25)
1.0.0 Release
This is the 1.0 release of data-catalog-services.
Changes from last alpha release to final release:
- Removed the Pagination hook as its internal state caused some issues as it could become out of sync with the datastore state.
- Remove the old Resource component as it has been phased out and replaced with the useDatastore hook.
- Updated Search API pages to start at 1 instead of 0.
usePagination and useSearchAPI custom hooks
This release adds 2 more hooks.
usePagination
This hook will return pageIndex and the functions needed to build any buttons or pagers. It doesn't give any markup, just the function to set state and an array of pages to show.
useSearchAPI
This custom hook gives streamlined access to the DKAN Search API endpoint. It will build the search query using the query string library and has a built in timer that holds of firing the search automatically, so if using text inputs there is some lead time so searches don't keep firing.
useDatastore, useMetastore, and Resource
Adds basic custom hooks for useDatastore (focusing on query endpoint) and useMetastore. Also Resource React component that makes use of useDatastore to replace the old datastore.js and useReducer setup.