Skip to content

Commit e529dd9

Browse files
authored
updated graphiql and react to the latest stable versions (#1117)
1 parent ea4a003 commit e529dd9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

static/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,17 @@ function render () {
157157

158158
function importDependencies () {
159159
const link = document.createElement('link')
160-
link.href = 'https://unpkg.com/graphiql@2.0.9/graphiql.min.css'
160+
link.href = 'https://unpkg.com/graphiql@3.7.1/graphiql.min.css'
161161
link.type = 'text/css'
162162
link.rel = 'stylesheet'
163163
link.media = 'screen,print'
164164
link.crossOrigin = 'anonymous'
165165
document.getElementsByTagName('head')[0].appendChild(link)
166166

167167
return importer.urls([
168-
'https://unpkg.com/react@18.2.0/umd/react.production.min.js',
169-
'https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js',
170-
'https://unpkg.com/graphiql@2.0.9/graphiql.min.js'
168+
'https://unpkg.com/react@18.3.1/umd/react.production.min.js',
169+
'https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js',
170+
'https://unpkg.com/graphiql@3.7.1/graphiql.min.js'
171171
]).then(function () {
172172
const pluginUrls = window.GRAPHIQL_PLUGIN_LIST
173173
.map(plugin => window[`GRAPIHQL_PLUGIN_${plugin.toUpperCase()}`].umdUrl)

static/sw.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
self.addEventListener('install', function (e) {
44
e.waitUntil(
5-
caches.open('graphiql-v2.0.9').then(function (cache) {
5+
caches.open('graphiql-v3.7.1').then(function (cache) {
66
return cache.addAll([
77
'./main.js',
8-
'https://unpkg.com/graphiql@2.0.9/graphiql.css',
9-
'https://unpkg.com/react@18.2.0/umd/react.production.min.js',
10-
'https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js',
11-
'https://unpkg.com/graphiql@2.0.9/graphiql.min.js'
8+
'https://unpkg.com/graphiql@3.7.1/graphiql.css',
9+
'https://unpkg.com/react@18.3.1/umd/react.production.min.js',
10+
'https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js',
11+
'https://unpkg.com/graphiql@3.7.1/graphiql.min.js'
1212
])
1313
})
1414
)

0 commit comments

Comments
 (0)