github facebook/relay v1.1.0

latest releases: v16.2.0, v16.1.0, v16.0.0...
6 years ago

Relay v1.1.0 represents a massive number of improvements atop the release of Relay v1.0 last month, including improved error messages, bug fixes, and a handful of new utilities. Special thanks to the Relay team's summer interns, who contributed a number of the improvements below:

Minor breaking:

  • Polyfills for Set, Map, and Promise are no longer bundled into Relay. (#1870)
  • babel-relay-plugin has been officially removed in favor of babel-plugin-relay (753f1f0)
  • "Soft error mode" is removed from babel-plugin-relay. Previously this would insert throw statements into the compiled output, now this produces compiler errors. (c7634da)
  • Optimistic responses from mutations are now expected to be objects (ed5f4f9)
  • Proper support for component filenames with non alphanum characters may change the names of Components (78ea60b)

New:

  • Relay containers now accept the prop componentRef to get a ref of the contained component (3571fb9)
  • More GraphQL validation rules are caught statically on the client (a85397a)
  • QueryResponseCache added to the public API (00c7e90)
  • RelayRecordSourceInspector added to the public API (bc81e06)
  • Relay compiler now supports different templates (a66b8b6)
  • Tons of improved error messages (#1767, 3236d90, e54e307, 0106f76, 7a73873, 24d35fc, ac00442, d837abc, aa78c84)
  • Performance enhancements to relay-compiler (afa874a)
  • Improved profiling messages (fff1f42)
  • Support for GraphQL.js v0.10
  • Support for React v16 (1cc7fc7, 1adfba2)
  • Support adding and deleting ranges of a connection from a mutation (4064b9b, aefe580)
  • Generated flow types for mutations (fd4b9e6)

Fixes:

  • Nested Refetch containers now correctly rerender children (#1702)
  • Views now re-resolve when query variables change (0bf9bc0)
  • Live query polling now sends a first request immediately (5e19e83)
  • Removed warnings when using custom scalars (296e0b7)
  • Schema without a Viewer type supported correctly (daf38f2)
  • Generated Flow types now respect @relay(plural) (#1810)
  • Generated Flow types accept non-strict input (66c3d1d)
  • Watch mode in relay-compiler is more resilient to errors (38707c0)
  • No longer require a GraphiQL printer within a network logger (#1857)
  • Improved flow types for QueryRenderer (#1855)

Don't miss a new relay release

NewReleases is sending notifications on new releases.