Skip to content

Latest commit

 

History

History
554 lines (310 loc) · 29 KB

CHANGELOG.md

File metadata and controls

554 lines (310 loc) · 29 KB

Change Log

1.6.0

Minor Changes

Patch Changes

1.5.3

Patch Changes

1.5.2

Patch Changes

  • #3521 aa6dbbb4 Thanks @acao! - Fixes several issues with Type System (SDL) completion across the ecosystem:

    • restores completion for object and input type fields when the document context is not detectable or parseable
    • correct top-level completions for either of the unknown, type system or executable definitions. this leads to mixed top level completions when the document is unparseable, but now you are not seemingly restricted to only executable top level definitions
    • .graphqls ad-hoc standard functionality remains, but is not required, as it is not part of the official spec, and the spec also allows mixed mode documents in theory, and this concept is required when the type is unknown
  • Updated dependencies [aa6dbbb4]:

1.5.1

Patch Changes

1.5.0

Minor Changes

1.4.0

Minor Changes

Patch Changes

  • #3384 31ded5e0 Thanks @acao! - import only editor.api & basic features, add monaco-graphql/lite

    • switch from exporting edcore.js to editor.api.js as recommended, and minimal features to get the editor working
      • edcore imports editor.all which contains many monaco-editor features we don't use
    • dynamic import of json language mode only if the user supplies configuration for json validation
    • update monaco examples to show minimal typescript implementation alongside graphql
    • add new simplified exports with backwards compatibility:
      • monaco-graphql/initializeMode
      • monaco-graphql/graphql.worker
      • monaco-graphql/monaco-editor
    • introduce monaco-graphql/lite for users who want the most minimum version possible, and to only import the features they need
  • Updated dependencies [7b00774a, 7b00774a]:

1.3.0

Minor Changes

  • #3285 d7f595e3 Thanks @B2o5T! - avoid bundling unnecessary languages — import monaco-graphql/esm/monaco-editor instead of monaco-editor to reduce your bundle size, as that imports only graphql and json languages and leaves out ts, css, html, and much more

1.2.4

Patch Changes

1.2.4-alpha.0

Patch Changes

1.2.3

Patch Changes

1.2.2

Patch Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

Patch Changes

1.1.8

Patch Changes

1.1.7

Patch Changes

1.1.6

Patch Changes

  • #2900 8989ffce Thanks @acao! - use decorators-legacy @babel/parser plugin so that all styles of decorator usage are supported

1.1.5

Patch Changes

  • #2488 967006a6 Thanks @acao! - DisablefillLeafsOnComplete by default

    Users found this generally annoying by default, especially when there are required arguments

    Without automatically prompting autocompletion of required arguments as well as lead expansion, it makes the extension harder to use

    You can now supply this in your graphql config:

    config.extensions.languageService.fillLeafsOnComplete

    Setting it to to true will enable this feature. Will soon add the ability to manually enable this in monaco-graphql as well.

    For both, this kind of behavior would be better as a keyboard command, context menu item &/or codelens prompt

1.1.4

Patch Changes

  • #2834 0a950ea3 Thanks @acao! - prevent the mode from instantiating more than once in the main process. it should never need to!

    you can supply multiple schemas with uri path resolution rules that resolve globs in the browser even!

1.1.3

Patch Changes

1.1.2

Patch Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

1.0.17

Patch Changes

1.0.16

Patch Changes

1.0.15

Patch Changes

1.0.14

Patch Changes

  • #2253 63177891 Thanks @acao! - fix worker + n problem when changing config (schema, etc) in monaco-graphql

1.0.13

Patch Changes

1.0.12

Patch Changes

1.0.11

Patch Changes

  • #2222 33f4bf97 Thanks @acao! - fixed lost this handle while parsing schema, thanks @waterfoul

1.0.10

Patch Changes

1.0.9

Patch Changes

  • #2118 0d1122f9 Thanks @acao! - fix: monaco getModeId bug for monaco-editor@^0.30.0

    We fixed this already, but we reverted it because folks were having issues with older versions. This fix works for all versions of monaco-editor that we support!

1.0.8

Patch Changes

  • #2116 65a51d04 Thanks @acao! - - picomatch-browser fork no longer uses path. these changes to remove node dependencies from picomatch, 99% of them are by another contributor, will eventually be merged into the actual picomatch
    • no onLanguage for initializeMode - always instantiate the mode when this is called directly! Fixes some editor creation race condition issues
    • introduce a demo using react + vite and minimal config, no workarounds! This will help us prototype for @graphiql/react
    • use schemaValidation: 'error' by default. allow user to override validate if they want.
    • always re-register providers on schema config changes. seems to fix some issues on lazy instantiation

1.0.7

Patch Changes

1.0.6

Patch Changes

  • #2105 f7dc1f12 Thanks @acao! - Fix a bug where _cacheSchemas() was not being called by the language service

1.0.5

Patch Changes

1.0.4

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

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 configuration 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 initializeMode() 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

0.6.5

Patch Changes

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

  • Updated dependencies [df57cd25]:

0.6.4

Patch Changes

0.6.3

Patch Changes

0.6.2

Patch Changes

0.6.1

Patch Changes

0.6.0

Minor Changes

Patch Changes

0.5.1

Patch Changes

  • 0e2c1a02 #1979 Thanks @iahu! - fix: export monaco-graphql esm with esm modules, also fix issues with worker manager, resolves #1706 & #1791

0.5.0

Minor Changes

  • fec37c6b #1952 Thanks @Nishchit14! - devDependency and peerDependency of monaco-graphql has been upgraded for monaco-editor. monaco-graphql is now supporting latest version of monaco-editor which is v0.27.0

Patch Changes

0.4.4

Patch Changes

0.4.3

Patch Changes

  • 6869ce77 #1816 Thanks @acao! - improve peer resolutions for graphql 14 & 15. 14.5.0 minimum is for built-in typescript types, and another method only available in 14.4.0

0.4.2 (2021-01-07)

Note: Version bump only for package monaco-graphql

0.4.1 (2021-01-07)

Note: Version bump only for package monaco-graphql

0.4.0 (2021-01-07)

Features

0.3.5 (2021-01-03)

Note: Version bump only for package monaco-graphql

0.3.4 (2020-12-28)

Note: Version bump only for package monaco-graphql

0.3.3 (2020-12-08)

Bug Fixes

  • GraphQLAPI.setSchemaConfig README example (#1726) (01a1ff7)

0.3.2 (2020-11-28)

Note: Version bump only for package monaco-graphql

0.3.1 (2020-09-18)

Note: Version bump only for package monaco-graphql

0.3.1-alpha.3 (2020-09-11)

Note: Version bump only for package monaco-graphql

0.3.1-alpha.2 (2020-08-22)

Bug Fixes

  • improve setSchema & schema loading, allow primitive schema (#1648) (975f29e)

0.3.1-alpha.1 (2020-08-12)

Note: Version bump only for package monaco-graphql

0.3.1-alpha.0 (2020-08-10)

Note: Version bump only for package monaco-graphql

0.3.0 (2020-08-06)

Features

  • [RFC] GraphiQL rewrite for monaco editor, react context and redesign, i18n (#1523) (ad730cd)

0.2.0 (2020-06-11)

Features

0.1.4 (2020-06-04)

Note: Version bump only for package monaco-graphql

0.1.3 (2020-06-04)

Bug Fixes

  • cleanup cache entry from lerna publish (4a26218)

0.1.2 (2020-05-28)

Note: Version bump only for package monaco-graphql

0.1.1 (2020-05-19)

Note: Version bump only for package monaco-graphql

0.1.0 (2020-05-17)

Features