graphiql

GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools.

MIT License

Downloads
8.4M
Stars
15.7K
Committers
292

Bot releases are visible (Hide)

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Minor Changes

  • #2086 0f1f90ce Thanks @acao! - Export all modules & types explicitly from graphql-language-service
graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Major Changes

  • #1997 9df315b4 Thanks @acao! - This introduces some big changes to monaco-graphql, and some exciting features, including multi-model support, multi-schema support, and variables json language feature support πŸŽ‰.

    see the readme to learn how to configure and use the new interface.

    🚨 BREAKING CHANGES!! 🚨

    • monaco-graphql 🚨 no longer loads schemas using fetch introspection 🚨, you must specify the schema in one of many ways statically or dynamically. specifying just a schema uri no longer works. see the readme
    • when specifying the language to an editor or model, use graphql as the language id instead of graphqlDev
      • the mode now extends the default basic language support from monaco-editor itself
      • when bundling, for syntax highlighting and basic language features, you must specify graphql in languages for your webpack or vite monaco plugins
    • The exported mode api for configfuration been entirely rewritten. It is simple for now, but we will add more powerful methods to the monaco.languages.api over time :)

    New Features

    this introduces many improvements:

    • json language support, by mapping from each graphql model uri to a set of json variable model uris

      • we generate a json schema definition for the json variables on the fly
      • it updates alongside editor validation as you type
    • less redundant schema loading - schema is loaded in main process instead of in the webworker

    • web worker stability has been improved by contributors in previous patches, but removing remote schema loading vastly simplifies worker creation

    • the editor now supports multiple graphql models, configurable against multiple schema configurations

    • You can now use intializeMode() to initialize the language mode & worker with the schema, but you can still lazily load it, and fall back on default monaco editor basic languages support

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

  • #2077 701ca13f Thanks @acao! - Include schema description in DocExplorer for schema introspection requests. Enables the schemaDescription option for getIntrospectionQuery().
    Also includes deprecationReason support in DocExplorer for arguments!
    Enables inputValueDeprecation in getIntrospectionQuery() and displays deprecation section on field doc view.
  • Updated dependencies [9df315b4]:
graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Major Changes

  • #1997 9df315b4 Thanks @acao! - This introduces some big changes to monaco-graphql, and some exciting features, including multi-model support, multi-schema support, and variables json language feature support πŸŽ‰.

    see the readme to learn how to configure and use the new interface.

    🚨 BREAKING CHANGES!! 🚨

    • monaco-graphql 🚨 no longer loads schemas using fetch introspection 🚨, you must specify the schema in one of many ways statically or dynamically. specifying just a schema uri no longer works. see the readme
    • when specifying the language to an editor or model, use graphql as the language id instead of graphqlDev
      • the mode now extends the default basic language support from monaco-editor itself
      • when bundling, for syntax highlighting and basic language features, you must specify graphql in languages for your webpack or vite monaco plugins
    • The exported mode api for configfuration been entirely rewritten. It is simple for now, but we will add more powerful methods to the monaco.languages.api over time :)

    New Features

    this introduces many improvements:

    • json language support, by mapping from each graphql model uri to a set of json variable model uris

      • we generate a json schema definition for the json variables on the fly
      • it updates alongside editor validation as you type
    • less redundant schema loading - schema is loaded in main process instead of in the webworker

    • web worker stability has been improved by contributors in previous patches, but removing remote schema loading vastly simplifies worker creation

    • the editor now supports multiple graphql models, configurable against multiple schema configurations

    • You can now use intializeMode() to initialize the language mode & worker with the schema, but you can still lazily load it, and fall back on default monaco editor basic languages support

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Minor Changes

  • #1997 9df315b4 Thanks @acao! - This introduces some big changes to monaco-graphql, and some exciting features, including multi-model support, multi-schema support, and variables json language feature support πŸŽ‰.

    see the readme to learn how to configure and use the new interface.

    🚨 BREAKING CHANGES!! 🚨

    • monaco-graphql 🚨 no longer loads schemas using fetch introspection 🚨, you must specify the schema in one of many ways statically or dynamically. specifying just a schema uri no longer works. see the readme
    • when specifying the language to an editor or model, use graphql as the language id instead of graphqlDev
      • the mode now extends the default basic language support from monaco-editor itself
      • when bundling, for syntax highlighting and basic language features, you must specify graphql in languages for your webpack or vite monaco plugins
    • The exported mode api for configfuration been entirely rewritten. It is simple for now, but we will add more powerful methods to the monaco.languages.api over time :)

    New Features

    this introduces many improvements:

    • json language support, by mapping from each graphql model uri to a set of json variable model uris

      • we generate a json schema definition for the json variables on the fly
      • it updates alongside editor validation as you type
    • less redundant schema loading - schema is loaded in main process instead of in the webworker

    • web worker stability has been improved by contributors in previous patches, but removing remote schema loading vastly simplifies worker creation

    • the editor now supports multiple graphql models, configurable against multiple schema configurations

    • You can now use intializeMode() to initialize the language mode & worker with the schema, but you can still lazily load it, and fall back on default monaco editor basic languages support

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Minor Changes

  • #2081 9b72af57 Thanks @acao! - Auto-expand selection sets & invoke completion on newline

    Introduces insertText and completion for field selectionSets for the appropriate field.types.
    Works across monaco-graphql and graphql-language-service-server.

    Though the changeset is bumping a patch for codemirror-graphql, the lsp completion insertText is not used by codemirror, and thus this lsp enhancment will not change the codemirror-graphql experience.

