New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/relay-runtime

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/relay-runtime - npm Package Compare versions

Comparing version 13.0.4 to 13.0.5

6

relay-runtime/lib/handlers/connection/ConnectionHandler.d.ts

@@ -38,7 +38,3 @@ import { DataID, Variables } from '../../../lib/util/RelayRuntimeTypes';

export function getConnectionID(
recordID: DataID,
key: string,
filters?: Variables | null,
): DataID;
export function getConnectionID(recordID: DataID, key: string, filters?: Variables | null): DataID;

@@ -45,0 +41,0 @@ export function insertEdgeAfter(record: RecordProxy, newEdge: RecordProxy, cursor?: string | null): void;

4

relay-runtime/lib/multi-actor-environment/ActorIdentifier.d.ts

@@ -6,5 +6,3 @@ /**

export function assertInternalActorIndentifier(
actorIdentifier: ActorIdentifier,
): void;
export function assertInternalActorIndentifier(actorIdentifier: ActorIdentifier): void;

@@ -11,0 +9,0 @@ export function getActorIdentifier(actorID: string): ActorIdentifier;

@@ -1,5 +0,2 @@

export {
ActorIdentifier,
getActorIdentifier
} from './ActorIdentifier';
export { ActorIdentifier, getActorIdentifier } from './ActorIdentifier';

@@ -9,3 +6,3 @@ export { MultiActorEnvironment } from './MultiActorEnvironment';

ActorEnvironment as IActorEnvironment,
MultiActorEnvironment as IMultiActorEnvironment
MultiActorEnvironment as IMultiActorEnvironment,
} from './MultiActorEnvironmentTypes';

@@ -32,16 +32,16 @@ import { HandlerProvider } from '../handlers/RelayDefaultHandlerProvider';

export type MultiActorEnvironmentConfig = Readonly<{
createConfigNameForActor?: ((actorIdentifier: ActorIdentifier) => string) | null,
createNetworkForActor: (actorIdentifier: ActorIdentifier) => Network,
createStoreForActor?: ((actorIdentifier: ActorIdentifier) => Store) | null,
defaultRenderPolicy?: RenderPolicy | null,
getDataID?: GetDataID,
handlerProvider?: HandlerProvider,
isServer?: boolean | null,
logFn?: LogFunction | null,
missingFieldHandlers?: ReadonlyArray<MissingFieldHandler> | null,
operationLoader?: OperationLoader | null,
requiredFieldLogger?: RequiredFieldLogger | null,
scheduler?: TaskScheduler | null,
shouldProcessClientComponents?: boolean | null,
treatMissingFieldsAsNull?: boolean,
createConfigNameForActor?: ((actorIdentifier: ActorIdentifier) => string) | null;
createNetworkForActor: (actorIdentifier: ActorIdentifier) => Network;
createStoreForActor?: ((actorIdentifier: ActorIdentifier) => Store) | null;
defaultRenderPolicy?: RenderPolicy | null;
getDataID?: GetDataID;
handlerProvider?: HandlerProvider;
isServer?: boolean | null;
logFn?: LogFunction | null;
missingFieldHandlers?: ReadonlyArray<MissingFieldHandler> | null;
operationLoader?: OperationLoader | null;
requiredFieldLogger?: RequiredFieldLogger | null;
scheduler?: TaskScheduler | null;
shouldProcessClientComponents?: boolean | null;
treatMissingFieldsAsNull?: boolean;
}>;

@@ -56,3 +56,7 @@

subscribe(actorEnvironment: ActorEnvironment, snapshot: Snapshot, callback: (snapshot: Snapshot) => void): Disposable;
subscribe(
actorEnvironment: ActorEnvironment,
snapshot: Snapshot,
callback: (snapshot: Snapshot) => void,
): Disposable;

@@ -65,5 +69,12 @@ retain(actorEnvironment: ActorEnvironment, operation: OperationDescriptor): Disposable;

replaceUpdate(actorEnvironment: ActorEnvironment, update: OptimisticUpdateFunction, replacement: OptimisticUpdateFunction): void;
replaceUpdate(
actorEnvironment: ActorEnvironment,
update: OptimisticUpdateFunction,
replacement: OptimisticUpdateFunction,
): void;
applyMutation(actorEnvironment: ActorEnvironment, optimisticConfig: OptimisticResponseConfig<MutationParameters>): Disposable;
applyMutation(
actorEnvironment: ActorEnvironment,
optimisticConfig: OptimisticResponseConfig<MutationParameters>,
): Disposable;

@@ -74,16 +85,32 @@ commitUpdate(actorEnvironment: ActorEnvironment, updater: StoreUpdater): void;

commitPayload(actorEnvironment: ActorEnvironment, operationDescriptor: OperationDescriptor, payload: PayloadData): void;
commitPayload(
actorEnvironment: ActorEnvironment,
operationDescriptor: OperationDescriptor,
payload: PayloadData,
): void;
lookup(actorEnvironment: ActorEnvironment, selector: SingularReaderSelector): Snapshot;
execute(actorEnvironment: ActorEnvironment, config: { operation: OperationDescriptor; }): Observable<GraphQLResponse>;
execute(
actorEnvironment: ActorEnvironment,
config: { operation: OperationDescriptor },
): Observable<GraphQLResponse>;
executeSubscription(
actorEnvironment: ActorEnvironment,
config: { operation: OperationDescriptor; updater?: SelectorStoreUpdater<MutationParameters['response']> | null | undefined; },
config: {
operation: OperationDescriptor;
updater?: SelectorStoreUpdater<MutationParameters['response']> | null | undefined;
},
): Observable<GraphQLResponse>;
executeMutation(actorEnvironment: ActorEnvironment, config: ExecuteMutationConfig<MutationParameters>): Observable<GraphQLResponse>;
executeMutation(
actorEnvironment: ActorEnvironment,
config: ExecuteMutationConfig<MutationParameters>,
): Observable<GraphQLResponse>;
executeWithSource(actorEnvironment: ActorEnvironment, arg: { operation: OperationDescriptor; source: Observable<GraphQLResponse>; }): Observable<GraphQLResponse>;
executeWithSource(
actorEnvironment: ActorEnvironment,
arg: { operation: OperationDescriptor; source: Observable<GraphQLResponse> },
): Observable<GraphQLResponse>;

@@ -90,0 +117,0 @@ isRequestActive(actorEnvironment: ActorEnvironment, requestIdentifier: string): boolean;

@@ -64,6 +64,3 @@ import { MutationParameters } from '../mutations/commitMutation';

*/
check(
actorEnvironment: ActorEnvironment,
operation: OperationDescriptor,
): OperationAvailability;
check(actorEnvironment: ActorEnvironment, operation: OperationDescriptor): OperationAvailability;

