- [NEW] Added
Array.shuffle(),Array.remove(),Array.removeAll()andArray.removeIndex(), all available as both- static
Arraymethods that don't mutate the original array - prototype methods that mutate original array and return self to support chaining
- static
- [NEW] Added a highly robust implementation of
deepCopy() - [NEW] Added
createNode() - [EDIT]
setStyleandsetStylesnow accept type string forpropertyparam to allow both camel case, kebab case (css-like) and style variables definition - [FIX] Fixed rgbToHex returning completely incorrect value on inputs lower than double hex digits
- [FIX] Fixed incorrect type for event name in
on()andoff() - [FIX]
randomIntnow swapsminandmaxifminis greater thanmax - [FIX] Added missing definitions in README
Module codebase:
- [NEW] Added
CHANGELOG.mdfile - [NEW] Added
on()extended toDocument,Element,HTMLElementandNodeclasses - [NEW] Added
off()extended toDocument,Element,HTMLElementandNodeclasses - [NEW] Added
attr()extended toDocument,Element,HTMLElementandNodeclasses - [NEW] Added global
setStyle() - [NEW] Added global
setStyles() - [NEW] Added
randomIntfunction toMathnative class - [NEW] Added
degToRadfunction toMathnative class - [NEW] Added
radToDegfunction toMathnative class - [EDIT]
proportionalRange()now has a singleconfig: ProportonalRangeConfigparameter overload without breaking the previous usage - [EDIT] Updated
setStyle()parameter types - [EDIT] Updated
setStyle()implementation to use global function - [EDIT] Updated
setStyles()parameter types - [EDIT] Updated
setStyles()implementation to use global function
Repository management:
- [EDIT] For ease of setup the module "copyfiles" has been replaced with the use of "fs-extra", "glob" and a new build util file dedicated to copying files; the build script has been edited accordingly
- [NEW] Added
LICENSEfile
- [NEW] Added
README.mdfile
- Initial port from non-module files
- [NEW] Added global
proportionalRange() - [NEW] Added global
rgbToHex() - [NEW] Added global
randomInt() - [NEW] Added
getNode()as global and extended toDocument,Element,HTMLElementandNodeclasses - [NEW] Added
getNodes()as global and extended toDocument,Element,HTMLElementandNodeclasses - [NEW] Added
setStyle()extended toDocument,Element,HTMLElementandNodeclasses - [NEW] Added
setStyles()extended toDocument,Element,HTMLElementandNodeclasses