Skip to content

Releases: fabiospampinato/cash

7.0.0

31 Mar 13:40
Compare
Choose a tag to compare
  • focus|blur|mouseenter|mouseleave: ensuring namespaces are handled properly
  • focus|blur|mouseenter|mouseleave: aligned behavior more with jQuery
  • focus|blur|mouseenter|mouseleave: ensuring natively triggered events are handled properly
  • Migration guide: mentioning native non-bubbling events

6.0.2

15 Feb 00:34
Compare
Choose a tag to compare
  • Readme: improved comparison with jQuery, fixing some wrong/unfair comparisons/statements
  • Migration guide: mentioning sort order
  • $.fn.ready: ensuring the callback is called asynchronously and errors are not silenced

6.0.1

05 Jan 17:24
Compare
Choose a tag to compare
  • Ensuring events work with Document and Window objects
  • Ensuring “event.data” is setted reliably

6.0.0

05 Jan 13:14
Compare
Choose a tag to compare
Removed Features
  • $.camelCase|matches|isString|prefixedProp: no longer exposing these methods, aligning with jQuery
New Features
  • $.fn.nextUntil|prevUntil|parentsUntil: implemented these methods
  • $.fn.detach|remove: added support for an optional "selector" argument
  • $.fn.on|one: added support for an optional “data” argument
  • Set-up test coverage (currently at ~99%) reporting to coveralls.io
  • Migration guide: major update
Bug Fixes
  • $.extend: aligned more with jQuery when called with zero or one argument
  • $.fn.before|after|append|prepend|insertBefore|insertAfter|appendTo|prependTo: ensuring cloned scripts don't get executed
  • $.fn.contents: ensuring template elements are supported
  • $.fn.css: ensuring “grid-*“ properties don’t get the “px” suffix appended to their values when they are not supposed to
  • $.fn.data: doing nothing when trying to set values to undefined
  • $.fn.data: ensuring strings containing leading/trailing whitespace aren’t parsed as JSON
  • $.fn.get|eq: ensuring string indexes are supported
  • $.fn.map: ensuring callbacks that return an array of elements are supported too
  • $.fn.offset|offsetParent|position: rewritten to much more closely match jQuery’s implementation
  • $.fn.on|one|off: ensuring namespaces-only events are ignored
  • $.fn.on|one|off: ensuring they don’t throw when receiving a falsy callback
  • $.fn.on|one: ensuring these methods are chainable even when receiving falsy callbacks
  • $.fn.prop|removeProp: mapping special HTML attributes into their equivalent DOM properties (e.g. “for” -> “htmlFor”)
  • $.fn.ready: ensuring exceptions are always caught, so they can't crash the app
  • $.fn.serialize: normalizing newlines
  • $.fn.trigger: testing that non-nil falsy values are passed correctly
  • $.fn.unwrap: ensuring immediate children of the body don’t get unwrapped
  • $.fn.val: ensuring checkboxes and radios can be set properly
  • $.fn.val: ensuring non-string values are supported
  • $.fn.val|html: more reliably detecting when being called with no arguments
  • $.fn.width|height|innerWidth|innerHeight|outerWidth|outerHeight: ensuring document objects are supported too
  • $.fn.width|height|innerWidth|innerHeight|outerWidth|outerHeight: ensuring they return the right value for the Window object
  • $.fn.wrapAll: ensuring elements aren’t cloned unnecessarely
  • $.parseHTML: ensuring whitespace around a single HTML tag is preserved
  • Ensuring empty selectors don’t throw an error
  • Collections containing non-element objects:
    • $.fn.addClass|removeClass|toggleClass: ensuring it doesn’t throw with collections containing non-elements
    • $.fn.attr: ensuring a collection containing non-element objects doesn’t cause an error to be thrown
    • $.fn.before|after|append|prepend|insertBefore|insertAfter|appendTo|prependTo: ensuring non-element nodes are accounted for properly
    • $.fn.hasClass: ensuring a collection containing non-element objects doesn’t cause an error to be thrown
    • $.fn.hide|show|toggle: ensuring a collection containing non-element objects doesn’t cause an error to be thrown
    • $.fn.html: ensuring collections containing non-element objects are supported
    • $.fn.not: ensuring non-element nodes are excluded
    • $.fn.on|off: ensuring non-element objects in the collection are ignored
    • $.fn.removeAttr: ensuring a collection containing non-element objects doesn’t cause an error to be thrown
    • $.fn.text: improved support of collections containing non-elements objects

5.0.0

17 Dec 05:04
Compare
Choose a tag to compare
  • Dropped support for IE10
  • $.fn.hasClass: ensuring it always returns a boolean
  • $.fn.off: accepting also an events map as its only argument
  • $.fn.show|toggle: restoring custom display values
  • $.fn.before|after|append|prepend|insertBefore|insertAfter|appendTo|prependTo: ensuring multiple nodes are inserted in the correct order
  • Ensuring attached events never get forgotten
  • Ensuring script tags are executed even if they have a “src” attribute, and without using eval
  • Ensuring the order of event namespaces doesn’t matter
  • Squeezed some more bytes out of the bundle (~4%) and improved code style consistency
  • Squeezed some more bytes out of the bundle (~1.5%), bringing back the minified and gzipped size below 5kb

4.1.5

06 Sep 13:19
Compare
Choose a tag to compare
  • $.fn.val: ensuring it works with “input[type=file][multiple]” elements
  • Migration guide: mentioning how $.fn.data stores values

4.1.4

05 Aug 13:55
Compare
Choose a tag to compare
  • $.fn.get: improved types
  • TypeScript: made types a little more forgiving
  • TypeScript: improved collections index signature
  • TypeScript: improved support for props/methods available only in specific HTML nodes
  • Added a guide for extending Cash

4.1.3

13 Jul 14:07
Compare
Choose a tag to compare
  • Ensuring Cash can be bundled correctly via WebPack
  • $.fn.toggle: ensuring each element is toggled independently
  • TypeScript: ensuring some useful internal types are exported
  • TypeScript: made types a little more forgiving

4.1.2

16 May 21:18
Compare
Choose a tag to compare
  • Avoiding publishing unnecessary files to NPM

4.1.1

13 May 18:05
Compare
Choose a tag to compare
  • Raising bundle size limit to 5.5kB
  • Test: replaced iOS 9.3 with iOS 11.0
  • Test: using setAttribute instead of the dataset API
  • Migration guide: mentioning the :scope CSS pseudo-class
  • Migration guide: mentioning inserting plain text
  • TypeScript: typing events more loosely
  • TypeScript: typing collection elements more loosely