@@ -86,6 +83,3 @@ /**

*/
retain(
actorEnvironment: ActorEnvironment,
operation: OperationDescriptor,
): Disposable;
retain(actorEnvironment: ActorEnvironment, operation: OperationDescriptor): Disposable;

@@ -96,6 +90,3 @@ /**

*/
applyUpdate(
actorEnvironment: ActorEnvironment,
optimisticUpdate: OptimisticUpdateFunction,
): Disposable;
applyUpdate(actorEnvironment: ActorEnvironment, optimisticUpdate: OptimisticUpdateFunction): Disposable;

@@ -105,6 +96,3 @@ /**

*/
revertUpdate(
actorEnvironment: ActorEnvironment,
update: OptimisticUpdateFunction,
): void;
revertUpdate(actorEnvironment: ActorEnvironment, update: OptimisticUpdateFunction): void;

@@ -134,6 +122,3 @@ /**

*/
commitUpdate(
actorEnvironment: ActorEnvironment,
updater: StoreUpdater,
): void;
commitUpdate(actorEnvironment: ActorEnvironment, updater: StoreUpdater): void;

@@ -157,6 +142,3 @@ /**

*/
lookup(
actorEnvironment: ActorEnvironment,
selector: SingularReaderSelector,
): Snapshot;
lookup(actorEnvironment: ActorEnvironment, selector: SingularReaderSelector): Snapshot;

@@ -174,3 +156,3 @@ /**

config: {
operation: OperationDescriptor,
operation: OperationDescriptor;
},

@@ -193,4 +175,4 @@ ): RelayObservable<GraphQLResponse>;

config: {
operation: OperationDescriptor,
updater?: SelectorStoreUpdater<MutationParameters['response']> | null,
operation: OperationDescriptor;
updater?: SelectorStoreUpdater<MutationParameters['response']> | null;
},

@@ -226,4 +208,4 @@ ): RelayObservable<GraphQLResponse>;

arg: {
operation: OperationDescriptor,
source: RelayObservable<GraphQLResponse>,
operation: OperationDescriptor;
source: RelayObservable<GraphQLResponse>;
},

@@ -239,6 +221,3 @@ ): RelayObservable<GraphQLResponse>;

*/
isRequestActive(
actorEnvironment: ActorEnvironment,
requestIdentifier: string,
): boolean;
isRequestActive(actorEnvironment: ActorEnvironment, requestIdentifier: string): boolean;

