github facebook/relay v1.2.0-rc.1

latest releases: v16.2.0, v16.1.0, v16.0.0...
pre-release6 years ago

This release is another massive collection of some exciting new features, fixed bugs and improved error messages and warnings. Thanks to our external contributors, summer interns and anyone helping with code or bug reports.

New

  • Experimental @inline directive to inline fragments verbatim for use in utility functions (1b19ee0)
  • The compiler now supports --exclude and --include for more control over what files are parsed (94c8b20)
  • PaginationContainer can now refetch with new variables, useful for server filtered, paginated lists (6bc9127)

Fixed

  • Relay context is set correctly inside pagination containers (@pranaygp, b09bba4)
  • Fixed an issue where fragments didn't update correctly when the last item of a plural field was deleted (08336c6)
  • Fixed a bug where query files weren't re-generated if only the flow type changed (697c6ee)

Improved

  • Faster parsing in the compiler by caching the extracted graphql tags (7e1065f)
  • Improved error handling in the compiler (cb7680f)
  • The callback to loadMore and refetch of the pagination and refetch container is now consistently called after render (e316b6e)
  • The compiler now parses .js.flow files (3e0266c)
  • A new warning on pagination container helps avoid bugs (3fe68c8)
  • Better error when unknown directories are inside the generated output directories (9766201)
  • Line numbers of parse errors are now correct (ca15340)
  • Updated graphql dependency to ^0.10.5 (beba407)

Don't miss a new relay release

NewReleases is sending notifications on new releases.