@angular/language-server 22.0.0-next.9 → 22.0.0-rc.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.
- package/index.js +28 -6
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -73054,9 +73054,9 @@ var require_source_map_support = __commonJS({
|
|
|
73054
73054
|
}
|
|
73055
73055
|
});
|
|
73056
73056
|
|
|
73057
|
-
// node_modules/.aspect_rules_js/typescript@6.0.
|
|
73057
|
+
// node_modules/.aspect_rules_js/typescript@6.0.3/node_modules/typescript/lib/typescript.js
|
|
73058
73058
|
var require_typescript = __commonJS({
|
|
73059
|
-
"node_modules/.aspect_rules_js/typescript@6.0.
|
|
73059
|
+
"node_modules/.aspect_rules_js/typescript@6.0.3/node_modules/typescript/lib/typescript.js"(exports2, module2) {
|
|
73060
73060
|
var ts = {};
|
|
73061
73061
|
((module3) => {
|
|
73062
73062
|
"use strict";
|
|
@@ -75330,7 +75330,7 @@ var require_typescript = __commonJS({
|
|
|
75330
75330
|
});
|
|
75331
75331
|
module3.exports = __toCommonJS2(typescript_exports);
|
|
75332
75332
|
var versionMajorMinor = "6.0";
|
|
75333
|
-
var version = "6.0.
|
|
75333
|
+
var version = "6.0.3";
|
|
75334
75334
|
var Comparison = ((Comparison3) => {
|
|
75335
75335
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
75336
75336
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -126676,6 +126676,8 @@ ${lanes.join("\n")}
|
|
|
126676
126676
|
return 1 | 4 | 32 | 8 | 16 | 256;
|
|
126677
126677
|
case 269:
|
|
126678
126678
|
return 4;
|
|
126679
|
+
case 173:
|
|
126680
|
+
return node.initializer ? 4 : 0;
|
|
126679
126681
|
case 300:
|
|
126680
126682
|
case 249:
|
|
126681
126683
|
case 250:
|
|
@@ -223410,7 +223412,11 @@ ${lanes.join("\n")}
|
|
|
223410
223412
|
NameValidationResult2[NameValidationResult2["NameTooLong"] = 2] = "NameTooLong";
|
|
223411
223413
|
NameValidationResult2[NameValidationResult2["NameStartsWithDot"] = 3] = "NameStartsWithDot";
|
|
223412
223414
|
NameValidationResult2[NameValidationResult2["NameStartsWithUnderscore"] = 4] = "NameStartsWithUnderscore";
|
|
223413
|
-
NameValidationResult2[NameValidationResult2["
|
|
223415
|
+
NameValidationResult2[NameValidationResult2["NameContainsInvalidCharacters"] = 5] = "NameContainsInvalidCharacters";
|
|
223416
|
+
NameValidationResult2[
|
|
223417
|
+
NameValidationResult2["NameContainsNonURISafeCharacters"] = 5
|
|
223418
|
+
/* NameContainsInvalidCharacters */
|
|
223419
|
+
] = "NameContainsNonURISafeCharacters";
|
|
223414
223420
|
return NameValidationResult2;
|
|
223415
223421
|
})(NameValidationResult || {});
|
|
223416
223422
|
var maxPackageNameLength = 214;
|
|
@@ -223456,7 +223462,7 @@ ${lanes.join("\n")}
|
|
|
223456
223462
|
return 0;
|
|
223457
223463
|
}
|
|
223458
223464
|
}
|
|
223459
|
-
if (
|
|
223465
|
+
if (!/^[\w.-]+$/.test(packageName)) {
|
|
223460
223466
|
return 5;
|
|
223461
223467
|
}
|
|
223462
223468
|
return 0;
|
|
@@ -223482,7 +223488,7 @@ ${lanes.join("\n")}
|
|
|
223482
223488
|
case 4:
|
|
223483
223489
|
return `'${typing}':: ${kind} name '${name}' cannot start with '_'`;
|
|
223484
223490
|
case 5:
|
|
223485
|
-
return `'${typing}':: ${kind} name '${name}' contains
|
|
223491
|
+
return `'${typing}':: ${kind} name '${name}' contains invalid characters`;
|
|
223486
223492
|
case 0:
|
|
223487
223493
|
return Debug.fail();
|
|
223488
223494
|
default:
|
|
@@ -273744,6 +273750,22 @@ ${options2.prefix}` : "\n" : options2.prefix
|
|
|
273744
273750
|
/** @internal */
|
|
273745
273751
|
installPackage(req) {
|
|
273746
273752
|
const { fileName, packageName, projectName, projectRootPath, id } = req;
|
|
273753
|
+
const validationResult = ts_JsTyping_exports.validatePackageName(packageName);
|
|
273754
|
+
if (validationResult !== ts_JsTyping_exports.NameValidationResult.Ok) {
|
|
273755
|
+
const message = ts_JsTyping_exports.renderPackageNameValidationFailure(validationResult, packageName);
|
|
273756
|
+
if (this.log.isEnabled()) {
|
|
273757
|
+
this.log.writeLine(message);
|
|
273758
|
+
}
|
|
273759
|
+
const response = {
|
|
273760
|
+
kind: ActionPackageInstalled,
|
|
273761
|
+
projectName,
|
|
273762
|
+
id,
|
|
273763
|
+
success: false,
|
|
273764
|
+
message
|
|
273765
|
+
};
|
|
273766
|
+
this.sendResponse(response);
|
|
273767
|
+
return;
|
|
273768
|
+
}
|
|
273747
273769
|
const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
|
|
273748
273770
|
if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) {
|
|
273749
273771
|
return directory;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/language-server",
|
|
3
3
|
"description": "LSP server for Angular Language Service",
|
|
4
|
-
"version": "22.0.0-
|
|
4
|
+
"version": "22.0.0-rc.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/angular/angular.git",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"author": "Angular",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"engines": {
|
|
13
|
-
"node": "^22.22.0 ||
|
|
13
|
+
"node": "^22.22.0 || ^24.13.1 || >=26.0.0"
|
|
14
14
|
},
|
|
15
15
|
"main": "./index.js",
|
|
16
16
|
"bin": {
|
|
17
17
|
"ngserver": "./bin/ngserver"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@angular/language-service": "22.0.0-
|
|
21
|
-
"typescript": "6.0.
|
|
20
|
+
"@angular/language-service": "22.0.0-rc.0",
|
|
21
|
+
"typescript": "6.0.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^24.5.2",
|