Skip to content

Releases: Ariadne-CMS/arc-prototype

Fixed notice in __destruct

23 Feb 15:05
Compare
Choose a tag to compare

When __destruct was called, it would try to remove an object from the self::$instances list incorrectly.

Updated release for full ARC components set

23 Feb 11:57
Compare
Choose a tag to compare

This release adds type hints and exceptions when trying to change a sealed object. This should make it easier to see what is going wrong when and where.
Also removed the dependency on arc-base, instead arc-base will depend on this component.

Refactored to be more like Javascript objects

20 Jan 14:36
Compare
Choose a tag to compare

This version works much more like EcmaScript 5 objects.

  • observers are called after a change and cannot prevent the change
  • added seal() and isSealed()
  • remove unfreeze()
  • freeze() now also calls seal()
  • seal() now also calls preventExtensions()
  • added getter and setter support per property
  • observers can be filtered by type of operation: 'add', 'update', 'delete', 'configure'

See the README.md for the full details and API

Fixed calling magic methods like __toString

17 Jan 15:53
Compare
Choose a tag to compare
0.9.1

fixed handling of magic methods like __toString

First release

17 Jan 13:04
Compare
Choose a tag to compare

This is the first release of arc-prototype. It is a full rewrite of arc\lambda\Prototype, included in arc-base. To provide support for observe/freeze/etc. properties are no longer saved as public properties in the object. This means that this version is slightly slower and cannot be easily exported to json. In addition if you use array properties, you must copy them, change them and then copy them back, since they are overloaded.

But in return you get the ability to use javascript like observe methods and freeze objects.