Skip to content

Releases: yaroslavche/BitMask

v3.2.0

13 Dec 15:03

Choose a tag to compare

Some optimizations in Util/Bits.php

v3.1.0

28 Aug 13:53
d6d2c31

Choose a tag to compare

Key Changes

  • Automatic int-backed Enum Support: The EnumBitMask constructor now automatically detects int-backed enums and uses their values instead of their position. This allows for non-sequential bitmask values (e.g., 1, 4, 8), solving a major limitation of the previous version (see #33).
  • Value Validation: Added a validation step to ensure that all int-backed enum values are single-bit values (powers of two). An InvalidEnumException is thrown for invalid values (e.g., 3, 5).

This is a breaking change that requires updating any int-backed enums to use single-bit values.

v3.0.2

21 Jun 07:47
75d1b1b

Choose a tag to compare

EnumBitMask factory methods (#31)
Fix remove bit twice (#32)

v3.0.1

14 Nov 10:34

Choose a tag to compare

Minified source code archive

v3.0.0

14 Nov 08:49
2f708bb

Choose a tag to compare

V3 (#28)

* BC. Reduced BitMaskInterface and change implementations

* Updated README, BitMask final

* README bit shorter

* Updated README

v2.0.1

14 Nov 08:32

Choose a tag to compare

V2 deprecated

v2.0.0

30 Oct 10:27
248ca2a

Choose a tag to compare

v2.0.0

v1.1.0

25 Oct 18:21
504a0c0

Choose a tag to compare

Added EnumBitMask

v1.0.1

21 Feb 11:00
0cad165

Choose a tag to compare

Full Changelog: v1.0.0...v1.0.1

v1.0.0

16 Nov 11:12

Choose a tag to compare

Fixed infection badge