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 #406

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

Conversation

j-mendez
Copy link
Contributor

This PR was automatically created by Snyk using the credentials of a real user.


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 21 days ago, on 2024-03-27.
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
Commit messages
Package name: graphql-ws
  • 325fe1a chore(release): 🎉 5.16.0 [skip ci]
  • 6ae6e6f feat(server): Close code and reason are optional
  • db47a66 fix(server): should not send error messages if socket closes before onSubscribe hooks resolves
  • f442288 fix(server): Return all subscriptions regardless of the return invocation order
  • 100cd69 docs(website): typecheck next-env
  • b07327a docs: website name and description fix (#550)
  • 8f905bd docs: bump @ theguild/components and migrate (#549)
  • 6013eb5 docs(recipe): ws server usage with custom subscribe method that gracefully handles thrown errors
  • 933d720 chore(release): 🎉 5.15.0 [skip ci]
  • 74b4ceb fix(client): Use `TerminatedCloseEvent` class extending an `Error` for rejecting promises when terminating
  • f76bb54 test: update expected arguments for connecting event
  • 9ad853f feat(server): Add is retry flag to connect events (#507)
  • e45d6b1 fix(server): Dispose of subscriptions on close even if added late to the subscriptions list (#534)
  • e2603be chore: revert pkg workspaces after pack
  • 8d3f3d0 chore(deps): update lockfile
  • c61e31b refactor: return of the website workspace
  • e19263e chore(deps): update lockfile
  • 69791ee docs(bun): correct `handleProtocols` usage
  • e4a75cc chore(release): 🎉 5.14.3 [skip ci]
  • 63a831e fix: remove package.json workspaces entry in release
  • 812129d fix(client): Use closures instead of bindings (with `this`)
  • 12f7376 docs(protocol): clarify id field is not optional (#523)
  • b347757 chore(release): 🎉 5.14.2 [skip ci]
  • 0438650 fix(client): correct close code for Bad Gateway reason (#512)

Compare


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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants