RelayStore#update
to RelayStore#commitUpdate
. RelayStore#commit
will be removed in v0.7.0. For an automated codemod that you can use to
update your Relay app, visit https://github.com/relayjs/relay-codemodRelayTestUtils.unmockRelay();
with
require('configureForRelayOSS');
in tests.RelayTaskQueue
class. Used it to back RelayTaskScheduler
.RelayTaskScheduler#await
to RelayTaskScheduler#enqueue
.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
babel-relay-plugin
version to v0.4.1.
edges
or pageInfo
.
@relay(pattern: true)
.GraphQL
objects).RelayQueryField#getStorageKey
will now produce the same key regardless of
the order of a field's arguments.Relay.createQuery()
function which returns a
RelayQuery.Root
(that can be used with Relay.Store
methods).babel-relay-plugin
version to v0.3.0.
node(id: ...)
fields are now invalid.RelayQL
template tag.__typename
of abstract types are now fetched and stored locally.hasOptimisticUpdate
returning true after mutation succeeds (#86).id
fields (#414).__DEV__
-only warning when data is passed down via the wrong prop.babel-relay-plugin
version to v0.2.5.
ReactDOM
rather than React
for performing batched
updates (via unstable_batchedUpdates
).__schema
, __typename
and such.field(before: ..., first: ...)
or field(after: ..., last: ...)
is
now an error.Relay.DefaultNetworkLayer
constructor to take an init
object
instead of fetchTimeout
and retryDelays
.npm run update-schema
to update the test schema.Relay.DefaultNetworkLayer
are bound to the instance,
facilitating reuse.GraphQL_EXPERIMENTAL
to GraphQL
(internal change).RelayQueryField.getCallType()
when argument is unknown.GraphQLRange
returns diff calls with numeric values instead of strings.