Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-sse

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-sse - npm Package Versions

134

2.2.0

Diff

Changelog

Source

2.2.0 (2023-06-22)

Features

  • client: Async iterator for subscriptions (#66) (fb8bf11)
enisdenjo
published 2.1.4 •

Changelog

Source

2.1.4 (2023-06-12)

Bug Fixes

  • Request parameters query field can only be a string (16c9600), closes #65
enisdenjo
published 2.1.3 •

Changelog

Source

2.1.3 (2023-05-15)

Bug Fixes

  • client: Respect retry attempts when server goes away after connecting in single connection mode (#59) (e895c5b), closes #55
  • handler: Detect ExecutionArgs in onSubscribe return value (a16b921), closes #58
enisdenjo
published 2.1.2 •

Changelog

Source

2.1.2 (2023-05-10)

Bug Fixes

  • client: Respect retry attempts when server goes away after connecting (#57) (75c9f17), closes #55

Reverts

  • Revert "Revert "docs: website (#50)"" (0e4f4b5), closes #50
enisdenjo
published 2.1.1 •

Changelog

Source

2.1.1 (2023-03-31)

Bug Fixes

  • Add file extensions to imports/exports in ESM type definitions (bbf23b1)
enisdenjo
published 2.1.0 •

Changelog

Source

2.1.0 (2023-02-17)

Bug Fixes

  • use/express,use/fastify: Resolve body if previously parsed (6573e94)

Features

  • handler: Export handler options type for each integration (2a2e517)
enisdenjo
published 2.0.0 •

Changelog

Source

2.0.0 (2022-12-20)

Features

  • handler: Server and environment agnostic handler (#37) (22cf03d)

BREAKING CHANGES

  • handler: The handler is now server agnostic and can run anywhere
  • Core of graphql-sse is now server agnostic and as such offers a handler that implements a generic request/response model
  • Handler does not await for whole operation to complete anymore. Only the processing part (parsing, validating and executing)
  • GraphQL context is now typed
  • Hook arguments have been changed, they're not providing the Node native req/res anymore - they instead provide the generic request/response
  • onSubscribe hook can now return an execution result too (useful for caching for example)
  • Throwing in onNext and onComplete hooks will bubble the error to the returned iterator

Migration

Even though the core of graphql-sse is now completely server agnostic, there are adapters to ease the integration with existing solutions. Migrating is actually not a headache!

Beware that the adapters don't handle internal errors, it's your responsibility to take care of that and behave accordingly.

enisdenjo
published 1.3.2 •

Changelog

Source

1.3.2 (2022-12-06)

Bug Fixes

  • handler: Correct typings and support for http2 (08d6ca3), closes #38
enisdenjo
published 1.3.1 •

Changelog

Source

1.3.1 (2022-12-05)

Bug Fixes

  • client: Abort request when reporting error (91057bd)
  • client: Operation requests are of application/json content-type (0084de7)
enisdenjo
published 1.3.0 •

Changelog

Source

1.3.0 (2022-07-20)

Features

  • client: Accept referrer and referrerPolicy fetch options (#32) (dbaa90a)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc