@xaendar/core 0.9.29 → 0.9.30

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.
@@ -310,7 +310,7 @@ export declare type EventOptions = Beautify<RequireOne<Omit<CustomEventInit, 'de
310
310
  * `update` per aggiornare le variabili implicite in-place quando l'item
311
311
  * viene riusato a un indice diverso.
312
312
  */
313
- export declare function _for(parentNode: HTMLElement, parentContext: Context, condition: NoArgsFunction<unknown[]>, trackExpression: Function_2<[unknown], ForKey>, forFn: Function_2<[HTMLElement, Context, unknown[], number, Node | null], {
313
+ export declare function _for(parentNode: HTMLElement, parentContext: Context, condition: NoArgsFunction<unknown[]>, trackExpression: Function_2<[unknown, number], ForKey>, forFn: Function_2<[HTMLElement, Context, unknown[], number, Node | null], {
314
314
  context: Context;
315
315
  update?: (newIndex: number, items: unknown[]) => void;
316
316
  }>): void;
@@ -503,7 +503,7 @@ function _for(parentNode, parentContext, condition, trackExpression, forFn) {
503
503
  let entries = /* @__PURE__ */ new Map();
504
504
  const unlistener = effect(() => {
505
505
  const items = condition();
506
- const newKeys = items.map((item) => trackExpression(item));
506
+ const newKeys = items.map((item, i) => trackExpression(item, i));
507
507
  const newKeySet = new Set(newKeys);
508
508
  untracked(() => {
509
509
  const newEntries = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/core",
3
- "version": "0.9.29",
3
+ "version": "0.9.30",
4
4
  "description": "A library containing core utils such as webcomponent base classes and theming support",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@xaendar/signals": "0.9.29",
26
- "@xaendar/types": "0.9.29"
25
+ "@xaendar/signals": "0.9.30",
26
+ "@xaendar/types": "0.9.30"
27
27
  }
28
28
  }