Skip to content

Latest commit

 

History

History
127 lines (89 loc) · 7.53 KB

File metadata and controls

127 lines (89 loc) · 7.53 KB

@graphiql/plugin-history

0.3.0-rc.0

Minor Changes

  • #3950 2455907 Thanks @dimaMachina! - - remove useQueryEditor, useVariableEditor, useHeaderEditor, useResponseEditor hooks
    • remove UseHeaderEditorArgs, UseQueryEditorArgs, UseResponseEditorArgs, UseVariableEditorArgs exports
    • rename components
      • StorageContextProvider => StorageStore
      • EditorContextProvider => EditorStore
      • SchemaContextProvider => SchemaStore
      • ExecutionContextProvider => ExecutionStore
      • HistoryContextProvider => HistoryStore
      • ExplorerContextProvider => ExplorerStore

Patch Changes

  • #3949 0844dc1 Thanks @dimaMachina! - - replace onCopyQuery hook with copyQuery function

    • replace onMergeQuery hook with mergeQuery function
    • replace onPrettifyEditors hook with prettifyEditors function
    • remove fetcher prop from SchemaContextProvider and schemaStore and add fetcher to executionStore
    • add onCopyQuery and onPrettifyQuery props to EditorContextProvider
    • remove exports (use GraphiQLProvider)
      • EditorContextProvider
      • ExecutionContextProvider
      • PluginContextProvider
      • SchemaContextProvider
      • StorageContextProvider
      • ExecutionContextType
      • PluginContextType
    • feat(@graphiql/react): migrate React context to zustand:
      • replace useExecutionContext with useExecutionStore hook
      • replace useEditorContext with useEditorStore hook
    • prefer getComputedStyle over window.getComputedStyle
  • #3234 86a96e5 Thanks @dimaMachina! - Migration from Codemirror to Monaco Editor

    Replacing codemirror-graphql with monaco-graphql

    Support for comments in Variables and Headers editors

  • Updated dependencies [0844dc1, 86a96e5, 2455907]:

    • @graphiql/react@0.35.0-rc.0

0.2.2

Patch Changes

  • #3970 7054591 Thanks @dimaMachina! - revert #3946 to have support multiple embedded graphiql instances on the same page

  • Updated dependencies [7054591]:

    • @graphiql/toolkit@0.11.3
    • @graphiql/react@0.34.1

0.2.1

Patch Changes

  • #3946 71755b7 Thanks @dimaMachina! - feat(@graphiql/react): migrate React context to zustand:
    • replace useExecutionContext with useExecutionStore hook
    • replace useEditorContext with useEditorStore hook
    • replace useAutoCompleteLeafs hook with getAutoCompleteLeafs function
  • Updated dependencies [71755b7, 6d631e2]:
    • @graphiql/react@0.34.0

0.2.0

Minor Changes

Patch Changes

0.1.0

Minor Changes

  • #3935 5985e13 Thanks @dimaMachina! - feat(@graphiql/plugin-history): migrate React context to zustand, replace useHistoryContext with useHistory, useHistoryActions hooks

Patch Changes

0.0.2

Patch Changes

  • Updated dependencies [98d13a3]:
    • @graphiql/react@0.32.0

0.0.1

Patch Changes

  • #3911 e7c436b Thanks @dimaMachina! - - export cn from @graphiql/react

    • remove following exports from @graphiql/react and move them in @graphiql/plugin-history package:
      • History
      • HistoryContext
      • HistoryContextType
      • HistoryContextProvider
      • useHistoryContext
      • HISTORY_PLUGIN
    • remove types from @graphiql/react (use ComponentProps<typeof MyContextProviderProps> instead):
      • HistoryContextProviderProps
      • ExecutionContextProviderProps
      • EditorContextProviderProps
      • ExplorerContextProviderProps
      • PluginContextProviderProps
      • SchemaContextProviderProps
      • StorageContextProviderProps
      • GraphiQLProviderProps
  • Updated dependencies [e7c436b]:

    • @graphiql/react@0.31.0