This AI is still in early stages of development.
Util API Downloads
- Aubergine
Owned by Aubergine
Version history and downloads...
These are ancient versions - get recent versions from Github.
Download & Install
Get the latest version from the green panel →
Include Util API in your script...
include("path/to/Util.js");
Version History
Version 0.10: Release candidate – Nov 16, 2012
- New: Added Native and toArray() globals
- New: object.addAccessor() function
- New: object.isArray and object.isFunction properties
- Change: Reinstated most constants for object.addProp()
- Change: Renamed all functions and methods (removing "u" from names)
- Change: Full code refresh - standardised with other APIs
- Change: Namespaced constants (with exception of object.addProp() constants)
- Change: Complete re-write of object.super(), now includes caching and lots of bug fixes
- Change: Renamed compose() to function.wraps()
- Change: Refactored dependency checker code – now it all lives under Check()
- Removed: tardis() moved to Events API
Version 0.9: Beta release – Nov 02, 2012
- New: Global now property - returns current universal time in ms since 1st Jan 1970
- Change: Refactored documentation in the wiki to group functionality in to sections
- Change: Replaced excessive comments in code with links to new documentation
Version 0.8: Beta release – Oct 14, 2012
- New: Global "global" property, a reference to the global object/scope
- New: Set of functions for Dependency Checking
- New: Message output function - out() - and related constants
- New: object.addConst() function
- Change: Improved internal code of tardis() to make it cleaner
Version 0.7: Beta release – Mar 10, 2012
- Fixed: An epic fail in tardis() code resolved
New: Added backport.js support to uTardis
Version 0.6: Alpha release – Mar 01, 2012
- Fixed: Stupid typo bug in super()
Version 0.5: Alpha release – not released
- New: Added function.curry() after much deliberation
Version 0.4: Alpha release – Feb 29, 2012
- New: Added function.wraps()
- Fixed: Stupid typos
- Fixed: Resolved parallel universe bug in tardis()
Version 0.3: Alpha release – not released
- New: Added typeOf()
Version 0.2: Alpha release – Feb 28, 2012
- Change: Removed DATA_NORMAL
- New: Added tardis()
Version 0.1: Alpha release – Jan 11, 2012
- Initial release with object.addProp(), function.inherit(), object.super()
Availability RC1
Requires:
- Warzone 3.1 or above
Useful links
Inspiration behind this API:
- Dmitry Soshnikov's blog (and his gists) – he has a super-clear way of explaining even the most complex things!
- Angus Croll – his "Javascript, Javascript" blog is just awesome and contains some mind-bending JS trickery!
- Mozilla Developer Network – comprehensive documentation of Javascript features