@theia/vsx-registry 1.76.0-next.7 → 1.76.0

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.
@@ -0,0 +1,17 @@
1
+ import URI from '@theia/core/lib/common/uri';
2
+ import { OVSXRouterConfig } from '@theia/ovsx-client';
3
+ import { VSXEnvironment } from '../common/vsx-environment';
4
+ /**
5
+ * Same defaults as `VSXEnvironmentImpl` when nothing is configured. There's no backend to ask in a
6
+ * browser-only app, and `VSXExtension` looks up the registry URI eagerly, so without this every
7
+ * extension logs a failed RPC call. Rebind it to use a different registry.
8
+ */
9
+ export declare class BrowserOnlyVSXEnvironment implements VSXEnvironment {
10
+ protected readonly registryUri: URI;
11
+ getRateLimit(): Promise<number>;
12
+ getRegistryUri(): Promise<string>;
13
+ getRegistryApiUri(): Promise<string>;
14
+ getVscodeApiVersion(): Promise<string>;
15
+ getOvsxRouterConfig(): Promise<OVSXRouterConfig | undefined>;
16
+ }
17
+ //# sourceMappingURL=browser-only-vsx-environment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-only-vsx-environment.d.ts","sourceRoot":"","sources":["../../src/browser-only/browser-only-vsx-environment.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,OAAO,EAAmB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;;GAIG;AACH,qBACa,yBAA0B,YAAW,cAAc;IAE5D,SAAS,CAAC,QAAQ,CAAC,WAAW,MAAmC;IAE3D,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAI/B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAIjC,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIpC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC;IAItC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;CAGrE"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2026 Robert Jandow
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.BrowserOnlyVSXEnvironment = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const uri_1 = require("@theia/core/lib/common/uri");
21
+ const inversify_1 = require("@theia/core/shared/inversify");
22
+ const ovsx_client_1 = require("@theia/ovsx-client");
23
+ const plugin_vscode_types_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-types");
24
+ /**
25
+ * Same defaults as `VSXEnvironmentImpl` when nothing is configured. There's no backend to ask in a
26
+ * browser-only app, and `VSXExtension` looks up the registry URI eagerly, so without this every
27
+ * extension logs a failed RPC call. Rebind it to use a different registry.
28
+ */
29
+ let BrowserOnlyVSXEnvironment = class BrowserOnlyVSXEnvironment {
30
+ constructor() {
31
+ this.registryUri = new uri_1.default('https://open-vsx.org');
32
+ }
33
+ async getRateLimit() {
34
+ return ovsx_client_1.OVSX_RATE_LIMIT;
35
+ }
36
+ async getRegistryUri() {
37
+ return this.registryUri.toString(true);
38
+ }
39
+ async getRegistryApiUri() {
40
+ return this.registryUri.resolve('api').toString(true);
41
+ }
42
+ async getVscodeApiVersion() {
43
+ return plugin_vscode_types_1.VSCODE_DEFAULT_API_VERSION;
44
+ }
45
+ async getOvsxRouterConfig() {
46
+ return undefined;
47
+ }
48
+ };
49
+ exports.BrowserOnlyVSXEnvironment = BrowserOnlyVSXEnvironment;
50
+ exports.BrowserOnlyVSXEnvironment = BrowserOnlyVSXEnvironment = tslib_1.__decorate([
51
+ (0, inversify_1.injectable)()
52
+ ], BrowserOnlyVSXEnvironment);
53
+ //# sourceMappingURL=browser-only-vsx-environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-only-vsx-environment.js","sourceRoot":"","sources":["../../src/browser-only/browser-only-vsx-environment.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,mCAAmC;AACnC,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,oDAA6C;AAC7C,4DAA0D;AAC1D,oDAAuE;AACvE,iGAAqG;AAGrG;;;;GAIG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QAEgB,gBAAW,GAAG,IAAI,aAAG,CAAC,sBAAsB,CAAC,CAAC;IAqBrE,CAAC;IAnBG,KAAK,CAAC,YAAY;QACd,OAAO,6BAAe,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,cAAc;QAChB,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,iBAAiB;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,KAAK,CAAC,mBAAmB;QACrB,OAAO,gDAA0B,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,mBAAmB;QACrB,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ,CAAA;AAvBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAuBrC"}
@@ -0,0 +1,4 @@
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ declare const _default: ContainerModule;
3
+ export default _default;
4
+ //# sourceMappingURL=vsx-registry-frontend-only-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-registry-frontend-only-module.d.ts","sourceRoot":"","sources":["../../src/browser-only/vsx-registry-frontend-only-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAI/D,wBAEG"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2026 Robert Jandow
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const inversify_1 = require("@theia/core/shared/inversify");
19
+ const vsx_environment_1 = require("../common/vsx-environment");
20
+ const browser_only_vsx_environment_1 = require("./browser-only-vsx-environment");
21
+ exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
22
+ rebind(vsx_environment_1.VSXEnvironment).to(browser_only_vsx_environment_1.BrowserOnlyVSXEnvironment).inSingletonScope();
23
+ });
24
+ //# sourceMappingURL=vsx-registry-frontend-only-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-registry-frontend-only-module.js","sourceRoot":"","sources":["../../src/browser-only/vsx-registry-frontend-only-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,mCAAmC;AACnC,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,4DAA+D;AAC/D,+DAA2D;AAC3D,iFAA2E;AAE3E,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACjE,MAAM,CAAC,gCAAc,CAAC,CAAC,EAAE,CAAC,wDAAyB,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC5E,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@theia/vsx-registry",
3
- "version": "1.76.0-next.7+7c303b183",
3
+ "version": "1.76.0",
4
4
  "description": "Theia - VSX Registry",
