Releases: jaydenseric/graphql-react
Releases · jaydenseric/graphql-react
Version 6.0.1
Patch
- Updated dev dependencies.
- Removed the
watch
dev dependency andwatch
package script. preload
now properly catches render errors nested underQuery
components.preload
now supports class components that don’t call their base constructor withprops
, fixing #17.- Fixed a prop type warning in one of the tests.
- Fixed example code typos in the readme “Usage” section.
- Fixed incorrect
graphQLErrors
JSDoc type.
Version 6.0.0
Major
- Made
preload
reject upon render errors instead of throwing.
Minor
- Made
Query
component throw a helpful render error if the GraphQL context is missing.
Patch
- Updated dev dependencies.
- Improved
size-limit
tests:- Drop the CJS entrypoint; modern bundlers don’t use it and nested module imports revert resolve ESM anyway.
- Ignore
prop-types
since 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-files
dependency 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
.prettierignore
entry. - Added tests for the internal
graphqlFetchOptions
function.
Version 4.2.0
Minor
- Added a new
GraphQL
constructor optionlogErrors
(defaulttrue
) and instance property, controlling if GraphQL request errors should be console logged for easy debugging.
Patch
- Updated dependencies.
- Refactored
GraphQL
static 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
browserslist
field due to a sneaky@babel/preset-env
breaking change. - Add back the bundle size test accidentally removed in v4.0.1.
Version 4.0.1
Version 4.0.0
Major
- Updated the
react
peer dependency to^16.6.0
. - Fixed
preload
broken 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 anoperation
prop instead of separatevariables
andquery
props. This makes the implementation a little more elegant, is more consistent with theGraphQL.query
API and allows sending custom GraphQL operation fields. - New internal event system, fixing #10. Now the
loading
parameter ofQuery
component render functions change when identical requests are loaded elsewhere in the app.
Minor
- Improved
Provider
andConsumer
component 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
husky
version. - Removed the package
module
field. Webpack by default resolves extensionless paths the same way Node.js in--experimental-modules
mode does;.mjs
files are preferred. Tools misconfigured or unable to resolve.mjs
can get confused whenmodule
points to an.mjs
ESM file and they attempt to resolve named imports from.js
CJS files. - Renamed the
Operation
typeGraphQLOperation
. - Use jsDelivr for the readme logo instead of RawGit as they are shutting down.
Version 2.0.1
Patch
- Updated dependencies.
- Remove the
GraphQLQuery
component from API documentation as it used internally and is not exported. - Regenerated the readme API docs using the latest
jsdoc-md
version. - 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
prepare
script to support installation via Git (e.g.npm install jaydenseric/graphql-react
). - Use
@babel/plugin-transform-runtime
and@babel/runtime
to 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
rimraf
dev dependency in favour of a nativerm -rf
package clean script. Leaner and faster; we only support *nix for contributing anyway. - Fixed new Prettier lint errors and removed the
fake-tag
dev dependency now that Prettier can format template literals tagged with/* GraphQL */
. - Stopped using
npm-run-all
for package scripts to reduce complexity and bugs. - Compact package
repository
field. - Added more package tags.
- Lint
.yml
files. - Test with
graphql-api-koa
instead ofexpress-graphql
. - Fixed test snapshot consistency between Node.js versions (see tapjs/node-tap#450).
- Use
jsdoc-md
instead ofdocumentation
to 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
master
branch. - Removed the licence badge. The licence can be found in
package.json
and 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