diff --git a/changelog.md b/changelog.md index 192331a..cefb73c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-03-01 - 6.2.3 - fix(interestmap) +remove interest from InterestMap immediately after fulfillment + +- Call destroy() in fullfillInterest to remove the interest entry from the InterestMap right after resolving interestDeferred. +- Prevents stale entries and ensures immediate cleanup of fulfilled interests + ## 2025-04-25 - 6.2.2 - fix(docs) Update @push.rocks/tapbundle dependency and refine AsyncExecutionStack documentation examples diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 7ce243c..476b3fc 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/lik', - version: '6.2.2', + version: '6.2.3', description: 'Provides a collection of lightweight helpers and utilities for Node.js projects.' } diff --git a/ts/classes.interestmap.interest.ts b/ts/classes.interestmap.interest.ts index e7683ee..cf07839 100644 --- a/ts/classes.interestmap.interest.ts +++ b/ts/classes.interestmap.interest.ts @@ -39,6 +39,7 @@ export class Interest { this.isFullfilled = true; this.fullfillmentStore = []; this.interestDeferred.resolve(objectArg); + this.destroy(); // Remove from InterestMap immediately after fulfillment } /**