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

[Snyk] Upgrade graphql-ws from 5.13.1 to 5.16.0 #429

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

Conversation

j-mendez
Copy link
Contributor

snyk-top-banner

Snyk has created this PR to upgrade graphql-ws from 5.13.1 to 5.16.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 6 versions ahead of your current version.

  • The recommended version was released on 5 months ago.

Release notes
Package name: graphql-ws
  • 5.16.0 - 2024-03-27

    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 - 2024-02-12

    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 - 2023-12-20

    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 - 2023-10-23

    5.14.2 (2023-10-23)

    Bug Fixes

    • client: correct close code for Bad Gateway reason (#512) (0438650)
  • 5.14.1 - 2023-09-28

    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 - 2023-06-22

    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>
    

    }
    })();




  • 5.13.1 - 2023-05-15

    5.13.1 (2023-05-15)

    Bug Fixes

    • Remove unnecessary bun-types directives (e9a56f7), closes #478
from graphql-ws GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade graphql-ws from 5.13.1 to 5.16.0.

See this package in npm:
graphql-ws

See this project in Snyk:
https://app.snyk.io/org/j-mendez/project/a856e7ec-3c81-4251-a6c3-1974682eed73?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment