Skip to content

Releases: n1ru4l/graphql-live-query

@n1ru4l/[email protected]

09 Sep 09:44
c00e536
Compare
Choose a tag to compare

Minor Changes

  • e893ecc: Add support for the @live(throttle:) directive argument for negotiating a throttle between the server and the client. This is useful for preventing the server to spam the client for data that might be updating too frequently.

    The InMemoryLiveQueryStore now accepts a validateThrottleValue option that can be used to validate the incoming throttle value sent from clients.

    const store = new InMemoryLiveQueryStore({
      validateThrottleValue: (value /* value as sent by client */) => {
        // value can either be null/undefined or a number
        // returning a string from this function will treat the provided value as invalid
        // and send an error back to the client.
        if (value == null || value > 1000) {
          return "Must provide throttle value in the range from 0-1000";
        }
        // returning a number will replace the user sent throttle value
        if (value === 420) {
          return 690;
        }
        // returning null or undefined will result in no throttle being used.
        return null;
      }
    });
  • 8e14fd2: improve ESM support by using export fields and .mjs file extensions

Patch Changes

@n1ru4l/[email protected]

09 Sep 09:44
c00e536
Compare
Choose a tag to compare

Minor Changes

  • e893ecc: Add throttle argument for the @live directive for negotiating a throttle between the server and the client. This is useful for preventing the server to spam the client for data that might be updating too frequently.
  • 8e14fd2: improve ESM support by using export fields and .mjs file extensions

@n1ru4l/[email protected]

09 Sep 09:44
c00e536
Compare
Choose a tag to compare

Minor Changes

  • 8e14fd2: improve ESM support by using export fields and .mjs file extensions

@n1ru4l/[email protected]

09 Sep 09:44
c00e536
Compare
Choose a tag to compare

Minor Changes

  • 8e14fd2: improve ESM support by using export fields and .mjs file extensions

Patch Changes

@n1ru4l/[email protected]

09 Sep 09:44
c00e536
Compare
Choose a tag to compare

Minor Changes

  • 8e14fd2: improve ESM support by using export fields and .mjs file extensions

Patch Changes

@n1ru4l/[email protected]

08 Sep 07:41
62c3cb3
Compare
Choose a tag to compare

Minor Changes

  • a002527: omit empty patches from being sent to clients

@n1ru4l/[email protected]

08 Sep 07:41
62c3cb3
Compare
Choose a tag to compare

Minor Changes

  • a002527: omit empty patches from being sent to clients

Patch Changes

@n1ru4l/[email protected]

08 Sep 07:41
62c3cb3
Compare
Choose a tag to compare

Minor Changes

  • a002527: omit empty patches from being sent to clients

Patch Changes

@n1ru4l/[email protected]

03 Aug 16:04
1ef847d
Compare
Choose a tag to compare

Patch Changes

  • 791ed67: add missing dependency on @n1ru4l/graphql-live-query-patch

@n1ru4l/[email protected]

02 Aug 15:32
fcdd765
Compare
Choose a tag to compare

Patch Changes

  • e15005f: refactor logic for extracting id schema coordinates