graphql-ws
Advanced tools
Comparing version 1.13.1 to 1.14.0
@@ -0,1 +1,8 @@ | ||
# [1.14.0](https://github.com/enisdenjo/graphql-ws/compare/v1.13.1...v1.14.0) (2020-11-15) | ||
### Features | ||
* **server:** `context` may return a promise ([cd5c2f8](https://github.com/enisdenjo/graphql-ws/commit/cd5c2f8d0f9d11889052601c0fabdb8c6ed607fa)), closes [#74](https://github.com/enisdenjo/graphql-ws/issues/74) | ||
## [1.13.1](https://github.com/enisdenjo/graphql-ws/compare/v1.13.0...v1.13.1) (2020-11-14) | ||
@@ -2,0 +9,0 @@ |
@@ -47,3 +47,3 @@ /** | ||
*/ | ||
context?: GraphQLExecutionContextValue | ((ctx: Context, message: SubscribeMessage, args: ExecutionArgs) => GraphQLExecutionContextValue); | ||
context?: GraphQLExecutionContextValue | ((ctx: Context, message: SubscribeMessage, args: ExecutionArgs) => Promise<GraphQLExecutionContextValue> | GraphQLExecutionContextValue); | ||
/** | ||
@@ -50,0 +50,0 @@ * The GraphQL root fields or resolvers to go |
@@ -264,3 +264,3 @@ "use strict"; | ||
typeof context === 'function' | ||
? context(ctx, message, execArgs) | ||
? await context(ctx, message, execArgs) | ||
: context; | ||
@@ -267,0 +267,0 @@ } |
{ | ||
"name": "graphql-ws", | ||
"version": "1.13.1", | ||
"version": "1.14.0", | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
146048
0