File tree Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ The signature of the `init` function:
58
58
You can get GraphQL Voyager bundle from the following places:
59
59
60
60
- [ ![ jsDelivr] ( https://data.jsdelivr.com/v1/package/npm/graphql-voyager/badge )] ( https://www.jsdelivr.com/package/npm/graphql-voyager )
61
- - some exact version - https://cdn.jsdelivr.net/npm/graphql-voyager/v1.0.0-rc.15/ voyager.min .js
62
- - latest version - https://cdn.jsdelivr.net/npm/graphql-voyager/dist/voyager.min .js
61
+ - some exact version - https://cdn.jsdelivr.net/npm/graphql-voyager@1.2/dist/ voyager.standalone .js
62
+ - latest version - https://cdn.jsdelivr.net/npm/graphql-voyager/dist/voyager.standalone .js
63
63
- from ` dist ` folder of the npm package ` graphql-voyager `
64
64
65
65
** The HTML with minimal setup** (see the full [ example] ( ./example ) )
@@ -68,14 +68,11 @@ You can get GraphQL Voyager bundle from the following places:
68
68
<!DOCTYPE html>
69
69
<html >
70
70
<head >
71
- <script src =" https://cdn.jsdelivr.net/npm/react@16/umd/react.production.min.js" ></script >
72
- <script src =" https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js" ></script >
73
-
74
71
<link
75
72
rel =" stylesheet"
76
73
href =" https://cdn.jsdelivr.net/npm/graphql-voyager/dist/voyager.css"
77
74
/>
78
- <script src =" https://cdn.jsdelivr.net/npm/graphql-voyager/dist/voyager.min .js" ></script >
75
+ <script src =" https://cdn.jsdelivr.net/npm/graphql-voyager/dist/voyager.standalone .js" ></script >
79
76
</head >
80
77
<body >
81
78
<div id =" voyager" >Loading...</div >
Original file line number Diff line number Diff line change 13
13
}
14
14
</ style >
15
15
16
- <!--
17
- GraphQL Voyager itself depends on React DOM.
18
- If you do not want to rely on a CDN, you can host these files locally or
19
- include them directly in your favored resource bundler.
20
- -->
21
- < script src ="https://cdn.jsdelivr.net/npm/react@16/umd/react.production.min.js "> </ script >
22
- < script src ="https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js "> </ script >
23
-
24
16
<!--
25
17
These two files are served from jsdelivr CDN, however you may wish to
26
18
copy them directly into your environment, or perhaps include them in your
30
22
rel ="stylesheet "
31
23
href ="https://cdn.jsdelivr.net/npm/graphql-voyager/dist/voyager.css "
32
24
/>
33
- < script src ="https://cdn.jsdelivr.net/npm/graphql-voyager/dist/voyager.min .js "> </ script >
25
+ < script src ="https://cdn.jsdelivr.net/npm/graphql-voyager/dist/voyager.standalone .js "> </ script >
34
26
</ head >
35
27
< body >
36
28
< div id ="voyager "> Loading...</ div >
Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ export default function renderVoyagerPage(options: MiddlewareOptions) {
31
31
<link rel="stylesheet"
32
32
href="https://cdn.jsdelivr.net/npm/graphql-voyager@${ version } /dist/voyager.css"
33
33
/>
34
- <script src="https://cdn.jsdelivr.net/npm/react@16/umd/react.production.min.js"></script>
35
- <script src="https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js"></script>
36
- <script src="https://cdn.jsdelivr.net/npm/graphql-voyager@${ version } /dist/voyager.min.js"></script>
34
+ <script src="https://cdn.jsdelivr.net/npm/graphql-voyager@${ version } /dist/voyager.standalone.js"></script>
37
35
</head>
38
36
<body>
39
37
<main id="voyager">
You can’t perform that action at this time.
0 commit comments