Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-relay

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-relay - npm Package Compare versions

Comparing version 0.9.11 to 0.9.12

34

react-relay/index.d.ts

@@ -10,2 +10,4 @@ // Type definitions for react-relay 0.9.2

type ClientMutationID = string;
/** Fragments are a hash of functions */

@@ -17,3 +19,3 @@ interface Fragments {

interface CreateContainerOpts {
initialVariables?: Object
initialVariables?: any
fragments: Fragments

@@ -36,2 +38,20 @@ prepareVariables?(prevVariables: RelayVariables): RelayVariables

type RelayMutationStatus =
'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back.
'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server.
'COLLISION_COMMIT_FAILED' | //Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, including this one, have been failed. Transaction can be recommitted or rolled back.
'COMMITTING' | // Transaction is waiting for the server to respond.
'COMMIT_FAILED';
class RelayMutationTransaction {
applyOptimistic(): RelayMutationTransaction;
commit(): RelayMutationTransaction | null;
recommit(): void;
rollback(): void;
getError(): Error;
getStatus(): RelayMutationStatus;
getHash(): string;
getID(): ClientMutationID;
}
interface RelayMutationRequest {

@@ -110,3 +130,3 @@ getQueryString(): string

type ReadyStateEvent =
type ReadyStateEvent =
'ABORT' |

@@ -135,5 +155,11 @@ 'CACHE_RESTORED_REQUIRED' |

interface RelayProp {
variables: any
setVariables(variables: Object, onReadyStateChange?: OnReadyStateChange): void
readonly route: { name: string; }; // incomplete, also has params and queries
readonly variables: any;
readonly pendingVariables?: any | null;
setVariables(variables: any, onReadyStateChange?: OnReadyStateChange): void;
forceFetch(variables: any, onReadyStateChange?: OnReadyStateChange): void;
hasOptimisticUpdate(record: any): boolean;
getPendingTransactions(record: any): RelayMutationTransaction[];
commitUpdate: (mutation: Mutation<any,any>, callbacks?: StoreUpdateCallbacks<any>) => any;
}
}

11

react-relay/package.json
{
"name": "@types/react-relay",
"version": "0.9.11",
"version": "0.9.12",
"description": "TypeScript definitions for react-relay",
"license": "MIT",
"author": "Johannes Schickling <https://github.com/graphcool>",
"contributors": [
{
"name": "Johannes Schickling",
"url": "https://github.com/graphcool"
}
],
"main": "",

@@ -17,4 +22,4 @@ "repository": {

"peerDependencies": {},
"typesPublisherContentHash": "12656b507037f420ba2010c2eba0398e6d9339d53d0d873223fed094b4ede2d2",
"typesPublisherContentHash": "96073999050f50d18dd2a769e80da2f2400d2a614ff5574d5693a1896c1ef704",
"typeScriptVersion": "2.1"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 09 Feb 2017 19:36:49 GMT
* Last updated: Tue, 14 Mar 2017 14:54:21 GMT
* Dependencies: react

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc