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

Update graphql-ws 5.13.1 → 5.16.0 (minor) #371

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

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Apr 21, 2024

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ graphql-ws (5.13.1 → 5.16.0) · Repo · Changelog

Release Notes

5.16.0

5.16.0 (2024-03-27)

Bug Fixes

  • server: Return all subscriptions regardless of the return invocation order (f442288)
  • server: should not send error messages if socket closes before onSubscribe hooks resolves (db47a66), closes #539

Features

  • server: Close code and reason are optional (6ae6e6f), closes #547

5.15.0

5.15.0 (2024-02-12)

Bug Fixes

  • client: Use TerminatedCloseEvent class extending an Error for rejecting promises when terminating (74b4ceb), closes #531
  • server: Dispose of subscriptions on close even if added late to the subscriptions list (#534) (e45d6b1), closes #532

Features

  • server: Add is retry flag to connect events (#507) (9ad853f)

5.14.3

5.14.3 (2023-12-20)

Bug Fixes

  • client: Use closures instead of bindings (with this) (812129d)
  • remove package.json workspaces entry in release (63a831e), closes #524

5.14.2

5.14.2 (2023-10-23)

Bug Fixes

  • client: correct close code for Bad Gateway reason (#512) (0438650)

5.14.1

5.14.1 (2023-09-28)

Bug Fixes

  • server: Acknowledge connection before notifying the client to avoid race conditions with slow sends (#506) (8cb82bd), closes #501

5.14.0

5.14.0 (2023-06-22)

Features

  • client: Async iterator for subscriptions (#486) (fb4b967)

Examples

Use the client

import { createClient } from 'graphql-ws';

const client = createClient({
url: 'ws://localhost:4000/graphql',
});

// query
(async () => {
const query = client.iterate({
query: '{ hello }',
});

const { value } = await query.next();
expect(value).toEqual({ hello: 'world' });
})();

// subscription
(async () => {
const subscription = client.iterate({
query: 'subscription { greetings }',
});

for await (const event of subscription) {
expect(event).toEqual({ greetings: 'Hi' });

<span class="pl-c">// complete a running subscription by breaking the iterator loop</span>
<span class="pl-k">break</span><span class="pl-kos">;</span>

}
})();

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 46 commits:

✳️ @​shopify/polaris (12.27.0 → 13.8.0) · Repo · Changelog

✳️ @​shopify/polaris-icons (8.11.1 → 9.3.0) · Repo

Sorry, we couldn't find anything useful about this release.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Apr 21, 2024
@depfu depfu bot force-pushed the depfu/update/pnpm/graphql-ws-5.16.0 branch from 7a92a3c to c2b7ee3 Compare April 22, 2024 16:50
@depfu depfu bot force-pushed the depfu/update/pnpm/graphql-ws-5.16.0 branch from c2b7ee3 to 8bf6b52 Compare May 2, 2024 19:20
@depfu depfu bot force-pushed the depfu/update/pnpm/graphql-ws-5.16.0 branch 2 times, most recently from fcd464d to a7b8702 Compare July 17, 2024 17:06
@depfu depfu bot force-pushed the depfu/update/pnpm/graphql-ws-5.16.0 branch from a7b8702 to d1a3c75 Compare July 25, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants