-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strict graphql ws typed dicts (#3689)
* Refactor graphql-ws types to be much stricter * Add release file * Fix imprecise check
- Loading branch information
1 parent
74ad18c
commit ac52f2f
Showing
8 changed files
with
580 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Release type: minor | ||
|
||
In this release, all types of the legacy graphql-ws protocol were refactored. | ||
The types are now much stricter and precisely model the difference between null and undefined fields. | ||
As a result, our protocol implementation and related tests are now more robust and easier to maintain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +0,0 @@ | ||
GQL_CONNECTION_INIT = "connection_init" | ||
GQL_CONNECTION_ACK = "connection_ack" | ||
GQL_CONNECTION_ERROR = "connection_error" | ||
GQL_CONNECTION_TERMINATE = "connection_terminate" | ||
GQL_CONNECTION_KEEP_ALIVE = "ka" | ||
GQL_START = "start" | ||
GQL_DATA = "data" | ||
GQL_ERROR = "error" | ||
GQL_COMPLETE = "complete" | ||
GQL_STOP = "stop" | ||
|
||
|
||
__all__ = [ | ||
"GQL_CONNECTION_INIT", | ||
"GQL_CONNECTION_ACK", | ||
"GQL_CONNECTION_ERROR", | ||
"GQL_CONNECTION_TERMINATE", | ||
"GQL_CONNECTION_KEEP_ALIVE", | ||
"GQL_START", | ||
"GQL_DATA", | ||
"GQL_ERROR", | ||
"GQL_COMPLETE", | ||
"GQL_STOP", | ||
] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.