Skip to content

Commit

Permalink
Merge pull request #195 from remcohaszing/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
remcohaszing authored Jan 26, 2023
2 parents b47ef21 + ed8f991 commit ea5c7b5
Show file tree
Hide file tree
Showing 13 changed files with 3,191 additions and 2,402 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ extends:
- remcohaszing/typechecking
rules:
'@typescript-eslint/no-unnecessary-condition': off
'@typescript-eslint/prefer-nullish-coalescing': off

import/no-extraneous-dependencies: off

jsdoc/require-jsdoc: off

n/no-extraneous-import: off
n/prefer-global/process: off
n/no-unsupported-features/es-syntax: off
n/no-unsupported-features/node-builtins: off
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFile } from 'fs/promises';
import { fileURLToPath } from 'url';
import { readFile } from 'node:fs/promises';
import { fileURLToPath } from 'node:url';

import { build } from 'esbuild';

Expand Down
4 changes: 2 additions & 2 deletions examples/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"css-minimizer-webpack-plugin": "^4.0.0",
"html-webpack-plugin": "^5.0.0",
"mini-css-extract-plugin": "^2.0.0",
"monaco-editor": "^0.33.0",
"monaco-editor": "^0.34.0",
"monaco-yaml": "file:../..",
"ts-loader": "^9.0.0",
"typescript": "^4.0.0",
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0",
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^4.0.0"
}
}
17 changes: 2 additions & 15 deletions examples/demo/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { JSONSchemaForSchemaStoreOrgCatalogFiles } from '@schemastore/schema-catalog';
import {
editor,
Environment,
languages,
MarkerSeverity,
Position,
Range,
Uri,
} from 'monaco-editor';
import { editor, languages, MarkerSeverity, Position, Range, Uri } from 'monaco-editor';
import { ILanguageFeaturesService } from 'monaco-editor/esm/vs/editor/common/services/languageFeatures.js';
import { OutlineModel } from 'monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js';
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
Expand All @@ -16,12 +8,6 @@ import { SchemasSettings, setDiagnosticsOptions } from 'monaco-yaml';
import './index.css';
import defaultSchemaUri from './schema.json';

declare global {
interface Window {
MonacoEnvironment: Environment;
}
}

window.MonacoEnvironment = {
getWorker(moduleId, label) {
switch (label) {
Expand Down Expand Up @@ -121,6 +107,7 @@ const ed = editor.create(document.getElementById('editor'), {

const select = document.getElementById('schema-selection') as HTMLSelectElement;

// eslint-disable-next-line unicorn/prefer-top-level-await
fetch('https://www.schemastore.org/api/json/catalog.json').then(async (response) => {
if (!response.ok) {
return;
Expand Down
4 changes: 2 additions & 2 deletions examples/monaco-editor-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"dependencies": {
"css-loader": "^6.0.0",
"html-webpack-plugin": "^5.0.0",
"monaco-editor": "^0.33.0",
"monaco-editor": "^0.34.0",
"monaco-editor-webpack-plugin": "^7.0.0",
"monaco-yaml": "file:../..",
"style-loader": "^3.0.0",
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0",
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^4.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/vite-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"build": "vite build"
},
"dependencies": {
"monaco-editor": "^0.33.0",
"monaco-editor": "^0.34.0",
"monaco-yaml": "file:../..",
"vite": "^3.0.0"
"vite": "^4.0.0"
}
}
Loading

0 comments on commit ea5c7b5

Please sign in to comment.