-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from tartiflette/mra/misc
Fixes & tartiflette >=1.0.0,<2.0.0 compatibility
- Loading branch information
Showing
5 changed files
with
62 additions
and
44 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
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,14 @@ | ||
# [1.0.0] -- 2019-09-12 | ||
|
||
## Changed | ||
|
||
- Bump `subscriptions-transport-ws` from `0.7.0` to `0.8.3` | ||
- Bump `graphiql` from `0.12.0` to `0.14.2` | ||
- Update `aiohttp` requirement from `>=3.5.4,<3.6.0` to `>=3.5.4,<3.7.0` | ||
- Bump `pytest` from `5.1.1` to `5.1.2` | ||
- Update `tartiflette` requirement from `>=0.12.0,<0.13.0` to `>=0.12.0,<2.0.0` - [ISSUE-49](https://github.com/tartiflette/tartiflette-aiohttp/issues/49) thrown by @aljinovic | ||
|
||
## Fixed | ||
|
||
- Fix `RuntimeError` when subscription connection is reset - [ISSUE-50](https://github.com/tartiflette/tartiflette-aiohttp/issues/50) thrown by @jonypawks | ||
- Determines the appropriate `ws` protocol to use depending on current used protocol - [ISSUE-20](https://github.com/tartiflette/tartiflette-aiohttp/issues/20) thrown by @bkcsfi |
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 |
---|---|---|
|
@@ -16,13 +16,13 @@ | |
<meta charset="utf-8" /> | ||
<title>GraphiQL</title> | ||
<meta name="robots" content="noindex" /> | ||
<link href="//cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.css" rel="stylesheet"> | ||
<link href="//cdn.jsdelivr.net/npm/graphiql@0.14.2/graphiql.css" rel="stylesheet"> | ||
<script src="//cdn.jsdelivr.net/es6-promise/4.0.5/es6-promise.auto.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/fetch/0.9.0/fetch.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/react/15.4.2/react.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/react/15.4.2/react-dom.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/subscriptions-transport-ws@0.7.0/browser/client.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/graphiql@0.14.2/graphiql.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/subscriptions-transport-ws@0.8.3/browser/client.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/browser/client.js"></script> | ||
</head> | ||
<body> | ||
|
@@ -151,7 +151,8 @@ | |
if (window.location.port !== "") { | ||
subscriptionURL += ":" + window.location.port; | ||
} | ||
return "ws://" + subscriptionURL + endpoint; | ||
var protocol = window.location.protocol === "https:" ? "wss:" : "ws:"; | ||
return protocol + "//" + subscriptionURL + endpoint; | ||
} | ||
|
||
// Wrap GraphQLFetcher with subscription fetcher if needed. | ||
|
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