Releases: mediact/data-container
2.11.3
2.11.2: Merge pull request #15 from mediact/feature/APD-2037
Add return type to getIterator to get better mocks
Keep leading zeros when parsing a path
Allow keys to keep leading zeros when parsing a path. Paths like
"foo.000.bar" were turned into ["foo", 0, "bar"] resulting in a
different structure after setting values in the data container.
The key is now only converted into a string if the value is numeric,
and has no leading zero.
Add support for keys that contain the separator
Merge pull request #13 from mediact/feature/APD-1542 Add support for keys that contain the separator
2.11.0-beta3: Introduce path parser and key quoter traits
Traits have been introduced for other libraries to parse paths and quote keys.
2.11-beta1: Add support for keys that contain the separator
The container now uses str_getcsv instead of explode to split paths and patterns. This enables to use double quotes when a key contains the separator.
Accept iterable data in constructor and decorator trait
Merge pull request #12 from mediact/feature/MG-583 2.10.0 Accept iterable data in constructor and decorator trait
Implement replacer that uses the pattern replacer trait
It is not desirable for other packages to use the replacer trait. Therefore it is now wrapped by a replacer which has its own interface.
Add an interface and implementation to iterate over containers
The Iterator interface has been extended to specify the return type of
the current method. Having this interface helps with static analysis and
keeps code clean by not having to add type hints. A basic implementation
based on IteratorIterator
has been added.
Add an interface and implementation to iterate over containers
The Iterator interface has been extended to specify the return type of
the current method. Having this interface helps with static analysis and
keeps code clean by not having to add type hints. A basic implementation
based on IteratorIterator
has been added.