Major Changes
-
#4359
ac56840Thanks @trevor-scheer! - Add@graphiql/plugin-collectionsfor saving operations in named collections, reopening them in tabs, and sharing or importing collections as JSON. Save with Cmd+S/Ctrl+S or the Save button. Re-saving an operation opened from a collection updates that saved item. Imports match items by stable ID and offer conflict resolution; merging preserves existing items.Use
COLLECTIONS_PLUGINfor the default configuration, orcollectionsPlugin(options)to configure a storage adapter,readOnly,allowImportExport, andallowReplace. The default adapter useslocalStorage.@graphiql/reactaddsregisterSaveHandler(handler)to connect a plugin to the save shortcut and button. Only one handler can be registered at a time. GraphiQL waits for its promise to resolve before marking the submitted query snapshot saved; cancellation and errors leave it unsaved.GraphiQLPlugin.sessionActionsprovides an always-mounted slot for plugin actions, dialogs, and behavior registration. -
#4478
066528aThanks @trevor-scheer! - GraphQL.js 15 and 16.0–16.10 are no longer supported peer dependencies. The supported range is^16.11.0 || ^17.0.0. GraphQL.js 16.11 fixes OneOf input validation for nullable variables and tightens input-object coercion to reject arrays, giving GraphiQL 6 a correct baseline for OneOf inputs. Upgradegraphqlbefore upgrading these packages.