18 packages found
Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Iterable WeakMaps and WeakSets. Provides WeakRefMap and WeakRefSet which store values using WeakRefs and clean themselves up when garbage collected.
Is this value a JS FinalizationRegistry? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
A Map with weakly referenced values, instead of keys
A LRU cache built on WeakRefs and FinalizationRegistry
A native-like object, but with a weak reference to all values, automatically deleting the corresponding property when the value is recycled
A zero-dependency lightweight library for iterable weak collections and proxies.
C#-Style Typescript Events/Weak Events
- Event
- Events
- C#
- Weak Event
- TypeScript
- Lightweight
- Zero dependencies
- No dependencies
- FinalizationRegistry
- WeakRef
- Observer
WeakRefMap, a weak map with access to the fields, and keys can be primitives
Iterable WeakSet / WeakMap using ES2021 WeakRef
tiny lib to store weak referenced units
weak decorator, wraps it with a WeakRef descriptor
WeakRef and FinalizationGroup for IE11+
Shim for TC39 Weakrefs proposal
WeakEventEmitter focuses on using weak references and keeping performance while maintaining a Node.js AND browser compatible interface.
- EventEmitter
- EventEmitter2
- EventEmitter3
- Events
- Weak
- WeakRef
- WeakMap
- addEventListener
- addListener
- emit
- emits
- emitter
- event
- once
- View more