Commit a4ddbd6
fix: update to support hapi 17 (graphql#396)
* fix: update to support hapi 17
Updated plugin definition to support hapi 17. Please see the following for more information on the changes between hap 16 and 17:
https://futurestud.io/tutorials/hapi-v17-upgrade-guide-your-move-to-async-await
https://hapijs.com/api#plugins
Updated the example project to use hapi 17, including dependencies.
* v2.0.1
* v2.0.2
* v2.0.3
* v2.0.4
* v2.0.5
* wip: hapi-17-update fixes
Work in progress commit for review + feedback.
* refactor: get middleware version from package.json, example use local
Made changes requested by @timsuchanek
Plugin now uses key `playgroundVersion` in `package.json` to get middleware version from jsdelivr.
Examples/basic now uses the local version of the middleware as built with `yarn build` located in `dist`. Removed dependency from example `package.json`, as it is no longer used.
Set example version to `2.0.0` as it now uses Hapi 17.
Updated middleware dependencies to reflect those of the current version. Middleware version number will need to be bumped to a new major version for the next release, as it will not be backwards compatible with Hapi 16.
TODO: Update readme to direct users to use the last stable version supporting Hapi 16 if they don't wish to upgrade.1 parent 3c694fd commit a4ddbd6
8 files changed
Lines changed: 9777 additions & 60 deletions
File tree
- packages/graphql-playground-middleware-hapi
- examples/basic
- src
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
Lines changed: 29 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
56 | 65 | | |
57 | | - | |
58 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments