Skip to content

Commit 12187bb

Browse files
author
Akos Kitta
committed
chore: updated to Theia 1.37.0
- Updated `@theia/*` to `1.37.0`. - Fixed all `yarn audit` security vulnerabilities. - Updated to `[email protected]`: - `contextIsolation` is `true`, - `nodeIntegration` is `false`, and the - `webpack` target is moved from `electron-renderer` to `web`. - Updated to `[email protected]`. - Updated the `eslint` plugins. - Added the new `Light High Contrast` theme to the IDE2. - High contrast themes use Theia APIs for style adjustments. - Support for ESM modules: `"moduleResolution": "node16"`. Signed-off-by: Akos Kitta <[email protected]>
1 parent 097c92d commit 12187bb

File tree

158 files changed

+5977
-6790
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+5977
-6790
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = {
1616
'docs/*',
1717
'scripts/*',
1818
'electron-app/*',
19+
'!electron-app/webpack.config.js',
1920
'plugins/*',
2021
'arduino-ide-extension/src/node/cli-protocol',
2122
],

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- os: windows-2019
4343
certificate-secret: WINDOWS_SIGNING_CERTIFICATE_PFX # Name of the secret that contains the certificate.
4444
certificate-password-secret: WINDOWS_SIGNING_CERTIFICATE_PASSWORD # Name of the secret that contains the certificate password.
45-
certificate-extension: pfx # File extension for the certificate.
45+
certificate-extension: pfx # File extension for the certificate.
4646
- os: ubuntu-20.04
4747
- os: macos-latest
4848
# APPLE_SIGNING_CERTIFICATE_P12 secret was produced by following the procedure from:

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build/
77
arduino-ide-extension/Examples/
88
!electron/build/
99
src-gen/
10-
webpack.config.js
10+
electron/build/webpack.config.js
1111
gen-webpack.config.js
1212
.DS_Store
1313
# switching from `electron` to `browser` in dev mode.

arduino-ide-extension/package.json

