Relay is a JavaScript framework for building data-driven React applications.
MIT License
Bot releases are hidden (Show)
Published by wincent over 8 years ago
babel-relay-plugin
version to v0.6.0 (now Babel 6 compatible).rangeBehaviors
are now compared against the sorted filter arguments of a field. For the field foo(first: 10, b:true, a:false)
the matching range behavior key will be 'a(false).b(true)'
.Relay.Store#applyUpdate
method to create a transaction optimistically without committing it. Returns a transaction object that you can use to commit()
or rollback()
.RelayStoreData#clearCacheManager
method.RelayQuery#getHash
to RelayQuery#getConcreteFragmentHash
RelayQueryPath#toJSON
and RelayQueryPath#fromJSON
Published by wincent over 8 years ago
RelayStore#update
to RelayStore#commitUpdate
. RelayStore#commit
will be removed in v0.8.0. For an automated codemod that you can use to update your Relay app, visit https://github.com/relayjs/relay-codemod
RelayTestUtils.unmockRelay();
with require('configureForRelayOSS');
in tests.RelayTaskQueue
class. Used it to back RelayTaskScheduler
.RelayTaskScheduler#await
to RelayTaskScheduler#enqueue
.Published by wincent over 8 years ago
RelayGarbageCollector
to fatal when, in the middle of a readRelayDiskCache
traversal, a container attempts to subscribe to a record not yet registered with the garbage collector.GraphQLStoreDataHandler
with RelayRecord
, and added the RelayRecord#isRecord
method.RelayQueryIndexPath
which tracks fragment indexes to the nearest parent field during query traversal. This replaces the existing logic used to generate field serialization keys.RelayContext
, a step toward making all Relay state contextual.RelayRecordStore
and into a new RelayRecordWriter
class.canHaveSubselections
metadata on object-like fields that can contain child fields, making it possible to determine if a given field in a query is a true leaf node, or an object-type field having no subselections. This replaces RelayQueryNode#isScalar
with RelayQueryNode#canHaveSubselections
.RANGE_DELETE
mutation configs now allow you to specify an array path to a deleted node, rather than just a deletedIDFieldName
.Records
to RecordMap
.Relay.QL
query. eg. ${containers.map(c => c.getFragment('foo'))}
Published by wincent over 8 years ago
Relay.QL
query. eg. ${containers.map(c => c.getFragment('foo'))}
Published by wincent over 8 years ago
npm run build
now works on Windowsuri
from RelayQueryConfigSpec
. The uri
property was part of RelayRoute
, but never RelayQueryConfig
. This revision simply cleans up the Flow shape in RelayContainer
.RelayRenderer
does not run queries during synchronous server-side rendering.