@angular/compiler-cli 21.1.0 → 21.1.1

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.
@@ -8,7 +8,7 @@ import {
8
8
  TrackedIncrementalBuildStrategy,
9
9
  freshCompilationTicket,
10
10
  incrementalFromCompilerTicket
11
- } from "./chunk-EWMF72RR.js";
11
+ } from "./chunk-H2NNUI6G.js";
12
12
  import {
13
13
  ActivePerfRecorder,
14
14
  OptimizeFor,
@@ -18,13 +18,13 @@ import {
18
18
  TsCreateProgramDriver,
19
19
  replaceTsWithNgInErrors,
20
20
  retagAllTsFiles
21
- } from "./chunk-TTZRVNVM.js";
21
+ } from "./chunk-I73LLMTA.js";
22
22
  import {
23
23
  absoluteFrom,
24
24
  createFileSystemTsReadDirectoryFn,
25
25
  getFileSystem,
26
26
  resolve
27
- } from "./chunk-JEXAXD23.js";
27
+ } from "./chunk-CEBE44Q5.js";
28
28
 
29
29
  // packages/compiler-cli/src/transformers/api.js
30
30
  var DEFAULT_ERROR_CODE = 100;
@@ -537,7 +537,7 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs) {
537
537
  }
538
538
  } else {
539
539
  const parseConfigHost = createParseConfigHost(host, fs);
540
- const { resolvedModule } = ts5.nodeModuleNameResolver(extendsValue, configFile, { moduleResolution: ts5.ModuleResolutionKind.Node10, resolveJsonModule: true }, parseConfigHost);
540
+ const { resolvedModule } = ts5.nodeModuleNameResolver(extendsValue, configFile, { moduleResolution: ts5.ModuleResolutionKind.NodeNext, resolveJsonModule: true }, parseConfigHost);
541
541
  if (resolvedModule) {
542
542
  return absoluteFrom(resolvedModule.resolvedFileName);
543
543
  }
@@ -92,12 +92,12 @@ function makeError() {
92
92
  }
93
93
 
94
94
  // packages/compiler-cli/src/ngtsc/file_system/src/util.js
95
- var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
95
+ var TS_DTS_TSX_JS_EXTENSION = /(?:\.d)?\.ts$|\.tsx$|\.js$/;
96
96
  function normalizeSeparators(path) {
97
97
  return path.replace(/\\/g, "/");
98
98
  }
99
99
  function stripExtension(path) {
100
- return path.replace(TS_DTS_JS_EXTENSION, "");
100
+ return path.replace(TS_DTS_TSX_JS_EXTENSION, "");
101
101
  }
102
102
  function getSourceFileOrError(program, fileName) {
103
103
  const sf = program.getSourceFile(fileName);
@@ -88,7 +88,7 @@ import {
88
88
  toUnredirectedSourceFile,
89
89
  tryParseInitializerApi,
90
90
  untagAllTsFiles
91
- } from "./chunk-TTZRVNVM.js";
91
+ } from "./chunk-I73LLMTA.js";
92
92
  import {
93
93
  LogicalFileSystem,
94
94
  absoluteFromSourceFile,
@@ -96,7 +96,7 @@ import {
96
96
  getFileSystem,
97
97
  join,
98
98
  resolve
99
- } from "./chunk-JEXAXD23.js";
99
+ } from "./chunk-CEBE44Q5.js";
100
100
 
101
101
  // packages/compiler-cli/src/ngtsc/docs/src/entities.js
102
102
  var EntryType;
@@ -162,6 +162,8 @@ function extractJsDocTags(node) {
162
162
  return ts.getJSDocTags(escapedNode).map((t) => {
163
163
  return {
164
164
  name: t.tagName.getText(),
165
+ // In TS 5.9, ts.getTextOfJSDocComment still strips "http" from comments breaking any absolute links in @see blocks.
166
+ // eg: @see https://angular.dev
165
167
  comment: unescapeAngularDecorators(ts.getTextOfJSDocComment(t.comment) ?? "")
166
168
  };
167
169
  });
@@ -17,7 +17,7 @@ import {
17
17
  resolve,
18
18
  stripExtension,
19
19
  toRelativeImport
20
- } from "./chunk-JEXAXD23.js";
20
+ } from "./chunk-CEBE44Q5.js";
21
21
 
22
22
  // packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.js
23
23
  var ErrorCode;
@@ -229,7 +229,7 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
229
229
  import { VERSION } from "@angular/compiler";
230
230
  var DOC_PAGE_BASE_URL = (() => {
231
231
  const full = VERSION.full;
232
- const isPreRelease = full.includes("-next") || full.includes("-rc") || full === "21.1.0";
232
+ const isPreRelease = full.includes("-next") || full.includes("-rc") || full === "21.1.1";
233
233
  const prefix = isPreRelease ? "next" : `v${VERSION.major}`;
234
234
  return `https://${prefix}.angular.dev`;
235
235
  })();
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-ATAZXXPH.js";
15
+ } from "./chunk-3LTGCVHM.js";
16
16
 
