Releases: BenMorel/weakmap-polyfill
Releases · BenMorel/weakmap-polyfill
0.5.0
✨ New features
WeakMap
now performs housekeeping on GC cycle collection (automatic and via gc_collect_cycles()
) by @mvorisek (#10)
WeakMap
is now properly annotated with @template
(for static analysis)
🩹 Compatibility improvements
- Fixed
Error
type / message when passing null
instead of object
in isset()
/ unset()
0.4.0
🐛 Bug fix
- Fixed behaviour of
isset()
with null
value by @mabar (#7)
0.3.0
🚀 Performance improvement
- housekeeping is now performed less often for large WeakMaps (#4)
💥 Compatibility improvement / breaking change
- serializing & setting dynamic properties is now forbidden, like native
WeakMap
(#6)
Thanks to @TysonAndre!
0.2.0
WeakMap
now throws:
TypeError
when using a non-object as a key
Error
when appending ([]
) to a WeakMap
In accordance with the specs.
Thanks to @BackEndTea!
0.1.2
♻️ Internal refactoring
No API changes.
0.1.1
✨ New feature
Add missing support for Traversable
.