@mmstack/primitives 20.0.1 → 20.0.3

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.
package/index.d.ts CHANGED
@@ -478,7 +478,9 @@ declare function elementVisibility(target?: ElementRef<Element> | Element | Sign
478
478
  * This function achieves its high performance by leveraging the new `linkedSignal`
479
479
  * API from Angular, which allows for efficient memoization and reuse of array items.
480
480
  */
481
- declare function mapArray<T, U>(source: () => T[], map: (value: Signal<T>, index: number) => U, opt?: CreateSignalOptions<T>): Signal<U[]>;
481
+ declare function mapArray<T, U>(source: () => T[], map: (value: Signal<T>, index: number) => U, opt?: CreateSignalOptions<T> & {
482
+ onDestroy?: (value: U) => void;
483
+ }): Signal<U[]>;
482
484
 
483
485
  /**
484
486
  * Creates a read-only signal that reactively tracks whether a CSS media query
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmstack/primitives",
3
- "version": "20.0.1",
3
+ "version": "20.0.3",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "signals",
@@ -19,8 +19,8 @@
19
19
  "tslib": "^2.3.0"
20
20
  },
21
21
  "peerDependencies": {
22
- "@angular/core": "~20.0.3",
23
- "@angular/common": "~20.0.3"
22
+ "@angular/core": "~20.1.0",
23
+ "@angular/common": "~20.1.0"
24
24
  },
25
25
  "sideEffects": false,
26
26
  "module": "fesm2022/mmstack-primitives.mjs",