benmorel/weakmap-polyfill
A WeakMap polyfill for PHP 7.4
0.5.0
1.7M downloads/mo
#3781 most downloaded on Packagist
BenMorel/weakmap-polyfill
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships on a steady schedule
a new release about every 1.3 years
Most releases are documented
notes for 6 of 7 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
7 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
7 releases · Jan 2020 to Apr 2024Releases
latest 7-
0.5.002 Apr 2024Release notes
Open source →✨ New features
WeakMapnow performs housekeeping on GC cycle collection (automatic and viagc_collect_cycles()) by @mvorisek (#10)WeakMapis now properly annotated with@template(for static analysis)
🩹 Compatibility improvements
- Fixed
Errortype / message when passingnullinstead ofobjectinisset()/unset()
-
0.4.001 Jan 2023 -
0.3.009 Jan 2022Release notes
Open source →🚀 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.022 Jan 2020Release notes
Open source →WeakMapnow throws:TypeErrorwhen using a non-object as a keyErrorwhen appending ([]) to aWeakMap
In accordance with the specs.
Thanks to @BackEndTea!
-
0.1.222 Jan 2020 -
0.1.120 Jan 2020 -
0.1.020 Jan 2020Nothing published for this version