@@ -245,0 +224,0 @@ /**

@@ -20,3 +20,4 @@ import { PayloadError, UploadableMap } from '../network/RelayNetworkTypes';

| ((response: TOperation['response'], errors: ReadonlyArray<PayloadError> | null | undefined) => void)
| null | undefined;
| null
| undefined;
onUnsubscribe?: (() => void | null | undefined) | undefined;

@@ -23,0 +24,0 @@ /**

@@ -18,7 +18,9 @@ import { Variables } from '../util/RelayRuntimeTypes';

parentID?: string | undefined;
connectionInfo?: ReadonlyArray<{
key: string;
filters?: Variables | undefined;
rangeBehavior: string;
}> | undefined;
connectionInfo?:
| ReadonlyArray<{
key: string;
filters?: Variables | undefined;
rangeBehavior: string;
}>
| undefined;
connectionName?: string | undefined;

@@ -33,6 +35,8 @@ edgeName: string;

parentID?: string | undefined;
connectionKeys?: ReadonlyArray<{
key: string;
filters?: Variables | undefined;
}> | undefined;
connectionKeys?:
| ReadonlyArray<{
key: string;
filters?: Variables | undefined;
}>
| undefined;
connectionName?: string | undefined;

@@ -39,0 +43,0 @@ deletedIDFieldName: string | ReadonlyArray<string>;

@@ -20,6 +20,8 @@ import { RequestParameters } from '../util/RelayConcreteNode';

message: string;
locations?: Array<{
line: number;
column: number;
}> | undefined;
locations?:
| Array<{
line: number;
column: number;
}>
| undefined;
severity?: 'CRITICAL' | 'ERROR' | 'WARNING' | undefined; // Not officially part of the spec, but used at Facebook

@@ -26,0 +28,0 @@ }

@@ -10,3 +10,6 @@ import { OperationType, CacheConfig, FetchQueryFetchPolicy } from '../util/RelayRuntimeTypes';

variables: T['variables'],
cacheConfig?: { networkCacheConfig?: CacheConfig | null | undefined, fetchPolicy?: FetchQueryFetchPolicy | null | undefined } | null,
cacheConfig?: {
networkCacheConfig?: CacheConfig | null | undefined;
fetchPolicy?: FetchQueryFetchPolicy | null | undefined;
} | null,
): RelayObservable<T['response']>;

@@ -18,5 +18,3 @@ import { RequestDescriptor } from './RelayStoreTypes';

getPendingOperationsAffectingOwner(
owner: RequestDescriptor,
): {
getPendingOperationsAffectingOwner(owner: RequestDescriptor): {
promise: Promise<void>;

@@ -23,0 +21,0 @@ pendingOperations: ReadonlyArray<RequestDescriptor>;

@@ -422,137 +422,137 @@ import { MutationParameters } from '../mutations/commitMutation';

| Readonly<{
name: 'suspense.fragment',
data: unknown,
fragment: ReaderFragment,
isRelayHooks: boolean,
isMissingData: boolean,
isPromiseCached: boolean,
pendingOperations: ReadonlyArray<RequestDescriptor>,
}>
name: 'suspense.fragment';
data: unknown;
fragment: ReaderFragment;
isRelayHooks: boolean;
isMissingData: boolean;
isPromiseCached: boolean;
pendingOperations: ReadonlyArray<RequestDescriptor>;
}>
| Readonly<{
name: 'suspense.query',
fetchPolicy: string,
isPromiseCached: boolean,
operation: OperationDescriptor,
queryAvailability?: OperationAvailability | undefined,
renderPolicy: RenderPolicy,
}>
name: 'suspense.query';
fetchPolicy: string;
isPromiseCached: boolean;
operation: OperationDescriptor;
queryAvailability?: OperationAvailability | undefined;
renderPolicy: RenderPolicy;
}>
| Readonly<{
name: 'queryresource.fetch';
/**
* ID of this query resource request and will be the same if there is an associated queryresource.retain event.
*/
resourceID: number;
operation: OperationDescriptor;
profilerContext: unknown;
fetchPolicy: FetchPolicy;
renderPolicy: RenderPolicy;
queryAvailability: OperationAvailability;
shouldFetch: boolean;
}>
name: 'queryresource.fetch';
/**
* ID of this query resource request and will be the same if there is an associated queryresource.retain event.
*/
resourceID: number;
operation: OperationDescriptor;
profilerContext: unknown;
fetchPolicy: FetchPolicy;
renderPolicy: RenderPolicy;
queryAvailability: OperationAvailability;
shouldFetch: boolean;
}>
| Readonly<{
name: 'queryresource.retain';
resourceID: number;
// value from ProfilerContext
profilerContext: unknown;
}>
name: 'queryresource.retain';
resourceID: number;
// value from ProfilerContext
profilerContext: unknown;
}>
| Readonly<{
name: 'network.info';
networkRequestId: number;
info: unknown;
}>
name: 'network.info';
networkRequestId: number;
info: unknown;
}>
| Readonly<{
name: 'network.start';
networkRequestId: number;
params: RequestParameters;
variables: Variables;
cacheConfig: CacheConfig;
}>
name: 'network.start';
networkRequestId: number;
params: RequestParameters;
variables: Variables;
cacheConfig: CacheConfig;
}>
| Readonly<{
name: 'network.next';
networkRequestId: number;
response: GraphQLResponse;
}>
name: 'network.next';
networkRequestId: number;
response: GraphQLResponse;
}>
| Readonly<{
name: 'network.error';
networkRequestId: number;
error: Error;
}>
name: 'network.error';
networkRequestId: number;
error: Error;
}>
| Readonly<{
name: 'network.complete';
networkRequestId: number;
}>
name: 'network.complete';
networkRequestId: number;
}>
| Readonly<{
name: 'network.unsubscribe';
networkRequestId: number;
}>
name: 'network.unsubscribe';
networkRequestId: number;
}>
| Readonly<{
name: 'execute.start';
executeId: number;
params: RequestParameters;
variables: Variables;
cacheConfig: CacheConfig;
}>
name: 'execute.start';
executeId: number;
params: RequestParameters;
variables: Variables;
cacheConfig: CacheConfig;
}>
| Readonly<{
name: "execute.next";
executeId: number;
response: GraphQLResponse;
duration: number;
}>
name: 'execute.next';
executeId: number;
response: GraphQLResponse;
duration: number;
}>
| Readonly<{
name: 'execute.async.module';
executeId: number;
operationName: string;
duration: number;
}>
name: 'execute.async.module';
executeId: number;
operationName: string;
duration: number;
}>
| Readonly<{
name: 'execute.flight.payload_deserialize';
executeId: number;
operationName: string;
duration: number;
}>
name: 'execute.flight.payload_deserialize';
executeId: number;
operationName: string;
duration: number;
}>
| Readonly<{
name: 'execute.error';
executeId: number;
error: Error;
}>
name: 'execute.error';
executeId: number;
error: Error;
}>
| Readonly<{
name: 'execute.complete';
executeId: number;
}>
name: 'execute.complete';
executeId: number;
}>
| Readonly<{
name: 'store.publish';
source: RecordSource;
optimistic: boolean;
}>
name: 'store.publish';
source: RecordSource;
optimistic: boolean;
}>
| Readonly<{
name: 'store.snapshot';
}>
name: 'store.snapshot';
}>
| Readonly<{
name: 'store.restore';
}>
name: 'store.restore';
}>
| Readonly<{
name: 'store.gc';
references: DataIDSet;
}>
name: 'store.gc';
references: DataIDSet;
}>
| Readonly<{
name: 'store.notify.start';
sourceOperation?: OperationDescriptor | undefined;
}>
name: 'store.notify.start';
sourceOperation?: OperationDescriptor | undefined;
}>
| Readonly<{
name: 'store.notify.complete';
sourceOperation?: OperationDescriptor | undefined;
updatedRecordIDs: DataIDSet;
invalidatedRecordIDs: DataIDSet;
}>
name: 'store.notify.complete';
sourceOperation?: OperationDescriptor | undefined;
updatedRecordIDs: DataIDSet;
invalidatedRecordIDs: DataIDSet;
}>
| Readonly<{
name: 'store.notify.subscription';
sourceOperation?: OperationDescriptor | undefined;
snapshot: Snapshot;
nextSnapshot: Snapshot;
}>
name: 'store.notify.subscription';
sourceOperation?: OperationDescriptor | undefined;
snapshot: Snapshot;
nextSnapshot: Snapshot;
}>
| Readonly<{
name: 'entrypoint.root.consume';
profilerContext: unknown;
rootModuleID: string;
}>;
name: 'entrypoint.root.consume';
profilerContext: unknown;
rootModuleID: string;
}>;

