Releases: xp-forge/address
Releases · xp-forge/address
4.2.0: Yield syntax
4.1.0: Pointers and values
- Merged PR #15: Add
Address::pointers()
to iterate over paths and
pointers, optionally filtering by a given path
(@thekid) - Merged PR #14: Make util.address.Address subclasses implement the
lang.Value interface, making them comparable and giving them more
readable string representations
(@thekid) - Merged PR #13: Introduce
Address::value()
to return current value
(@thekid)
4.0.1. $this fix
- Fixed Cannot unbind $this of closure using $this - @thekid
4.0.0: Unified value creation
This major release offers three ways to create values from XML: Using ValueOf, ObjectOf or RecordOf. The first is the most generic form and accepts a default value while the latter two produce objects of a given type, differing in the way they create these.
- Merged PR #11: Deprecate the ArrayOf and Enclosing classes, folding
their functionality intoutil.address.ValueOf
(@thekid) - Renamed MapOf to
util.address.ValueOf
and require a default value
to be passed to its constructor
(@thekid) - Made
util.address.ObjectOf
(and RecordOf) raise exceptions if
the given type is not instantiable
(@thekid) - Merged PR #9: Refactor
util.address.ObjectOf
to accept functions
typedfunction(object, util.address.Iteration): void
instead of
binding $this to the target object instance.
(@thekid) - Merged PR #8: Add
util.address.MapOf
to create maps. Comparable
to RecordOf in all aspects except the return type.
(@thekid) - Merged PR #7: Add
util.address.RecordOf
for record classes. While
the ObjectOf class modifies members directly, this class modifies
named constructor arguments.
(@thekid)
3.0.0: ObjectOf API
This release brings this library up-to-date by dropping dependencies on archived libraries and adding a more generic object instantation
mechanism not reliant on a certain class architecture.
- Removed dependency on
xp-framework/collections
library, add aPair
class of our own
(@thekid) - Made library compatible with XP 11, dropped XP 9 (and lower versions)
(@thekid) - Merged PR #6: Add new
util.address.ObjectOf
. It replaces the old
CreationOf API, which requires objects to have awith()
method
returning an InstanceCreation instance
(@thekid) - Merged PR #5: Refactor code base, dropping dependency on the partial
library
(@thekid)
2.0.0: Drop PHP 5 support
This release is the first release to no longer run on PHP 5, implementing xp-framework/rfc#334.
1.0.0: XP10 compatibility
First major release, compatible with the current XP and PHP versions.
- Made compatible with XP 10, PHP 7+ - @thekid
0.5.0: New lang/partial API
- Adapted to changes in xp-forge/partial 0.6.0 - @thekid