Skip to content

Commit 8335433

Browse files
authored
remove versions pin from esm.sh examples (#4032)
1 parent d17b546 commit 8335433

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

examples/graphiql-cdn/index.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,10 @@
2828
font-size: 4rem;
2929
}
3030
</style>
31+
<link rel="stylesheet" href="https://esm.sh/graphiql/dist/style.css" />
3132
<link
3233
rel="stylesheet"
33-
href="https://esm.sh/[email protected]/dist/style.css"
34-
/>
35-
<link
36-
rel="stylesheet"
37-
href="https://esm.sh/@graphiql/[email protected]/dist/style.css"
34+
href="https://esm.sh/@graphiql/plugin-explorer/dist/style.css"
3835
/>
3936
<!-- Note: the ?standalone flag bundles the module along with all of its `dependencies`, excluding `peerDependencies`, into a single JavaScript file. -->
4037
<script type="importmap">
@@ -46,9 +43,9 @@
4643
"react-dom": "https://esm.sh/[email protected]",
4744
"react-dom/client": "https://esm.sh/[email protected]/client",
4845

49-
"graphiql": "https://esm.sh/graphiql@6.0.0-canary-b26dcda1.0?standalone&external=react,react-dom,@graphiql/react,graphql",
50-
"@graphiql/plugin-explorer": "https://esm.sh/@graphiql/plugin-explorer@5.0.0-rc.1?standalone&external=react,@graphiql/react,graphql",
51-
"@graphiql/react": "https://esm.sh/@graphiql/react@0.36.0-canary-b26dcda1.0?standalone&external=react,react-dom,graphql",
46+
"graphiql": "https://esm.sh/graphiql?standalone&external=react,react-dom,@graphiql/react,graphql",
47+
"@graphiql/plugin-explorer": "https://esm.sh/@graphiql/plugin-explorer?standalone&external=react,@graphiql/react,graphql",
48+
"@graphiql/react": "https://esm.sh/@graphiql/react?standalone&external=react,react-dom,graphql",
5249

5350
"@graphiql/toolkit": "https://esm.sh/@graphiql/toolkit?standalone&external=graphql",
5451
"graphql": "https://esm.sh/[email protected]"

packages/graphiql-plugin-code-exporter/example/index.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,10 @@
2828
font-size: 4rem;
2929
}
3030
</style>
31+
<link rel="stylesheet" href="https://esm.sh/graphiql/dist/style.css" />
3132
<link
3233
rel="stylesheet"
33-
href="https://esm.sh/[email protected]/dist/style.css"
34-
/>
35-
<link
36-
rel="stylesheet"
37-
href="https://esm.sh/@graphiql/[email protected]/dist/style.css"
34+
href="https://esm.sh/@graphiql/plugin-code-exporter/dist/style.css"
3835
/>
3936
<!-- Note: the ?standalone flag bundles the module along with all of its `dependencies`, excluding `peerDependencies`, into a single JavaScript file. -->
4037
<script type="importmap">
@@ -46,9 +43,9 @@
4643
"react-dom": "https://esm.sh/[email protected]",
4744
"react-dom/client": "https://esm.sh/[email protected]/client",
4845

49-
"graphiql": "https://esm.sh/graphiql@6.0.0-canary-b26dcda1.0?standalone&external=react,react-dom,@graphiql/react,graphql",
50-
"@graphiql/plugin-code-exporter": "https://esm.sh/@graphiql/plugin-code-exporter@4.0.6-rc.0?standalone&external=react,@graphiql/react,graphql&[email protected]",
51-
"@graphiql/react": "https://esm.sh/@graphiql/react@0.36.0-canary-b26dcda1.0?standalone&external=react,react-dom,graphql",
46+
"graphiql": "https://esm.sh/graphiql?standalone&external=react,react-dom,@graphiql/react,graphql",
47+
"@graphiql/plugin-code-exporter": "https://esm.sh/@graphiql/plugin-code-exporter?standalone&external=react,@graphiql/react,graphql&[email protected]",
48+
"@graphiql/react": "https://esm.sh/@graphiql/react?standalone&external=react,react-dom,graphql",
5249

5350
"@graphiql/toolkit": "https://esm.sh/@graphiql/toolkit?standalone&external=graphql",
5451
"graphql": "https://esm.sh/[email protected]",

0 commit comments

Comments
 (0)