@@ -559,0 +559,0 @@ export type LogFunction = (logEvent: LogEvent) => void;

@@ -1,2 +0,2 @@

import type { ConcreteRequest } from "./RelayConcreteNode";
import type { ConcreteRequest } from './RelayConcreteNode';

@@ -14,5 +14,3 @@ /**

export type NormalizationHandle =
| NormalizationScalarHandle
| NormalizationLinkedHandle;
export type NormalizationHandle = NormalizationScalarHandle | NormalizationLinkedHandle;

@@ -63,6 +61,3 @@ export interface NormalizationLinkedHandle {

export type NormalizationField =
| NormalizationFlightField
| NormalizationScalarField
| NormalizationLinkedField;
export type NormalizationField = NormalizationFlightField | NormalizationScalarField | NormalizationLinkedField;

@@ -219,4 +214,2 @@ export interface NormalizationInlineFragment {

export type NormalizationRootNode =
| ConcreteRequest
| NormalizationSplitOperation;
export type NormalizationRootNode = ConcreteRequest | NormalizationSplitOperation;

@@ -1,3 +0,3 @@

import type { ConnectionMetadata } from "../handlers/connection/ConnectionHandler";
import type { ConcreteRequest } from "./RelayConcreteNode";
import type { ConnectionMetadata } from '../handlers/connection/ConnectionHandler';
import type { ConcreteRequest } from './RelayConcreteNode';

@@ -21,8 +21,11 @@ export interface ReaderFragmentSpread {

readonly abstractKey?: string | null | undefined;
readonly metadata?: {
readonly connection?: ReadonlyArray<ConnectionMetadata>;
readonly mask?: boolean;
readonly plural?: boolean;
readonly refetch?: ReaderRefetchMetadata;
} | null | undefined;
readonly metadata?:
| {
readonly connection?: ReadonlyArray<ConnectionMetadata>;
readonly mask?: boolean;
readonly plural?: boolean;
readonly refetch?: ReaderRefetchMetadata;
}
| null
| undefined;
readonly argumentDefinitions: ReadonlyArray<ReaderArgumentDefinition>;

@@ -46,3 +49,3 @@ readonly selections: ReadonlyArray<ReaderSelection>;

connection: ReaderPaginationMetadata;
}
};
};

@@ -82,5 +85,3 @@ }

export type ReaderArgumentDefinition =
| ReaderLocalArgument
| ReaderRootArgument;
export type ReaderArgumentDefinition = ReaderLocalArgument | ReaderRootArgument;

@@ -99,6 +100,3 @@ export interface ReaderCondition {

export type ReaderField =
| ReaderScalarField
| ReaderLinkedField
| ReaderRelayResolver;
export type ReaderField = ReaderScalarField | ReaderLinkedField | ReaderRelayResolver;

@@ -170,7 +168,3 @@ export interface ReaderRootArgument {

export type ReaderNode =
| ReaderCondition
| ReaderLinkedField
| ReaderFragment
| ReaderInlineFragment;
export type ReaderNode = ReaderCondition | ReaderLinkedField | ReaderFragment | ReaderInlineFragment;

@@ -203,3 +197,3 @@ export interface ReaderScalarField {

export type RequiredFieldAction = "NONE" | "LOG" | "THROW";
export type RequiredFieldAction = 'NONE' | 'LOG' | 'THROW';

@@ -206,0 +200,0 @@ export interface ReaderRequiredField {

{
"name": "@types/relay-runtime",
"version": "13.0.4",
"version": "13.0.5",
"description": "TypeScript definitions for relay-runtime",

@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/relay-runtime",

"dependencies": {},
"typesPublisherContentHash": "92eead93c2760194e3a486ccc051632d823f41f24896e72e3820bb738f0e0bcf",
"typesPublisherContentHash": "f33d59c77fcf6418000f711087ccfd696c335684e0f93d3cda5f5d22b980edc4",
"typeScriptVersion": "4.0"
}

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

### Additional Details
* Last updated: Sat, 13 Aug 2022 04:02:13 GMT
* Last updated: Wed, 17 Aug 2022 09:02:32 GMT
* Dependencies: none

@@ -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