Skip to content

Releases: xp-forge/address

4.2.0: Yield syntax

14 Nov 19:27
Compare
Choose a tag to compare
  • Merged PR #16: Use yield inside address functions. Using functions
    of the form fn(&$self) => $self['item']= yield; inside definitions
    is the new preferred way to process the values!
    (@thekid)

4.1.0: Pointers and values

13 Nov 21:53
Compare
Choose a tag to compare
  • 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

01 Nov 17:55
Compare
Choose a tag to compare
  • Fixed Cannot unbind $this of closure using $this - @thekid

4.0.0: Unified value creation

01 Nov 15:51
Compare
Choose a tag to compare

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 into util.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
    typed function(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

24 Oct 21:32
Compare
Choose a tag to compare

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 a Pair
    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 a with() 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

10 Apr 19:57
Compare
Choose a tag to compare

This release is the first release to no longer run on PHP 5, implementing xp-framework/rfc#334.

  • Heads up: Minimum required PHP version now is PHP 7.0.0 - @thekid
  • Rewrote code base, grouping use statements - @thekid
  • Converted newinstance to anonymous classes - @thekid

1.0.0: XP10 compatibility

04 Apr 17:28
Compare
Choose a tag to compare

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

23 Jan 20:42
Compare
Choose a tag to compare
  • Adapted to changes in xp-forge/partial 0.6.0 - @thekid

0.4.0: Welcome lang.partial, PHP 5.6

12 Jul 20:36
Compare
Choose a tag to compare
  • Heads up: Changed to depend on xp-forge/partial (instead of on
    xp-forge/creation, which is deprecated)
    • Bumped minimum PHP version to PHP 5.6 - @thekid
    • Rewrote codebase to make use of ValueObject trait - @thekid
      (@thekid)

0.3.0: PHP7 forward compat, HHVM

14 Jun 00:18
Compare
Choose a tag to compare
  • Added HHVM support by fixing #3 - @thekid
  • Added forward compatibility with PHP7 - @thekid