Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-react

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-react - npm Package Versions

1234

1.0.1

Diff

Changelog

Source

1.0.1

Patch

  • Updated dependencies.
  • Fixed accidental distribution code Prettier ignoring.
  • Replaced ava with tap for testing. Tests don't require a special CLI, no longer transpile on the fly, are faster and AVA no longer dictates the Babel version.
  • Tests run against the actual dist .mjs and .js files in native ESM (--experimental-modules) and CJS environments.
  • Ignore object-assign for bundle size tests as it’s a React dependency and tighten the allowed bundle size from 4 KB to 3 KB.
  • Updated Babel config:
    • Use babel.config.js instead of .babelrc.js.
    • Renamed the ESM environment variable to BABEL_ESM to be more specific.
  • Improved package.json scripts:
    • Leveraged npm-run-all more for parallelism and reduced noise.
    • Removed linting fix scripts.
    • Linting included in the test script. Travis CI will fail PR's with lint errors.
    • Custom watch script.
    • No longer use cross-env; contributors with Windows may setup and use a Bash shell.
  • Improved ESLint config:
    • Use eslint-config-env.
    • Removed redundant eslint-plugin-ava dev dependency and config.
    • Undo overriding ESLint ignoring dotfiles by default as there are none now.
  • Moved the example project to a separate repo.
  • Better readme logo alt text.
jaydenseric
published 1.0.0 •

Changelog

Source

1.0.0

Major

  • Capitalized the fetch options Accept header for display consistency in tools such as the Chrome network inspector and to better support case-sensitive systems, even though HTTP headers are supposed to be case-insensitive.

Patch

jaydenseric
published 1.0.0-alpha.5 •

Changelog

Source

1.0.0-alpha.5

Major

Patch

  • Updated dependencies.
  • Example updates:
    • Valid length app manifest short_name.
    • Added <html> lang attribute.
    • Added Twitter card meta tags.
jaydenseric
published 1.0.0-alpha.4 •

Changelog

Source

1.0.0-alpha.4

Minor

  • Added a fetchError Query render function argument, enabling graceful caching and handling of errors in situations such as when a global fetch API is unavailable or a relative URL is used on the sever.

Patch

jaydenseric
published 1.0.0-alpha.3 •

Changelog

Source

1.0.0-alpha.3

Minor

  • Support the legacy React context API, fixing #7.

Patch

jaydenseric
published 1.0.0-alpha.2 •

Changelog

Source

1.0.0-alpha.2

Major

  • Removed the Promise polyfill; consumers can polyfill as required for optimal bundle size. Required polyfills are documented in the readme.

Minor

Patch

  • Updated dependencies.
  • Updated ESLint config:
    • parserOptions is unnecessary when using babel-eslint.
    • Enabled prefer-destructuring rule.
jaydenseric
published 1.0.0-alpha.1 •

Changelog

Source

1.0.0-alpha.1

Major

  • Updated Node.js support to v7.6+.
  • Renamed GraphQLProvider and GraphQLConsumer to Provider and Consumer.
  • No longer exporting GraphQLQuery.
  • Swapped the GraphQLQuery and Query names.
  • Removed GraphQLMutation component; GraphQLQuery can be used for both queries and mutations.
  • GraphQLQuery component loadOnMount and loadOnReset props now default to false:
    • Opt-in is safer for mutations.
    • Removing static defaultProps reduces bundle size.
    • Nicer valueless boolean props (<GraphQLQuery /> and <GraphQLQuery loadOnReset /> vs <GraphQLQuery loadOnReset={false} /> and <GraphQLQuery loadOnReset={true} />.
  • The GraphQL query instance method now accepts an options object.
  • New approach to configuring GraphQL request fetch options:
    • Removed the GraphQL constructor requestOptions option.
    • The Query component now has a fetchOptionsOverride prop, allowing components to easily query any GraphQL API. Consumers may export an override function tailored for each API in one place to make things DRY.
    • The Next.js example app has been updated to demo the new API using the external GraphQL Pokémon API.

Minor

  • New preload API for server side rendering, fixing #2.
  • The Query component resetOnLoad prop doesn’t cause cache for the request that triggered a reset to delete, allowing simultaneous use with loadOnReset. Fixes #3.
  • The GraphQL reset instance method now accepts a fetch options hash to exempt a request from cache deletion.

Patch

  • Updated dependencies.
  • Fetch errors when a request could not be sent at all (e.g. a relative URL can’t be used for server side rendering) are uncaught instead of incorrectly cached as a parseError.
  • Simplified the JSDoc script, now that Documentation.js handles .mjs.
  • Prevent lib or example updates from triggering tests in watch mode.
  • Fixed the example setup script and made graphql-react a published dependency, via #1.
  • Commented GraphQL template literals for editor syntax highlighting.
  • Configured Travis and added a build status readme badge.
  • Improved API documentation.
jaydenseric
published 0.1.0 •

Changelog

Source

0.1.0

Initial release.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc