Skip to content

Releases: n1ru4l/graphql-live-query

@n1ru4l/graphql-live-query@0.4.0

17 Oct 00:08
a4ce5ac
Compare
Choose a tag to compare

Minor Changes

  • b086fc8: Shape the API to be more "compatible" with graphql-js.

    BREAKING CHANG Rename InMemoryLiveQueryStore.triggerUpdate method to InMemoryLiveQueryStore.invalidate. InMemoryLiveQueryStore.invalidate now also accepts an array of strings.

    BREAKING CHANGE InMemoryLiveQueryStore no longer implements LiveQueryStore. The LiveQueryStore interface was removed

    BREAKING CHANGE Rename InMemoryLiveQueryStore.register to InMemoryLiveQueryStore.execute. InMemoryLiveQueryStore.execute returns a AsyncIterableIterator which publishes the execution results.

@n1ru4l/socket-io-graphql-server@0.4.0

07 Sep 05:28
8a92363
Compare
Choose a tag to compare

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

07 Sep 05:28
8a92363
Compare
Choose a tag to compare

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

03 Sep 14:10
8c3e9e0
Compare
Choose a tag to compare

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

03 Sep 14:10
8c3e9e0
Compare
Choose a tag to compare

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

03 Sep 14:10
8c3e9e0
Compare
Choose a tag to compare

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

18 Aug 19:20
b7f3d22
Compare
Choose a tag to compare

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

17 Aug 20:07
4245d56
Compare
Choose a tag to compare

Minor Changes

  • aa2be73: chore: unify how packages are built.

Patch Changes

  • Updated dependencies [aa2be73]
    • @n1ru4l/graphql-live-query@0.2.0

@n1ru4l/socket-io-graphql-client@0.1.0

17 Aug 20:07
4245d56
Compare
Choose a tag to compare

Minor Changes

  • aa2be73: chore: unify how packages are built.

@n1ru4l/in-memory-live-query-store@0.2.0

17 Aug 20:07
4245d56
Compare
Choose a tag to compare

Minor Changes

  • aa2be73: chore: unify how packages are built.

Patch Changes

  • Updated dependencies [aa2be73]
    • @n1ru4l/graphql-live-query@0.2.0