-
#3682
6c9f0df
Thanks @yaacovCR! - Support v17 ofgraphql-js
from17.0.0-alpha.2
forward.Includes support for the latest incremental delivery response format. For further details, see graphql/defer-stream-wg#69.
- Updated dependencies [
6c9f0df
]:
-
#3637
fdec377
Thanks @dimaMachina! - update eslint plugins and fix errors -
Updated dependencies [
fdec377
]:
-
#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
]:
-
#3384
31ded5e0
Thanks @acao! - import onlyeditor.api
& basic features, addmonaco-graphql/lite
- switch from exporting
edcore.js
toeditor.api.js
as recommended, and minimal features to get the editor workingedcore
importseditor.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 alongsidegraphql
- 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
- switch from exporting
- #3285
d7f595e3
Thanks @B2o5T! - avoid bundling unnecessary languages — importmonaco-graphql/esm/monaco-editor
instead ofmonaco-editor
to reduce your bundle size, as that imports onlygraphql
andjson
languages and leaves outts
,css
,html
, and much more
- Updated dependencies [
06007498
]:
- Updated dependencies [
4d33b221
]:
-
#3113
2e477eb2
Thanks @B2o5T! - replace.forEach
withfor..of
-
#3109
51007002
Thanks @B2o5T! - enableno-floating-promises
eslint rule -
Updated dependencies [
2e477eb2
]:
-
#3093
6ed73bf7
Thanks @acao! - Bugfix for 'worker not found' type errors on _doValidate()' -
#3047
190fae87
Thanks @B2o5T! - combining multiple Array#push() into one call
-
#2993
bdc966cb
Thanks @B2o5T! - addunicorn/consistent-destructuring
rule -
Updated dependencies [
e68cb8bc
,f788e65a
,bdc966cb
,db2a0982
,8725d1b6
]:
-
#2931
f7addb20
Thanks @B2o5T! - enableno-negated-condition
andno-else-return
rules -
#2922
d1fcad72
Thanks @B2o5T! - extendsplugin:import/recommended
and fix warnings -
#2965
0669767e
Thanks @B2o5T! - enableunicorn/prefer-optional-catch-binding
rule -
#2938
6a9d913f
Thanks @B2o5T! - enableunicorn/throw-new-error
rule -
Updated dependencies [
f7addb20
,d1fcad72
,4a8b2e17
,c70d9165
,c44ea4f1
,0669767e
,18f8e80a
,f263f778
,6a9d913f
]:
- #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