+35-25
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,28 @@
2121
"test:watch": "mocha --watch --watch-files lib \"./lib/test/**/*.test.js\""
2222
},
2323
"dependencies": {
24-
"@grpc/grpc-js": "^1.6.7",
25-
"@theia/application-package": "1.31.1",
26-
"@theia/core": "1.31.1",
27-
"@theia/debug": "1.31.1",
28-
"@theia/editor": "1.31.1",
29-
"@theia/electron": "1.31.1",
30-
"@theia/filesystem": "1.31.1",
31-
"@theia/keymaps": "1.31.1",
32-
"@theia/markers": "1.31.1",
33-
"@theia/messages": "1.31.1",
34-
"@theia/monaco": "1.31.1",
35-
"@theia/monaco-editor-core": "1.67.2",
36-
"@theia/navigator": "1.31.1",
37-
"@theia/outline-view": "1.31.1",
38-
"@theia/output": "1.31.1",
39-
"@theia/plugin-ext": "1.31.1",
40-
"@theia/preferences": "1.31.1",
41-
"@theia/scm": "1.31.1",
42-
"@theia/search-in-workspace": "1.31.1",
43-
"@theia/terminal": "1.31.1",
44-
"@theia/typehierarchy": "1.31.1",
45-
"@theia/workspace": "1.31.1",
24+
"@grpc/grpc-js": "^1.8.14",
25+
"@theia/application-package": "1.37.0",
26+
"@theia/core": "1.37.0",
27+
"@theia/debug": "1.37.0",
28+
"@theia/editor": "1.37.0",
29+
"@theia/electron": "1.37.0",
30+
"@theia/filesystem": "1.37.0",
31+
"@theia/keymaps": "1.37.0",
32+
"@theia/markers": "1.37.0",
33+
"@theia/messages": "1.37.0",
34+
"@theia/monaco": "1.37.0",
35+
"@theia/monaco-editor-core": "1.72.3",
36+
"@theia/navigator": "1.37.0",
37+
"@theia/outline-view": "1.37.0",
38+
"@theia/output": "1.37.0",
39+
"@theia/plugin-ext": "1.37.0",
40+
"@theia/preferences": "1.37.0",
41+
"@theia/scm": "1.37.0",
42+
"@theia/search-in-workspace": "1.37.0",
43+
"@theia/terminal": "1.37.0",
44+
"@theia/typehierarchy": "1.37.0",
45+
"@theia/workspace": "1.37.0",
4646
"@tippyjs/react": "^4.2.5",
4747
"@types/auth0-js": "^9.14.0",
4848
"@types/btoa": "^1.2.3",
@@ -51,6 +51,7 @@
5151
"@types/glob": "^7.2.0",
5252
"@types/google-protobuf": "^3.7.2",
5353
"@types/js-yaml": "^3.12.2",
54+
"@types/jsdom": "^21.1.1",
5455
"@types/keytar": "^4.4.0",
5556
"@types/lodash.debounce": "^4.0.6",
5657
"@types/node-fetch": "^2.5.7",
@@ -65,7 +66,7 @@
6566
"auth0-js": "^9.14.0",
6667
"btoa": "^1.2.1",
6768
"classnames": "^2.3.1",
68-
"cpy": "^8.1.2",
69+
"cpy": "^9.0.1",
6970
"cross-fetch": "^3.1.5",
7071
"dateformat": "^3.0.3",
7172
"deepmerge": "2.0.1",
@@ -76,8 +77,9 @@
7677
"glob": "^7.1.6",
7778
"google-protobuf": "^3.20.1",
7879
"hash.js": "^1.1.7",
79-
"is-online": "^9.0.1",
80+
"is-online": "^10.0.0",
8081
"js-yaml": "^3.13.1",
82+
"jsdom": "^21.1.1",
8183
"jsonc-parser": "^2.2.0",
8284
"just-diff": "^5.1.1",
8385
"jwt-decode": "^3.1.2",
@@ -88,10 +90,11 @@
8890
"open": "^8.0.6",
8991
"p-debounce": "^2.1.0",
9092
"p-queue": "^2.4.2",
93+
"process": "^0.11.10",
9194
"ps-tree": "^1.2.0",
9295
"query-string": "^7.0.1",
9396
"react-disable": "^0.1.1",
94-
"react-markdown": "^8.0.0",
97+
"react-markdown": "^6.0.3",
9598
"react-perfect-scrollbar": "^1.5.8",
9699
"react-select": "^5.6.0",
97100
"react-tabs": "^3.1.2",
@@ -101,6 +104,7 @@
101104
"temp": "^0.9.1",
102105
"temp-dir": "^2.0.0",
103106
"tree-kill": "^1.2.1",
107+
"util": "^0.12.5",
104108
"which": "^1.3.1"
105109
},
106110
"devDependencies": {
@@ -147,6 +151,9 @@
147151
"examples"
148152
],
149153
"theiaExtensions": [
154+
{
155+
"preload": "lib/electron-browser/preload"
156+
},
150157
{
151158
"backend": "lib/node/arduino-ide-backend-module",
152159
"frontend": "lib/browser/arduino-ide-frontend-module"
@@ -157,6 +164,9 @@
157164
{
158165
"frontendElectron": "lib/electron-browser/theia/core/electron-window-module"
159166
},
167+
{
168+
"frontendElectron": "lib/electron-browser/electron-arduino-module"
169+
},
160170
{
161171
"electronMain": "lib/electron-main/arduino-electron-main-module"
162172
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import type { Disposable } from '@theia/core/lib/common/disposable';
2+
import type { MaybePromise } from '@theia/core/lib/common/types';
3+
import type { Sketch } from './contributions/contribution';
4+
5+
export const AppService = Symbol('AppService');
6+
export interface AppService {
7+
quit(): void;
8+
version(): Promise<string>;
9+
registerStartupTasksHandler(
10+
handler: (args: unknown) => MaybePromise<void>
11+
): Disposable;
12+
scheduleDeletion(sketch: Sketch): void; // TODO: find a better place
13+
}

0 commit comments

Comments
 (0)