github graphql/graphiql @graphiql/plugin-collections@1.0.0

Major Changes

  • #4359 ac56840 Thanks @trevor-scheer! - Add @graphiql/plugin-collections for 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_PLUGIN for the default configuration, or collectionsPlugin(options) to configure a storage adapter, readOnly, allowImportExport, and allowReplace. The default adapter uses localStorage.

    @graphiql/react adds registerSaveHandler(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.sessionActions provides an always-mounted slot for plugin actions, dialogs, and behavior registration.

  • #4478 066528a Thanks @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. Upgrade graphql before upgrading these packages.

Don't miss a new graphiql release

NewReleases is sending notifications on new releases.