graphql-ws
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -0,1 +1,8 @@ | ||
## [4.2.2](https://github.com/enisdenjo/graphql-ws/compare/v4.2.1...v4.2.2) (2021-03-17) | ||
### Bug Fixes | ||
* **server:** `return` instead of `break` at switch case ends ([e9447e4](https://github.com/enisdenjo/graphql-ws/commit/e9447e45cfa572982e7fe0ffa32a113feac06b94)), closes [#140](https://github.com/enisdenjo/graphql-ws/issues/140) | ||
## [4.2.1](https://github.com/enisdenjo/graphql-ws/compare/v4.2.0...v4.2.1) (2021-03-11) | ||
@@ -2,0 +9,0 @@ |
@@ -56,5 +56,8 @@ /** | ||
/** | ||
* Should the connection be established immediately and persisted | ||
* or after the first listener subscribed. | ||
* Controls when should the connection be established. | ||
* | ||
* - `false`: Establish a connection immediately. Use `onNonLazyError` to handle errors. | ||
* - `true`: Establish a connection on first subscribe and close on last unsubscribe. Use | ||
* the subscription sink's `error` to handle errors. | ||
* | ||
* @default true | ||
@@ -61,0 +64,0 @@ */ |
@@ -89,3 +89,3 @@ "use strict"; | ||
ctx.acknowledged = true; | ||
break; | ||
return; | ||
} | ||
@@ -234,3 +234,3 @@ case message_1.MessageType.Subscribe: { | ||
delete ctx.subscriptions[id]; | ||
break; | ||
return; | ||
} | ||
@@ -240,3 +240,3 @@ case message_1.MessageType.Complete: { | ||
delete ctx.subscriptions[message.id]; // deleting the subscription means no further activity should take place | ||
break; | ||
return; | ||
} | ||
@@ -243,0 +243,0 @@ default: |
{ | ||
"name": "graphql-ws", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
206067
2797