Releases: n1ru4l/graphql-live-query
@n1ru4l/graphql-live-query@0.4.0
Minor Changes
-
b086fc8: Shape the API to be more "compatible" with graphql-js.
BREAKING CHANG Rename
InMemoryLiveQueryStore.triggerUpdate
method toInMemoryLiveQueryStore.invalidate
.InMemoryLiveQueryStore.invalidate
now also accepts an array of strings.BREAKING CHANGE
InMemoryLiveQueryStore
no longer implementsLiveQueryStore
. TheLiveQueryStore
interface was removedBREAKING CHANGE Rename
InMemoryLiveQueryStore.register
toInMemoryLiveQueryStore.execute
.InMemoryLiveQueryStore.execute
returns aAsyncIterableIterator
which publishes the execution results.
@n1ru4l/socket-io-graphql-server@0.4.0
Minor Changes
- bb822cd: The client now also sends the operationName to the server if provided. The
operationName
is now also optional.
@n1ru4l/socket-io-graphql-client@0.4.0
Minor Changes
- bb822cd: The client now also sends the operationName to the server if provided. The
operationName
is now also optional.
@n1ru4l/socket-io-graphql-server@0.3.0
Minor Changes
-
dda2325: accept an empty variables value as the payload.
-
6a03905: BREAKING CHANGE: Change API of
LiveQueryStore
.The register method of the
LiveQueryStore
now has changed:import type { DocumentNode, ExecutionResult } from "graphql"; export type UnsubscribeHandler = () => void; export type OperationVariables = { [key: string]: any } | null | undefined; export abstract class LiveQueryStore { abstract async triggerUpdate(identifier: string): Promise<void>; abstract register( operationDocument: DocumentNode, operationVariables: OperationVariables, executeQuery: () => Promise<ExecutionResult>, publishUpdate: (executionResult: ExecutionResult, payload: any) => void ): UnsubscribeHandler; }
Patch Changes
- Updated dependencies [6a03905]
- @n1ru4l/graphql-live-query@0.3.0
@n1ru4l/in-memory-live-query-store@0.3.0
Minor Changes
-
6a03905: BREAKING CHANGE: Change API of
LiveQueryStore
.The register method of the
LiveQueryStore
now has changed:import type { DocumentNode, ExecutionResult } from "graphql"; export type UnsubscribeHandler = () => void; export type OperationVariables = { [key: string]: any } | null | undefined; export abstract class LiveQueryStore { abstract async triggerUpdate(identifier: string): Promise<void>; abstract register( operationDocument: DocumentNode, operationVariables: OperationVariables, executeQuery: () => Promise<ExecutionResult>, publishUpdate: (executionResult: ExecutionResult, payload: any) => void ): UnsubscribeHandler; }
Patch Changes
- Updated dependencies [6a03905]
- @n1ru4l/graphql-live-query@0.3.0
@n1ru4l/graphql-live-query@0.3.0
Minor Changes
-
6a03905: BREAKING CHANGE: Change API of
LiveQueryStore
.The register method of the
LiveQueryStore
now has changed:import type { DocumentNode, ExecutionResult } from "graphql"; export type UnsubscribeHandler = () => void; export type OperationVariables = { [key: string]: any } | null | undefined; export abstract class LiveQueryStore { abstract async triggerUpdate(identifier: string): Promise<void>; abstract register( operationDocument: DocumentNode, operationVariables: OperationVariables, executeQuery: () => Promise<ExecutionResult>, publishUpdate: (executionResult: ExecutionResult, payload: any) => void ): UnsubscribeHandler; }
@n1ru4l/socket-io-graphql-server@0.2.0
Minor Changes
-
66b9261: Allow lazy registration of the GraphQL layer on a socket basis. This is useful for use-cases where authentication must be done BEFORE any GraphQL operations could be executed.
const socketIOGraphQLServer = registerSocketIOGraphQLServer({ socketServer, isLazy: true }); socketServer.on("connection", socket => { socket.on("auth", message => { validateAuth(message); // allow consuming the GraphQL API if authentication passes. const dispose = socketIOGraphQLServer.registerSocket(socket); // disable consuming the GraphQL API for the given socket. dispose(); // you could also do the following for disposing instead: socketIOGraphQLServer.disposeSocket(socket); }); });
@n1ru4l/socket-io-graphql-server@0.1.0
@n1ru4l/socket-io-graphql-client@0.1.0
Minor Changes
- aa2be73: chore: unify how packages are built.