Skip to content

Commit

Permalink
updated graphiql and react to the latest stable versions (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrtivv authored Oct 14, 2024
1 parent ea4a003 commit e529dd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,17 @@ function render () {

function importDependencies () {
const link = document.createElement('link')
link.href = 'https://unpkg.com/graphiql@2.0.9/graphiql.min.css'
link.href = 'https://unpkg.com/graphiql@3.7.1/graphiql.min.css'
link.type = 'text/css'
link.rel = 'stylesheet'
link.media = 'screen,print'
link.crossOrigin = 'anonymous'
document.getElementsByTagName('head')[0].appendChild(link)

return importer.urls([
'https://unpkg.com/react@18.2.0/umd/react.production.min.js',
'https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js',
'https://unpkg.com/graphiql@2.0.9/graphiql.min.js'
'https://unpkg.com/react@18.3.1/umd/react.production.min.js',
'https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js',
'https://unpkg.com/graphiql@3.7.1/graphiql.min.js'
]).then(function () {
const pluginUrls = window.GRAPHIQL_PLUGIN_LIST
.map(plugin => window[`GRAPIHQL_PLUGIN_${plugin.toUpperCase()}`].umdUrl)
Expand Down
10 changes: 5 additions & 5 deletions static/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

self.addEventListener('install', function (e) {
e.waitUntil(
caches.open('graphiql-v2.0.9').then(function (cache) {
caches.open('graphiql-v3.7.1').then(function (cache) {
return cache.addAll([
'./main.js',
'https://unpkg.com/graphiql@2.0.9/graphiql.css',
'https://unpkg.com/react@18.2.0/umd/react.production.min.js',
'https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js',
'https://unpkg.com/graphiql@2.0.9/graphiql.min.js'
'https://unpkg.com/graphiql@3.7.1/graphiql.css',
'https://unpkg.com/react@18.3.1/umd/react.production.min.js',
'https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js',
'https://unpkg.com/graphiql@3.7.1/graphiql.min.js'
])
})
)
Expand Down

0 comments on commit e529dd9

Please sign in to comment.