Skip to content

Commit 9cddfb8

Browse files
committed
Update dependencies
Notably this updates to yaml-language-server 1.16.0 and Prettier 3.
1 parent f38e40c commit 9cddfb8

11 files changed

Lines changed: 6440 additions & 3900 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ offers to configure the YAML language support.
3030
- [Examples](#examples)
3131
- [API](#api)
3232
- [`configureMonacoYaml(monaco, options?)`](#configuremonacoyamlmonaco-options)
33-
- [Arguments](#arguments)
34-
- [Options](#options)
35-
- [Returns](#returns)
3633
- [FAQ](#faq)
3734
- [Does this work with the Monaco UMD bundle?](#does-this-work-with-the-monaco-umd-bundle)
3835
- [Does this work with Monaco Editor from a CDN?](#does-this-work-with-monaco-editor-from-a-cdn)

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ await build({
3131
sideEffects: false
3232
}))
3333
// Ajv would significantly increase bundle size.
34-
onResolve({ filter: /^ajv$/ }, () => ({
34+
onResolve({ filter: /^(ajv$|ajv-draft-04$|ajv\/dist\/)/ }, () => ({
3535
path: fileURLToPath(new URL('fillers/ajv.ts', import.meta.url))
3636
}))
3737
// We only need cloneDeep from lodash. This can be replaced with structuredClone.

examples/demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"css-minimizer-webpack-plugin": "^7.0.0",
1515
"html-webpack-plugin": "^5.0.0",
1616
"mini-css-extract-plugin": "^2.0.0",
17-
"monaco-editor": "^0.50.0",
17+
"monaco-editor": "^0.52.0",
1818
"monaco-yaml": "file:../..",
1919
"ts-loader": "^9.0.0",
2020
"webpack": "^5.0.0",
21-
"webpack-cli": "^5.0.0",
21+
"webpack-cli": "^6.0.0",
2222
"webpack-dev-server": "^5.0.0"
2323
}
2424
}

examples/monaco-editor-webpack-plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"dependencies": {
1111
"css-loader": "^7.0.0",
1212
"html-webpack-plugin": "^5.0.0",
13-
"monaco-editor": "^0.50.0",
13+
"monaco-editor": "^0.52.0",
1414
"monaco-editor-webpack-plugin": "^7.0.0",
1515
"monaco-yaml": "file:../..",
1616
"style-loader": "^4.0.0",
1717
"webpack": "^5.0.0",
18-
"webpack-cli": "^5.0.0",
18+
"webpack-cli": "^6.0.0",
1919
"webpack-dev-server": "^5.0.0"
2020
}
2121
}

examples/vite-example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />

examples/vite-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"build": "vite build"
99
},
1010
"dependencies": {
11-
"monaco-editor": "^0.50.0",
11+
"monaco-editor": "^0.52.0",
1212
"monaco-yaml": "file:../..",
13-
"vite": "^5.0.0"
13+
"vite": "^6.0.0"
1414
}
1515
}

fillers/ajv.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import { type ValidateFunction } from 'ajv'
2-
31
export default class AJVStub {
42
// eslint-disable-next-line class-methods-use-this
5-
compile(): ValidateFunction {
6-
return () => true
3+
validateSchema(): boolean {
4+
return true
5+
}
6+
7+
// eslint-disable-next-line class-methods-use-this
8+
defaultMeta(): undefined {
9+
// This is a stub
710
}
811
}

fillers/vscode-nls.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { type LoadFunc, type LocalizeFunc } from 'vscode-nls'
33
const localize: LocalizeFunc = (key, message, ...args) =>
44
args.length === 0
55
? message
6-
: message.replace(/{(\d+)}/g, (match, [index]) => (index in args ? String(args[index]) : match))
6+
: message.replaceAll(/{(\d+)}/g, (match, [index]) =>
7+
index in args ? String(args[index]) : match
8+
)
79

810
/**
911
* Get {@link localize}

0 commit comments

Comments
 (0)