Skip to content

Releases: denostack/weakref

0.2.3

17 Mar 15:43
f6b3d6e

Choose a tag to compare

Bug Fixes

  • WeakValueMap: fix overwrite existing key (#1) — When overwriting an existing key with set(), the previous WeakRef's FinalizationRegistry was not unregistered, causing the new value to be deleted unexpectedly.
  • Fix accessors returning stale state before FinalizationRegistry fires (#2) — After a value was garbage-collected but before the FinalizationRegistry callback ran, get(), has(), and iterators would return undefined instead of treating the entry as absent. Applied lazy cleanup on access to WeakValueMap, IterableWeakSet, and IterableWeakMap.

0.2.1

23 Jun 06:06
37eb9d8

Choose a tag to compare

  • fix: resolve issue with broken types due to addition of union, intersection, etc. in typescript esnext types for Set