@angular/upgrade 16.1.4 → 16.1.6

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 v16.1.4
2
+ * @license Angular v16.1.6
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -17,7 +17,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
17
17
  /**
18
18
  * @publicApi
19
19
  */
20
- const VERSION = new Version('16.1.4');
20
+ const VERSION = new Version('16.1.6');
21
21
 
22
22
  function noNg() {
23
23
  throw new Error('AngularJS v1.x is not loaded!');
@@ -436,10 +436,11 @@ class DowngradeComponentAdapter {
436
436
  }
437
437
  const emitter = componentRef.instance[output.prop];
438
438
  if (emitter) {
439
- emitter.subscribe({
439
+ const subscription = emitter.subscribe({
440
440
  next: isAssignment ? (v) => setter(this.scope, v) :
441
441
  (v) => getter(this.scope, { '$event': v })
442
442
  });
443
+ componentRef.onDestroy(() => subscription.unsubscribe());
443
444
  }
444
445
  else {
445
446
  throw new Error(`Missing emitter '${output.prop}' on component '${getTypeName(this.componentFactory.componentType)}'!`);
@@ -1287,10 +1288,10 @@ class UpgradeNg1ComponentAdapter {
1287
1288
  setComponentProperty(name, value) {
1288
1289
  this.destinationObj[this.propertyMap[name]] = value;
1289
1290
  }
1290
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UpgradeNg1ComponentAdapter, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
1291
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: UpgradeNg1ComponentAdapter, usesOnChanges: true, ngImport: i0 }); }
1291
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: UpgradeNg1ComponentAdapter, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
1292
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.6", type: UpgradeNg1ComponentAdapter, usesOnChanges: true, ngImport: i0 }); }
1292
1293
  }
1293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UpgradeNg1ComponentAdapter, decorators: [{
1294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: UpgradeNg1ComponentAdapter, decorators: [{
1294
1295
  type: Directive
1295
1296
  }], ctorParameters: function () { return [{ type: UpgradeHelper }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }]; } });
1296
1297