- #2900
8989ffce
Thanks @acao! - use decorators-legacy @babel/parser plugin so that all styles of decorator usage are supported
-
#2488
967006a6
Thanks @acao! - DisablefillLeafsOnComplete
by defaultUsers 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 inmonaco-graphql
as well.For both, this kind of behavior would be better as a keyboard command, context menu item &/or codelens prompt
-
#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!
- Updated dependencies
[
d6ff4d7a
]:
- Updated dependencies
[
cccefa70
]:
- Updated dependencies
[
c9c51b8a
]:
- Updated dependencies
[
d22f6111
]:
- Updated dependencies
[
45cbc759
]:
- Updated dependencies
[
c36504a8
]:
- #2253
63177891
Thanks @acao! - fix worker + n problem when changing config (schema, etc) inmonaco-graphql
- Updated dependencies
[
2502a364
]:
-
#2118
0d1122f9
Thanks @acao! - fix: monacogetModeId
bug formonaco-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!
- #2116
65a51d04
Thanks @acao! - -picomatch-browser
fork no longer usespath
. these changes to remove node dependencies frompicomatch
, 99% of them are by another contributor, will eventually be merged into the actualpicomatch
- no
onLanguage
forinitializeMode
- 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 overridevalidate
if they want. - always re-register providers on schema config changes. seems to fix some issues on lazy instantiation
- no
- Updated dependencies []:
- #2105
f7dc1f12
Thanks @acao! - Fix a bug where_cacheSchemas()
was not being called by the language service
-
#2103
a44772d6
Thanks @acao! - LanguageService should not be imported bycodemirror-graphql
, and thuspicomatch
should not be imported. -
Updated dependencies [
a44772d6
]:
- Updated dependencies
[
e20760fb
]:
- Updated dependencies
[
ff9cebe5
]:
- Updated dependencies
[
0f1f90ce
]:
-
#1997
9df315b4
Thanks @acao! - This introduces some big changes tomonaco-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.
monaco-graphql
🚨 no longer loads schemas usingfetch
introspection 🚨, you must specify the schema in one of many ways statically or dynamically. specifying just a schemauri
no longer works. see the readme- when specifying the language to an editor or model, use
graphql
as the language id instead ofgraphqlDev
- 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 mode now extends the default basic language support from
- 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 :)
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
- Updated dependencies
[
9df315b4
]:
-
989fca69
#2070 Thanks @acao! - Fix a bug with variable completion with duplicate$
across the ecosystem. Introduce moretriggerCharacters
across monaco and the LSP server for autocompletion in far more cases -
Updated dependencies [
df57cd25
]:
- Updated dependencies []:
- Updated dependencies
[
bdd57312
]:
-
858907d2
#2045 Thanks @acao! - fix graphql-js peer dependencies - #2044 -
Updated dependencies [
858907d2
]:
716cf786
#2010 Thanks @acao! - upgrade to[email protected]
. thanks @saihaj!
- Updated dependencies
[
716cf786
]:
0e2c1a02
#1979 Thanks @iahu! - fix: exportmonaco-graphql
esm with esm modules, also fix issues with worker manager, resolves #1706 & #1791
-
75dbb0b1
#1777 Thanks @dwwoelfel! - adopt block string parsing for variables in language parser
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
- Updated dependencies
[
2fd5bf72
]:
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 in14.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)
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)
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)
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)
0.2.0 (2020-06-11)
0.1.4 (2020-06-04)
Note: Version bump only for package monaco-graphql
0.1.3 (2020-06-04)
- 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