Releases: jaydenseric/graphql-react
Releases · jaydenseric/graphql-react
Version 1.0.1
Patch
- Updated dependencies.
- Fixed accidental distribution code Prettier ignoring.
- Replaced
ava
withtap
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. - Updated Babel config:
- Use
babel.config.js
instead of.babelrc.js
. - Renamed the
ESM
environment variable toBABEL_ESM
to be more specific.
- Use
- 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.
- Leveraged
- 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.
Version 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
- Updated dependencies.
- Pinned
@babel
dev dependencies to match new AVA requirements. - Use
eslint-config-prettier
. - Readme example link goes to the example project directory instead of the readme file.
- Test and example updates:
- Use
fake-tag
for GraphQL template literals due to prettier/prettier#4360. - Use
express
instead of Koa packages. - Use
express-graphql
instead of Apollo packages.
- Use
- Test updates:
- Removed
apollo-upload-server
as there are no upload tests yet. - Removed
get-port
as not providing a port toapp.listen
has the same effect.
- Removed
- Example updates:
- Stop using
esm
due to graphql/express-graphql#425. - Enabled GraphiQL and added a link to it on the homepage.
- Stop using
Version 1.0.0-alpha.5
Major
- Updated the
react
peer dependency to^16.3.1
. - Fixed
preload
broken due to the React v16.3.1 context API change.
Patch
- Updated dependencies.
- Example updates:
- Valid length app manifest
short_name
. - Added
<html>
lang
attribute. - Added Twitter card meta tags.
- Valid length app manifest
Version 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 globalfetch
API is unavailable or a relative URL is used on the sever.
Patch
- Updated dependencies.
- Replaced
isomorphic-unfetch
with the more updatedcross-fetch
. - Use
.prettierignore
to deferpackage.json
formatting to npm. - Improved the example web app and deployed it to graphql-react.now.sh.
Version 1.0.0-alpha.3
Version 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
- Significantly reduced the bundle size to < 4 KB by simplifying Babel helpers and reusing the
object-assign
React dependency withbabel-plugin-transform-replace-object-assign
.
Version 1.0.0-alpha.1
Major
- Updated Node.js support to v7.6+.
- Renamed
GraphQLProvider
andGraphQLConsumer
toProvider
andConsumer
. - No longer exporting
GraphQLQuery
. - Swapped the
GraphQLQuery
andQuery
names. - Removed
GraphQLMutation
component;GraphQLQuery
can be used for both queries and mutations. GraphQLQuery
componentloadOnMount
andloadOnReset
props now default tofalse
:- 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
constructorrequestOptions
option. - The
Query
component now has afetchOptionsOverride
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.
- Removed the
Minor
- New
preload
API for server side rendering, fixing #2. - The
Query
componentresetOnLoad
prop doesn’t cause cache for the request that triggered a reset to delete, allowing simultaneous use withloadOnReset
. 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.
Version 0.1.0
Initial release.