graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

[graphiql] graphiql-cdn example does not support patch upgrades

Open mikespub opened this issue 8 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

Changing the version 4.0.0 to 4.0.1 ... 4.0.4 for all graphql packages in index.html does not work, due to various export errors reported in graphiql.bundle

Expected Behavior

Patch upgrades of the different graphql versions should not break the CDN example

Steps To Reproduce

  1. use graphiql-cdn example with version 4.0.0
  2. with this configuration it works
  3. change all 4.0.0 versions to any patch upgrade 4.0.x
  4. see different export bundle errors depending on patch version
  5. try latest 4.0.5 and get 404 errors from CDN

Environment

  • GraphiQL Version: 4.0.x
  • OS: windows
  • Browser: Chrome
  • Bundler: CDN example
  • react Version: CDN example
  • graphql Version: CDN example

Anything else?

No response

mikespub avatar May 16 '25 18:05 mikespub

you can also omit @version in url, so it will always pick up latest version, I will remove versions in graphiql cdn examples in v5

dimaMachina avatar Jun 08 '25 10:06 dimaMachina