@angular/core 19.2.14 → 19.2.16

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.
Files changed (53) hide show
  1. package/event_dispatcher.d-K56StcHr.d.ts +1 -1
  2. package/fesm2022/core.mjs +32 -23
  3. package/fesm2022/core.mjs.map +1 -1
  4. package/fesm2022/primitives/di.mjs +1 -1
  5. package/fesm2022/primitives/di.mjs.map +1 -1
  6. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  7. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  8. package/fesm2022/primitives/signals.mjs +1 -1
  9. package/fesm2022/primitives/signals.mjs.map +1 -1
  10. package/fesm2022/rxjs-interop.mjs +1 -1
  11. package/fesm2022/rxjs-interop.mjs.map +1 -1
  12. package/fesm2022/testing.mjs +1 -1
  13. package/fesm2022/testing.mjs.map +1 -1
  14. package/fesm2022/untracked-BKcld_ew.mjs +1 -1
  15. package/fesm2022/untracked-BKcld_ew.mjs.map +1 -1
  16. package/index.d.ts +7 -8
  17. package/navigation_types.d-fAxd92YV.d.ts +1 -1
  18. package/package.json +1 -1
  19. package/primitives/di/index.d.ts +1 -1
  20. package/primitives/event-dispatch/index.d.ts +1 -1
  21. package/primitives/signals/index.d.ts +1 -1
  22. package/rxjs-interop/index.d.ts +1 -1
  23. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +127 -0
  24. package/schematics/bundles/apply_import_manager-DF0BUe6N.cjs +1 -1
  25. package/schematics/bundles/{compiler_host-C55Cczah.cjs → change_tracker-BfH3nBIf.cjs} +1 -120
  26. package/schematics/bundles/checker-BwV9MjSQ.cjs +2 -2
  27. package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
  28. package/schematics/bundles/compiler_host-CAfDJO3W.cjs +129 -0
  29. package/schematics/bundles/control-flow-migration.cjs +4 -3
  30. package/schematics/bundles/explicit-standalone-flag.cjs +4 -3
  31. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  32. package/schematics/bundles/index-B6p5mHIY.cjs +1 -1
  33. package/schematics/bundles/index-BnJH1Hc7.cjs +11 -11
  34. package/schematics/bundles/inject-migration.cjs +5 -4
  35. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  36. package/schematics/bundles/migrate_ts_type_references-DQe6JtwN.cjs +1 -1
  37. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  38. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  39. package/schematics/bundles/output-migration.cjs +1 -1
  40. package/schematics/bundles/pending-tasks.cjs +4 -3
  41. package/schematics/bundles/project_paths-DY3SIODd.cjs +1 -1
  42. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
  43. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  44. package/schematics/bundles/provide-initializer.cjs +4 -3
  45. package/schematics/bundles/route-lazy-loading.cjs +5 -4
  46. package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
  47. package/schematics/bundles/signal-input-migration.cjs +1 -1
  48. package/schematics/bundles/signal-queries-migration.cjs +1 -1
  49. package/schematics/bundles/signals.cjs +1 -1
  50. package/schematics/bundles/standalone-migration.cjs +8 -7
  51. package/schematics/migrations.json +5 -0
  52. package/testing/index.d.ts +1 -1
  53. package/weak_ref.d-DWHPG08n.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.14
3
+ * @license Angular v19.2.16
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -9,8 +9,9 @@
9
9
  var schematics = require('@angular-devkit/schematics');
10
10
  var fs = require('fs');
11
11
  var p = require('path');
12
- var compiler_host = require('./compiler_host-C55Cczah.cjs');
12
+ var change_tracker = require('./change_tracker-BfH3nBIf.cjs');
13
13
  var project_tsconfig_paths = require('./project_tsconfig_paths-CDVxT6Ov.cjs');
14
+ var compiler_host = require('./compiler_host-CAfDJO3W.cjs');
14
15
  var ts = require('typescript');
15
16
  var checker = require('./checker-BwV9MjSQ.cjs');
16
17
  var property_name = require('./property_name-BBwFuqMe.cjs');