5
5
  "dependencies": {
6
- "@theia/core": "1.76.0-next.7+7c303b183",
7
- "@theia/filesystem": "1.76.0-next.7+7c303b183",
8
- "@theia/navigator": "1.76.0-next.7+7c303b183",
9
- "@theia/ovsx-client": "1.76.0-next.7+7c303b183",
10
- "@theia/plugin-ext": "1.76.0-next.7+7c303b183",
11
- "@theia/plugin-ext-vscode": "1.76.0-next.7+7c303b183",
12
- "@theia/preferences": "1.76.0-next.7+7c303b183",
13
- "@theia/workspace": "1.76.0-next.7+7c303b183",
6
+ "@theia/core": "1.76.0",
7
+ "@theia/filesystem": "1.76.0",
8
+ "@theia/navigator": "1.76.0",
9
+ "@theia/ovsx-client": "1.76.0",
10
+ "@theia/plugin-ext": "1.76.0",
11
+ "@theia/plugin-ext-vscode": "1.76.0",
12
+ "@theia/preferences": "1.76.0",
13
+ "@theia/workspace": "1.76.0",
14
14
  "limiter": "^2.1.0",
15
15
  "luxon": "^2.5.2",
16
16
  "p-debounce": "^2.1.0",
@@ -31,6 +31,9 @@
31
31
  {
32
32
  "frontend": "lib/browser/vsx-registry-frontend-module",
33
33
  "backend": "lib/node/vsx-registry-backend-module"
34
+ },
35
+ {
36
+ "frontendOnly": "lib/browser-only/vsx-registry-frontend-only-module"
34
37
  }
35
38
  ],
36
39
  "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
@@ -55,11 +58,11 @@
55
58
  "watch": "theiaext watch"
56
59
  },
57
60
  "devDependencies": {
58
- "@theia/ext-scripts": "1.75.0",
61
+ "@theia/ext-scripts": "1.76.0",
59
62
  "@types/luxon": "^2.4.0"
60
63
  },
61
64
  "nyc": {
62
65
  "extends": "../../configs/nyc.json"
63
66
  },
64
- "gitHead": "7c303b1836421183d7013f0bd679a9a30ff0b5dc"
67
+ "gitHead": "b9b54c500b46515512e2b44371bc0c7122947bed"
65
68
  }
@@ -0,0 +1,52 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2026 Robert Jandow
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 URI from '@theia/core/lib/common/uri';
18
+ import { injectable } from '@theia/core/shared/inversify';
19
+ import { OVSX_RATE_LIMIT, OVSXRouterConfig } from '@theia/ovsx-client';
20
+ import { VSCODE_DEFAULT_API_VERSION } from '@theia/plugin-ext-vscode/lib/common/plugin-vscode-types';
21
+ import { VSXEnvironment } from '../common/vsx-environment';
22
+
23
+ /**
24
+ * Same defaults as `VSXEnvironmentImpl` when nothing is configured. There's no backend to ask in a
25
+ * browser-only app, and `VSXExtension` looks up the registry URI eagerly, so without this every
26
+ * extension logs a failed RPC call. Rebind it to use a different registry.
27
+ */
28
+ @injectable()
29
+ export class BrowserOnlyVSXEnvironment implements VSXEnvironment {
30
+
31
+ protected readonly registryUri = new URI('https://open-vsx.org');
32
+
33
+ async getRateLimit(): Promise<number> {
34
+ return OVSX_RATE_LIMIT;
35
+ }
36
+
37
+ async getRegistryUri(): Promise<string> {
38
+ return this.registryUri.toString(true);
39
+ }
40
+
41
+ async getRegistryApiUri(): Promise<string> {
42
+ return this.registryUri.resolve('api').toString(true);
43
+ }
44
+
45
+ async getVscodeApiVersion(): Promise<string> {
46
+ return VSCODE_DEFAULT_API_VERSION;
47
+ }
48
+
49
+ async getOvsxRouterConfig(): Promise<OVSXRouterConfig | undefined> {
50
+ return undefined;
51
+ }
52
+ }
@@ -0,0 +1,23 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2026 Robert Jandow
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 { ContainerModule } from '@theia/core/shared/inversify';
18
+ import { VSXEnvironment } from '../common/vsx-environment';
19
+ import { BrowserOnlyVSXEnvironment } from './browser-only-vsx-environment';
20
+
21
+ export default new ContainerModule((bind, unbind, isBound, rebind) => {
22
+ rebind(VSXEnvironment).to(BrowserOnlyVSXEnvironment).inSingletonScope();
23
+ });