Commit graph

102 commits

Author SHA1 Message Date
Remco Haszing
f44c4e8e34
Update dependencies 2021-11-15 17:54:04 +01:00
Remco Haszing
edf8623b78
Update dependencies 2021-11-10 21:59:05 +01:00
Remco Haszing
5507d53dee
Merge branch 'main' into update-dependencies 2021-11-10 21:40:56 +01:00
Remco Haszing
4f06c90e34
4.0.0-alpha.0 2021-11-09 21:56:55 +01:00
Melvin Laplanche
f3decc20dd
Update monaco to 0.30 2021-11-09 10:43:15 -08:00
Remco Haszing
554699887d
Update dependencies
- Both `js-yaml` and `yaml-languageserver-parser` have been replaced with
  `yaml`.
- `jsonc-parser` has been externalized.
- All defaults are now specified explicitly.
- The new property `yamlVersion` has been added to match
  `yaml-language-server`. The default is `1.2`.
- `DiagnosticsOptions` properties are now sorted alphabetically and
  documentation has been enhanced.

Closes #117
2021-10-17 12:32:19 +02:00
Remco Haszing
979ed62d6f
3.2.1 2021-09-15 21:59:27 +02:00
Remco Haszing
3d037a15a6
3.2.0 2021-09-06 10:05:52 +02:00
Remco Haszing
99dcdff6fe
Update dependencies
All caret ranges are now defined as `^x.0.0`.

A small ESLint issue was fixed, which was reported by the updates ESLint
configuration.
2021-09-02 15:39:23 +02:00
Remco Haszing
28928ca314
3.1.0 2021-08-26 17:24:30 +02:00
Remco Haszing
020c123830
Merge pull request #89 from remcohaszing/automate-publishing
Automate publishing to npm
2021-08-25 18:42:04 +02:00
Remco Haszing
a95fdc4463
Use type-fest Promisable for worker return types
Monaco turns the synchronous return values into promises anyway.
2021-08-23 17:19:36 +02:00
Remco Haszing
d1c499b224
Automate publishing to npm
Also the `lint` job has been split into `eslint` and `prettier`.

Closes #6
2021-08-23 17:15:07 +02:00
Remco Haszing
1f476ad558
Bump js-yaml
This needs to be in sync with `yaml-language-server`.
2021-08-23 16:18:45 +02:00
Remco Haszing
2228054e58
Update yaml-language-server to 0.22.0 2021-08-21 23:19:37 +02:00
Remco Haszing
fff16c993e
Update monaco-editor to 0.27.0
This is only used for development. Everything still works.
2021-08-19 18:03:12 +02:00
Remco Haszing
26b0d6ea96
Merge pull request #74 from remcohaszing/esbuild
Build project using esbuild
2021-08-15 21:23:51 +02:00
Remco Haszing
0d107449ad
Add keywords in package.json
This helps people find this package.
2021-08-15 12:46:36 +02:00
Remco Haszing
95fd123191
Build project using esbuild
This is much more flexible than `monaco-plugin-helpers`. Because of
this, it’s possible to use Prettier as an external dependency, so users
can ignore it in their own build process of they choose not to support
formatting.

Instead of rewriting YAML language service imports in the build tool, I
decided to just import them from where they need to be imported in the
source code.

Closes #63
2021-08-15 12:37:13 +02:00
Remco Haszing
c2e6af4198
3.0.1 2021-08-10 09:57:35 +02:00
Remco Haszing
11030e5599
Update metadata
- Add links to https://monaco-editor.js.org
- Add netlify badge to the readme
- Add YAML icon to the demo
2021-08-09 20:49:00 +02:00
Remco Haszing
13c46f5de6
Update dependencies
Most notably update to Webpack 5. Webpack 5 supports web workers without
the need of a loader, so the `webpack-worker-loader` example has been
removed.
2021-08-05 18:33:58 +02:00
Remco Haszing
2ea154af85
Update documentation
- Update repository links
- Restructure the readme
- Add contributing document
- Update credits
2021-07-31 16:15:45 +02:00
Remco Haszing
090302534a
3.0.0 2021-07-18 15:01:19 +02:00
Remco Haszing
7174aff026
Expose setDiagnosticsOptions in monaco-yaml
This removes the need to explain certain statements and imports need to
happen in a specific order. Users can now just use:

```ts
import { setDiagnosticsOptions } from 'monaco-yaml';

setDiagnosticsOptions({});
```
2021-07-18 14:58:42 +02:00
Remco Haszing
7a6fcf0c64
Add missing diagnostics options in types
Also JSON schemas have been typed to be more specific using
`@types/json-schema`.
2021-07-18 14:20:41 +02:00
Remco Haszing
ac7b6fe307
Introduce ESLint
The ESLint preset `eslint-config-remcohaszing` is used.
2021-07-17 17:12:17 +02:00
Remco Haszing
f327e73f66
Bump dependencies 2021-07-17 14:20:08 +02:00
Remco Haszing
67e2accd3b
Remove UMD support
It was already broken.