Patch Changes

  • #2076 581df6d8 Thanks @acao! - fix a potential issue where field(arg: $| in codemirror-graphql might have autocompletion insert of $\$variable because of recent changes to completion for monaco-graphql/vscode-graphql

  • Updated dependencies [9df315b4]:

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

  • c4236190 #2072 Thanks @acao! - this fixes the parsing of file URIs by graphql-language-service-server in cases such as:

    • windows without WSL
    • special characters in filenames
    • likely other cases

    previously we were using the old approach of URL(uri).pathname which was not working! now using the standard vscode-uri approach of URI.parse(uri).fsName.

    this should fix issues with object and fragment type completion as well I think

    also for #2066 made it so that graphql config is not loaded into the file cache unnecessarily, and that it's only loaded on editor save events rather than on file changed events

    fixes #1644 and #2066

  • df57cd25 #2065 Thanks @acao! - Add an opt-in feature to generate markdown in hover elements, starting with highlighting type information. Enabled for the language server and also the language service and thus monaco-graphql as well.

  • Updated dependencies [df57cd25]:

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

  • df57cd25 #2065 Thanks @acao! - Add an opt-in feature to generate markdown in hover elements, starting with highlighting type information. Enabled for the language server and also the language service and thus monaco-graphql as well.

  • Updated dependencies [989fca69, df57cd25]:

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

  • 989fca69 #2070 Thanks @acao! - Fix a bug with variable completion with duplicate $ across the ecosytem. Introduce more triggerCharacters across monaco and the LSP server for autocompletion in far more cases

  • df57cd25 #2065 Thanks @acao! - Add an opt-in feature to generate markdown in hover elements, starting with highlighting type information. Enabled for the language server and also the language service and thus monaco-graphql as well.

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

  • 989fca69 #2070 Thanks @acao! - Fix a bug with variable completion with duplicate $ across the ecosytem. Introduce more triggerCharacters across monaco and the LSP server for autocompletion in far more cases

  • Updated dependencies [df57cd25]:

graphiql - [email protected]

Published by github-actions[bot] almost 3 years ago

Patch Changes

Package Rankings
Top 0.51% on Npmjs.org
Top 10.49% on Clojars.org
Top 6.84% on Repo1.maven.org
Top 10.91% on Bower.io
Top 3.56% on Proxy.golang.org
Badges
Extracted from project README
Build Status Discord Code Coverage Snyk Vulnerabilities for GitHub Repo CII Best Practices NPM NPM NPM NPM NPM NPM NPM Discord
Related Projects