17
17
  // packages/compiler-cli/src/main.js
18
18
  import ts2 from "typescript";
@@ -455,7 +455,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
455
455
  // packages/compiler-cli/linker/src/file_linker/partial_linkers/util.js
456
456
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
457
457
  import semver from "semver";
458
- var PLACEHOLDER_VERSION = "21.1.0";
458
+ var PLACEHOLDER_VERSION = "21.1.1";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
package/bundles/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  isTsDiagnostic,
18
18
  performCompilation,
19
19
  readConfiguration
20
- } from "./chunk-ATAZXXPH.js";
20
+ } from "./chunk-3LTGCVHM.js";
21
21
  import {
22
22
  ConsoleLogger,
23
23
  LogLevel
@@ -34,7 +34,7 @@ import {
34
34
  freshCompilationTicket,
35
35
  incrementalFromStateTicket,
36
36
  isDocEntryWithSourceInfo
37
- } from "./chunk-EWMF72RR.js";
37
+ } from "./chunk-H2NNUI6G.js";
38
38
  import {
39
39
  ActivePerfRecorder,
40
40
  ErrorCode,
@@ -46,7 +46,7 @@ import {
46
46
  getInitializerApiJitTransform,
47
47
  isLocalCompilationDiagnostics,
48
48
  ngErrorCode
49
- } from "./chunk-TTZRVNVM.js";
49
+ } from "./chunk-I73LLMTA.js";
50
50
  import "./chunk-FROPOOFC.js";
51
51
  import {
52
52
  InvalidFileSystem,
@@ -69,7 +69,7 @@ import {
69
69
  resolve,
70
70
  setFileSystem,
71
71
  toRelativeImport
72
- } from "./chunk-JEXAXD23.js";
72
+ } from "./chunk-CEBE44Q5.js";
73
73
  import {
74
74
  NodeJSFileSystem
75
75
  } from "./chunk-XYYEESKY.js";
@@ -77,7 +77,7 @@ import "./chunk-G7GFT6BU.js";
77
77
 
78
78
  // packages/compiler-cli/src/version.js
79
79
  import { Version } from "@angular/compiler";
80
- var VERSION = new Version("21.1.0");
80
+ var VERSION = new Version("21.1.1");
81
81
 
82
82
  // packages/compiler-cli/private/tooling.js
83
83
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -31,7 +31,7 @@ import {
31
31
  resolve,
32
32
  setFileSystem,
33
33
  toRelativeImport
34
- } from "../chunk-JEXAXD23.js";
34
+ } from "../chunk-CEBE44Q5.js";
35
35
  import {
36
36
  NodeJSFileSystem
37
37
  } from "../chunk-XYYEESKY.js";
@@ -5,7 +5,7 @@
5
5
  import {
6
6
  DiagnosticCategoryLabel,
7
7
  NgCompiler
8
- } from "../chunk-EWMF72RR.js";
8
+ } from "../chunk-H2NNUI6G.js";
9
9
  import {
10
10
  CompilationMode,
11
11
  DtsMetadataReader,
@@ -32,12 +32,12 @@ import {
32
32
  queryDecoratorNames,
33
33
  reflectObjectLiteral,
34
34
  unwrapExpression
35
- } from "../chunk-TTZRVNVM.js";
35
+ } from "../chunk-I73LLMTA.js";
36
36
  import "../chunk-FROPOOFC.js";
37
37
  import {
38
38
  getFileSystem,
39
39
  isLocalRelativePath
40
- } from "../chunk-JEXAXD23.js";
40
+ } from "../chunk-CEBE44Q5.js";
41
41
  import {
42
42
  NodeJSFileSystem
43
43
  } from "../chunk-XYYEESKY.js";
@@ -6,7 +6,7 @@ import {
6
6
  ImportedSymbolsTracker,
7
7
  TypeScriptReflectionHost,
8
8
  getInitializerApiJitTransform
9
- } from "../chunk-TTZRVNVM.js";
9
+ } from "../chunk-I73LLMTA.js";
10
10
  import "../chunk-FROPOOFC.js";
11
11
  import {
12
12
  InvalidFileSystem,
@@ -15,7 +15,7 @@ import {
15
15
  dirname,
16
16
  resolve,
17
17
  setFileSystem
18
- } from "../chunk-JEXAXD23.js";
18
+ } from "../chunk-CEBE44Q5.js";
19
19
  import {
20
20
  NodeJSFileSystem
21
21
  } from "../chunk-XYYEESKY.js";
@@ -4,9 +4,9 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "../chunk-TTZRVNVM.js";
7
+ } from "../chunk-I73LLMTA.js";
8
8
  import "../chunk-FROPOOFC.js";
9
- import "../chunk-JEXAXD23.js";
9
+ import "../chunk-CEBE44Q5.js";
10
10
  import "../chunk-XYYEESKY.js";
11
11
  import "../chunk-G7GFT6BU.js";
12
12
 
@@ -6,16 +6,16 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-C6LLJPQH.js";
9
+ } from "../../chunk-PIY4QLKO.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-ATAZXXPH.js";
13
- import "../../chunk-EWMF72RR.js";
14
- import "../../chunk-TTZRVNVM.js";
12
+ } from "../../chunk-3LTGCVHM.js";
13
+ import "../../chunk-H2NNUI6G.js";
14
+ import "../../chunk-I73LLMTA.js";
15
15
  import "../../chunk-FROPOOFC.js";
16
16
  import {
17
17
  setFileSystem
18
- } from "../../chunk-JEXAXD23.js";
18
+ } from "../../chunk-CEBE44Q5.js";
19
19
  import {
20
20
  NodeJSFileSystem
21
21
  } from "../../chunk-XYYEESKY.js";
@@ -5,14 +5,14 @@
5
5
 
6
6
  import {
7
7
  main
8
- } from "../../chunk-C6LLJPQH.js";
9
- import "../../chunk-ATAZXXPH.js";
10
- import "../../chunk-EWMF72RR.js";
11
- import "../../chunk-TTZRVNVM.js";
8
+ } from "../../chunk-PIY4QLKO.js";
9
+ import "../../chunk-3LTGCVHM.js";
10
+ import "../../chunk-H2NNUI6G.js";
11
+ import "../../chunk-I73LLMTA.js";
12
12
  import "../../chunk-FROPOOFC.js";
13
13
  import {
14
14
  setFileSystem
15
- } from "../../chunk-JEXAXD23.js";
15
+ } from "../../chunk-CEBE44Q5.js";
16
16
  import {
17
17
  NodeJSFileSystem
18
18
  } from "../../chunk-XYYEESKY.js";
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
9
9
  import { AstObject, AstValue } from '../../ast/ast_value';
10
- export declare const PLACEHOLDER_VERSION = "21.1.0";
10
+ export declare const PLACEHOLDER_VERSION = "21.1.1";
11
11
  export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
12
12
  /**
13
13
  * Parses the value of an enum from the AST value's symbol name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler-cli",
3
- "version": "21.1.0",
3
+ "version": "21.1.1",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -43,7 +43,7 @@
43
43
  "typescript": "5.9.3"
44
44
  },
45
45
  "peerDependencies": {
46
- "@angular/compiler": "21.1.0",
46
+ "@angular/compiler": "21.1.1",
47
47
  "typescript": ">=5.9 <6.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
@@ -12,7 +12,7 @@ import { AbsoluteFsPath, PathString } from './types';
12
12
  */
13
13
  export declare function normalizeSeparators(path: string): string;
14
14
  /**
15
- * Remove a .ts, .d.ts, or .js extension from a file name.
15
+ * Remove a .ts, .d.ts, .tsx, or .js extension from a file name.
16
16
  */
17
17
  export declare function stripExtension<T extends PathString>(path: T): T;
18
18
  export declare function getSourceFileOrError(program: ts.Program, fileName: AbsoluteFsPath): ts.SourceFile;