Commit graph

43 commits

Author SHA1 Message Date
83605adee1 chore: move react to peer dependencies 2020-12-20 16:16:56 +03:00
e0dd752b9a chore: bump version 2020-12-20 12:26:55 +03:00
70da8b3ad0
Merge pull request #23 from pleshevskiy/task-22
feat: add refetch function to hooks state
2020-12-20 11:25:24 +02:00
a1afb6b599 feat: add refetch function to hooks state
Closes #22
2020-12-19 17:03:49 +03:00
d4e83748c3
Merge pull request #25 from pleshevskiy/task-24
feat: extract types from endpoint
2020-12-19 12:27:25 +02:00
651e09bc31 feat: extract types from endpoint
chore: change example and readme

Closes #24
2020-12-19 13:26:22 +03:00
96c7ea554c chore: bump version 2020-12-08 10:40:55 +03:00
8a87c9af14
Merge pull request #21 from pleshevskiy/bug-20
fix: use window location as base url
2020-12-08 09:35:48 +02:00
49aac94675 fix: use window location as base url
chore: add dist folder to repo
chore(deps): add node-fetch for tests
chore: change prepare request visibility
chore: add tests for prepare request method
chore: update example

Closes #20
2020-12-08 10:35:18 +03:00
817b8e46ad chore: bump package version 2020-11-20 23:56:43 +03:00
0c3cb11c13 doc: add information about license 2020-11-20 23:48:43 +03:00
fd7e7c7585
Merge pull request #19 from pleshevskiy/task-3
feat(endpoint): add head method
2020-11-20 19:05:01 +02:00
c848b0c785 feat!: transform endpoint data before state
BREAKING CHANGES: Endpoint now required response, variables and
params types

Closes #3
2020-11-20 20:01:24 +03:00
b944725e07 chore: add is function helper 2020-11-20 19:44:02 +03:00
078b5c1a3a feat(endpoint): add head method
Closes #17
2020-11-20 19:09:29 +03:00
4795bb3cbc chore: add feature request issue template 2020-11-06 06:52:42 +03:00
1eafe8bc44 chore: add template for bugs 2020-11-06 06:48:21 +03:00
be9f9b6da3 chore: add mit licence 2020-11-06 06:48:04 +03:00
cf2bc7f917 chore: add code of conduct 2020-11-06 06:47:52 +03:00
a46dc77297 chore: bump version 2020-11-06 05:06:05 +03:00
7457fc1b75 chore: add keywords 2020-11-06 05:05:37 +03:00
e812d4e077 chore: remove target folder before build 2020-11-06 05:04:44 +03:00
e3a0989944 chore: bump version 2020-11-06 05:00:14 +03:00
cf61435259
Merge pull request #16 from pleshevskiy/task-13
feat(request-hook): allow autofetching for...
2020-11-06 03:58:31 +02:00
a66e10fc1a feat(request-hook): allow autofetching for...
POST, PUT, PATCH methods

Closes #13
2020-11-06 04:57:12 +03:00
e303485f58 Merge pull request #15 from pleshevskiy/bug-14
fix: filter undefined variable values
2020-11-06 04:51:29 +03:00
132ae5c22c fix: filter undefined variable values
chore(tests): add tests for misc methods

Closes #14
2020-11-06 04:47:01 +03:00
d2c99a578b doc: fix example in readme 2020-11-06 01:15:13 +03:00
4d44818baf chore: bump version 2020-11-06 01:07:58 +03:00
fc9e4e3b40
Merge pull request #12 from pleshevskiy/bug-10
fix(request-hook): increase priority for handle...
2020-11-06 00:05:15 +02:00
7e8bc3d557 fix(request-hook): increase priority for handle...
configuration. Now `onComplete` callback in handle config
overwrite `onComplete` callback in hook config.

Closes #10
2020-11-06 01:02:21 +03:00
55bb4fe795
Merge pull request #11 from pleshevskiy/task-9
feat(request-hook): add on failure callback
2020-11-05 23:59:13 +02:00
a1574769e9 feat(request-hook): add on failure callback
* fix(client): remove destruction from response
* chore: update example

Add single endpoint, add router, add pages

Closes #9
2020-11-06 00:58:43 +03:00
97e5e1de35
Merge pull request #7 from pleshevskiy/task-5
feat!(request-hook): add new request hook
2020-11-05 22:28:04 +02:00
8c6833805b feat!(request-hook): add new request hook
This hook works only for endpoint with GET method.

* refac!(request-hook): add lazy prefix to request hook

BREAKING CHANGES: you need to rename all `useRequest` hooks to
`useLazyRequest`

* refac!(request-hook): add public request state

BREAKING CHANGES: User shouldn't see previous headers, variables and params.
It's only for hooks so it doesn't call request again. If you use these
state you should to remove it from your code.

* chore: update example

Closes #5
2020-11-05 23:26:56 +03:00
9b9150524c doc: fix example in readme 2020-11-05 22:16:19 +03:00
d1579694a1 chore: bump version 2020-11-05 00:31:04 +03:00
0c58bcc036
Merge pull request #6 from pleshevskiy/task-2
feat!(client): add client fetch based
breaking!(context): client prop instead base url
refac: change axios response to client response
chore(deps): remove axios
chore: update example
2020-11-04 23:25:59 +02:00
243f4f77e5 feat!(client): add client fetch based
breaking!(context): client prop instead base url
refac: change axios response to client response
chore(deps): remove axios
chore: update example

Closes #2
2020-11-05 00:23:57 +03:00
c20198f14f chore: add movies example 2020-11-04 21:23:29 +03:00
08ca8827c6
Merge pull request #4 from pleshevskiy/task-1
doc: add small example to readme
doc: add save to deps flag
2020-11-04 12:42:00 +02:00
3d606b86cd doc: add small example to readme
doc: add save to deps flag

Closes #1
2020-11-04 13:40:40 +03:00
e9c18c9fea Initial commit
feat(context): add context for request
feat(client): add hook for get memo rest client
feat(endpoint): add endpoint object for configure rest methods
feat(request): add request hook
refac(request): return cached data for same query
refac(request): remove void variables for endpoints
feat(request): add headers to request cache
2020-11-04 00:39:14 +03:00