Compare commits

..

2 Commits

Author SHA1 Message Date
47d339bb2b v6.2.3
Some checks failed
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2026-03-01 12:18:16 +00:00
bf3b4e832a fix(interestmap): remove interest from InterestMap immediately after fulfillment 2026-03-01 12:18:16 +00:00
4 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -1,6 +1,6 @@
{
"name": "@push.rocks/lik",
"version": "6.2.2",
"version": "6.2.3",
"private": false,
"description": "Provides a collection of lightweight helpers and utilities for Node.js projects.",
"main": "dist_ts/index.js",

View File

@@ -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.'
}

View File

@@ -39,6 +39,7 @@ export class Interest<DTInterestId, DTInterestFullfillment> {
this.isFullfilled = true;
this.fullfillmentStore = [];
this.interestDeferred.resolve(objectArg);
this.destroy(); // Remove from InterestMap immediately after fulfillment
}
/**