- f585fb3: Support TypeScript ESM module resolution. More information on https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js
- 31ef74b: fix esm support for create-react-app and webpack
-
c2dee5a: Support sending extensions from the client to the server.
client.execute({ operation, extensions: { secret: "I like turtles!" } });
The GraphQL over HTTP specification allows to send a extensions object as part of a GraphQL request to the server. This is now also supported. Possible use-cases might be access tokens or protocol extensions such as Automatic Persisted Queries.
- 8e14fd2: improve ESM support by using export fields and .mjs file extensions
- 456d91e: Fixed race condition where subscriptions would be duplicated if socket connection was interrupted during initial subscription transmission
- 916de62: fix: bump upstream issue in @n1ru4l/push-pull-async-iterable-iterator
- c552e69: fix: ensure unsubscribe action is only sent once.
- 6915f6d: fix support safari 14
- df4f39b: Return AsyncIterableIterator for the execution result instead of taking a sink as an argument.
- df4f39b: Correctly re-execute active operations after being offline.
- 10a110e: Update Socket.io to version 3
- 3864577: Instead of returning an Observable a Sink must now be passed as the second parameter for the execute function.
-
f1b7a18: Replace
executeLiveQuery
withexecute
.Instead of passing two execute functions to the server options, now only a single execute function is passed to the server.
The
execute
function can now return aAsyncIterableIterator<ExecutionResult>
.@n1ru4l/socket-io-graphql-server
has no longer a dependency upon@n1ru4l/graphql-live-query
.
-
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.
- bb822cd: The client now also sends the operationName to the server if provided. The
operationName
is now also optional.
- aa2be73: chore: unify how packages are built.