PackageTrack
Sign in Get early access

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 2024
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 7
  1. 0.5.0 02 Apr 2024
    Release notes

    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()
    Open source →
  2. 0.4.0 01 Jan 2023
    Release notes

    🐛 Bug fix

    • Fixed behaviour of isset() with null value by @mabar (#7)
    Open source →
  3. 0.3.0 09 Jan 2022
    Release notes

    🚀 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!

    Open source →
  4. 0.2.0 22 Jan 2020
    Release notes

    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!

    Open source →
  5. 0.1.2 22 Jan 2020
    Release notes

    ♻️ Internal refactoring

    No API changes.

    Open source →
  6. 0.1.1 20 Jan 2020
    Release notes

    New feature

    Add missing support for Traversable.

    Open source →
  7. 0.1.0 20 Jan 2020

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive