Releases: n1ru4l/graphql-live-query
Releases · n1ru4l/graphql-live-query
@n1ru4l/in-memory-live-query-store@0.7.0
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 avalidateThrottleValue
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/graphql-live-query@0.8.0
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/graphql-live-query-patch@0.5.0
Minor Changes
- 8e14fd2: improve ESM support by using export fields and .mjs file extensions
@n1ru4l/graphql-live-query-patch-jsondiffpatch@0.5.0
@n1ru4l/graphql-live-query-patch-json-patch@0.5.0
@n1ru4l/graphql-live-query-patch@0.4.0
Minor Changes
- a002527: omit empty patches from being sent to clients
@n1ru4l/graphql-live-query-patch-jsondiffpatch@0.4.0
@n1ru4l/graphql-live-query-patch-json-patch@0.4.0
@n1ru4l/graphql-live-query-patch-json-patch@0.3.3
Patch Changes
- 791ed67: add missing dependency on
@n1ru4l/graphql-live-query-patch
@n1ru4l/in-memory-live-query-store@0.6.6
Patch Changes
- e15005f: refactor logic for extracting id schema coordinates