graphql-hooks

🎣 Minimal hooks-first GraphQL client

OTHER License

Downloads
98.9K
Stars
1.9K
Committers
92

Bot releases are visible (Hide)

graphql-hooks - graphql-hooks-memcache v1.0.6

Published by Joezo over 5 years ago

  • Move to monorepo using Lerna (#77) fcca10af225ac501e27b0f38e59a787977175e97
graphql-hooks - graphql-hooks-ssr v1.0.3

Published by Joezo over 5 years ago

  • Copy README to graphql-hooks on publish (#98) 1c161c8518c51f282e0a2f984305f8f9c28d1484

https://github.com/nearform/graphql-hooks/compare/[email protected]@1.0.3

graphql-hooks - graphql-hooks-ssr v1.0.2

Published by Joezo over 5 years ago

  • Move to monorepo using Lerna (#77) fcca10af225ac501e27b0f38e59a787977175e97
graphql-hooks - graphql-hooks v3.2.4

Published by Joezo over 5 years ago

  • Copy README to graphql-hooks on publish (#98) 1c161c8518c51f282e0a2f984305f8f9c28d1484

https://github.com/nearform/graphql-hooks/compare/[email protected]@3.2.4

graphql-hooks - graphql-hooks v3.2.3

Published by Joezo over 5 years ago

  • Move to monorepo using Lerna (#77) fcca10af225ac501e27b0f38e59a787977175e97
  • chore(deps): update dependency lint-staged to v8.1.5 (#88) 5ba1ea71cf5e45c71f100837374cc7bc6ecdeb69
  • docs: add Haroenv as a contributor (#89) 5d33e488ed765477ecf7b4e7efff43a0098a22ca
  • docs: add jh3y as a contributor (#90) edd32b719afddbdb94ab0697dc0b0029b90b82c2
  • chore(deps): update dependency eslint to v5.15.1 (#92) 6e81359f8fba5e48ee9b4c39833e24fb5943b4bc
  • Stop lerna generating package lock files in packages (#97) a5edc2e2e1d9df5b2a06630e36b62635bbd232d8

https://github.com/nearform/graphql-hooks/compare/[email protected]

graphql-hooks - v3.2.2

Published by bmullan91 over 5 years ago

  • integrate eslint-plugin-react-hooks (#77) b99ab21b02b14accf88f1f476143efc8a06e608a
  • Run ESLint on circleci (#86) bd8f69c649c5a25601f22219f4017ab7f1f41361
  • Missing console.groupEnd() (#87) fixes #85 942694d555e33ab297c5dbf71d24533db7561671

https://github.com/nearform/graphql-hooks/compare/v3.2.1...v3.2.2

graphql-hooks - v3.2.1

Published by Joezo over 5 years ago

  • fix: Preserve state if updateData is passed to useClientRequest. (#76) 4bf9e73

https://github.com/nearform/graphql-hooks/compare/v3.2.0...v3.2.1

graphql-hooks - v3.2.0

Published by Joezo over 5 years ago

  • chore(deps): update dependency rollup to v1.3.2 (#73) 1a46d08
  • Use rollup to generate bundles for UMD, ESM and CJS (#63) ae154d3
  • feat: remove all-contributors cli (#71) d89e405
  • docs: add jh3y as a contributor (#70) 667f739
  • feat: remove package-lock.json (#65) (#67) a4b5587
  • add bug & feature labels to issue templates (#66) 38477e3

https://github.com/nearform/graphql-hooks/compare/v3.1.1...v3.2.0

graphql-hooks - V3.1.1

Published by bmullan91 over 5 years ago

Pull Requests

  • #55 devDeps update
  • #56 Add react-hooks-testing-library
  • #57 README.md bundle size update
  • #58 Pagination documentation update
  • #59 Issue and PR templates
  • #61 Fixes #37 and #60 & Integration tests
  • #62 Update contributors

Commit comparison https://github.com/nearform/graphql-hooks/compare/v3.1.0...v3.1.1

graphql-hooks - v3.1.0

Published by jackdclark over 5 years ago

Pull requests

  • #47 Integrate all-contributors
  • #44 Pagination
graphql-hooks - v3.0.0

Published by Joezo over 5 years ago

Pull requests

  • #46 Update react monorepo to v16.8.3
  • #39 Fix initial loading state with useMutation and add optmization

Breaking changes

  • loading is now set to false on first render when using useMutation
graphql-hooks - v2.0.4

Published by jackdclark over 5 years ago

Pull Requests

  • #30, #32: unit tests for useClientRequest
  • #33: Unit tests for useManualQuery
  • #34: Unit tests for useMutation
  • #36 Trigger another request if the variables or query change
graphql-hooks - v2.0.3

Published by bmullan91 over 5 years ago

Pull Requests

  • #23: Update devDeps
  • #24: Unit tests for useQuery
  • #25: Fixes #21 - preset useCache=true for useManualQuery
graphql-hooks - v2.0.2

Published by bmullan91 over 5 years ago

Pull Requests

graphql-hooks - v2.0.1

Published by bmullan91 over 5 years ago

Issues Fixed:

  • #17 - Add CONTRIBUTING.md
  • #18 - Add CODE_OF_CONDUCT.md
  • #10 - API Docs

Pull Requests:

  • #19 - CoC, Contributing docs, editorconfig and bundle badge
  • #15 - unit tests for GraphQLClient
  • #14 - API Docs
  • #16 - NPM version badge to README.md
graphql-hooks - v2.0.0

Published by bmullan91 over 5 years ago

Pull Requests

  • #4, #6, #5, #7

Summary

Breaking changes:

  • createClient -> GraphQLClient class
    • config changes
    • endpoint -> url
    • fetch: optional function to specify the fetch implementation | defaults to global fetch

Additions

  • New config options to new GraphQLClient(config):
    • logErrors: Boolean | default true
    • onError: Function - custom error handler will receive ({ result, operation }) as the argument
  • New properties available on the result object from all hooks:
    • fetchError: if an error occurred during the fetch call it will be available here
    • httpError: if a http error occurred it will be available here
    • graphQLErrors: The array of GraphQL errors from the server response
    • error: Boolean set to true if any of the above errors have been set
    • cacheHit: Boolean set to true if the result came from the cache, useful for debugging
  • operationName can now be set:
    • useQuery(query, { variables: {...}, operationName: 'MyOperation' })
    • useMutation(mutation, { variables: {...}, operationName: 'MyOperation' })
    • const [myMutation] = useMutation(mutation); myMutation({ variables: {}, operationName: 'MyOperation' })
graphql-hooks - v1.1.0

Published by bmullan91 over 5 years ago

  • Cache + SSR support
graphql-hooks - v1.0.2

Published by bmullan91 over 5 years ago

graphql-hooks - v1.0.1

Published by bmullan91 over 5 years ago