Skip to content

Commit 8145a49

Browse files
authored
Update to vitest v4 (#982)
1 parent d6a9bce commit 8145a49

File tree

14 files changed

+1719
-2230
lines changed

14 files changed

+1719
-2230
lines changed

docs/guides/troubleshooting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Whenever you use `monaco-editor`/`@codingame/monaco-vscode-editor-api` `vscode`/
1111
If you use pnpm or yarn, you have to add `vscode` / `@codingame/monaco-vscode-api` as direct dependency, otherwise the installation will fail:
1212

1313
```json
14-
"vscode": "npm:@codingame/monaco-vscode-extension-api@^22.1.0"
14+
"vscode": "npm:@codingame/monaco-vscode-extension-api@^22.1.3"
1515
```
1616

1717
### Missing Overrides or Resolutions
@@ -23,7 +23,7 @@ To ensure all Monaco-related packages use a single, compatible version, you must
2323
```json
2424
{
2525
"overrides": {
26-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.0"
26+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.3"
2727
}
2828
}
2929
```
@@ -33,7 +33,7 @@ To ensure all Monaco-related packages use a single, compatible version, you must
3333
```json
3434
{
3535
"resolutions": {
36-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.0"
36+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.3"
3737
}
3838
}
3939
```
@@ -50,7 +50,7 @@ Additionally, if you see a message in the browser console starting with `Another
5050

5151
### @codingame/monaco-vscode-editor-api / monaco-editor usage
5252

53-
When you use the libraries from this project you are no longer required to proxy `monaco-editor` like `"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.0"` in you `package.json`. You can directly use it like so:
53+
When you use the libraries from this project you are no longer required to proxy `monaco-editor` like `"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.3"` in you `package.json`. You can directly use it like so:
5454

5555
```js
5656
import * as monaco from '@codingame/monaco-vscode-editor-api';
@@ -60,7 +60,7 @@ If your dependency stack already contains a reference `monaco-editor` you must e
6060

6161
```json
6262
"overrides": {
63-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.0"
63+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.3"
6464
}
6565
```
6666

docs/installation.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ If using npm or pnpm, and your dependencies already contain a refernence to `mon
4545
```json
4646
{
4747
"overrides": {
48-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.0"
48+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.3"
4949
}
5050
}
5151
```
@@ -57,7 +57,7 @@ In yarn you have to specify `resolutions` instead of `overrides`:
5757
```json
5858
{
5959
"resolutions": {
60-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.0"
60+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^22.1.3"
6161
}
6262
}
6363
```
@@ -69,17 +69,17 @@ If using pnpm, you have to add more transitive dependencies that npm or yarn aut
6969
```json
7070
{
7171
"dependencies": {
72-
"@codingame/monaco-vscode-api": "^22.1.0",
73-
"@codingame/monaco-vscode-configuration-service-override": "^22.1.0",
74-
"@codingame/monaco-vscode-editor-api": "^22.1.0",
75-
"@codingame/monaco-vscode-editor-service-override": "^22.1.0",
76-
"@codingame/monaco-vscode-extension-api": "^22.1.0",
77-
"@codingame/monaco-vscode-extensions-service-override": "^22.1.0",
78-
"@codingame/monaco-vscode-languages-service-override": "^22.1.0",
79-
"@codingame/monaco-vscode-localization-service-override": "^22.1.0",
80-
"@codingame/monaco-vscode-log-service-override": "^22.1.0",
81-
"@codingame/monaco-vscode-model-service-override": "^22.1.0",
82-
"vscode": "npm:@codingame/monaco-vscode-extension-api@^22.1.0"
72+
"@codingame/monaco-vscode-api": "^22.1.3",
73+
"@codingame/monaco-vscode-configuration-service-override": "^22.1.3",
74+
"@codingame/monaco-vscode-editor-api": "^22.1.3",
75+
"@codingame/monaco-vscode-editor-service-override": "^22.1.3",
76+
"@codingame/monaco-vscode-extension-api": "^22.1.3",
77+
"@codingame/monaco-vscode-extensions-service-override": "^22.1.3",
78+
"@codingame/monaco-vscode-languages-service-override": "^22.1.3",
79+
"@codingame/monaco-vscode-localization-service-override": "^22.1.3",
80+
"@codingame/monaco-vscode-log-service-override": "^22.1.3",
81+
"@codingame/monaco-vscode-model-service-override": "^22.1.3",
82+
"vscode": "npm:@codingame/monaco-vscode-extension-api@^22.1.3"
8383
}
8484
}
8585
```

package-lock.json

Lines changed: 1600 additions & 2112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,21 @@
1313
},
1414
"devDependencies": {
1515
"@codingame/esbuild-import-meta-url-plugin": "~1.0.3",
16-
"@codingame/monaco-vscode-rollup-vsix-plugin": "^22.1.0",
16+
"@codingame/monaco-vscode-rollup-vsix-plugin": "^22.1.3",
1717
"@eslint/eslintrc": "~3.3.1",
1818
"@eslint/js": "~9.38.0",
1919
"@stylistic/eslint-plugin": "~5.5.0",
2020
"@testing-library/react": "~16.3.0",
2121
"@types/node": "~22.15.35",
2222
"@types/react": "~19.2.2",
2323
"@types/react-dom": "~19.2.2",
24-
"@typescript-eslint/eslint-plugin": "~8.46.1",
25-
"@typescript-eslint/parser": "~8.46.1",
26-
"@typescript/native-preview": "~7.0.0-dev.20251019.1",
27-
"@vitejs/plugin-react": "~5.0.4",
28-
"@vitest/browser": "~3.2.4",
29-
"@vitest/coverage-v8": "^3.2.4",
24+
"@typescript-eslint/eslint-plugin": "~8.46.2",
25+
"@typescript-eslint/parser": "~8.46.2",
26+
"@typescript/native-preview": "~7.0.0-dev.20251027.1",
27+
"@vitejs/plugin-react": "~5.1.0",
28+
"@vitest/browser": "~4.0.4",
29+
"@vitest/browser-playwright": "~4.0.4",
30+
"@vitest/coverage-v8": "~4.0.4",
3031
"editorconfig": "~3.0.1",
3132
"esbuild": "~0.25.11",
3233
"eslint": "~9.38.0",
@@ -35,12 +36,11 @@
3536
"eslint-plugin-unused-imports": "~4.3.0",
3637
"globals": "~16.4.0",
3738
"minimatch": "~10.0.3",
38-
"playwright": "~1.56.1",
3939
"shx": "~0.4.0",
4040
"tsx": "~4.20.6",
4141
"typescript": "~5.9.3",
42-
"vite": "~7.1.11",
43-
"vitest": "~3.2.4"
42+
"vite": "~7.1.12",
43+
"vitest": "~4.0.4"
4444
},
4545
"scripts": {
4646
"clean": "npm run clean --workspaces",

packages/client/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ All notable changes to this npm module are documented in this file.
1515
- Lifecycle adjustments [#939](https://github.com/TypeFox/monaco-languageclient/pull/939).
1616
- Move MonacoLanguageClientWrapper to monaco-languageclient [#920](https://github.com/TypeFox/monaco-languageclient/pull/920).
1717
- Added multiple new sub-exports: `vscodeApiWrapper`, `lcwrapper`, `editorApp` and `workerFactory` that expose the merged functionality, please see the [migration guide](https://github.com/TypeFox/monaco-languageclient/blob/main/docs/migration.md).
18-
- Updated all `@codingame/monaco-vscode` packages to `^21.1.0`.
18+
- Updated all `@codingame/monaco-vscode` packages to `21.1.0`.
1919

2020
## [9.11.0] - 2025-08-21
2121

packages/client/package.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -104,46 +104,46 @@
104104
"LICENSE"
105105
],
106106
"dependencies": {
107-
"@codingame/monaco-vscode-api": "^22.1.0",
108-
"@codingame/monaco-vscode-configuration-service-override": "^22.1.0",
109-
"@codingame/monaco-vscode-editor-api": "^22.1.0",
110-
"@codingame/monaco-vscode-editor-service-override": "^22.1.0",
111-
"@codingame/monaco-vscode-extensions-service-override": "^22.1.0",
112-
"@codingame/monaco-vscode-extension-api": "^22.1.0",
113-
"@codingame/monaco-vscode-languages-service-override": "^22.1.0",
114-
"@codingame/monaco-vscode-language-pack-cs": "^22.1.0",
115-
"@codingame/monaco-vscode-language-pack-de": "^22.1.0",
116-
"@codingame/monaco-vscode-language-pack-es": "^22.1.0",
117-
"@codingame/monaco-vscode-language-pack-fr": "^22.1.0",
118-
"@codingame/monaco-vscode-language-pack-it": "^22.1.0",
119-
"@codingame/monaco-vscode-language-pack-ja": "^22.1.0",
120-
"@codingame/monaco-vscode-language-pack-ko": "^22.1.0",
121-
"@codingame/monaco-vscode-language-pack-pl": "^22.1.0",
122-
"@codingame/monaco-vscode-language-pack-pt-br": "^22.1.0",
123-
"@codingame/monaco-vscode-language-pack-qps-ploc": "^22.1.0",
124-
"@codingame/monaco-vscode-language-pack-ru": "^22.1.0",
125-
"@codingame/monaco-vscode-language-pack-tr": "^22.1.0",
126-
"@codingame/monaco-vscode-language-pack-zh-hans": "^22.1.0",
127-
"@codingame/monaco-vscode-language-pack-zh-hant": "^22.1.0",
128-
"@codingame/monaco-vscode-localization-service-override": "^22.1.0",
129-
"@codingame/monaco-vscode-log-service-override": "^22.1.0",
130-
"@codingame/monaco-vscode-model-service-override": "^22.1.0",
131-
"@codingame/monaco-vscode-monarch-service-override": "^22.1.0",
132-
"@codingame/monaco-vscode-textmate-service-override": "^22.1.0",
133-
"@codingame/monaco-vscode-theme-defaults-default-extension": "^22.1.0",
134-
"@codingame/monaco-vscode-theme-service-override": "^22.1.0",
135-
"@codingame/monaco-vscode-views-service-override": "^22.1.0",
136-
"@codingame/monaco-vscode-workbench-service-override": "^22.1.0",
107+
"@codingame/monaco-vscode-api": "^22.1.3",
108+
"@codingame/monaco-vscode-configuration-service-override": "^22.1.3",
109+
"@codingame/monaco-vscode-editor-api": "^22.1.3",
110+
"@codingame/monaco-vscode-editor-service-override": "^22.1.3",
111+
"@codingame/monaco-vscode-extensions-service-override": "^22.1.3",
112+
"@codingame/monaco-vscode-extension-api": "^22.1.3",
113+
"@codingame/monaco-vscode-languages-service-override": "^22.1.3",
114+
"@codingame/monaco-vscode-language-pack-cs": "^22.1.3",
115+
"@codingame/monaco-vscode-language-pack-de": "^22.1.3",
116+
"@codingame/monaco-vscode-language-pack-es": "^22.1.3",
117+
"@codingame/monaco-vscode-language-pack-fr": "^22.1.3",
118+
"@codingame/monaco-vscode-language-pack-it": "^22.1.3",
119+
"@codingame/monaco-vscode-language-pack-ja": "^22.1.3",
120+
"@codingame/monaco-vscode-language-pack-ko": "^22.1.3",
121+
"@codingame/monaco-vscode-language-pack-pl": "^22.1.3",
122+
"@codingame/monaco-vscode-language-pack-pt-br": "^22.1.3",
123+
"@codingame/monaco-vscode-language-pack-qps-ploc": "^22.1.3",
124+
"@codingame/monaco-vscode-language-pack-ru": "^22.1.3",
125+
"@codingame/monaco-vscode-language-pack-tr": "^22.1.3",
126+
"@codingame/monaco-vscode-language-pack-zh-hans": "^22.1.3",
127+
"@codingame/monaco-vscode-language-pack-zh-hant": "^22.1.3",
128+
"@codingame/monaco-vscode-localization-service-override": "^22.1.3",
129+
"@codingame/monaco-vscode-log-service-override": "^22.1.3",
130+
"@codingame/monaco-vscode-model-service-override": "^22.1.3",
131+
"@codingame/monaco-vscode-monarch-service-override": "^22.1.3",
132+
"@codingame/monaco-vscode-textmate-service-override": "^22.1.3",
133+
"@codingame/monaco-vscode-theme-defaults-default-extension": "^22.1.3",
134+
"@codingame/monaco-vscode-theme-service-override": "^22.1.3",
135+
"@codingame/monaco-vscode-views-service-override": "^22.1.3",
136+
"@codingame/monaco-vscode-workbench-service-override": "^22.1.3",
137137
"vscode-languageclient": "~9.0.1",
138138
"vscode-languageserver-protocol": "~3.17.5",
139139
"vscode-ws-jsonrpc": "~3.5.0"
140140
},
141141
"devDependencies": {
142-
"@codingame/monaco-vscode-standalone-languages": "^22.1.0",
143-
"@codingame/monaco-vscode-standalone-css-language-features": "^22.1.0",
144-
"@codingame/monaco-vscode-standalone-html-language-features": "^22.1.0",
145-
"@codingame/monaco-vscode-standalone-json-language-features": "^22.1.0",
146-
"@codingame/monaco-vscode-standalone-typescript-language-features": "^22.1.0"
142+
"@codingame/monaco-vscode-standalone-languages": "^22.1.3",
143+
"@codingame/monaco-vscode-standalone-css-language-features": "^22.1.3",
144+
"@codingame/monaco-vscode-standalone-html-language-features": "^22.1.3",
145+
"@codingame/monaco-vscode-standalone-json-language-features": "^22.1.3",
146+
"@codingame/monaco-vscode-standalone-typescript-language-features": "^22.1.3"
147147
},
148148

149149
"scripts": {

packages/examples/package.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -82,48 +82,48 @@
8282
"LICENSE"
8383
],
8484
"dependencies": {
85-
"@codingame/monaco-vscode-configuration-service-override": "^22.1.0",
86-
"@codingame/monaco-vscode-cpp-default-extension": "^22.1.0",
87-
"@codingame/monaco-vscode-debug-service-override": "^22.1.0",
88-
"@codingame/monaco-vscode-editor-api": "^22.1.0",
89-
"@codingame/monaco-vscode-environment-service-override": "^22.1.0",
90-
"@codingame/monaco-vscode-explorer-service-override": "^22.1.0",
91-
"@codingame/monaco-vscode-files-service-override": "^22.1.0",
92-
"@codingame/monaco-vscode-groovy-default-extension": "^22.1.0",
93-
"@codingame/monaco-vscode-java-default-extension": "^22.1.0",
94-
"@codingame/monaco-vscode-javascript-default-extension": "^22.1.0",
95-
"@codingame/monaco-vscode-json-default-extension": "^22.1.0",
96-
"@codingame/monaco-vscode-keybindings-service-override": "^22.1.0",
97-
"@codingame/monaco-vscode-lifecycle-service-override": "^22.1.0",
98-
"@codingame/monaco-vscode-localization-service-override": "^22.1.0",
99-
"@codingame/monaco-vscode-preferences-service-override": "^22.1.0",
100-
"@codingame/monaco-vscode-python-default-extension": "^22.1.0",
101-
"@codingame/monaco-vscode-remote-agent-service-override": "^22.1.0",
102-
"@codingame/monaco-vscode-search-result-default-extension": "^22.1.0",
103-
"@codingame/monaco-vscode-search-service-override": "^22.1.0",
104-
"@codingame/monaco-vscode-secret-storage-service-override": "^22.1.0",
105-
"@codingame/monaco-vscode-standalone-json-language-features": "^22.1.0",
106-
"@codingame/monaco-vscode-standalone-typescript-language-features": "^22.1.0",
107-
"@codingame/monaco-vscode-testing-service-override": "^22.1.0",
108-
"@codingame/monaco-vscode-storage-service-override": "^22.1.0",
109-
"@codingame/monaco-vscode-textmate-service-override": "^22.1.0",
110-
"@codingame/monaco-vscode-theme-defaults-default-extension": "^22.1.0",
111-
"@codingame/monaco-vscode-theme-service-override": "^22.1.0",
112-
"@codingame/monaco-vscode-typescript-basics-default-extension": "^22.1.0",
113-
"@codingame/monaco-vscode-typescript-language-features-default-extension": "^22.1.0",
114-
"@codingame/monaco-vscode-views-service-override": "^22.1.0",
115-
"@codingame/monaco-vscode-outline-service-override": "^22.1.0",
85+
"@codingame/monaco-vscode-configuration-service-override": "^22.1.3",
86+
"@codingame/monaco-vscode-cpp-default-extension": "^22.1.3",
87+
"@codingame/monaco-vscode-debug-service-override": "^22.1.3",
88+
"@codingame/monaco-vscode-editor-api": "^22.1.3",
89+
"@codingame/monaco-vscode-environment-service-override": "^22.1.3",
90+
"@codingame/monaco-vscode-explorer-service-override": "^22.1.3",
91+
"@codingame/monaco-vscode-files-service-override": "^22.1.3",
92+
"@codingame/monaco-vscode-groovy-default-extension": "^22.1.3",
93+
"@codingame/monaco-vscode-java-default-extension": "^22.1.3",
94+
"@codingame/monaco-vscode-javascript-default-extension": "^22.1.3",
95+
"@codingame/monaco-vscode-json-default-extension": "^22.1.3",
96+
"@codingame/monaco-vscode-keybindings-service-override": "^22.1.3",
97+
"@codingame/monaco-vscode-lifecycle-service-override": "^22.1.3",
98+
"@codingame/monaco-vscode-localization-service-override": "^22.1.3",
99+
"@codingame/monaco-vscode-preferences-service-override": "^22.1.3",
100+
"@codingame/monaco-vscode-python-default-extension": "^22.1.3",
101+
"@codingame/monaco-vscode-remote-agent-service-override": "^22.1.3",
102+
"@codingame/monaco-vscode-search-result-default-extension": "^22.1.3",
103+
"@codingame/monaco-vscode-search-service-override": "^22.1.3",
104+
"@codingame/monaco-vscode-secret-storage-service-override": "^22.1.3",
105+
"@codingame/monaco-vscode-standalone-json-language-features": "^22.1.3",
106+
"@codingame/monaco-vscode-standalone-typescript-language-features": "^22.1.3",
107+
"@codingame/monaco-vscode-testing-service-override": "^22.1.3",
108+
"@codingame/monaco-vscode-storage-service-override": "^22.1.3",
109+
"@codingame/monaco-vscode-textmate-service-override": "^22.1.3",
110+
"@codingame/monaco-vscode-theme-defaults-default-extension": "^22.1.3",
111+
"@codingame/monaco-vscode-theme-service-override": "^22.1.3",
112+
"@codingame/monaco-vscode-typescript-basics-default-extension": "^22.1.3",
113+
"@codingame/monaco-vscode-typescript-language-features-default-extension": "^22.1.3",
114+
"@codingame/monaco-vscode-views-service-override": "^22.1.3",
115+
"@codingame/monaco-vscode-outline-service-override": "^22.1.3",
116116
"@typefox/monaco-editor-react": "~7.2.0",
117117
"cors": "~2.8.5",
118118
"express": "~5.1.0",
119119
"jszip": "~3.10.1",
120120
"langium": "~4.1.0",
121121
"monaco-languageclient": "~10.2.0",
122-
"pyright": "~1.1.406",
122+
"pyright": "~1.1.407",
123123
"react": "~19.2.0",
124124
"react-dom": "~19.2.0",
125125
"request-light": "~0.8.0",
126-
"vscode": "npm:@codingame/monaco-vscode-extension-api@^22.1.0",
126+
"vscode": "npm:@codingame/monaco-vscode-extension-api@^22.1.3",
127127
"vscode-json-languageservice": "~5.6.2",
128128
"vscode-languageclient": "~9.0.1",
129129
"vscode-languageserver": "~9.0.1",
@@ -134,8 +134,8 @@
134134
},
135135
"devDependencies": {
136136
"@types/cors": "~2.8.19",
137-
"@types/emscripten": "~1.41.4",
138-
"@types/express": "~5.0.3",
137+
"@types/emscripten": "~1.41.5",
138+
"@types/express": "~5.0.5",
139139
"@types/ws": "~8.18.1",
140140
"langium-cli": "~4.1.0",
141141
"mini-coi": "~0.4.2",

packages/wrapper-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"npm": "10.9.3"
4747
},
4848
"dependencies": {
49-
"@codingame/monaco-vscode-editor-api": "^22.1.0",
49+
"@codingame/monaco-vscode-editor-api": "^22.1.3",
5050
"react": ">=18.0.0 || <20.0.0"
5151
},
5252
"repository": {

verify/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@angular/core": "~18.2.8",
1717
"@angular/platform-browser": "~18.2.8",
1818
"@angular/platform-browser-dynamic": "~18.2.8",
19-
"@codingame/monaco-vscode-editor-api": "^22.1.0",
19+
"@codingame/monaco-vscode-editor-api": "^22.1.3",
2020
"monaco-languageclient-examples": "~2025.10.1",
2121
"rxjs": "~7.8.1",
2222
"zone.js": "~0.14.10"

verify/next/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
},
1919
"type": "module",
2020
"dependencies": {
21-
"@codingame/monaco-vscode-api": "^22.1.0",
22-
"@codingame/monaco-vscode-keybindings-service-override": "^22.1.0",
21+
"@codingame/monaco-vscode-api": "^22.1.3",
22+
"@codingame/monaco-vscode-keybindings-service-override": "^22.1.3",
2323
"@typefox/monaco-editor-react": "~7.2.0",
2424
"langium": "~4.1.0",
2525
"monaco-languageclient": "~10.2.0",
2626
"monaco-languageclient-examples": "~2025.10.1",
2727
"next": "~15.5.4",
2828
"react": "~19.1.1",
2929
"react-dom": "~19.1.1",
30-
"vscode": "npm:@codingame/monaco-vscode-extension-api@^22.1.0",
30+
"vscode": "npm:@codingame/monaco-vscode-extension-api@^22.1.3",
3131
"vscode-languageclient": "~9.0.1",
3232
"vscode-languageserver": "~9.0.1"
3333
},

0 commit comments

Comments
 (0)