@@ -156,7 +157,7 @@ function migrateFileToLazyRoutes(sourceFile, program) {
156
157
  const typeChecker = program.getTypeChecker();
157
158
  const reflector = new checker.TypeScriptReflectionHost(typeChecker);
158
159
  const printer = ts.createPrinter();
159
- const tracker = new compiler_host.ChangeTracker(printer);
160
+ const tracker = new change_tracker.ChangeTracker(printer);
160
161
  const routeArraysToMigrate = findRoutesArrayToMigrate(sourceFile, typeChecker);
161
162
  if (routeArraysToMigrate.length === 0) {
162
163
  return { pendingChanges: [], skippedRoutes: [], migratedRoutes: [] };
@@ -347,7 +348,7 @@ function migrate(options) {
347
348
  const basePath = process.cwd();
348
349
  // TS and Schematic use paths in POSIX format even on Windows. This is needed as otherwise
349
350
  // string matching such as `sourceFile.fileName.startsWith(pathToMigrate)` might not work.
350
- const pathToMigrate = compiler_host.normalizePath(p.join(basePath, options.path));
351
+ const pathToMigrate = change_tracker.normalizePath(p.join(basePath, options.path));
351
352
  if (!buildPaths.length) {
352
353
  throw new schematics.SchematicsException('Could not find any tsconfig file. Cannot run the route lazy loading migration.');
353
354
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.14
3
+ * @license Angular v19.2.16
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.14
3
+ * @license Angular v19.2.16
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.14
3
+ * @license Angular v19.2.16
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.14
3
+ * @license Angular v19.2.16
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.14
3
+ * @license Angular v19.2.16
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -11,8 +11,9 @@ var index = require('./index-BnJH1Hc7.cjs');
11
11
  var fs = require('fs');
12
12
  var p = require('path');
13
13
  var ts = require('typescript');
14
- var compiler_host = require('./compiler_host-C55Cczah.cjs');
14
+ var change_tracker = require('./change_tracker-BfH3nBIf.cjs');
15
15
  var project_tsconfig_paths = require('./project_tsconfig_paths-CDVxT6Ov.cjs');
16
+ var compiler_host = require('./compiler_host-CAfDJO3W.cjs');
16
17
  var ng_decorators = require('./ng_decorators-B5HCqr20.cjs');
17
18
  var nodes = require('./nodes-B16H9JUd.cjs');
18
19
  var imports = require('./imports-CIX-JgAN.cjs');
@@ -247,7 +248,7 @@ function getRelativeImportPath(fromFile, toFile) {
247
248
  path = './' + path;
248
249
  }
249
250
  // Using the Node utilities can yield paths with forward slashes on Windows.
250
- return compiler_host.normalizePath(path);
251
+ return change_tracker.normalizePath(path);
251
252
  }
252
253
  /** Function used to remap the generated `imports` for a component to known shorter aliases. */
253
254
  function knownInternalAliasRemapper(imports) {
@@ -344,7 +345,7 @@ function toStandalone(sourceFiles, program, printer, fileImportRemapper, declara
344
345
  const modulesToMigrate = new Set();
345
346
  const testObjectsToMigrate = new Set();
346
347
  const declarations = new Set();
347
- const tracker = new compiler_host.ChangeTracker(printer, fileImportRemapper);
348
+ const tracker = new change_tracker.ChangeTracker(printer, fileImportRemapper);
348
349
  for (const sourceFile of sourceFiles) {
349
350
  const modules = findNgModuleClassesToMigrate(sourceFile, typeChecker);
350
351
  const testObjects = findTestObjectsToMigrate(sourceFile, typeChecker);
@@ -923,7 +924,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
923
924
  */
924
925
  function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, declarationImportRemapper) {
925
926
  const filesToRemove = new Set();
926
- const tracker = new compiler_host.ChangeTracker(printer, importRemapper);
927
+ const tracker = new change_tracker.ChangeTracker(printer, importRemapper);
927
928
  const tsProgram = program.getTsProgram();
928
929
  const typeChecker = tsProgram.getTypeChecker();
929
930
  const templateTypeChecker = program.compiler.getTemplateTypeChecker();
@@ -1407,7 +1408,7 @@ function isInImportsArray(closestAssignment, closestArray) {
1407
1408
  * found in the LICENSE file at https://angular.dev/license
1408
1409
  */
1409
1410
  function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, declarationImportRemapper) {
1410
- const tracker = new compiler_host.ChangeTracker(printer, importRemapper);
1411
+ const tracker = new change_tracker.ChangeTracker(printer, importRemapper);
1411
1412
  const typeChecker = program.getTsProgram().getTypeChecker();
1412
1413
  const templateTypeChecker = program.compiler.getTemplateTypeChecker();
1413
1414
  const referenceResolver = new ReferenceResolver(program, host, rootFileNames, basePath, referenceLookupExcludedFiles);
@@ -2000,7 +2001,7 @@ function migrate(options) {
2000
2001
  const allPaths = [...buildPaths, ...testPaths];
2001
2002
  // TS and Schematic use paths in POSIX format even on Windows. This is needed as otherwise
2002
2003
  // string matching such as `sourceFile.fileName.startsWith(pathToMigrate)` might not work.
2003
- const pathToMigrate = compiler_host.normalizePath(p.join(basePath, options.path));
2004
+ const pathToMigrate = change_tracker.normalizePath(p.join(basePath, options.path));
2004
2005
  let migratedFiles = 0;
2005
2006
  if (!allPaths.length) {
2006
2007
  throw new schematics.SchematicsException('Could not find any tsconfig file. Cannot run the standalone migration.');
@@ -15,6 +15,11 @@
15
15
  "description": "Replaces `APP_INITIALIZER`, `ENVIRONMENT_INITIALIZER` & `PLATFORM_INITIALIZER` respectively with `provideAppInitializer`, `provideEnvironmentInitializer` & `providePlatformInitializer`.",
16
16
  "factory": "./bundles/provide-initializer.cjs#migrate",
17
17
  "optional": true
18
+ },
19
+ "add-bootstrap-context-to-server-main": {
20
+ "version": "19.2.15",
21
+ "description": "Adds `BootstrapContext` to `bootstrapApplication` calls in `main.server.ts` to support server rendering.",
22
+ "factory": "./bundles/add-bootstrap-context-to-server-main.cjs#migrate"
18
23
  }
19
24
  }
20
25
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.14
2
+ * @license Angular v19.2.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.14
2
+ * @license Angular v19.2.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */