cash

An absurdly small jQuery alternative for modern browsers.

MIT License

Downloads
98.9K
Stars
6.4K
Committers
35
cash - 8.1.5 Latest Release

Published by fabiospampinato over 1 year ago

  • Fixed support for using a selector as context
  • $.hide: ensuring calling it multiple times sequentially works too
cash - 8.1.4

Published by fabiospampinato over 1 year ago

  • Replaced Karma with Playwright, removing most dev dependencies, removing coverage reports, and adding support for Safari
  • $.serialize: avoiding encoding "%20" as "+", for better alignment with jQuery
cash - 8.1.3

Published by fabiospampinato over 1 year ago

  • $.fn.text: ensuring it reads text from every node in the collection, not just the first one, for better alignment with jQuery
cash - 8.1.2

Published by fabiospampinato almost 2 years ago

  • Migration guide: mentioning $.fn.css as a potential workaround for ignoring the effects of CSS transforms
  • $.fn.html: ensuring script elements are executed, to better align with jQuery
  • Switched to a new bundler, minipacco
  • Deleted most development dependencies
  • Simplified significantly partial compilation
  • Ensuring selectors contains escaped dots are handled correctly
cash - 8.1.1

Published by fabiospampinato over 2 years ago

  • Ensuring the proper types for iteration are provided
  • Ensuring $.fn.find works with document fragments too
  • Ensuring the "delegateProperty" is attached to events
  • More reliably using "getElementById", only if the context node actually supports it
  • Ensuring that before inserting a node before/after the html node the html node is removed from the DOM
cash - 8.1.0

Published by fabiospampinato about 4 years ago

  • Added $.isPlainObject
  • $.each: added support for iterating over objects
  • $.extend: added support for extending deeply
  • Readme: updated dimensions
  • Updated changelog template
cash - 8.0.0

Published by fabiospampinato over 4 years ago

  • Improved alignment with jQuery regarding handling of non-bubbling events significantly
cash - 7.0.4

Published by fabiospampinato over 4 years ago

  • Ensuring unusual but valid simple selectors are handled properly
cash - 7.0.3

Published by fabiospampinato over 4 years ago

  • Updated “EleLoose” type
cash - 7.0.1

Published by fabiospampinato over 4 years ago

  • $.fn.css: added support for retrieving properties of disconnected nodes
cash - 7.0.0

Published by fabiospampinato over 4 years ago

  • 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
cash - 6.0.2

Published by fabiospampinato over 4 years ago

  • 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
cash - 6.0.1

Published by fabiospampinato almost 5 years ago

  • Ensuring events work with Document and Window objects
  • Ensuring “event.data” is setted reliably
cash - 6.0.0

Published by fabiospampinato almost 5 years ago

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
cash - 5.0.0

Published by fabiospampinato almost 5 years ago

  • 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
cash - 4.1.5

Published by fabiospampinato about 5 years ago

  • $.fn.val: ensuring it works with “input[type=file][multiple]” elements
  • Migration guide: mentioning how $.fn.data stores values
cash - 4.1.4

Published by fabiospampinato about 5 years ago

  • $.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
cash - 4.1.3

Published by fabiospampinato over 5 years ago

  • 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
cash - 4.1.2

Published by fabiospampinato over 5 years ago

  • Avoiding publishing unnecessary files to NPM
cash - 4.1.1

Published by fabiospampinato over 5 years ago

  • 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