Releases: Ariadne-CMS/arc-prototype
Fixed notice in __destruct
Updated release for full ARC components set
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
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
0.9.1 fixed handling of magic methods like __toString
First release
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.