Also the npm ecosystem is moving towards ESM only. This package should be a
part of that.
2021-07-17 13:22:05 +02:00
Remco Haszing
ec4de1f50c
Convert from yarn to npm
Npm 7 also supports workspaces, but doesn’t require the workspace root to be
private. This means the examples can be workspaces within the project, so the
entire project can be handled as one mono repository with a single lock file and
`node_modules` directory.

Also the readme has been updated with usage instructions.
2021-04-28 17:47:00 +02:00
Remco Haszing
c4a95e2dd5
Replace monaco namespace with monaco-editor imports
This is a preparation for `monaco-editor@^0.22.0`. In this version the global
`monaco` object was removed for ESM users.

A choice was made to use `monaco-editor` imports, because this probably has
best compatibility for most users. If users want to use `monaco-editor-core`,
they will have to create an alias in their own build process.
2021-04-13 21:18:18 +02:00
Remco Haszing
09e2418046
Fix js-yaml dependency 2021-04-13 20:17:12 +02:00
Remco Haszing
5fd08c73ed
Update prettier to match yaml-language-server
Since both yaml-language-server and prettier are included in the bundle, their
versions should match for best compatibility. Also code has been formatted using
the updated prettier.
2021-04-13 20:17:12 +02:00
Remco Haszing
3762a98af0
Fix dependencies
This package includes `yaml-language-server` in its build. This means it’s not a
runtime dependency, but it belongs in `devDependencies`.

The runtime bundle does depend on the dependencies specified in `resolveSkip` in
`scripts/bundle-esm.js`. These packages have been added as direct dependencies
instead.
2021-04-13 20:17:12 +02:00
Remco Haszing
1b173c35a9
Move build script into prepare
This is needed for the examples to work.
2021-03-30 21:30:02 +02:00
Remco Haszing
c8d9e1cc58
Upgrade TypeScript 2021-03-25 18:00:50 +01:00
Remco Haszing
04907bd623
Apply prettier on all committed files 2021-03-25 17:59:58 +01:00
Remco Haszing
f4130f38a3
Move yarn prepare script to prepack
No need to rebuild the package on every `yarn install`, but it should be built
before packing.
2021-03-25 17:52:58 +01:00
Remco Haszing
1c532f6815
Update husky and lint-staged 2021-03-25 17:40:43 +01:00
Remco Haszing
26317d314a
Replace .npmignore with package.json files
This is inclusive instead of exclusive, which is more manageable.
2021-03-25 17:40:24 +01:00
Remco Haszing
a5a49756be
Remove unused dependencies
Jest, eslint, and typescript-tslint-plugin were installed, but never used. Node
types were used for timers, but this is incorrect, as this code is supposed to
run in the browser.
2021-03-25 17:40:16 +01:00
apimastery
0889a43871 version-bump monaco-editor 2020-10-01 20:30:27 -05:00
apimastery
ba85acba70 version-bump yaml-language-server,monaco-editor,monaco-editor-core,monaco-languages 2020-09-25 18:39:35 -05:00
apimastery
6ba5b6d180 use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:24:30 -05:00
apimastery
5b6cae33b2 use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:23:48 -05:00
apimastery
4dd5405431 Move tsconfig-s to the root of the project and update them 2020-09-20 19:20:19 -05:00
Himanshu Kapoor
d7bbebe8fc v2.5.0 2020-08-20 15:24:36 +05:30
Himanshu Kapoor
fa72f5d6be
WIP: Dependency upgrades (#27)
* Update dependencies and remove language server

Dependency upgrades:
- monaco-editor 0.16.2 -> 0.20.0
- monaco-editor-core 0.16.1 -> 0.20.0
- monaco-languages 1.6.0 -> 1.10.0
- monaco-plugin-helpers 1.0.2 -> 1.0.3

Remove dependencies that are also dependencies of yaml-language-server

Remove all code from
- src/languageservice
- src/yaml-ast-parser-custom-tags
- test

* Update paths and deps in react examples

* fix: 🐛 fix package (#29)

Co-authored-by: DMY <147dmy@gmail.com>
2020-08-20 15:12:43 +05:30
Himanshu Kapoor
6fc193342f v2.4.1 2020-07-17 14:32:42 +05:30
Himanshu Kapoor
cf610df47e Remove usage of monaco.Promise
It was removed in Monaco 16.0
2020-07-02 14:46:45 +05:30