@theia/remote 1.77.0-next.101 → 1.77.0-next.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"main-copy-contribution.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/main-copy-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAElH,qBACa,oBAAqB,YAAW,sBAAsB;IACzD,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAM1D"}
1
+ {"version":3,"file":"main-copy-contribution.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/main-copy-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAElH,qBACa,oBAAqB,YAAW,sBAAsB;IACzD,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAS1D"}
@@ -18,6 +18,9 @@ import { injectable } from '@theia/core/shared/inversify';
18
18
  let MainCopyContribution = class MainCopyContribution {
19
19
  async copy(registry) {
20
20
  registry.file('package.json');
21
+ // The bundler emits lib/backend/package.json ({ "type": "module" }); without it Node treats the
22
+ // ESM backend bundle as typeless, re-parses every file and prints a MODULE_TYPELESS_PACKAGE_JSON warning on stderr.
23
+ registry.file('lib/backend/package.json');
21
24
  await registry.glob('lib/backend/**/*.js');
22
25
  await registry.directory('lib/frontend');
23
26
  await registry.directory('lib/webview');
@@ -1 +1 @@
1
- {"version":3,"file":"main-copy-contribution.js","sourceRoot":"","sources":["../../../src/electron-node/setup/main-copy-contribution.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAInD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,KAAK,CAAC,IAAI,CAAC,QAA4B;QACnC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC9B,MAAM,QAAQ,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAC3C,MAAM,QAAQ,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACzC,MAAM,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AAPY,oBAAoB;IADhC,UAAU,EAAE;GACA,oBAAoB,CAOhC"}
1
+ {"version":3,"file":"main-copy-contribution.js","sourceRoot":"","sources":["../../../src/electron-node/setup/main-copy-contribution.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAInD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,KAAK,CAAC,IAAI,CAAC,QAA4B;QACnC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC9B,gGAAgG;QAChG,oHAAoH;QACpH,QAAQ,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAC1C,MAAM,QAAQ,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAC3C,MAAM,QAAQ,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACzC,MAAM,QAAQ,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AAVY,oBAAoB;IADhC,UAAU,EAAE;GACA,oBAAoB,CAUhC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=main-copy-contribution.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main-copy-contribution.spec.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/main-copy-contribution.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2026 EclipseSource and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+ import { expect } from 'chai';
17
+ import { MainCopyContribution } from './main-copy-contribution.js';
18
+ class RecordingRemoteCopyRegistry {
19
+ constructor() {
20
+ this.files = [];
21
+ this.globs = [];
22
+ this.directories = [];
23
+ }
24
+ getFiles() {
25
+ return this.files;
26
+ }
27
+ async glob(pattern) {
28
+ this.globs.push(pattern);
29
+ }
30
+ file(file, target, options) {
31
+ this.files.push({ path: file, target: target ?? file, options });
32
+ }
33
+ async directory(dir) {
34
+ this.directories.push(dir);
35
+ }
36
+ }
37
+ describe('MainCopyContribution', () => {
38
+ let registry;
39
+ beforeEach(async () => {
40
+ registry = new RecordingRemoteCopyRegistry();
41
+ await new MainCopyContribution().copy(registry);
42
+ });
43
+ it('should copy the backend module type marker lib/backend/package.json', () => {
44
+ const marker = registry.getFiles().find(file => file.path === 'lib/backend/package.json');
45
+ expect(marker).to.not.be.undefined;
46
+ expect(marker?.target).to.equal('lib/backend/package.json');
47
+ });
48
+ it('should still copy the root package.json and the backend bundle', () => {
49
+ expect(registry.getFiles().map(file => file.path)).to.include('package.json');
50
+ expect(registry.globs).to.include('lib/backend/**/*.js');
51
+ expect(registry.directories).to.include.members(['lib/frontend', 'lib/webview']);
52
+ });
53
+ });
54
+ //# sourceMappingURL=main-copy-contribution.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main-copy-contribution.spec.js","sourceRoot":"","sources":["../../../src/electron-node/setup/main-copy-contribution.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,2BAA2B;IAAjC;QACa,UAAK,GAAiB,EAAE,CAAC;QACzB,UAAK,GAAa,EAAE,CAAC;QACrB,gBAAW,GAAa,EAAE,CAAC;IAiBxC,CAAC;IAfG,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAe;QACtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED,IAAI,CAAC,IAAY,EAAE,MAAe,EAAE,OAA2B;QAC3D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,SAA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1,14 @@
1
1
  {
2
2
  "name": "@theia/remote",
3
- "version": "1.77.0-next.101+8308c936b",
3
+ "version": "1.77.0-next.108+30a548238",
4
4
  "description": "Theia - Remote",
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@theia/core": "1.77.0-next.101+8308c936b",
8
- "@theia/filesystem": "1.77.0-next.101+8308c936b",
9
- "@theia/userstorage": "1.77.0-next.101+8308c936b",
10
- "@theia/variable-resolver": "1.77.0-next.101+8308c936b",
11
- "@theia/workspace": "1.77.0-next.101+8308c936b",
7
+ "@theia/core": "1.77.0-next.108+30a548238",
8
+ "@theia/filesystem": "1.77.0-next.108+30a548238",
9
+ "@theia/userstorage": "1.77.0-next.108+30a548238",
10
+ "@theia/variable-resolver": "1.77.0-next.108+30a548238",
11
+ "@theia/workspace": "1.77.0-next.108+30a548238",
12
12
  "archiver": "^5.3.2",
13
13
  "decompress": "^4.2.1",
14
14
  "decompress-tar": "^4.1.1",
@@ -68,7 +68,7 @@
68
68
  "nyc": {
69
69
  "extends": "../../configs/nyc.json"
70
70
  },
71
- "gitHead": "8308c936be596c357a51fc815ef30022aa62b3d5",
71
+ "gitHead": "30a5482386400715f42b541b4b142fd399ada7f3",
72
72
  "exports": {
73
73
  "./package.json": "./package.json",
74
74
  "./lib/*.json": "./lib/*.json",
@@ -0,0 +1,62 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2026 EclipseSource and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { expect } from 'chai';
18
+ import { RemoteCopyOptions, RemoteCopyRegistry, RemoteFile } from '@theia/core/lib/node/remote/remote-copy-contribution';
19
+ import { MainCopyContribution } from './main-copy-contribution.js';
20
+
21
+ class RecordingRemoteCopyRegistry implements RemoteCopyRegistry {
22
+ readonly files: RemoteFile[] = [];
23
+ readonly globs: string[] = [];
24
+ readonly directories: string[] = [];
25
+
26
+ getFiles(): RemoteFile[] {
27
+ return this.files;
28
+ }
29
+
30
+ async glob(pattern: string): Promise<void> {
31
+ this.globs.push(pattern);
32
+ }
33
+
34
+ file(file: string, target?: string, options?: RemoteCopyOptions): void {
35
+ this.files.push({ path: file, target: target ?? file, options });
36
+ }
37
+
38
+ async directory(dir: string): Promise<void> {
39
+ this.directories.push(dir);
40
+ }
41
+ }
42
+
43
+ describe('MainCopyContribution', () => {
44
+ let registry: RecordingRemoteCopyRegistry;
45
+
46
+ beforeEach(async () => {
47
+ registry = new RecordingRemoteCopyRegistry();
48
+ await new MainCopyContribution().copy(registry);
49
+ });
50
+
51
+ it('should copy the backend module type marker lib/backend/package.json', () => {
52
+ const marker = registry.getFiles().find(file => file.path === 'lib/backend/package.json');
53
+ expect(marker).to.not.be.undefined;
54
+ expect(marker?.target).to.equal('lib/backend/package.json');
55
+ });
56
+
57
+ it('should still copy the root package.json and the backend bundle', () => {
58
+ expect(registry.getFiles().map(file => file.path)).to.include('package.json');
59
+ expect(registry.globs).to.include('lib/backend/**/*.js');
60
+ expect(registry.directories).to.include.members(['lib/frontend', 'lib/webview']);
61
+ });
62
+ });
@@ -21,6 +21,9 @@ import { RemoteCopyContribution, RemoteCopyRegistry } from '@theia/core/lib/node
21
21
  export class MainCopyContribution implements RemoteCopyContribution {
22
22
  async copy(registry: RemoteCopyRegistry): Promise<void> {
23
23
  registry.file('package.json');
24
+ // The bundler emits lib/backend/package.json ({ "type": "module" }); without it Node treats the
25
+ // ESM backend bundle as typeless, re-parses every file and prints a MODULE_TYPELESS_PACKAGE_JSON warning on stderr.
26
+ registry.file('lib/backend/package.json');
24
27
  await registry.glob('lib/backend/**/*.js');
25
28
  await registry.directory('lib/frontend');
26
29
  await registry.directory('lib/webview');