@mrtnzlml/relay
Use @kiwicom/relay instead
Last updated 2 years ago by martin.zlamal .
Original npm · Tarball · package.json
$ cnpm install @mrtnzlml/relay 
SYNC missed versions from official npm registry.

This package is Opinionated Relay Environment. Goal of this package is to create powerful yet simple to use Relay Environment with all the important features:

  • query logging during development
  • network fetching with retries and timeouts (see @mrtnzlml/fetch)
  • support for uploadables
  • request burst cache (response cache)
  • batch requests

Minimal example:

import {createEnvironment, createNetworkFetcher} from '@mrtnzlml/relay';

module.exports = createEnvironment({
  fetcherFn: createNetworkFetcher('http://127.0.0.1:2048'),
});

Please note: this default API is minimalistic on purpose and I will unlock new features only when necessary.

TODO

  • subscriptions
  • deferrable requests (only simple requests allowed now)
  • handle partial errors (is it necessary thought? there is RelayNetworkLogger instead)

Current Tags

  • 0.13.0                                ...           latest (2 years ago)

14 Versions

  • 0.13.0 [deprecated]           ...           2 years ago
  • 0.12.0 [deprecated]           ...           2 years ago
  • 0.11.0 [deprecated]           ...           2 years ago
  • 0.10.0 [deprecated]           ...           2 years ago
  • 0.9.0 [deprecated]           ...           2 years ago
  • 0.0.8 [deprecated]           ...           2 years ago
  • 0.0.7 [deprecated]           ...           2 years ago
  • 0.0.6 [deprecated]           ...           2 years ago
  • 0.0.5 [deprecated]           ...           2 years ago
  • 0.0.4 [deprecated]           ...           2 years ago
  • 0.0.3 [deprecated]           ...           2 years ago
  • 0.0.2 [deprecated]           ...           2 years ago
  • 0.0.1 [deprecated]           ...           2 years ago
  • 0.0.0 [deprecated]           ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 2
Last Month 7
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |