Skip to content

Releases: art-emini/SpacerJS

2.1.0

12 May 17:59
Compare
Choose a tag to compare
  • Added event parameter in examples for on
  • Added transform(cssValue) which sets the transform value in css
  • Added rotate(cssValue) which sets the rotatation in valid transform css
  • Added state as a returned object which tracks metadata state
  • Added removeMetaProp(metaKey) which removes a metaproperty
  • Added deleteMeta() which removes all meta propertys
  • Added return fn object where custom methods are stored
  • Added _appendCustom(key, func) which appends a custom function to _().fn
  • Added ESModules normal and minified
  • Added offset() which returns the top and left coordinate
  • Added shell scripts

2.0.0

08 May 00:22
Compare
Choose a tag to compare
  • Added minified version
  • Added ability for selector to be an element
  • Added _.__.nodelist returned instead of an array
    • Changed return value to be methods
  • Added first(node?) which gets the first child as a node or HTMLElement
  • Added last(node?) which gets the first child as a node or HTMLElement
  • Added at(indexBased1) gets a child at a 1 based index
  • Added each(callback(node, index)) which loops through a node list
  • Added trigger(event) which triggers an event
  • Documented all parameters
  • Allow elements to be allowed in appendTo
  • Added size() which return the clientBoundingRect
  • Added prepend(element) which prepends an element at the start of itself
  • Added prependTo(parent) which prepends itself to the start of the parent
  • Added prependList(list) which prepends a list of elements to itself's start
  • Added randomChild() which returns a randomChild element
  • Added fadeIn() and fadeOut() with param intensity
  • Added animate(property, value, time) which animates a css property with transitions
  • Rebuilt docs

1.3.0

07 May 15:01
Compare
Choose a tag to compare
  • Changed on()
  • * Event parameter can now have multiple events seperated by a space
    • Callback parameter can now be a function or an array of functions
  • Added parent() which return the parentElement
  • Added more meta options
    • Added hoverClass
    • Added activeClass
  • Added hover, unhover, active, and unactive functions to use the correct meta class
  • Added css() which returns the computed css
  • Added empty() which removes all empty child nodes
  • Added removeChildren() which removes all child nodes

1.2.0

02 May 15:57
Compare
Choose a tag to compare

1.2.0

  • Changed Methods

    • Changed iHtml => html
    • Changed iText => text
  • New Methods

    • Chainable
      • Added setMeta(obj)
      • Added show()
      • Added hide()
      • Added on(event, cb)
      • Added addClass(className)
      • Added removeClass(className)
      • Added dbclick()
      • Added sleep(ms): Promise
      • Added keydown(cb) listener
      • Added keyup(cb) listener
      • Added debug(...args) which console logs args
    • Non-Chainable
      • Added children(): NodeList of ChildNodes
  • New Returns

    • myElement.meta
  • Misc

    • Rebuilt docs
    • Updated examples
    • Changed .gitignore
    • Updated Readme.md
    • Updated package.json
    • Rebuilt src
    • Prettified test.html
    • Updated test.js

1.1.1

28 Apr 16:01
Compare
Choose a tag to compare

1.1.1

  • Made elements node list spreader be type any for false error fix
  • Rebuilt docs

1.1.0

28 Apr 15:35
Compare
Choose a tag to compare

1.1.0

  • Added new methods
    • Chainable
      • normalize
      • removeChild
      • replaceChild
    • Non-Chainable
      • compareNode
      • hasChildren
  • Repository
    • Added .vscode/settings.json
    • Added .vscode/extentions.json
    • Added .editorconfig
    • Tweaked tsconfig.json
    • Rebuilt Docs

1.0.2

28 Apr 11:43
Compare
Choose a tag to compare
  • Fixed version number
  • Publish as npm package
  • Updated README.md
  • Removed useless script in package.json

1.0.1

28 Apr 11:29
Compare
Choose a tag to compare
  • Made element global
  • Added changelog.md
  • Tweaked tsconfig

1.0.0

28 Apr 01:21
Compare
Choose a tag to compare
  • Released SpacerJS