@angular/compiler 19.1.3 → 19.1.5

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,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.3
2
+ * @license Angular v19.1.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -30763,7 +30763,7 @@ function publishFacade(global) {
30763
30763
  * @description
30764
30764
  * Entry point for all public APIs of the compiler package.
30765
30765
  */
30766
- const VERSION = new Version('19.1.3');
30766
+ const VERSION = new Version('19.1.5');
30767
30767
 
30768
30768
  class CompilerConfig {
30769
30769
  defaultEncapsulation;
@@ -32520,7 +32520,6 @@ function compileHmrInitializer(meta) {
32520
32520
  const dataName = 'd';
32521
32521
  const timestampName = 't';
32522
32522
  const importCallbackName = `${meta.className}_HmrLoad`;
32523
- const locals = meta.localDependencies.map((localName) => variable(localName));
32524
32523
  const namespaces = meta.namespaceDependencies.map((dep) => {
32525
32524
  return new ExternalExpr({ moduleName: dep.moduleName, name: null });
32526
32525
  });
@@ -32528,7 +32527,12 @@ function compileHmrInitializer(meta) {
32528
32527
  const defaultRead = variable(moduleName).prop('default');
32529
32528
  // ɵɵreplaceMetadata(Comp, m.default, [...namespaces], [...locals]);
32530
32529
  const replaceCall = importExpr(Identifiers.replaceMetadata)
32531
- .callFn([meta.type, defaultRead, literalArr(namespaces), literalArr(locals)]);
32530
+ .callFn([
32531
+ meta.type,
32532
+ defaultRead,
32533
+ literalArr(namespaces),
32534
+ literalArr(meta.localDependencies.map((l) => l.runtimeRepresentation)),
32535
+ ]);
32532
32536
  // (m) => m.default && ɵɵreplaceMetadata(...)
32533
32537
  const replaceCallback = arrowFn([new FnParam(moduleName)], defaultRead.and(replaceCall));
32534
32538
  // '<urlPartial>' + encodeURIComponent(t)
@@ -32586,8 +32590,11 @@ function compileHmrInitializer(meta) {
32586
32590
  */
32587
32591
  function compileHmrUpdateCallback(definitions, constantStatements, meta) {
32588
32592
  const namespaces = 'ɵɵnamespaces';
32589
- const params = [meta.className, namespaces, ...meta.localDependencies].map((name) => new FnParam(name, DYNAMIC_TYPE));
32593
+ const params = [meta.className, namespaces].map((name) => new FnParam(name, DYNAMIC_TYPE));
32590
32594
  const body = [];
32595
+ for (const local of meta.localDependencies) {
32596
+ params.push(new FnParam(local.name));
32597
+ }
32591
32598
  // Declare variables that read out the individual namespaces.
32592
32599
  for (let i = 0; i < meta.namespaceDependencies.length; i++) {
32593
32600
  body.push(new DeclareVarStmt(meta.namespaceDependencies[i].assignedName, variable(namespaces).key(literal(i)), DYNAMIC_TYPE, StmtModifier.Final));
@@ -32619,7 +32626,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
32619
32626
  function compileDeclareClassMetadata(metadata) {
32620
32627
  const definitionMap = new DefinitionMap();
32621
32628
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
32622
- definitionMap.set('version', literal('19.1.3'));
32629
+ definitionMap.set('version', literal('19.1.5'));
32623
32630
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32624
32631
  definitionMap.set('type', metadata.type);
32625
32632
  definitionMap.set('decorators', metadata.decorators);
@@ -32637,7 +32644,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
32637
32644
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
32638
32645
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
32639
32646
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
32640
- definitionMap.set('version', literal('19.1.3'));
32647
+ definitionMap.set('version', literal('19.1.5'));
32641
32648
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32642
32649
  definitionMap.set('type', metadata.type);
32643
32650
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -32732,7 +32739,7 @@ function createDirectiveDefinitionMap(meta) {
32732
32739
  const definitionMap = new DefinitionMap();
32733
32740
  const minVersion = getMinimumVersionForPartialOutput(meta);
32734
32741
  definitionMap.set('minVersion', literal(minVersion));
32735
- definitionMap.set('version', literal('19.1.3'));
32742
+ definitionMap.set('version', literal('19.1.5'));
32736
32743
  // e.g. `type: MyDirective`
32737
32744
  definitionMap.set('type', meta.type.value);
32738
32745
  if (meta.isStandalone !== undefined) {
@@ -33151,7 +33158,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
33151
33158
  function compileDeclareFactoryFunction(meta) {
33152
33159
  const definitionMap = new DefinitionMap();
33153
33160
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
33154
- definitionMap.set('version', literal('19.1.3'));
33161
+ definitionMap.set('version', literal('19.1.5'));
33155
33162
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33156
33163
  definitionMap.set('type', meta.type.value);
33157
33164
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -33186,7 +33193,7 @@ function compileDeclareInjectableFromMetadata(meta) {
33186
33193
  function createInjectableDefinitionMap(meta) {
33187
33194
  const definitionMap = new DefinitionMap();
33188
33195
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
33189
- definitionMap.set('version', literal('19.1.3'));
33196
+ definitionMap.set('version', literal('19.1.5'));
33190
33197
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33191
33198
  definitionMap.set('type', meta.type.value);
33192
33199
  // Only generate providedIn property if it has a non-null value
@@ -33237,7 +33244,7 @@ function compileDeclareInjectorFromMetadata(meta) {
33237
33244
  function createInjectorDefinitionMap(meta) {
33238
33245
  const definitionMap = new DefinitionMap();
33239
33246
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
33240
- definitionMap.set('version', literal('19.1.3'));
33247
+ definitionMap.set('version', literal('19.1.5'));
33241
33248
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33242
33249
  definitionMap.set('type', meta.type.value);
33243
33250
  definitionMap.set('providers', meta.providers);
@@ -33270,7 +33277,7 @@ function createNgModuleDefinitionMap(meta) {
33270
33277
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
33271
33278
  }
33272
33279
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
33273
- definitionMap.set('version', literal('19.1.3'));
33280
+ definitionMap.set('version', literal('19.1.5'));
33274
33281
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33275
33282
  definitionMap.set('type', meta.type.value);
33276
33283
  // We only generate the keys in the metadata if the arrays contain values.
@@ -33321,7 +33328,7 @@ function compileDeclarePipeFromMetadata(meta) {
33321
33328
  function createPipeDefinitionMap(meta) {
33322
33329
  const definitionMap = new DefinitionMap();
33323
33330
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
33324
- definitionMap.set('version', literal('19.1.3'));
33331
+ definitionMap.set('version', literal('19.1.5'));
33325
33332
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33326
33333
  // e.g. `type: MyPipe`
33327
33334
  definitionMap.set('type', meta.type.value);