Releases: hexydec/dabby
Releases · hexydec/dabby
Dabby.js 0.9.6
This release updates the build system to use Rollup.js, and includes dependencies in each module using ES6 imports, enabling native custom builds:
- Updated $.extend.js() to support recursive merges.
- Fixed bugs in $.fn.offset(), added tests
- Fixed bug in $.scroll() where it didn't support the window element
- Fixed bug in width-height.js where if a unit other than px was used, it wasn't interpreted correctly
- Fixed bug in
$.width() and $ .height() where when retrieving a value, the padding was not calculated correctly - Updated $.empty() to delete nodes instead of setting innerHTML
- Added polyfill for object.assign to enable $.extend() to work in IE11
- Fixed issue in .prop() where there was no check for value existence. Added documentation
- Merged $.fn.is() into the filter-not module, and renamed filter
- Fixed bugs in $.ajax() where FormData objects were not handled correctly, and callbacks were sent the wrong arguments
- Added xhr setting to allow you to generate your own XMLHttpRequest object, useful for attaching progress handlers
- Removed old PHP code scanner in favour of using ES6 imports
Dabby.js v0.9.5
This release fixes a number of issues, adds more API coverage, and improves compatibility with jQuery:
- Scripts are now included asynchronously in $.ajax()
- Fixed issue in $.ajax() where the script load event was not attached with the once flag
- Fixed bug in $.ajax() where data was attached as a query string for XHR requests, whereas it should have only done this for synchronous requests
- Fixed issue with selection in trigger/test.js
- Reworked $.extend() to use Object.assign() to copy the properties
- Merged
$.get() and $ .post() into the same code - Fixed bug in $.ajax() where data was not handled correctly if the method was GET
- Added
$.fn.replaceAll() and $ .fn.replaceWith() + tests
Dabby.js v0.9.4
This release fixes a number of issues, adds more API coverage, and improves compatibility with jQuery:
- ES6 bundle now only exports $ as a module, tests now import the bundle instead of including separately
- Fixed bug in $.fn.ajax() where it could not handle a string as the data parameter
- Fixed bug in $.fn.css() where you couldn't pass an object of properties to update.
- Added $.isPlainObject() + tests
- Fixed bug in setCss() where it didn't handle unitless values, it now adds "px"
- Added $.fn.position()
- Fixed bug in $.fn.off() where the same arguments needed to be passed to successfully remove an event
- Removed instances of node.isSameNode() and replaced with === as is better supported
- Fixed bug in filterNodes() where matches cannot be performed on a document or window node
- Fixed bug in $.fn.trigger() where it could trigger native events
- Updated $.fn.class() to handle the classes in the correct order
- Methods in width-height.js,
$.fn.prop(), $ .fn.val(),$.fn.addClass(), $ .fn.toggleClass(),$.fn.removeClass(), $ .fn.html(), and $.fn.text() now can handle the value as a function - Fixed bug in $.fn.offset() where getVal() was not implemented correctly
- Updated getVal() to specify all arguments, and simplify how they are handled. It can also now handle the current value as a function
- Added more documentation
Dabby.js v0.9.3
This release fixes a couple of bugs and adds more documentation:
- Fixed bug in how DOMContentLoaded is handled in $()
- Fixed bug in
$.fn.before()/$ .fn.prepend()/$.fn.append()/$.fn.after() where some variable scoping issues caused a variable in a loop not to be reset and subsequent nodes were not handled correctly - The dabby function is now defined as a const
- Added documentation for
$.fn.serialize() and $ .fn.attr()
Dabby.js v0.9.2
This release improves compatibility with jQuery, the test suite now runs with both dabby.js and jQuery. Running the test suite with jQuery highlighted a number of compatibility errors which have now been fixed:
- $.ajax() returned the HTTP code instead of a text status
- $.param() wasn't handling nested properties properly
- $.fn.serialize() couldn't process certain form elements correctly
- $.fn.val() now returns only strings as per jQuery
- $.fn.unwrap() incorrectly returned the removed object, whereas it should have returned the original collection
- Rewrote $.fn.index() to correctly implement the jQuery API
- $.fn.data() now supports retrieving all data properties from the first node in a collection
- Improved use of ES6 fat arrow functions where possible
- Updated package.json so the module can be published on NPM (as dabbyjs)
- $.fn.trigger() now bubbles by default
- Reworked tests to work in jQuery and fix incorrect usages
- $() now supports window as a node
- Removed Array.includes() and String.includes() polyfills and code now uses indexOf()
- Code improvements, size optimisations, and variable creation scopes
- Various other fixes
- Fixed issue in $.fn.off() where delegated events were not removed
- Removed
Dabby.js v0.9.1
This first release fixes a number of issues and provides closer compatibility with jQuery.
- Added $.fn.closest()
- $.fn.css() now passes the current value to callbacks (Through setCss())
- More functions converted to arrow functions where possible
- Fixed bug in
$.fn.on() and $ .fn.one() where the data was not passed to the callback correctly - Fixed bugs in $.fn.load() where HTML responses were not refined correctly, and the callback was not applied per node
- Fixed bug in the internal filterNodes() function where it could only filter nodes that were already in the document
- Code optimisations
Also it adds more documentation.