Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update graphql live query packages #386

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 29, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@n1ru4l/graphql-live-query (source) 0.8.1 -> 0.10.0 age adoption passing confidence
@n1ru4l/graphql-live-query-patch-json-patch (source) 0.5.1 -> 0.7.0 age adoption passing confidence
@n1ru4l/in-memory-live-query-store (source) 0.7.3 -> 0.10.0 age adoption passing confidence
@n1ru4l/socket-io-graphql-client (source) 0.11.0 -> 0.13.0 age adoption passing confidence
@n1ru4l/socket-io-graphql-server (source) 0.11.0 -> 0.13.0 age adoption passing confidence

Release Notes

n1ru4l/graphql-live-queries (@​n1ru4l/graphql-live-query)

v0.10.0

Compare Source

Minor Changes

v0.9.0

Compare Source

Minor Changes
  • f555f2f: GraphQL v16 compatibility

v0.8.2

Compare Source

Patch Changes
  • 31ef74b: fix esm support for create-react-app and webpack
n1ru4l/graphql-live-queries (@​n1ru4l/graphql-live-query-patch-json-patch)

v0.7.0

Compare Source

Minor Changes
Patch Changes

v0.6.1

Compare Source

Patch Changes

v0.6.0

Compare Source

Minor Changes
  • f555f2f: GraphQL v16 compatibility
Patch Changes

v0.5.2

Compare Source

Patch Changes
n1ru4l/graphql-live-queries (@​n1ru4l/in-memory-live-query-store)

v0.10.0

Compare Source

Minor Changes
  • 93239dc: Drop the execute constructor argument option.
    Please use InMemoryLiveQueryStore.makeExecute instead.

    Old

    import { InMemoryLiveQueryStore } from "@​n1ru4l/in-memory-live-query-store";
    import { execute as executeImplementation } from "graphql";
    const liveQueryStore = new InMemoryLiveQueryStore({ execute });
    const execute = liveQueryStore.execute;

    New

    import { InMemoryLiveQueryStore } from "@​n1ru4l/in-memory-live-query-store";
    import { execute as executeImplementation } from "graphql";
    const liveQueryStore = new InMemoryLiveQueryStore();
    const execute = liveQueryStore.makeExecute(executeImplementation);
  • f585fb3: Support TypeScript ESM module resolution. More information on https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js

Patch Changes

v0.9.0

Compare Source

Minor Changes
  • 727e806: The source returned from execute is now lazy and will only start emitting values once it is consumed. This prevents memory leaks.

    BREAKING: If the wrapped execute function returns a stream (e.g. because you forgot to add the NoLiveMixedWithDeferStreamRule validation rule) it causes the execute function to reject instead of publishing a ExecutionResult error payload. This change has been made in order to treat the error as unexpected and not leak any implementation details to the clients.

  • aee5d58: Allow setting custom invalidation indices.

    Until now doing granular or very specific index invalidations wasn't possible. Thus invalidation might not have been efficient enough, as either too many or too few live query operation "subscriptions" got invalidated.

    The new indexBy configuration option for the InMemoryLiveQueryStore, allows configuring specific indices suitable for the consumed GraphQL schema, resulting more granular and efficient invalidations.

    Invalidate by single field with arguments:

    const store = new InMemoryLiveQueryStore({
      includeIdentifierExtension: true,
      indexBy: [
        {
          field: "Query.posts",
          args: ["needle"]
        }
      ]
    });
    
    const execute = store.makeExecute(executeImplementation);
    
    const document = parse(/* GraphQL */ `
      query @​live {
        posts(needle: "skrrrrt") {
          id
          title
        }
      }
    `);
    
    const executionResult = execute({ document, schema });
    
    let result = await executionResult.next();
    expect(result.value).toEqual({
      data: {
        posts: []
      },
      extensions: {
        liveResourceIdentifier: ["Query.posts", 'Query.posts(needle:"skrrrrt")']
      },
      isLive: true
    });

    Invalidation by single field with specific arguments:

    const store = new InMemoryLiveQueryStore({
      includeIdentifierExtension: true,
      indexBy: [
        {
          field: "Query.posts",
          // index will only be used if the needle argument value equals "brrrrt"
          args: [["needle", "brrrrt"]]
        }
      ]
    });

v0.8.0

Compare Source

Minor Changes
  • f555f2f: BREAKING: Remove support for legacy multi-argument execute calls. From now on you should always call execute with a single object instead (e.g. execute({ schema, document }) instead of execute(schema, document)).

    DEPRECATE: The InMemoryLiveQueryStore.execute API has been deprecated. Please use the InMemoryLiveQueryStore.makeExecute function instead. Also the InMemoryLiveQueryStore constructor parameter option execute has been deprecated.

  • f555f2f: GraphQL v16 compatibility

Patch Changes

v0.7.4

Compare Source

Patch Changes
n1ru4l/graphql-live-queries (@​n1ru4l/socket-io-graphql-client)

v0.13.0

Compare Source

Minor Changes

v0.11.1

Compare Source

Patch Changes
  • 31ef74b: fix esm support for create-react-app and webpack
n1ru4l/graphql-live-queries (@​n1ru4l/socket-io-graphql-server)

v0.13.0

Compare Source

Minor Changes

v0.12.0

Compare Source

Minor Changes
  • f555f2f: GraphQL v16 compatibility

v0.11.1

Compare Source

Patch Changes
  • 31ef74b: fix esm support for create-react-app and webpack

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/graphql-live-query-packages branch 2 times, most recently from 3eae8fa to c071b35 Compare November 4, 2021 13:59
@renovate renovate bot force-pushed the renovate/graphql-live-query-packages branch from c071b35 to 0cffc67 Compare December 8, 2021 20:13
@renovate renovate bot force-pushed the renovate/graphql-live-query-packages branch from 0cffc67 to 98dd02e Compare December 31, 2021 16:25
@renovate renovate bot force-pushed the renovate/graphql-live-query-packages branch from 98dd02e to 289ce7d Compare March 14, 2022 14:33
@renovate renovate bot force-pushed the renovate/graphql-live-query-packages branch from 289ce7d to de0cd9a Compare September 25, 2022 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants