Releases: jaydenseric/graphql-react
Releases · jaydenseric/graphql-react
Version 6.0.1
Patch
- Updated dev dependencies.
- Removed the watchdev dependency andwatchpackage script.
- preloadnow properly catches render errors nested under- Querycomponents.
- preloadnow supports class components that don’t call their base constructor with- props, fixing #17.
- Fixed a prop type warning in one of the tests.
- Fixed example code typos in the readme “Usage” section.
- Fixed incorrect graphQLErrorsJSDoc type.
Version 6.0.0
Major
- Made preloadreject upon render errors instead of throwing.
Minor
- Made Querycomponent throw a helpful render error if the GraphQL context is missing.
Patch
- Updated dev dependencies.
- Improved size-limittests:- Drop the CJS entrypoint; modern bundlers don’t use it and nested module imports revert resolve ESM anyway.
- Ignore prop-typessince it’s likely to already be present in a React project, and most frameworks strip it out in production bundles anyway.
- Separately limit and test server and client bundles.
 
Version 5.0.0
Major
- Updated the extract-filesdependency to v5:- The original operation object is no longer modified when it contains files.
- If the same file is used in multiple locations of an operation it is only uploaded once.
 
Patch
- Updated dependencies.
- Removed a redundant .prettierignoreentry.
- Added tests for the internal graphqlFetchOptionsfunction.
Version 4.2.0
Minor
- Added a new GraphQLconstructor optionlogErrors(defaulttrue) and instance property, controlling if GraphQL request errors should be console logged for easy debugging.
Patch
- Updated dependencies.
- Refactored GraphQLstatic methods to separate modules.
- Moved JSDoc type definitions into the index file.
- Manually composed package exports instead of relying on *.
- More consistent object snapshots in tests.
Version 4.1.0
Minor
- Support more browsers by changing the Browserslist query from > 1%to> 0.5%, not dead.
Patch
- Updated dependencies.
- Fix Babel not reading from the package browserslistfield due to a sneaky@babel/preset-envbreaking change.
- Add back the bundle size test accidentally removed in v4.0.1.
Version 4.0.1
Version 4.0.0
Major
- Updated the reactpeer dependency to^16.6.0.
- Fixed preloadbroken due to the React v16.6.0 context API change, fixing #11.
Patch
- Updated dev dependencies.
Version 3.0.0
Major
- The Query(and the internalGraphQLQuery) component take anoperationprop instead of separatevariablesandqueryprops. This makes the implementation a little more elegant, is more consistent with theGraphQL.queryAPI and allows sending custom GraphQL operation fields.
- New internal event system, fixing #10. Now the loadingparameter ofQuerycomponent render functions change when identical requests are loaded elsewhere in the app.
Minor
- Improved ProviderandConsumercomponent display names in React dev tools:- Context.Provider→- GraphQLContext.Provider
- Context.Consumer→- GraphQLContext.Consumer
 
Patch
- Updated dependencies.
- Updated package scripts and config for the new huskyversion.
- Removed the package modulefield. Webpack by default resolves extensionless paths the same way Node.js in--experimental-modulesmode does;.mjsfiles are preferred. Tools misconfigured or unable to resolve.mjscan get confused whenmodulepoints to an.mjsESM file and they attempt to resolve named imports from.jsCJS files.
- Renamed the OperationtypeGraphQLOperation.
- Use jsDelivr for the readme logo instead of RawGit as they are shutting down.
Version 2.0.1
Patch
- Updated dependencies.
- Remove the GraphQLQuerycomponent from API documentation as it used internally and is not exported.
- Regenerated the readme API docs using the latest jsdoc-mdversion.
- Added a new “Usage” readme section.
- Fixed a link in the readme.
- Fixed example GraphQL query typos.
Version 2.0.0
Major
- Updated Node.js support from v7.6+ to v8.5+.
Minor
- Use package preparescript to support installation via Git (e.g.npm install jaydenseric/graphql-react).
- Use @babel/plugin-transform-runtimeand@babel/runtimeto make runtime helpers more DRY. Bundle size savings will manifest once more packages import the same helpers.
- Package marked side-effect free for bundlers and tree-shaking.
Patch
- Updated dependencies.
- Removed the rimrafdev dependency in favour of a nativerm -rfpackage clean script. Leaner and faster; we only support *nix for contributing anyway.
- Fixed new Prettier lint errors and removed the fake-tagdev dependency now that Prettier can format template literals tagged with/* GraphQL */.
- Stopped using npm-run-allfor package scripts to reduce complexity and bugs.
- Compact package repositoryfield.
- Added more package tags.
- Lint .ymlfiles.
- Test with graphql-api-koainstead ofexpress-graphql.
- Fixed test snapshot consistency between Node.js versions (see tapjs/node-tap#450).
- Use jsdoc-mdinstead ofdocumentationto generate readme API docs.
- JSDoc fixes and improvements.
- Readme badge changes to deal with shields.io unreliability:
- Used the more reliable build status badge provided by Travis, configured to only track masterbranch.
- Removed the licence badge. The licence can be found in package.jsonand rarely changes.
- Removed the Github issues and stars badges. The readme is most viewed on Github anyway.
- Use Badgen for the npm version badge.
 
- Used the more reliable build status badge provided by Travis, configured to only track