@wavemaker-ai/angular-codegen 1.0.0-rc.647712 → 12.0.0-rc.647733

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.
@@ -36,11 +36,26 @@ const PATCHES = {
36
36
  let current = code;
37
37
  let anyChanged = false;
38
38
 
39
- // DestroyRef injection fix
40
- if (current.includes('takeUntilDestroyed()') && !current.includes('const __destroyRef = i0.inject(i0.DestroyRef)')) {
39
+ // DestroyRef injection fix (ngx-bootstrap 21: takeUntilDestroyed(__destroyRef) without declaration)
40
+ if (
41
+ current.includes('takeUntilDestroyed(__destroyRef)') &&
42
+ !current.includes('const __destroyRef = i0.inject(i0.DestroyRef)')
43
+ ) {
44
+ const r1 = applyReplacement(
45
+ current,
46
+ /(constructor\s*\(\s*(?:ngZone\s*,\s*)?rendererFactory\s*,\s*platformId\s*\)\s*\{)/,
47
+ '$1\n const __destroyRef = i0.inject(i0.DestroyRef);',
48
+ 'Patched PositioningService: DestroyRef injection'
49
+ );
50
+ current = r1.code;
51
+ anyChanged = r1.changed || anyChanged;
52
+ } else if (
53
+ current.includes('takeUntilDestroyed()') &&
54
+ !current.includes('const __destroyRef = i0.inject(i0.DestroyRef)')
55
+ ) {
41
56
  const r1 = applyReplacement(
42
57
  current,
43
- /(constructor\s*\(\s*ngZone\s*,\s*rendererFactory\s*,\s*platformId\s*\)\s*\{)/,
58
+ /(constructor\s*\(\s*(?:ngZone\s*,\s*)?rendererFactory\s*,\s*platformId\s*\)\s*\{)/,
44
59
  '$1\n const __destroyRef = i0.inject(i0.DestroyRef);',
45
60
  null
46
61
  );
@@ -69,7 +69,7 @@
69
69
  <body>
70
70
  <div class="header">
71
71
  <h1>Angular Project Dependencies Report</h1>
72
- <p class="timestamp">Generated on: 8/24/2026, 11:14:47 AM</p>
72
+ <p class="timestamp">Generated on: 9/7/2026, 10:42:16 PM</p>
73
73
  </div>
74
74
 
75
75
  <div class="section">