Skip to content

Commit daaede4

Browse files
committed
[IMP] update graphiql lib to latest version
1 parent d82b0c4 commit daaede4

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

graphql_base/views/graphiql.xml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,23 @@
2828
If you do not want to rely on a CDN, you can host these files locally or
2929
include them directly in your favored resource bunder.
3030
-->
31+
<!-- GraphiQL 4.1.0 + peer-deps from a CDN -->
3132
<link
32-
href="//cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.css"
3333
rel="stylesheet"
34+
href="//unpkg.com/graphiql@4.1.0/graphiql.min.css"
3435
/>
35-
<script src="//cdn.jsdelivr.net/npm/whatwg-fetch@2.0.3/fetch.min.js" />
36-
<script
37-
src="//cdn.jsdelivr.net/npm/react@16.2.0/umd/react.production.min.js"
38-
/>
36+
37+
<!-- Promise/fetch polyfills if you still need them -->
38+
<script src="//cdn.jsdelivr.net/npm/whatwg-fetch@3/fetch.umd.min.js" />
39+
40+
<!-- React 18 UMD builds (any 16-18 will do) -->
41+
<script src="//unpkg.com/react@18/umd/react.production.min.js" />
3942
<script
40-
src="//cdn.jsdelivr.net/npm/react-dom@16.2.0/umd/react-dom.production.min.js"
43+
src="//unpkg.com/react-dom@18/umd/react-dom.production.min.js"
4144
/>
42-
<script src="//cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.min.js" />
45+
46+
<!-- GraphiQL itself -->
47+
<script src="//unpkg.com/graphiql@4.1.0/graphiql.min.js" />
4348
</t>
4449
<t t-set="head" t-value="head" />
4550
</t>

0 commit comments

Comments
 (0)